|
@@ -38,6 +38,12 @@
|
|
|
</el-color-picker>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="space-function-item">
|
|
|
+ <div class="space-function-label">可见距离</div>
|
|
|
+ <div class="space-function-value">
|
|
|
+ <el-input v-model="form.distance"></el-input>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="space-function-button">
|
|
|
<el-button size="medium" type="primary" @click="submit">保 存</el-button>
|
|
|
</div>
|
|
@@ -104,7 +110,8 @@
|
|
|
nullType: '',
|
|
|
room: {},
|
|
|
form: {
|
|
|
- color: 'rgba(19, 206, 102, 0.8)'
|
|
|
+ color: 'rgba(52, 114, 211, 0.6)',
|
|
|
+ distance: ''
|
|
|
},
|
|
|
bimViewer: null,
|
|
|
positionData: [],
|
|
@@ -168,9 +175,11 @@
|
|
|
if (res.data.dataValue) {
|
|
|
this.roomData = JSON.parse(res.data.dataValue);
|
|
|
this.form.color = this.roomData.roomColor;
|
|
|
+ this.form.distance = this.roomData.distance;
|
|
|
} else {
|
|
|
this.roomData = {};
|
|
|
- this.form.color = 'rgba(19, 206, 102, 0.8)';
|
|
|
+ this.form.color = 'rgba(52, 114, 211, 0.6)';
|
|
|
+ this.form.distance = '';
|
|
|
}
|
|
|
this.initRoomBIM();
|
|
|
}
|
|
@@ -224,6 +233,7 @@
|
|
|
submit() {
|
|
|
if (!this.roomData.roomId) return this.$message.warning('请设置空间位置');
|
|
|
this.roomData['roomColor'] = this.form.color;
|
|
|
+ this.roomData['distance'] = this.form.distance;
|
|
|
updateHouse({
|
|
|
id: this.room.id,
|
|
|
dataValue: JSON.stringify(this.roomData)
|