|
@@ -11,8 +11,7 @@
|
|
</div>
|
|
</div>
|
|
<h4>建筑</h4>
|
|
<h4>建筑</h4>
|
|
<div class="build-list">
|
|
<div class="build-list">
|
|
- <div v-for="(item,index) in buildList" :key="item.BuildID" :class="{'floor-item':true,active:currentIndex === index}"
|
|
|
|
- @click="changeBuild(index)">
|
|
|
|
|
|
+ <div v-for="(item,index) in buildList" :key="item.BuildID" :class="{'floor-item':true,active:item.active}" @click="changeBuild(index)">
|
|
<span>
|
|
<span>
|
|
{{item.BuildLocalName || item.BuildName}}
|
|
{{item.BuildLocalName || item.BuildName}}
|
|
<el-badge v-if="item.Count>0" class="mark" :value="item.Count" />
|
|
<el-badge v-if="item.Count>0" class="mark" :value="item.Count" />
|
|
@@ -116,7 +115,6 @@ export default {
|
|
color: "#2b2b2b",
|
|
color: "#2b2b2b",
|
|
lineHeight: "30px"
|
|
lineHeight: "30px"
|
|
},
|
|
},
|
|
- currentIndex: 0,
|
|
|
|
buildList: [],
|
|
buildList: [],
|
|
tableData: [],
|
|
tableData: [],
|
|
page: {
|
|
page: {
|
|
@@ -159,7 +157,6 @@ export default {
|
|
item.active = false;
|
|
item.active = false;
|
|
return item;
|
|
return item;
|
|
});
|
|
});
|
|
- this.currentIndex = index;
|
|
|
|
this.buildList[index].active = true;
|
|
this.buildList[index].active = true;
|
|
this.curBuildId = this.buildList[index].BuildID;
|
|
this.curBuildId = this.buildList[index].BuildID;
|
|
this.getFloorTableData();
|
|
this.getFloorTableData();
|