@@ -3,7 +3,10 @@ import { attachmentList } from "@/api/common/uploadAttachment.js"; | |||||
export default { | export default { | ||||
props: { | props: { | ||||
data: {}, | data: {}, | ||||
type: '1' | |||||
type: { | |||||
type: String, | |||||
default: '1' | |||||
} | |||||
}, | }, | ||||
data () { | data () { | ||||
return { | return { | ||||
@@ -37,7 +37,7 @@ export default { | |||||
methods: { | methods: { | ||||
lineClick1 (val) { | lineClick1 (val) { | ||||
console.log(val + 222222222222) | console.log(val + 222222222222) | ||||
this.$emit('clickDetail', val) | |||||
this.$emit('clickDetail', val, '3') | |||||
}, | }, | ||||
getData () { | getData () { | ||||
if (this.year, this.deptId) { | if (this.year, this.deptId) { | ||||
@@ -35,7 +35,7 @@ export default { | |||||
methods: { | methods: { | ||||
lineClick1 (val) { | lineClick1 (val) { | ||||
console.log(val + 222222222222) | console.log(val + 222222222222) | ||||
this.$emit('clickDetail', val) | |||||
this.$emit('clickDetail', val, '2') | |||||
}, | }, | ||||
getData () { | getData () { | ||||
if (this.year, this.deptId) { | if (this.year, this.deptId) { | ||||
@@ -37,7 +37,7 @@ export default { | |||||
methods: { | methods: { | ||||
lineClick1 (val) { | lineClick1 (val) { | ||||
console.log(val) | console.log(val) | ||||
this.$emit('clickDetail', val) | |||||
this.$emit('clickDetail', val, '1') | |||||
}, | }, | ||||
getData () { | getData () { | ||||
if (this.year, this.deptId) { | if (this.year, this.deptId) { | ||||
@@ -39,7 +39,7 @@ export default { | |||||
methods: { | methods: { | ||||
lineClick1 (val) { | lineClick1 (val) { | ||||
console.log(val + 222222222222) | console.log(val + 222222222222) | ||||
this.$emit('clickDetail', val) | |||||
this.$emit('clickDetail', val, '6') | |||||
}, | }, | ||||
getData () { | getData () { | ||||
if (this.year, this.deptId) { | if (this.year, this.deptId) { | ||||
@@ -39,7 +39,7 @@ export default { | |||||
methods: { | methods: { | ||||
lineClick1 (val) { | lineClick1 (val) { | ||||
console.log(val + 222222222222) | console.log(val + 222222222222) | ||||
this.$emit('clickDetail', val) | |||||
this.$emit('clickDetail', val, '5') | |||||
}, | }, | ||||
getData () { | getData () { | ||||
if (this.year, this.deptId) { | if (this.year, this.deptId) { | ||||
@@ -39,7 +39,7 @@ export default { | |||||
methods: { | methods: { | ||||
lineClick1 (val) { | lineClick1 (val) { | ||||
console.log(val + 222222222222) | console.log(val + 222222222222) | ||||
this.$emit('clickDetail', val) | |||||
this.$emit('clickDetail', val, '4') | |||||
}, | }, | ||||
getData () { | getData () { | ||||
if (this.year, this.deptId) { | if (this.year, this.deptId) { | ||||
@@ -17,7 +17,7 @@ | |||||
<component :is="item" v-for="(item, index) in currentComp.buttom" :key="index" @clickDetail="clickDetail"></component> | <component :is="item" v-for="(item, index) in currentComp.buttom" :key="index" @clickDetail="clickDetail"></component> | ||||
</div> | </div> | ||||
<AssetDetails @close="showDetail = false" @openImage="openImage" v-if="showDetail" :data="permanentDetail"></AssetDetails> | |||||
<AssetDetails @close="showDetail = false" @openImage="openImage" v-if="showDetail" :data="permanentDetail" :type="permanentType"></AssetDetails> | |||||
<div class="imgBox" v-if="dialogVisible"> | <div class="imgBox" v-if="dialogVisible"> | ||||
<div class="box_bg" @click="dialogVisible = false"></div> | <div class="box_bg" @click="dialogVisible = false"></div> | ||||
@@ -97,7 +97,8 @@ export default { | |||||
dialogImageUrl: '', | dialogImageUrl: '', | ||||
dialogVisible: false, | dialogVisible: false, | ||||
showDetail: false, | showDetail: false, | ||||
permanentDetail: {} | |||||
permanentDetail: {}, | |||||
permanentType: '1' | |||||
}; | }; | ||||
}, | }, | ||||
computed: { | computed: { | ||||
@@ -114,9 +115,10 @@ export default { | |||||
this.dialogImageUrl = url; | this.dialogImageUrl = url; | ||||
this.dialogVisible = true; | this.dialogVisible = true; | ||||
}, | }, | ||||
clickDetail (val) { | |||||
clickDetail (val, type) { | |||||
console.log(val + 111111111) | console.log(val + 111111111) | ||||
this.permanentDetail = val; | this.permanentDetail = val; | ||||
this.permanentType = type; | |||||
this.showDetail = true; | this.showDetail = true; | ||||
} | } | ||||
} | } | ||||