|
@@ -30,11 +30,18 @@ import { mapGetters } from 'vuex'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- floorId: '',
|
|
|
|
|
|
+ floorId: 'F1',
|
|
showT: true,
|
|
showT: true,
|
|
showB: true,
|
|
showB: true,
|
|
num: 0,
|
|
num: 0,
|
|
- floorMapIdName: ''
|
|
|
|
|
|
+ floorMapIdName: '',
|
|
|
|
+ floor: {
|
|
|
|
+ code: 'F1',
|
|
|
|
+ gcode: '1F',
|
|
|
|
+ gname: 'f1',
|
|
|
|
+ name: '第1层',
|
|
|
|
+ seq: 100
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -45,7 +52,7 @@ export default {
|
|
...mapGetters(['floorsArr'])
|
|
...mapGetters(['floorsArr'])
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- tabFloor(item = 'F1', index) {
|
|
|
|
|
|
+ tabFloor(item = this.floor, index) {
|
|
console.log(item)
|
|
console.log(item)
|
|
this.showT = true
|
|
this.showT = true
|
|
this.showB = true
|
|
this.showB = true
|
|
@@ -53,7 +60,7 @@ export default {
|
|
this.$cookie.set('floorMapId', item.gname, 3)
|
|
this.$cookie.set('floorMapId', item.gname, 3)
|
|
this.floorId = this.$cookie.get('floorNow') || item.code
|
|
this.floorId = this.$cookie.get('floorNow') || item.code
|
|
this.floorMapIdName = this.$cookie.get('floorMapIdName') || item.gname
|
|
this.floorMapIdName = this.$cookie.get('floorMapIdName') || item.gname
|
|
- this.$emit('emitFloor', [index + 1, item])
|
|
|
|
|
|
+ this.$emit('emitFloor', item)
|
|
},
|
|
},
|
|
removeTop(num) {
|
|
removeTop(num) {
|
|
this.num = num
|
|
this.num = num
|