|
@@ -6,10 +6,10 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div class='legend-container'>
|
|
|
- <div v-show='!show' class='legend' @click='showTl' v-if='(type==1 || floors.length>0)&& isMessage'>图例</div>
|
|
|
- <div v-show='show' class='legend2' @click='showTl' v-if='(type==1 || floors.length>0)&& isMessage'>图例</div>
|
|
|
+ <div :class='showView===1?"legend2":"legend"' @click='showTl' v-if='(type==1 || floors.length>0)&& isMessage'>图例</div>
|
|
|
+ <!-- 图里展示状态组件 -->
|
|
|
<el-collapse-transition v-if='(type==1 || floors.length>0)&& isMessage'>
|
|
|
- <div class='legend-tab' v-if='show'>
|
|
|
+ <div class='legend-tab' v-if='showView===1'>
|
|
|
<div class='legend-table2' v-if='systemName=="土建系统"'>
|
|
|
<lengend-view @changeSwitch='handleSwich' :remarksText='remarksText' ref='viewLengend' :systemName='systemName'></lengend-view>
|
|
|
</div>
|
|
@@ -18,8 +18,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-collapse-transition>
|
|
|
+ <!-- 图例编辑状态组件 -->
|
|
|
<el-collapse-transition @isShow2='isShow2'>
|
|
|
- <div v-if='show2'>
|
|
|
+ <div v-if='showView===2'>
|
|
|
<lengend-edit
|
|
|
@handleSwich2='handleSwich2'
|
|
|
v-if='editTable.length>=0'
|
|
@@ -136,7 +137,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(['plazaId', 'fmapID', 'floorSelect', 'isMessage', 'ssoToken'])
|
|
|
+ ...mapGetters(['plazaId', 'fmapID', 'floorSelect', 'isMessage', 'ssoToken', 'showView'])
|
|
|
},
|
|
|
props: {
|
|
|
floors: {
|
|
@@ -253,19 +254,29 @@ export default {
|
|
|
},
|
|
|
// 点击展示图例框
|
|
|
showTl() {
|
|
|
- this.show = !this.show
|
|
|
- this.queryView(false)
|
|
|
- if (this.show) {
|
|
|
- this.show2 = false
|
|
|
+ if (this.showView != 1) {
|
|
|
+ this.$store.commit('SETSHOWVIEW', 1)
|
|
|
+ } else {
|
|
|
+ this.$store.commit('SETSHOWVIEW', 0)
|
|
|
}
|
|
|
+ // this.showView = !this.showView
|
|
|
+ this.queryView(false)
|
|
|
+ // if (this.showView) {
|
|
|
+ // this.show2 = false
|
|
|
+ // }
|
|
|
},
|
|
|
cance() {
|
|
|
this.show2 = false
|
|
|
},
|
|
|
// 编辑图例
|
|
|
editTl() {
|
|
|
- this.show = false
|
|
|
- this.show2 = true
|
|
|
+ if (this.showView != 2) {
|
|
|
+ this.$store.commit('SETSHOWVIEW', 2)
|
|
|
+ } else {
|
|
|
+ this.$store.commit('SETSHOWVIEW', 0)
|
|
|
+ }
|
|
|
+ // this.show = false
|
|
|
+ // this.show2 = true
|
|
|
this.queryEditNum(true)
|
|
|
},
|
|
|
/**
|
|
@@ -291,8 +302,14 @@ export default {
|
|
|
let url = editerUrl + 'editer?' + encodeURIComponent(data)
|
|
|
window.open(url, true)
|
|
|
},
|
|
|
+ // 编辑状态取消
|
|
|
isShow2() {
|
|
|
- this.show2 = !this.show2
|
|
|
+ // if (this.showView != 2) {
|
|
|
+ // this.$store.commit('SETSHOWVIEW', 1)
|
|
|
+ // } else {
|
|
|
+ // this.$store.commit('SETSHOWVIEW', 0)
|
|
|
+ // }
|
|
|
+ // this.show2 = !this.show2
|
|
|
},
|
|
|
handleSwich(val) {
|
|
|
this.queryView(!val)
|