|
@@ -109,7 +109,7 @@
|
|
|
</div>
|
|
|
<!-- 拍照图片 -->
|
|
|
<div class="photos">
|
|
|
- <div v-for="(photo,pindex) in zb.taskTargetPhotoVOList" :key="photo.id">
|
|
|
+ <div v-for="(photo,pindex) in zb.taskTargetPhotoList" :key="photo.id">
|
|
|
<a-avatar :size="40" shape="square" :src="photo.photoPath" />
|
|
|
</div>
|
|
|
</div>
|
|
@@ -161,7 +161,7 @@
|
|
|
</div>
|
|
|
<!-- 图片列表 -->
|
|
|
<div class="imglist">
|
|
|
- <div v-for="(photo,pindex) in curZbItem.taskTargetPhotoVOList" :key="pindex">
|
|
|
+ <div v-for="(photo,pindex) in curZbItem.taskTargetPhotoList" :key="pindex">
|
|
|
<img @click="editImgs(photo.photoPath,activeZbIndex,pindex)" :src="photo.photoPath">
|
|
|
<a-icon @click.stop="delImgs(pindex)" class="aicon" type="close" />
|
|
|
</div>
|
|
@@ -201,7 +201,7 @@
|
|
|
activeZbPhoto: 0, //当前编辑的指标图片index
|
|
|
curZbItem: {
|
|
|
comments: '',
|
|
|
- taskTargetPhotoVOList: []
|
|
|
+ taskTargetPhotoList: []
|
|
|
}, // 当前编辑的指标评论图片对象
|
|
|
// 考评统计
|
|
|
kptj: {
|
|
@@ -230,7 +230,7 @@
|
|
|
this.activeZbPhoto = 0
|
|
|
this.curZbItem = {
|
|
|
comments: '',
|
|
|
- taskTargetPhotoVOList: []
|
|
|
+ taskTargetPhotoList: []
|
|
|
}
|
|
|
this.isDelItem = false
|
|
|
this.showPz = false
|
|
@@ -389,7 +389,7 @@
|
|
|
},
|
|
|
// 抓拍
|
|
|
takePhotos(type){
|
|
|
- if(!this.curZbItem.taskTargetPhotoVOList||this.curZbItem.taskTargetPhotoVOList.length<6){
|
|
|
+ if(!this.curZbItem.taskTargetPhotoList||this.curZbItem.taskTargetPhotoList.length<6){
|
|
|
this.sendMsg('takePhotos',JSON.stringify({
|
|
|
streamId: this.curVideo.streamId,
|
|
|
videoPlayerStatus: this.videoPlayerStatus,
|
|
@@ -404,11 +404,11 @@
|
|
|
let obj = {
|
|
|
photoPath: url
|
|
|
}
|
|
|
- if(!this.curZbItem.hasOwnProperty('taskTargetPhotoVOList')){
|
|
|
- this.curZbItem.taskTargetPhotoVOList = [obj]
|
|
|
+ if(!this.curZbItem.hasOwnProperty('taskTargetPhotoList')){
|
|
|
+ this.curZbItem.taskTargetPhotoList = [obj]
|
|
|
}else{
|
|
|
- this.curZbItem.taskTargetPhotoVOList.push(obj)
|
|
|
- this.curZbItem.taskTargetPhotoVOList.splice()
|
|
|
+ this.curZbItem.taskTargetPhotoList.push(obj)
|
|
|
+ this.curZbItem.taskTargetPhotoList.splice()
|
|
|
}
|
|
|
|
|
|
// 显示弹框
|
|
@@ -427,7 +427,8 @@
|
|
|
this.sendMsg('delImgs', index)
|
|
|
},
|
|
|
delImgsSuccess(index) {
|
|
|
- this.curZbItem.taskTargetPhotoVOList.splice(index, 1)
|
|
|
+ console.log(index,'delImgsSuccess')
|
|
|
+ this.curZbItem.taskTargetPhotoList.splice(index, 1)
|
|
|
},
|
|
|
// 预览编辑图片
|
|
|
editImgs(url, index, pindex) {
|
|
@@ -461,7 +462,7 @@
|
|
|
},
|
|
|
// 更新编辑后的图片
|
|
|
updateItemImg(path) {
|
|
|
- let photoList = this.curZbItem.taskTargetPhotoVOList
|
|
|
+ let photoList = this.curZbItem.taskTargetPhotoList
|
|
|
photoList[this.activeZbPhoto].photoPath = path
|
|
|
},
|
|
|
// 更新已完成考评数
|