Browse Source

零部件编辑打开注释

zhangjie 10 months ago
parent
commit
30ca1b6eb4
1 changed files with 9 additions and 10 deletions
  1. 9 10
      src/views/componentsDVP/dvpPlan/editModal/editDvp.vue

+ 9 - 10
src/views/componentsDVP/dvpPlan/editModal/editDvp.vue

@@ -272,7 +272,6 @@ export default {
      * @param val
      */
     cascadeSelect(val, options) {
-      this.editParam.partName = [];
       if (options && options.length > 0) {
         this.cascadeList = [];
         options.forEach( item => {
@@ -318,15 +317,15 @@ export default {
         planEndTime: this.editParam.planEndTime,
         isPush: this.editParam.isPushTemplate || 1
       };
-      // this.$api.planTestSave(data).then(res => {
-      //   if (res.flag) {
-      //     this.$message.success(res.message);
-      //     this.$emit("initData");
-      //     this.$emit("cancelEditDvp");
-      //   } else {
-      //     this.$message.error(res.message);
-      //   }
-      // });
+      this.$api.planTestSave(data).then(res => {
+        if (res.flag) {
+          this.$message.success(res.message);
+          this.$emit("initData");
+          this.$emit("cancelEditDvp");
+        } else {
+          this.$message.error(res.message);
+        }
+      });
     },
 
     /**