|
@@ -166,7 +166,23 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ /* mounted() {
|
|
|
+ if (this.$route.query.smsxt) {
|
|
|
+ this.smsxt = this.$route.query.smsxt
|
|
|
+ this.system.forEach(el => {
|
|
|
+ if (el.smsxt == this.smsxt) {
|
|
|
+ this.everySystem = el.children
|
|
|
+ this.systemName = el.name
|
|
|
+ this.systemId = el.id
|
|
|
+ }
|
|
|
+ })``
|
|
|
+ }
|
|
|
+ this.everySystem = this.system[0].children
|
|
|
+ this.init()
|
|
|
+ this.$refs.floorMap.init(this.floorInfo.gname)
|
|
|
+ }, */
|
|
|
mounted() {
|
|
|
+ window._vm = this
|
|
|
if (this.$route.query.smsxt) {
|
|
|
this.smsxt = this.$route.query.smsxt
|
|
|
this.system.forEach(el => {
|
|
@@ -178,6 +194,17 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
this.everySystem = this.system[0].children
|
|
|
+ // 刷新时,store中有categoryId时,选中子系统状态
|
|
|
+ if (this.$store.state.categoryId) {
|
|
|
+ let item = this.system.filter(item => item.categoryId === this.$store.state.categoryId)[0]
|
|
|
+ this.systemId = item.id
|
|
|
+ this.everySystem = item.children
|
|
|
+ this.systemName = item.name
|
|
|
+ this.smsxt = item.smsxt
|
|
|
+ // this.$refs.floorMap.init(this.floorInfo.gname)
|
|
|
+ this.querySmsxt()
|
|
|
+ this.viewLengend()
|
|
|
+ }
|
|
|
this.init()
|
|
|
this.$refs.floorMap.init(this.floorInfo.gname)
|
|
|
},
|