|
@@ -89,8 +89,7 @@ export default {
|
|
systemId: 1,
|
|
systemId: 1,
|
|
categoryId: 'GDXT',
|
|
categoryId: 'GDXT',
|
|
systemName: '供电系统',
|
|
systemName: '供电系统',
|
|
- floorInfo: {
|
|
|
|
- },
|
|
|
|
|
|
+ floorInfo: {},
|
|
smsxt: '1001',
|
|
smsxt: '1001',
|
|
dialogInfo: {},
|
|
dialogInfo: {},
|
|
brand: [], //品牌
|
|
brand: [], //品牌
|
|
@@ -102,7 +101,7 @@ export default {
|
|
bottomOffset: 0,
|
|
bottomOffset: 0,
|
|
keyFL: 'keyFL' + new Date().getTime(),
|
|
keyFL: 'keyFL' + new Date().getTime(),
|
|
keyLd: 'keyLd_' + new Date().getTime(),
|
|
keyLd: 'keyLd_' + new Date().getTime(),
|
|
- ShowDialog: false //是否显示弹窗
|
|
|
|
|
|
+ ShowDialog: false, //是否显示弹窗
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components: { floorList, eqDialog, floorMap, editList },
|
|
components: { floorList, eqDialog, floorMap, editList },
|
|
@@ -131,18 +130,18 @@ export default {
|
|
this.viewLengend()
|
|
this.viewLengend()
|
|
// 发送pvUv
|
|
// 发送pvUv
|
|
const data = {
|
|
const data = {
|
|
- plazaId: this.plazaId
|
|
|
|
|
|
+ plazaId: this.plazaId,
|
|
}
|
|
}
|
|
let postParams = {
|
|
let postParams = {
|
|
type: 'equipmentRouter',
|
|
type: 'equipmentRouter',
|
|
target: item.name,
|
|
target: item.name,
|
|
- parameter: item.categoryId
|
|
|
|
|
|
+ parameter: item.categoryId,
|
|
}
|
|
}
|
|
getPvUv(data, postParams)
|
|
getPvUv(data, postParams)
|
|
- .then(res => {
|
|
|
|
|
|
+ .then((res) => {
|
|
console.log('pvuv', res)
|
|
console.log('pvuv', res)
|
|
})
|
|
})
|
|
- .catch(res => {
|
|
|
|
|
|
+ .catch((res) => {
|
|
console.log('error', res)
|
|
console.log('error', res)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -158,7 +157,6 @@ export default {
|
|
},
|
|
},
|
|
emitFloor(item) {
|
|
emitFloor(item) {
|
|
this.floorInfo = item
|
|
this.floorInfo = item
|
|
- console.log(item)
|
|
|
|
this.$refs.floorMap.init(this.floorInfo.gname)
|
|
this.$refs.floorMap.init(this.floorInfo.gname)
|
|
this.init()
|
|
this.init()
|
|
this.querySmsxt()
|
|
this.querySmsxt()
|
|
@@ -175,19 +173,19 @@ export default {
|
|
// pvuv接口记录
|
|
// pvuv接口记录
|
|
// 发送pvUv
|
|
// 发送pvUv
|
|
const data = {
|
|
const data = {
|
|
- plazaId: this.plazaId
|
|
|
|
|
|
+ plazaId: this.plazaId,
|
|
}
|
|
}
|
|
|
|
|
|
let postParams = {
|
|
let postParams = {
|
|
type: 'modal',
|
|
type: 'modal',
|
|
target: eve.id,
|
|
target: eve.id,
|
|
- parameter: eve.label
|
|
|
|
|
|
+ parameter: eve.label,
|
|
}
|
|
}
|
|
getPvUv(data, postParams)
|
|
getPvUv(data, postParams)
|
|
- .then(res => {
|
|
|
|
|
|
+ .then((res) => {
|
|
console.log('pvuv', res)
|
|
console.log('pvuv', res)
|
|
})
|
|
})
|
|
- .catch(res => {
|
|
|
|
|
|
+ .catch((res) => {
|
|
console.log('error', res)
|
|
console.log('error', res)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -228,15 +226,20 @@ export default {
|
|
module: '1003',
|
|
module: '1003',
|
|
floor: picFloor,
|
|
floor: picFloor,
|
|
system: system,
|
|
system: system,
|
|
- plazaId: this.plazaId
|
|
|
|
|
|
+ plazaId: this.plazaId,
|
|
}
|
|
}
|
|
- queryPic({ getParams }).then(res => {
|
|
|
|
|
|
+ queryPic({ getParams }).then((res) => {
|
|
// console.log('附加数据', res)
|
|
// console.log('附加数据', res)
|
|
this.fqPic = res.data ? res.data : []
|
|
this.fqPic = res.data ? res.data : []
|
|
})
|
|
})
|
|
},
|
|
},
|
|
init() {
|
|
init() {
|
|
this.loadName = `设备设施-${this.systemName}-${this.floorInfo.code}`
|
|
this.loadName = `设备设施-${this.systemName}-${this.floorInfo.code}`
|
|
|
|
+ if (this.floorsArr.length > 0 && this.$cookie.get('currentFloorId')) {
|
|
|
|
+ this.floorInfo = this.floorsArr.find((item) => {
|
|
|
|
+ return this.$cookie.get('currentFloorId') == item.seq
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 从设备设施进入的机房
|
|
// 从设备设施进入的机房
|
|
queryType(val) {
|
|
queryType(val) {
|
|
@@ -267,19 +270,19 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.$cookie.set('categoryId', 'SCPZ')
|
|
this.$cookie.set('categoryId', 'SCPZ')
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
window._vm = this
|
|
window._vm = this
|
|
- if (Object.keys(this.floorObj).length > 0) {
|
|
|
|
- this.floorInfo = this.floorObj
|
|
|
|
- this.$refs.floorMap.init(this.floorInfo.gname)
|
|
|
|
- }
|
|
|
|
|
|
+ // if (Object.keys(this.floorObj).length > 0) {
|
|
|
|
+ // this.floorInfo = this.floorObj
|
|
|
|
+ // }
|
|
|
|
+ this.$refs.floorMap.init(this.floorInfo.gname)
|
|
if (this.$route.query.smsxt) {
|
|
if (this.$route.query.smsxt) {
|
|
console.log(this.$route.query.smsxt)
|
|
console.log(this.$route.query.smsxt)
|
|
this.smsxt = this.$route.query.smsxt
|
|
this.smsxt = this.$route.query.smsxt
|
|
this.smsxtQuery()
|
|
this.smsxtQuery()
|
|
- this.system.forEach(el => {
|
|
|
|
|
|
+ this.system.forEach((el) => {
|
|
if (el.smsxt == this.smsxt) {
|
|
if (el.smsxt == this.smsxt) {
|
|
this.everySystem = el.children
|
|
this.everySystem = el.children
|
|
this.systemName = el.name
|
|
this.systemName = el.name
|
|
@@ -290,7 +293,7 @@ export default {
|
|
this.everySystem = this.system[0].children
|
|
this.everySystem = this.system[0].children
|
|
// 刷新时,store中有categoryId时,选中子系统状态
|
|
// 刷新时,store中有categoryId时,选中子系统状态
|
|
if (this.$store.state.categoryId) {
|
|
if (this.$store.state.categoryId) {
|
|
- let item = this.system.filter(item => item.categoryId === this.$store.state.categoryId)[0]
|
|
|
|
|
|
+ let item = this.system.filter((item) => item.categoryId === this.$store.state.categoryId)[0]
|
|
this.systemId = item.id
|
|
this.systemId = item.id
|
|
this.everySystem = item.children
|
|
this.everySystem = item.children
|
|
this.systemName = item.name
|
|
this.systemName = item.name
|
|
@@ -301,8 +304,8 @@ export default {
|
|
this.init()
|
|
this.init()
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- ...mapGetters(['floorsArr', 'plazaId', 'showView', 'legendTable','floorObj'])
|
|
|
|
- }
|
|
|
|
|
|
+ ...mapGetters(['floorsArr', 'plazaId', 'showView', 'legendTable', 'floorObj']),
|
|
|
|
+ },
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|