|
@@ -50,7 +50,7 @@
|
|
|
<div v-for="(fl,i) in floorList" :key="fl.id" :class="{'active':fl.active,'textParent':true}" @click="floorChange(i)">
|
|
|
<div class="text">
|
|
|
{{fl.FloorLocalID || fl.FloorLocalName}}
|
|
|
- <span>9+</span>
|
|
|
+ <span>{{fl.count>9?'9+':fl.count}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -88,7 +88,7 @@ export default {
|
|
|
value: 'GeneralZone',
|
|
|
tenantList: [{ id: 1, Name: '发发发', active: false }, { id: 2, Name: '发发发', active: false }, { id: 3, Name: '发发发', active: true }],
|
|
|
buildList: [{ id: 1, Name: "建筑1", active: false }, { id: 2, Name: "建筑2", active: true }],
|
|
|
- floorList: [{ id: 23, Name: 'F2', active: false }, { id: 11, Name: 'F2', active: false }, { id: 21, Name: 'F2', active: false }, { id: 13, Name: 'F2', active: false }, { id: 14, Name: 'F2', active: false }, { id: 15, Name: 'F2', active: false }, { id: 2, Name: 'F2', active: true }],
|
|
|
+ floorList: [],
|
|
|
canvasWidth: 800,
|
|
|
canvasHeight: 800,
|
|
|
onlyRead: false,
|
|
@@ -191,6 +191,7 @@ export default {
|
|
|
},
|
|
|
// 楼层修改
|
|
|
floorChange(index) {
|
|
|
+ console.log(this.floorList)
|
|
|
this.floorList.map(t => {
|
|
|
t.active = false;
|
|
|
})
|
|
@@ -201,7 +202,7 @@ export default {
|
|
|
},
|
|
|
// 修改下拉选中的建筑
|
|
|
changeBuildSelect(val) {
|
|
|
- if (this.allBuilding[val].Floor && this.floorList.length) {
|
|
|
+ if (this.allBuilding[val].Floor && this.allBuilding[val].Floor.length) {
|
|
|
this.floorList = this.allBuilding[val].Floor
|
|
|
this.floorChange(0);
|
|
|
} else {
|
|
@@ -245,6 +246,7 @@ export default {
|
|
|
if (t.Floor) {
|
|
|
t.Floor.map(item => {
|
|
|
item.active = false;
|
|
|
+ item.count = (20 * Math.random()).toFixed(0);
|
|
|
})
|
|
|
}
|
|
|
return t;
|
|
@@ -470,7 +472,7 @@ export default {
|
|
|
position: absolute;
|
|
|
display: block;
|
|
|
height: 10px;
|
|
|
- border-radius: 50%;
|
|
|
+ border-radius: 14px;
|
|
|
line-height: 10px;
|
|
|
text-align: center;
|
|
|
top: 0;
|