Commit eb9b5842200c34b0729701523ea4c6ac77b598da
1 parent
a242b994
应用上传图片
Showing
3 changed files
with
6 additions
and
6 deletions
src/components/InfoForm/index.vue
| @@ -236,7 +236,7 @@ | @@ -236,7 +236,7 @@ | ||
| 236 | :on-success="handleAvatarSuccess" | 236 | :on-success="handleAvatarSuccess" |
| 237 | accept="image/*" | 237 | accept="image/*" |
| 238 | > | 238 | > |
| 239 | - <img v-if="infoForm.systemIcon" :src="define.comUrl + infoForm.systemIcon" class="avatar"> | 239 | + <img v-if="infoForm.systemIconModel" :src="define.comUrl + infoForm.systemIconModel.url" class="avatar"> |
| 240 | <i v-else class="el-icon-plus avatar-uploader-icon"></i> | 240 | <i v-else class="el-icon-plus avatar-uploader-icon"></i> |
| 241 | </el-upload> | 241 | </el-upload> |
| 242 | </el-form-item> | 242 | </el-form-item> |
| @@ -305,12 +305,12 @@ export default { | @@ -305,12 +305,12 @@ export default { | ||
| 305 | principalName: "", | 305 | principalName: "", |
| 306 | principalPhone: "", | 306 | principalPhone: "", |
| 307 | officeAddress: "", | 307 | officeAddress: "", |
| 308 | - systemIcon: "", | ||
| 309 | areaId: "", | 308 | areaId: "", |
| 310 | specialRecordType: '', | 309 | specialRecordType: '', |
| 311 | specialRecordContent: '', | 310 | specialRecordContent: '', |
| 312 | specialRecordNumber: '', | 311 | specialRecordNumber: '', |
| 313 | specialRecordTime: '', | 312 | specialRecordTime: '', |
| 313 | + systemIconModel: '', | ||
| 314 | }, | 314 | }, |
| 315 | infoRules: { | 315 | infoRules: { |
| 316 | systemName: { | 316 | systemName: { |
| @@ -367,7 +367,7 @@ export default { | @@ -367,7 +367,7 @@ export default { | ||
| 367 | methods: { | 367 | methods: { |
| 368 | handleAvatarSuccess(response, file, fileList) { | 368 | handleAvatarSuccess(response, file, fileList) { |
| 369 | if(response.code != 200) return; | 369 | if(response.code != 200) return; |
| 370 | - this.infoForm.systemIcon = response.data.url; | 370 | + this.infoForm.systemIconModel = response.data; |
| 371 | this.$forceUpdate(); | 371 | this.$forceUpdate(); |
| 372 | this.$message({ | 372 | this.$message({ |
| 373 | showClose: true, | 373 | showClose: true, |
src/views/baseComapnyInfo/index.vue
| @@ -55,7 +55,7 @@ | @@ -55,7 +55,7 @@ | ||
| 55 | <el-table-column prop="contactInformation" show-overflow-tooltip label="联系方式" align="left"/> | 55 | <el-table-column prop="contactInformation" show-overflow-tooltip label="联系方式" align="left"/> |
| 56 | <el-table-column label="操作" fixed="right" width="100"> | 56 | <el-table-column label="操作" fixed="right" width="100"> |
| 57 | <template slot-scope="scope"> | 57 | <template slot-scope="scope"> |
| 58 | - <el-button type="text" @click="addOrUpdateHandle(scope.row.id)">编辑</el-button> | 58 | + <el-button type="text" @click="addOrUpdateHandle(scope.row.id, false)">编辑</el-button> |
| 59 | <!-- <el-button type="text" @click="handleDel(scope.row.id)" class="NCC-table-delBtn" >删除</el-button> --> | 59 | <!-- <el-button type="text" @click="handleDel(scope.row.id)" class="NCC-table-delBtn" >删除</el-button> --> |
| 60 | </template> | 60 | </template> |
| 61 | </el-table-column> | 61 | </el-table-column> |
src/views/baseSystemInfo/DetailForm.vue
| @@ -117,7 +117,7 @@ | @@ -117,7 +117,7 @@ | ||
| 117 | <el-col :span="24"> | 117 | <el-col :span="24"> |
| 118 | <div class="form-item"> | 118 | <div class="form-item"> |
| 119 | <div class="label w-100">应用图标:</div> | 119 | <div class="label w-100">应用图标:</div> |
| 120 | - <img v-if="dataForm.systemIcon" class="avatar" :src="define.comUrl + dataForm.systemIcon"> | 120 | + <img v-if="dataForm.systemIconModel" class="avatar" :src="define.comUrl + dataForm.systemIconModel.url"> |
| 121 | <span v-else>无</span> | 121 | <span v-else>无</span> |
| 122 | </div> | 122 | </div> |
| 123 | </el-col> | 123 | </el-col> |
| @@ -276,7 +276,7 @@ export default { | @@ -276,7 +276,7 @@ export default { | ||
| 276 | link: undefined, | 276 | link: undefined, |
| 277 | obtainEvidence: [], | 277 | obtainEvidence: [], |
| 278 | annex: [], | 278 | annex: [], |
| 279 | - systemIcon: '', | 279 | + systemIconModel: '', |
| 280 | }, | 280 | }, |
| 281 | systemTypeOptions: [], | 281 | systemTypeOptions: [], |
| 282 | systemClassOptions: [], | 282 | systemClassOptions: [], |