gangyj 2 жил өмнө
parent
commit
442c5c1fd4

+ 10 - 0
src/views/manager/projectinfo/tree.vue

@@ -2330,6 +2330,16 @@ export default {
           if (!val.k | !val.v) {
             return tag = false
           }
+
+          if(!val.name){
+            for (let i = 0; i < this.namelist.length; i++) {
+              if(this.namelist[i].k == val.k){
+                val.name = this.namelist[i].name;
+                return;
+              }
+            }
+          }
+
         })
         if (tag) {
           await this.saveOrUpdateBatch(this.nodeInfoTable)

+ 10 - 0
src/views/manager/wbsinfo/edit.vue

@@ -2354,6 +2354,16 @@ export default {
           if (!val.k | !val.v) {
             return tag = false
           }
+
+          if(!val.name){
+            for (let i = 0; i < this.namelist.length; i++) {
+              if(this.namelist[i].k == val.k){
+                val.name = this.namelist[i].name;
+                return;
+              }
+            }
+          }
+
         })
         if (tag) {
           await this.saveOrUpdateBatch(this.nodeInfoTable)