|
@@ -32,8 +32,8 @@
|
|
|
<label style="line-height:32px;padding: 0 10px;">所属建筑:</label>
|
|
|
<el-select v-model="building" placeholder="请选择建筑" @change="changeBuilding" v-loading="buildingLoading">
|
|
|
<el-option v-for="item in buildingList" :key="item.value"
|
|
|
- :label="item.BuildLocalName?item.BuildLocalName:item.BuildName"
|
|
|
- :value="item.BuildID"></el-option>
|
|
|
+ :label="item.localName || item.name"
|
|
|
+ :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-badge>
|
|
|
<el-switch v-if="!(cenoteObj.onlyRead == 'true')" style="margin-left:15px;" v-model="isAI" @change="handleChangeAI"
|
|
@@ -135,7 +135,6 @@ export default {
|
|
|
elevationMap
|
|
|
},
|
|
|
created() {
|
|
|
- console.log(this.cenoteObj.onlyRead == 'true');
|
|
|
this.isAI = this.$route.query.onlyRead == 'true' ? false : true;
|
|
|
this.getSpaceData();
|
|
|
},
|
|
@@ -258,8 +257,8 @@ export default {
|
|
|
this.floor = '';
|
|
|
}
|
|
|
this.buildingList.map(item => {
|
|
|
- if (item.id && item.BuildLocalName) {
|
|
|
- this.floorType[item.id] = item.BuildLocalName;
|
|
|
+ if (item.id && item.localName) {
|
|
|
+ this.floorType[item.id] = item.localName;
|
|
|
if (item.floor instanceof Array) {
|
|
|
item.floor.map(f => {
|
|
|
if (f.id && f.localName) {
|
|
@@ -274,9 +273,9 @@ export default {
|
|
|
calculateRelation() {
|
|
|
if (this.isAI && this.building && this.ObjectType && this.cenoteObj.ShaftId) {
|
|
|
let params = {
|
|
|
- BuildingId: this.building,
|
|
|
- ObjectType: this.ObjectType,
|
|
|
- ShaftId: this.cenoteObj.ShaftId,
|
|
|
+ buildingId: this.building,
|
|
|
+ objectType: this.ObjectType,
|
|
|
+ shaftId: this.cenoteObj.ShaftId,
|
|
|
}
|
|
|
verticalSpace(params, res => {
|
|
|
console.log(res)
|