|
|
@@ -122,7 +122,7 @@
|
|
|
</div>
|
|
|
<el-image-viewer
|
|
|
v-if="showImage"
|
|
|
- :url-list="srcList"
|
|
|
+ :url-list="preList"
|
|
|
:initial-index="imageIndex"
|
|
|
@close="showImage = false"
|
|
|
/>
|
|
|
@@ -167,6 +167,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ preList: [],
|
|
|
projectId: '',
|
|
|
btnTitle: '编辑',
|
|
|
showImage: false,
|
|
|
@@ -290,6 +291,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
showImageView(res, index) {
|
|
|
+ this.preList = this.srcList
|
|
|
this.imageIndex = index
|
|
|
this.showImage = true
|
|
|
},
|
|
|
@@ -317,7 +319,6 @@ export default {
|
|
|
if (type === 'view') {
|
|
|
this.previewFile(this.form)
|
|
|
} else if (type === 'edit') {
|
|
|
- console.log(this.form)
|
|
|
if (!Object.hasOwn(this.form, 'fileFolder')) {
|
|
|
this.$message.error('暂无文件')
|
|
|
return
|
|
|
@@ -345,8 +346,8 @@ export default {
|
|
|
})
|
|
|
window.open(routeData.href, '_blank')
|
|
|
} else {
|
|
|
- this.srcList.length = 0
|
|
|
- this.srcList.push(item.fileFolder.url)
|
|
|
+ this.preList.length = 0
|
|
|
+ this.preList.push(item.fileFolder.url)
|
|
|
this.showImage = true
|
|
|
}
|
|
|
},
|