|
@@ -49,18 +49,18 @@ export default {
|
|
|
},
|
|
|
// 确认保存
|
|
|
confirm() {
|
|
|
- let grabitem = this.$refs.drawFloor.drawMainScene.grabItem;
|
|
|
- if (!grabitem || grabitem.outLine.length < 3) {
|
|
|
+ let sceneMark = this.$refs.drawFloor.drawMainScene.sceneMark;
|
|
|
+ if (!sceneMark || sceneMark.outLine.length < 3) {
|
|
|
this.$message.warning('请添加轮廓线');
|
|
|
return;
|
|
|
}
|
|
|
- if (!grabitem.closeFlag) {
|
|
|
+ if (!sceneMark.closeFlag) {
|
|
|
this.$message.warning('请按回车闭合轮廓线');
|
|
|
this.$refs.drawFloor.focus();
|
|
|
return;
|
|
|
}
|
|
|
let pa = {
|
|
|
- Content: [{ FloorID: this.FloorID, Outline: this.$refs.drawFloor.drawMainScene.grabItem.outLine }],
|
|
|
+ Content: [{ FloorID: this.FloorID, Outline: this.$refs.drawFloor.drawMainScene.sceneMark.outLine }],
|
|
|
Projection: ['Outline']
|
|
|
}
|
|
|
floorUpdate(pa, res => {
|