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