Forráskód Böngészése

调整机构编辑

luojun 2 éve
szülő
commit
070985cc2c
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      src/views/system/dept/index.vue

+ 5 - 0
src/views/system/dept/index.vue

@@ -601,9 +601,14 @@ export default {
       this.reset();
       getDept(row.id).then((response) => {
         this.form = response.data;
+        
         this.pId = response.data.parentId;
       });
       if (this.pId != -1) {
+        this.pId = row.parentId;
+        this.form.parentId=row.parentId;
+        console.log(this.form,"this.form")
+        console.log(this.form.parentId,"this.pId")
         await deptTreeSelect({removeId:row.parentId,id:row.id}).then((response) => {
           this.deptOptions2 = response.data;
           // this.defaultKeys.push(response.data[0].id);