Browse Source

modify grabitem

haojianlong 5 years ago
parent
commit
fae04967db
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/ready/buildfloor/repetitionGraphy.vue

+ 4 - 4
src/views/ready/buildfloor/repetitionGraphy.vue

@@ -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 => {