|
@@ -106,7 +106,7 @@
|
|
<!-- <div>暂无数据</div> -->
|
|
<!-- <div>暂无数据</div> -->
|
|
</div>
|
|
</div>
|
|
<!-- 现场照片预览 -->
|
|
<!-- 现场照片预览 -->
|
|
- <ImagePreview class='update-img-preview' :visible.sync='showImgPreview' :imgList='imgList' />
|
|
|
|
|
|
+ <ImagePreview class='update-img-preview' :key='imgKey' :visible.sync='showImgPreview' :imgList='imgList' />
|
|
|
|
|
|
<!-- 任务信息 -->
|
|
<!-- 任务信息 -->
|
|
<div class='task-info-container' v-show='showTask'>
|
|
<div class='task-info-container' v-show='showTask'>
|
|
@@ -166,6 +166,7 @@ export default {
|
|
showTask: false, //是否展示工单/任务信息 页面
|
|
showTask: false, //是否展示工单/任务信息 页面
|
|
showImgPreview: false, //是否展示图片预览
|
|
showImgPreview: false, //是否展示图片预览
|
|
imgList: [], //图片数组
|
|
imgList: [], //图片数组
|
|
|
|
+ imgKey: `img${new Date().getTime()}`,
|
|
data: {}, //页面显示数据
|
|
data: {}, //页面显示数据
|
|
taskText: '', // 工单,任务信息 页面title
|
|
taskText: '', // 工单,任务信息 页面title
|
|
taskData: {
|
|
taskData: {
|
|
@@ -328,8 +329,8 @@ export default {
|
|
description: data.description || '--', //描述
|
|
description: data.description || '--', //描述
|
|
reporter: data.reportedby || '--', //填报人
|
|
reporter: data.reportedby || '--', //填报人
|
|
phone: data.phone || '--', //联系电话 // TODO: 联系电话
|
|
phone: data.phone || '--', //联系电话 // TODO: 联系电话
|
|
- reportDate: data.reportdate? moment(data.reportdate).format('YYYY-MM-DD') : '--', //填报时间
|
|
|
|
- acceptanceDate: data.sjjssj? moment(data.sjjssj).format('YYYY-MM-DD') : '--', //验收时间
|
|
|
|
|
|
+ reportDate: data.reportdate ? moment(data.reportdate).format('YYYY-MM-DD') : '--', //填报时间
|
|
|
|
+ acceptanceDate: data.sjjssj ? moment(data.sjjssj).format('YYYY-MM-DD') : '--', //验收时间
|
|
}
|
|
}
|
|
} else if (this.type === 4) {
|
|
} else if (this.type === 4) {
|
|
this.taskText = '工单'
|
|
this.taskText = '工单'
|
|
@@ -340,8 +341,8 @@ export default {
|
|
description: data.description || '--', //描述
|
|
description: data.description || '--', //描述
|
|
reporter: data.reportedby || '--', //填报人
|
|
reporter: data.reportedby || '--', //填报人
|
|
phone: data.phone || '--', //联系电话 // TODO: 联系电话
|
|
phone: data.phone || '--', //联系电话 // TODO: 联系电话
|
|
- reportDate: data.reportdate? moment(data.reportdate).format('YYYY-MM-DD') : '--', //填报时间
|
|
|
|
- acceptanceDate: data.sjjssj? moment(data.sjjssj).format('YYYY-MM-DD') : '--', //验收时间
|
|
|
|
|
|
+ reportDate: data.reportdate ? moment(data.reportdate).format('YYYY-MM-DD') : '--', //填报时间
|
|
|
|
+ acceptanceDate: data.sjjssj ? moment(data.sjjssj).format('YYYY-MM-DD') : '--', //验收时间
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (this.data.wb_gzglid || this.data.wonum) {
|
|
if (this.data.wb_gzglid || this.data.wonum) {
|
|
@@ -350,9 +351,13 @@ export default {
|
|
},
|
|
},
|
|
// 显示图片预览弹窗
|
|
// 显示图片预览弹窗
|
|
showPhoto() {
|
|
showPhoto() {
|
|
- if (this.imgList?.length) {
|
|
|
|
- this.showImgPreview = true
|
|
|
|
- }
|
|
|
|
|
|
+ this.imgKey = `img${new Date().getTime()}`
|
|
|
|
+ console.log(1111)
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ if (this.imgList?.length) {
|
|
|
|
+ this.showImgPreview = true
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|