فهرست منبع

设置参数名称,保存判断

gangyj 3 سال پیش
والد
کامیت
d6098078c9
2فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 3 3
      src/views/manager/projectinfo/tree.vue
  2. 3 3
      src/views/manager/wbsinfo/edit.vue

+ 3 - 3
src/views/manager/projectinfo/tree.vue

@@ -2321,7 +2321,7 @@ export default {
       }
     },
     async addParameterName () {//设置参数名称中的保存按钮
-      if (this.namelists) {
+      if (this.namelists.length) {
         let tag = true
         this.namelists.forEach(val => {
           if (!val.name || !val.k) {
@@ -2340,8 +2340,8 @@ export default {
         }
       } else {
         this.$message({
-          type: "error",
-          message: "请设置参数"
+          type: "warning",
+          message: "请先添加参数"
         })
       }
     },

+ 3 - 3
src/views/manager/wbsinfo/edit.vue

@@ -2352,7 +2352,7 @@ export default {
       }
     },
     async addParameterName () {//设置参数名称中的保存按钮
-      if (this.namelists) {
+      if (this.namelists.length) {
         let tag = true
         this.namelists.forEach(val => {
           if (!val.name || !val.k) {
@@ -2371,8 +2371,8 @@ export default {
         }
       } else {
         this.$message({
-          type: "error",
-          message: "请设置参数"
+          type: "warning",
+          message: "请先添加参数"
         })
       }
     },