diff --git a/src/views/property/asset-details/index.js b/src/views/property/asset-details/index.js index 4eced33..35c0ca0 100644 --- a/src/views/property/asset-details/index.js +++ b/src/views/property/asset-details/index.js @@ -3,7 +3,10 @@ import { attachmentList } from "@/api/common/uploadAttachment.js"; export default { props: { data: {}, - type: '1' + type: { + type: String, + default: '1' + } }, data () { return { diff --git a/src/views/property/comps/left/bottom/3/index.js b/src/views/property/comps/left/bottom/3/index.js index 3701565..0494a04 100644 --- a/src/views/property/comps/left/bottom/3/index.js +++ b/src/views/property/comps/left/bottom/3/index.js @@ -37,7 +37,7 @@ export default { methods: { lineClick1 (val) { console.log(val + 222222222222) - this.$emit('clickDetail', val) + this.$emit('clickDetail', val, '3') }, getData () { if (this.year, this.deptId) { diff --git a/src/views/property/comps/left/middle/3/index.js b/src/views/property/comps/left/middle/3/index.js index 2f4af50..2c725d4 100644 --- a/src/views/property/comps/left/middle/3/index.js +++ b/src/views/property/comps/left/middle/3/index.js @@ -35,7 +35,7 @@ export default { methods: { lineClick1 (val) { console.log(val + 222222222222) - this.$emit('clickDetail', val) + this.$emit('clickDetail', val, '2') }, getData () { if (this.year, this.deptId) { diff --git a/src/views/property/comps/left/top/3/index.js b/src/views/property/comps/left/top/3/index.js index 2a6eed5..a500ed5 100644 --- a/src/views/property/comps/left/top/3/index.js +++ b/src/views/property/comps/left/top/3/index.js @@ -37,7 +37,7 @@ export default { methods: { lineClick1 (val) { console.log(val) - this.$emit('clickDetail', val) + this.$emit('clickDetail', val, '1') }, getData () { if (this.year, this.deptId) { diff --git a/src/views/property/comps/right/bottom/3/index.js b/src/views/property/comps/right/bottom/3/index.js index 5917114..20dc102 100644 --- a/src/views/property/comps/right/bottom/3/index.js +++ b/src/views/property/comps/right/bottom/3/index.js @@ -39,7 +39,7 @@ export default { methods: { lineClick1 (val) { console.log(val + 222222222222) - this.$emit('clickDetail', val) + this.$emit('clickDetail', val, '6') }, getData () { if (this.year, this.deptId) { diff --git a/src/views/property/comps/right/middle/3/index.js b/src/views/property/comps/right/middle/3/index.js index 0401ff1..da09a40 100644 --- a/src/views/property/comps/right/middle/3/index.js +++ b/src/views/property/comps/right/middle/3/index.js @@ -39,7 +39,7 @@ export default { methods: { lineClick1 (val) { console.log(val + 222222222222) - this.$emit('clickDetail', val) + this.$emit('clickDetail', val, '5') }, getData () { if (this.year, this.deptId) { diff --git a/src/views/property/comps/right/top/3/index.js b/src/views/property/comps/right/top/3/index.js index 5079040..20d029a 100644 --- a/src/views/property/comps/right/top/3/index.js +++ b/src/views/property/comps/right/top/3/index.js @@ -39,7 +39,7 @@ export default { methods: { lineClick1 (val) { console.log(val + 222222222222) - this.$emit('clickDetail', val) + this.$emit('clickDetail', val, '4') }, getData () { if (this.year, this.deptId) { diff --git a/src/views/property/index.html b/src/views/property/index.html index 1d8052b..a499394 100644 --- a/src/views/property/index.html +++ b/src/views/property/index.html @@ -17,7 +17,7 @@ - +
diff --git a/src/views/property/index.js b/src/views/property/index.js index f70258f..47e999d 100644 --- a/src/views/property/index.js +++ b/src/views/property/index.js @@ -97,7 +97,8 @@ export default { dialogImageUrl: '', dialogVisible: false, showDetail: false, - permanentDetail: {} + permanentDetail: {}, + permanentType: '1' }; }, computed: { @@ -114,9 +115,10 @@ export default { this.dialogImageUrl = url; this.dialogVisible = true; }, - clickDetail (val) { + clickDetail (val, type) { console.log(val + 111111111) this.permanentDetail = val; + this.permanentType = type; this.showDetail = true; } }