|
@@ -1,15 +1,14 @@
|
|
<template>
|
|
<template>
|
|
<div id="handsontable" v-loading="isLoading">
|
|
<div id="handsontable" v-loading="isLoading">
|
|
<el-row class="left">
|
|
<el-row class="left">
|
|
- <div style="display: inline-block" v-show="zoneCode === 'OtherZone'">
|
|
|
|
- <!-- <div style="display: inline-block" v-show="!onlyRead && zoneCode === 'OtherZone'">-->
|
|
|
|
|
|
+ <!-- <div style="display: inline-block" v-show="zoneCode === 'OtherZone'">
|
|
<el-button @click="addZoneBtn" type="primary">添加分区</el-button>
|
|
<el-button @click="addZoneBtn" type="primary">添加分区</el-button>
|
|
<el-select v-model="OtherValue" placeholder="请选择分区类型" @change="changeOtherZone">
|
|
<el-select v-model="OtherValue" placeholder="请选择分区类型" @change="changeOtherZone">
|
|
<el-option v-for="item in OtherList" :key="item.value" :label="item.label" :value="item.value">
|
|
<el-option v-for="item in OtherList" :key="item.value" :label="item.label" :value="item.value">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
|
|
|
|
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
<el-select v-model="onlyRead" @change="getData(false)"
|
|
<el-select v-model="onlyRead" @change="getData(false)"
|
|
style="width:100px;margin-right:20px;vertical-align:bottom;">
|
|
style="width:100px;margin-right:20px;vertical-align:bottom;">
|
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
|
@@ -283,9 +282,9 @@ export default {
|
|
} else if (item.hasOwnProperty("buildingId") && !item.hasOwnProperty("floorId")) {
|
|
} else if (item.hasOwnProperty("buildingId") && !item.hasOwnProperty("floorId")) {
|
|
item.flowBuild = item.buildingId
|
|
item.flowBuild = item.buildingId
|
|
}
|
|
}
|
|
- if (item.outline) {
|
|
|
|
- item.outline = JSON.stringify(item.outline)
|
|
|
|
- }
|
|
|
|
|
|
+ // if (item.outline) {
|
|
|
|
+ // item.outline = JSON.stringify(item.outline)
|
|
|
|
+ // }
|
|
return item
|
|
return item
|
|
});
|
|
});
|
|
|
|
|
|
@@ -576,9 +575,9 @@ export default {
|
|
if (param.data.Projection.indexOf('BuildingId') > -1) {
|
|
if (param.data.Projection.indexOf('BuildingId') > -1) {
|
|
let pa = param.data.Content.map(t => {
|
|
let pa = param.data.Content.map(t => {
|
|
return {
|
|
return {
|
|
- Type: this.zoneCode,
|
|
|
|
- SpaceId: t.id,
|
|
|
|
- Id: t.FloorId || t.BuildingId || null,
|
|
|
|
|
|
+ type: this.zoneCode,
|
|
|
|
+ spaceId: t.id,
|
|
|
|
+ id: t.FloorId || t.BuildingId || null,
|
|
}
|
|
}
|
|
})
|
|
})
|
|
handleZoneUpdateBd(pa, res => {
|
|
handleZoneUpdateBd(pa, res => {
|
|
@@ -599,8 +598,8 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
let updateParam = {
|
|
let updateParam = {
|
|
- Content: obj,
|
|
|
|
- Projection: param.data.Projection
|
|
|
|
|
|
+ content: obj,
|
|
|
|
+ // projection: param.data.Projection
|
|
};
|
|
};
|
|
zoneUpdate(updateParam, res => {
|
|
zoneUpdate(updateParam, res => {
|
|
this.$message.success('更新成功')
|
|
this.$message.success('更新成功')
|