|
@@ -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);
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
/**
|