Commit e8dbf78f731167a803e99a2407eea1ed6efb6d2c

Authored by monkeyhouyi
1 parent af8e6fa8

设置id=77777的人员可以删除基础信息,增加应用字段限长

src/components/InfoForm/index.vue
... ... @@ -82,7 +82,7 @@
82 82 <el-input
83 83 v-model="infoForm.systemName"
84 84 placeholder="请输入应用名称"
85   - maxlength="50"
  85 + maxlength="100"
86 86 ></el-input>
87 87 </el-form-item>
88 88 </el-col>
... ... @@ -126,7 +126,7 @@
126 126 </el-col>
127 127 <el-col :span="12" v-show="isFilings">
128 128 <el-form-item label="备案号" prop="systemRecordNumber">
129   - <el-input v-model="infoForm.systemRecordNumber" placeholder="请输入备案号" maxlength="50"
  129 + <el-input v-model="infoForm.systemRecordNumber" placeholder="请输入备案号" maxlength="500"
130 130 ></el-input>
131 131 </el-form-item>
132 132 </el-col>
... ... @@ -148,7 +148,7 @@
148 148 <el-input
149 149 v-model="infoForm.domain"
150 150 placeholder="请输入域名"
151   - maxlength="200"
  151 + maxlength="500"
152 152 >
153 153 </el-input>
154 154 </el-form-item>
... ... @@ -158,7 +158,7 @@
158 158 <el-input
159 159 v-model="infoForm.specialRecordNumber"
160 160 placeholder="请输入特殊备案号"
161   - maxlength="200"
  161 + maxlength="500"
162 162 ></el-input>
163 163 </el-form-item>
164 164 </el-col>
... ... @@ -223,7 +223,7 @@
223 223 <el-input
224 224 v-model="infoForm.platform"
225 225 placeholder="请输入归属平台"
226   - maxlength="200"
  226 + maxlength="500"
227 227 ></el-input>
228 228 </el-form-item>
229 229 </el-col>
... ... @@ -258,7 +258,7 @@
258 258 <el-form-item label="负责人姓名" prop="principalName">
259 259 <el-input
260 260 v-model="infoForm.principalName"
261   - maxlength="50"
  261 + maxlength="200"
262 262 placeholder="请输入负责人姓名"
263 263 ></el-input>
264 264 </el-form-item>
... ... @@ -267,7 +267,7 @@
267 267 <el-form-item label="负责人电话" prop="principalPhone">
268 268 <el-input
269 269 v-model="infoForm.principalPhone"
270   - maxlength="20"
  270 + maxlength="200"
271 271 placeholder="请输入负责人电话"
272 272 ></el-input>
273 273 </el-form-item>
... ... @@ -276,7 +276,7 @@
276 276 <el-form-item label="办公地址" prop="officeAddress">
277 277 <el-input
278 278 v-model="infoForm.officeAddress"
279   - maxlength="200"
  279 + maxlength="500"
280 280 placeholder="请输入办公地址"
281 281 ></el-input>
282 282 </el-form-item>
... ...
src/views/baseComapnyInfo/index.vue
... ... @@ -70,7 +70,7 @@
70 70 <el-table-column label="操作" fixed="right" width="100">
71 71 <template slot-scope="scope">
72 72 <el-button type="text" @click="addOrUpdateHandle(scope.row.id, false)">编辑</el-button>
73   - <!-- <el-button type="text" @click="handleDel(scope.row.id)" class="NCC-table-delBtn" >删除</el-button> -->
  73 + <el-button type="text" @click="handleDel(scope.row.id)" class="NCC-table-delBtn" v-if="isSHILevel && userId == '77777'">删除</el-button>
74 74 </template>
75 75 </el-table-column>
76 76 </NCC-table>
... ... @@ -133,6 +133,14 @@ export default {
133 133 };
134 134 },
135 135 computed: {
  136 + isSHILevel() {
  137 + // 判断角色是否为‘市级办公室’
  138 + return this.$store.state.user.islader;
  139 + },
  140 + userId() {
  141 + // admin1这个人可以删除数据
  142 + return this.$store.state.user.id;
  143 + },
136 144 laderType() {
137 145 return this.$store.state.user.laderType;
138 146 }
... ...
src/views/baseSystemInfo/index.vue
... ... @@ -99,7 +99,7 @@
99 99 <el-button size="mini" type="text" @click="toDetail(scope.row)">查看</el-button>
100 100 <el-button size="mini" type="text" @click="toChangeArea(scope.row)" >归属地变更</el-button>
101 101 <!-- <el-button size="mini" type="text" @click="toInspection(scope.row)" v-if="!isSHILevel">上报</el-button> -->
102   - <!-- <el-button type="text" style="color: red;" @click="delNew(scope.row)" v-if="isSHILevel">删除</el-button> -->
  102 + <el-button type="text" style="color: red;" @click="delNew(scope.row)" v-if="isSHILevel && userId == '77777'">删除</el-button>
103 103 </template>
104 104 </el-table-column>
105 105 </NCC-table>
... ... @@ -218,6 +218,7 @@ export default {
218 218 this.initSystemTypeList();
219 219 this.initAreaTypeList();
220 220 this.initList();
  221 + console.log(this.userId)
221 222 },
222 223 mounted() {},
223 224 computed: {
... ... @@ -225,6 +226,10 @@ export default {
225 226 // 判断角色是否为‘市级办公室’
226 227 return this.$store.state.user.islader;
227 228 },
  229 + userId() {
  230 + // admin1这个人可以删除数据
  231 + return this.$store.state.user.id;
  232 + },
228 233 laderType() {
229 234 return this.$store.state.user.laderType;
230 235 }
... ...