|
@@ -47,6 +47,7 @@ import bottomLayer from './bottomLayer'
|
|
|
import editList from '@/components/edit.vue'
|
|
|
import { system, floors } from '@/utils/plugins/components.js'
|
|
|
import { getFloorList } from '@/api/public.js'
|
|
|
+import { querySelect, queryTab } from '@/api/public.js'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -59,14 +60,56 @@ export default {
|
|
|
floorName: 'F1',
|
|
|
floorId: 'f1'
|
|
|
},
|
|
|
- dialogInfo: {}
|
|
|
+ dialogInfo: {},
|
|
|
+ brand: [], //品牌
|
|
|
+ manufacturer: []
|
|
|
}
|
|
|
},
|
|
|
components: { floorList, eqDialog, floorMap, bottomLayer, editList },
|
|
|
methods: {
|
|
|
+ // 查询下拉框
|
|
|
+ query() {
|
|
|
+ let postParams = [
|
|
|
+ {
|
|
|
+ columnName: { brand: 'brand', manufacturer: 'manufacturer' }, //列名称
|
|
|
+ params: {
|
|
|
+ // classstructureid: '1572'
|
|
|
+ },
|
|
|
+ tableName: 'glsms_asset' //视图名称
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ let data = {
|
|
|
+ major: '弱电',
|
|
|
+ plazaId: '1001145'
|
|
|
+ }
|
|
|
+
|
|
|
+ querySelect({ data, postParams }).then(res => {
|
|
|
+ this.brand = res.data.data.glsms_asset.brand
|
|
|
+ this.manufacturer = res.data.data.glsms_asset.manufacturer
|
|
|
+ })
|
|
|
+ },
|
|
|
+ tabFind() {
|
|
|
+ let postParams = [
|
|
|
+ {
|
|
|
+ params: {
|
|
|
+ classstructureid: '1593'
|
|
|
+ },
|
|
|
+ tableName: 'glsms_asset' //视图名称
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ let data = {
|
|
|
+ major: '弱电',
|
|
|
+ plazaId: '1001145'
|
|
|
+ }
|
|
|
+ queryTab({ data, postParams }).then(res => {
|
|
|
+ console.log(res.data.data)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 查询tab页
|
|
|
tabSyatem(item) {
|
|
|
this.systemId = item.id
|
|
|
- ;(this.everySystem = item.children), (this.systemName = item.name)
|
|
|
+ this.everySystem = item.children
|
|
|
+ this.systemName = item.name
|
|
|
},
|
|
|
emitFloor(item) {
|
|
|
this.floorInfo = item
|
|
@@ -79,11 +122,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.query()
|
|
|
+ this.tabFind()
|
|
|
this.everySystem = this.system[0].children
|
|
|
// this.$refs.floorMap.init()
|
|
|
- getFloorList({ plazaId: '964' }).then(res => {
|
|
|
- console.log('12313', res)
|
|
|
- })
|
|
|
+ // getFloorList({ plazaId: '964' }).then(res => {
|
|
|
+ // console.log('12313', res)
|
|
|
+ // })
|
|
|
// this.$refs.dialog.init()
|
|
|
// this.$refs.floorMap.init()
|
|
|
}
|