|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<el-dialog
|
|
|
- v-model="show"
|
|
|
+ v-model="dialogShow"
|
|
|
append-to-body
|
|
|
width="1200px"
|
|
|
:close-on-click-modal="false"
|
|
|
@@ -87,7 +87,7 @@
|
|
|
<span class="lines-1"
|
|
|
>名称:{{ current.contents[pageIndex].fileName }}</span
|
|
|
>
|
|
|
- <span class="lines-1"
|
|
|
+ <span class="lines-1 pointer" @click="goProject"
|
|
|
>所属项目:{{ current.projectName }}</span
|
|
|
>
|
|
|
<span class="lines-1"
|
|
|
@@ -125,10 +125,21 @@ export default {
|
|
|
default: true
|
|
|
}
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ show: {
|
|
|
+ handler(val) {
|
|
|
+ if (val) {
|
|
|
+ this.dialogShow = val
|
|
|
+ }
|
|
|
+ },
|
|
|
+ immediate: true
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
keyword: '',
|
|
|
showImage: false,
|
|
|
+ dialogShow: false,
|
|
|
imgList: [],
|
|
|
page: { current: 1, size: 10 },
|
|
|
list: [],
|
|
|
@@ -184,6 +195,11 @@ export default {
|
|
|
},
|
|
|
closed() {
|
|
|
this.keyword = ''
|
|
|
+ this.list = []
|
|
|
+ this.current = null
|
|
|
+ this.imgList = []
|
|
|
+ this.pageList = []
|
|
|
+ this.count = ''
|
|
|
this.$emit('close', false)
|
|
|
},
|
|
|
/**
|
|
|
@@ -217,6 +233,19 @@ export default {
|
|
|
this.pageIndex = 0
|
|
|
this.fileIndex = index
|
|
|
this.fetchData()
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 跳转到对应项目
|
|
|
+ */
|
|
|
+ goProject() {
|
|
|
+ this.dialogShow = false
|
|
|
+ this.$router.push({
|
|
|
+ path: '/home/pro_detail',
|
|
|
+ query: {
|
|
|
+ id: this.current.projectId,
|
|
|
+ projectStage: this.current.projectStage
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|