|
@@ -55,14 +55,14 @@ export default {
|
|
|
systemName: '供电系统',
|
|
|
floorInfo: {
|
|
|
floorName: 'F1',
|
|
|
- floorId: 'f1'
|
|
|
+ floorId: 'f1',
|
|
|
},
|
|
|
picFloor: '',
|
|
|
picFloorImg: [],
|
|
|
picFloorArr: [],
|
|
|
dialogInfo: {},
|
|
|
floorData: [],
|
|
|
- module: ''
|
|
|
+ module: '',
|
|
|
}
|
|
|
},
|
|
|
components: { floorListOther, OtherDialog, ZhsxOther, GcfzDialog },
|
|
@@ -85,9 +85,9 @@ export default {
|
|
|
let getParams = {
|
|
|
module: '1004',
|
|
|
floor: floor,
|
|
|
- plazaId: this.plazaId
|
|
|
+ plazaId: this.plazaId,
|
|
|
}
|
|
|
- queryPic({ getParams }).then(res => {
|
|
|
+ queryPic({ getParams }).then((res) => {
|
|
|
// console.log('库房管理图', res)
|
|
|
this.picFloorImg = res.data || []
|
|
|
})
|
|
@@ -97,79 +97,35 @@ export default {
|
|
|
let data = { plazaId: this.plazaId }
|
|
|
let postParams = []
|
|
|
if (this.floorsArr.length > 0) {
|
|
|
- this.floorsArr.forEach(e => {
|
|
|
+ this.floorsArr.forEach((e) => {
|
|
|
let obj = {
|
|
|
tableName: 'glsms_proimgup',
|
|
|
params: {
|
|
|
module: '1004',
|
|
|
- floor: e.gname
|
|
|
- }
|
|
|
+ floor: e.gname,
|
|
|
+ },
|
|
|
}
|
|
|
postParams.push(obj)
|
|
|
})
|
|
|
}
|
|
|
- // [
|
|
|
- // {
|
|
|
- // tableName: 'glsms_proimgup',
|
|
|
- // params: { module: '1004', floor: 'f6' }
|
|
|
- // },
|
|
|
- // {
|
|
|
- // tableName: 'glsms_proimgup',
|
|
|
- // params: { module: '1004', floor: 'f5' }
|
|
|
- // },
|
|
|
- // {
|
|
|
- // tableName: 'glsms_proimgup',
|
|
|
- // params: { module: '1004', floor: 'f4' }
|
|
|
- // },
|
|
|
- // {
|
|
|
- // tableName: 'glsms_proimgup',
|
|
|
- // params: { module: '1004', floor: 'f3' }
|
|
|
- // },
|
|
|
- // {
|
|
|
- // tableName: 'glsms_proimgup',
|
|
|
- // params: { module: '1004', floor: 'f2' }
|
|
|
- // },
|
|
|
- // {
|
|
|
- // tableName: 'glsms_proimgup',
|
|
|
- // params: { module: '1004', floor: 'f1' }
|
|
|
- // },
|
|
|
- // {
|
|
|
- // tableName: 'glsms_proimgup',
|
|
|
- // params: { module: '1004', floor: 'b1' }
|
|
|
- // },
|
|
|
- // {
|
|
|
- // tableName: 'glsms_proimgup',
|
|
|
- // params: { module: '1004', floor: 'b2' }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- queryTab({ data, postParams }).then(res => {
|
|
|
+ queryTab({ data, postParams }).then((res) => {
|
|
|
//console.log('查询哪几层楼有图', res)
|
|
|
this.floorData = []
|
|
|
let data = res.data.data || []
|
|
|
- data.forEach(el => {
|
|
|
+ data.forEach((el) => {
|
|
|
if (el.count > 0) {
|
|
|
- let obj = {
|
|
|
- gname: el.params.floor,
|
|
|
- code: el.params.floor.toUpperCase(),
|
|
|
- gcode: el.params.floor
|
|
|
- .toUpperCase()
|
|
|
- .split('')
|
|
|
- .reverse()
|
|
|
- .join(''),
|
|
|
- seq:
|
|
|
- el.params.floor.substring(0, 1) == 'b'
|
|
|
- ? -Number(el.params.floor.substring(1, 2)) + '00'
|
|
|
- : Number(el.params.floor.substring(1, 2)) + '00'
|
|
|
- }
|
|
|
- this.floorData.push(obj)
|
|
|
+ this.floorsArr.forEach((item) => {
|
|
|
+ if (item.gname == el.params.floor) {
|
|
|
+ this.floorData.push(item)
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
- console.log(this.floorData)
|
|
|
})
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(['floorsArr', 'plazaId'])
|
|
|
+ ...mapGetters(['floorsArr', 'plazaId', 'floorObj']),
|
|
|
},
|
|
|
mounted() {
|
|
|
let module = window.location.href.split('=')[1]
|
|
@@ -178,7 +134,7 @@ export default {
|
|
|
}
|
|
|
this.everySystem = this.matter[0].children
|
|
|
this.tabSize()
|
|
|
- }
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|