|
|
|
|
@ -736,8 +736,8 @@ |
|
|
|
|
<el-descriptions-item span="3" label="备注">{{ |
|
|
|
|
pointsForm.notes |
|
|
|
|
}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item span="3" label="图片"> |
|
|
|
|
<img style="width:200px;height:200px;" :src="pointsForm.picture" alt=""> |
|
|
|
|
<el-descriptions-item span="3" label="图片" > |
|
|
|
|
<img style="width:200px;height:200px;" v-if="pointsForm.picture" :src="pointsForm.picture" alt=""> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
</el-descriptions> |
|
|
|
|
<div class="add_all"> |
|
|
|
|
@ -1161,9 +1161,18 @@ export default { |
|
|
|
|
// this.fileList.push({url:response.data}) |
|
|
|
|
}, |
|
|
|
|
handleRemove(file, fileList){ |
|
|
|
|
console.log('file ===>',file) |
|
|
|
|
console.log('imgList ===>',this.imgList) |
|
|
|
|
console.log('fileList ===>',this.fileList) |
|
|
|
|
if(file.status == "success"){ |
|
|
|
|
this.imgList = this.imgList.filter(item => item != file.url) |
|
|
|
|
this.fileList = this.imgList.filter(item => item.url != file.url) |
|
|
|
|
if(file.response){ |
|
|
|
|
this.imgList = this.imgList.filter(item => item != file.response.data) |
|
|
|
|
this.fileList = this.imgList.filter(item => item.url != file.response.data) |
|
|
|
|
}else{ |
|
|
|
|
this.imgList = this.imgList.filter(item => item != file.url) |
|
|
|
|
this.fileList = this.imgList.filter(item => item.url != file.url) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 切换周期 |
|
|
|
|
@ -1242,6 +1251,7 @@ export default { |
|
|
|
|
this.showProjectDialog = true; |
|
|
|
|
this.page[0].current = 1 |
|
|
|
|
this.searchProject() |
|
|
|
|
this.$refs.maintainTable.clearSelection(); |
|
|
|
|
// getProList({current:1,size:200}).then(res =>{ |
|
|
|
|
// this.tableData = res.data.data.records |
|
|
|
|
|
|
|
|
|
@ -1359,8 +1369,10 @@ export default { |
|
|
|
|
console.log('res ============>',res) |
|
|
|
|
this.addForm = res.data.data; |
|
|
|
|
this.addForm.orderList = this.addForm.checkItemList |
|
|
|
|
this.imgList.push(process.env.NODE_ENV == 'development' ? this.addForm.picture.replace('127.0.0.1','192.168.1.104') : this.addForm.picture) |
|
|
|
|
this.fileList = [{url:process.env.NODE_ENV == 'development' ? this.addForm.picture.replace('127.0.0.1','192.168.1.104') : this.addForm.picture}] |
|
|
|
|
this.addForm.picture ? this.imgList.push(process.env.NODE_ENV == 'development' ? this.addForm.picture.replace('127.0.0.1','192.168.1.104') : this.addForm.picture) : this.imgList = [] |
|
|
|
|
this.fileList = this.addForm.picture ? [{url:process.env.NODE_ENV == 'development' ? this.addForm.picture.replace('127.0.0.1','192.168.1.104') : this.addForm.picture}] : [] |
|
|
|
|
console.log('file ===>',this.fileList) |
|
|
|
|
console.log('omg ===>',this.imgList) |
|
|
|
|
this.title = '编辑巡检点位' |
|
|
|
|
this.showAddDialog = true; |
|
|
|
|
this.$nextTick(() =>{ |
|
|
|
|
|