|
@@ -14,10 +14,12 @@
|
|
|
<addSpaceDialog :dialogVisible.sync="dialogVisible" ref="addSpaceDialog" @refresh="refresh" :params="cenoteObj" :spaceType="spaceType"
|
|
|
:floorType="floorType"></addSpaceDialog>
|
|
|
</div>
|
|
|
- <el-select v-model="space" placeholder="请选择业务空间" @change="changeSpace" style="margin-left:15px;">
|
|
|
- <el-option v-for="item in spaceList" :key="item.Code" :label="item.Name" :value="item.Code">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+ <el-badge :is-dot="showSpaceDot">
|
|
|
+ <el-select v-model="space" placeholder="请选择业务空间" @change="changeSpace" style="margin-left:15px;">
|
|
|
+ <el-option v-for="item in spaceList" :key="item.Code" :label="item.Name" :value="item.Code">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-badge>
|
|
|
</div>
|
|
|
<div class="saga-build-tab">
|
|
|
<el-radio-group v-model="isMyTab" @change="changeRadio" style="width: 136px;">
|
|
@@ -26,9 +28,11 @@
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
<div v-show="isMyTab == 1" class="data-item">
|
|
|
+ <el-badge :is-dot="showBuildDot">
|
|
|
<el-select v-model="building" placeholder="请选择建筑" @change="changeBuilding" v-loading="buildingLoading">
|
|
|
<el-option v-for="item in buildingList" :key="item.value" :label="item.BuildLocalName" :value="item.BuildID"></el-option>
|
|
|
</el-select>
|
|
|
+ </el-badge>
|
|
|
<div style="height:calc(100% - 42px);margin:10px 0 0 0;width:100%;position:relative;">
|
|
|
<el-scrollbar style="height:100%;width:148px;border:1px solid rgb(201,201,201);margin:0px;float:left;">
|
|
|
<div class="floor" style="width:149px;height:100%;">
|
|
@@ -75,6 +79,8 @@ export default {
|
|
|
spaceType: {},//空间种类
|
|
|
floorType: {},//子组件楼层信息
|
|
|
buildingLoading: false,//左侧列表加载
|
|
|
+ showSpaceDot:false,//空间提示红点
|
|
|
+ showBuildDot:false,//楼层提示红点
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -128,6 +134,9 @@ export default {
|
|
|
showDefaultSpace() {
|
|
|
if (this.spaceList.length) {
|
|
|
this.space = this.spaceList[0].Code;
|
|
|
+ if(this.spaceList.length > 1 && this.cenoteObj.onlyRead){
|
|
|
+ this.showSpaceDot = true;
|
|
|
+ }
|
|
|
}
|
|
|
//处理空间类型
|
|
|
this.spaceList.map(item => {
|
|
@@ -185,6 +194,9 @@ export default {
|
|
|
if (this.buildingObj.Floor && this.buildingObj.Floor.length) {
|
|
|
this.floor = this.buildingObj.Floor[0].FloorID;
|
|
|
}
|
|
|
+ if(this.buildingList.length > 1 && this.cenoteObj.onlyRead){
|
|
|
+ this.showBuildDot = true;
|
|
|
+ }
|
|
|
}
|
|
|
this.buildingList.map(item => {
|
|
|
if (item.BuildID && item.BuildLocalName) {
|
|
@@ -203,6 +215,7 @@ export default {
|
|
|
changeSpace(val) {
|
|
|
this.space = val;
|
|
|
this.loadBuildingData();
|
|
|
+ this.showSpaceDot = false;
|
|
|
},
|
|
|
//更换建筑
|
|
|
changeBuilding(bid) {
|
|
@@ -214,6 +227,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+ this.showBuildDot = false;
|
|
|
},
|
|
|
//更换楼层
|
|
|
changeFloor(fid) {
|