YaolongHan 4 years ago
parent
commit
63000ce498
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/components/edit/edit-dialog.vue

+ 4 - 1
src/components/edit/edit-dialog.vue

@@ -416,11 +416,13 @@
                     let gcname = '';
                     // 取gcname
                     this.dataFloor.forEach(item=>{
+                        console.log('xxxxxxxx',item,this.floorId)
                         if(item.gname == this.floorId){
                             gcname=item.gcname
                         }
                     })
                     paramData = {classstructureid: this.classstructureid, gname: gcname};
+                    console.log('gcname',gcname)
                     paramDataLocal = {locfl: this.locfl, gname: gcname};
                 }
 
@@ -532,7 +534,7 @@
                     if (res.result == 'success') {
                         const data = res.data;
                         data.map(item => {
-                            item.id = item.gcname;
+                            item.id = item.gname;
                             item.name = item.code;
                         })
                         this.dataFloor = data;
@@ -663,6 +665,7 @@
             }
         },
         created() {
+            // 取gcname
             this.floorId = getUrlMsg().FloorID;
             //如果有专业就带过来
             if (this.GraphElementId) {