|
@@ -818,6 +818,7 @@ export default {
|
|
|
}
|
|
|
querySystem(params).then(res => {
|
|
|
this.smsxtArr = res.data[0]
|
|
|
+ console.log(this.smsxtArr)
|
|
|
this.content = `查看${this.$cookie.get('floorNow')}层${this.smsxtArr.smsxtname}分布图`
|
|
|
})
|
|
|
},
|
|
@@ -834,10 +835,12 @@ export default {
|
|
|
},
|
|
|
// 机房右上角的跳转 如果是在楼层功能打开的机房则要跳转到设备设施对应的系统\楼层 反之亦然
|
|
|
jumpFloor() {
|
|
|
- if (location.pathname.split('/')[3] == 'equipment') {
|
|
|
- this.$router.push({ path: '/home/floorFunc' })
|
|
|
- } else {
|
|
|
- this.$router.push({ path: '/home/equipment' })
|
|
|
+ if (this.smsxtArr.smsxt) {
|
|
|
+ if (location.pathname.split('/')[3] == 'equipment') {
|
|
|
+ this.$router.push({ path: '/home/floorFunc' })
|
|
|
+ } else {
|
|
|
+ this.$router.push({ path: '/home/equipment', query: { smsxt: this.smsxtArr.smsxt } })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|