|
@@ -161,7 +161,7 @@
|
|
|
</div>
|
|
|
<!-- 图片列表 -->
|
|
|
<div class="imglist">
|
|
|
- <div v-for="(photo,pindex) in curZbItem.taskTargetPhotoVOList" :key="photo.id">
|
|
|
+ <div v-for="(photo,pindex) in curZbItem.taskTargetPhotoVOList" :key="pindex">
|
|
|
<img @click="editImgs(photo.photoPath,activeZbIndex,pindex)" :src="photo.photoPath">
|
|
|
<a-icon @click.stop="delImgs(pindex)" class="aicon" type="close" />
|
|
|
</div>
|
|
@@ -383,7 +383,7 @@
|
|
|
}))
|
|
|
// 当前查看的指标对象
|
|
|
let obj = this.zbItem[this.activeZbIndex]
|
|
|
- this.curZbItem = JSON.parse(JSON.stringify(obj))
|
|
|
+ this.curZbItem = Object.assign({},this.curZbItem,JSON.parse(JSON.stringify(obj)))
|
|
|
// 抓拍
|
|
|
this.takePhotos(1)
|
|
|
},
|
|
@@ -402,14 +402,13 @@
|
|
|
// 拍照成功后,返回图片地址
|
|
|
takePhotoSuccess(url){
|
|
|
let obj = {
|
|
|
- id: new Date().getTime(),
|
|
|
photoPath: url
|
|
|
}
|
|
|
- console.log(JSON.stringify(this.curZbItem))
|
|
|
if(!this.curZbItem.hasOwnProperty('taskTargetPhotoVOList')){
|
|
|
this.curZbItem.taskTargetPhotoVOList = [obj]
|
|
|
}else{
|
|
|
this.curZbItem.taskTargetPhotoVOList.push(obj)
|
|
|
+ this.curZbItem.taskTargetPhotoVOList.splice()
|
|
|
}
|
|
|
|
|
|
// 显示弹框
|