YaolongHan 4 年之前
父节点
当前提交
5322772d66

+ 1 - 2
src/components/baseEditer.vue

@@ -386,7 +386,7 @@ export default {
        */
       // TODO: changeScale缩放底图
       bus.$on('changeScale', zoom => {
-        let { scale } = this.view;
+        const { scale } = this.view;
         this.changeScaleByClick = true
         this.view.scaleByPoint(zoom, this.canvasWidth / 2, this.canvasHeight / 2)
         this.changeScaleByClick = false
@@ -401,7 +401,6 @@ export default {
         projectId: this.urlMsg.projectId,
         BuildingID: this.urlMsg.BuildingID, // 建筑ID
         FloorID: this.urlMsg.FloorID, // 楼层id
-        Pub: false //是否获取草稿 //获取草稿
       };
       return readGroup(data);
     },

+ 1 - 2
src/components/edit/attr_select.vue

@@ -463,7 +463,6 @@ export default {
   },
   watch: {
     focusItemList: function(newval) {
-      console.log(111111111,newval);
       const Item = newval.itemList[0];
       if (Item.data && Item.data.SubType) {
         this.SubType = Item.data.SubType;
@@ -501,7 +500,7 @@ export default {
         }
       }
      if(newval.itemType == 'Zone'){
-       let location = Item.location;
+       const location = Item.location;
        this.spinning = true;
        queryGlsmsLocation({plazaId: '1000423'},{location:'1890'}).then(res=>{
          this.spinning = false;

+ 1 - 1
src/components/edit/right_toolbar.vue

@@ -177,7 +177,7 @@ export default {
   watch: {
     focusItemList: function(newVal) {
       this.attrType = newVal.itemType;
-      console.log(' this.attrType',this.attrType)
+      console.log(' this.attrType',newVal)
       if (newVal.itemList.length !== 1) {
         this.msgList.forEach(item => {
           if (item.name == "X") {

+ 0 - 1
src/components/mapClass/EditScence.ts

@@ -261,7 +261,6 @@ export class EditScence extends SGraphScene {
      * 点选创建区域
     */
     clickToAddArea(item: SSpaceItem): void {
-        console.log(item)
         if (this.cmd != 'Zone') {
             return
         }

+ 1 - 0
src/views/drafts.vue

@@ -272,6 +272,7 @@ export default {
         FloorID: this.floorId,
         GraphId: this.graphId,
         ProjectID: this.projectId,
+        Pub:false,
         PubUser: ""
       };
       publishGraph(data).then(res => {