Browse Source

节点参数保存名称

gangyj 2 years ago
parent
commit
442c5c1fd4
2 changed files with 20 additions and 0 deletions
  1. 10 0
      src/views/manager/projectinfo/tree.vue
  2. 10 0
      src/views/manager/wbsinfo/edit.vue

+ 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)