|
|
@@ -802,17 +802,23 @@ export default {
|
|
|
},
|
|
|
onSubmit() {
|
|
|
this.$refs.form.validate(async (isValidate) => {
|
|
|
+ if (!isValidate) return;
|
|
|
+ this.loading = true;
|
|
|
+ let status=0;
|
|
|
// console.log(this.formData.hasEdit,"this.formData.hasEdit")
|
|
|
this.formData.planCreateOrgId = this.orgId;
|
|
|
this.formData.planCreateOrgName = this.orgName;
|
|
|
+ status=this.formData.planStatus;
|
|
|
this.formData.planStatus = 0;
|
|
|
- if (!isValidate) return;
|
|
|
+
|
|
|
this.formData.rulePointList =
|
|
|
this.tableData == null ? [] : this.tableData;
|
|
|
+ let rols=this.formData.roleList;
|
|
|
+ let rolis=this.formData.roleIds;
|
|
|
this.formData.roleList = null;
|
|
|
this.formData.roleIds =
|
|
|
this.selectedValues.length == 0 ? null : this.selectedValues;
|
|
|
- this.loading = true;
|
|
|
+
|
|
|
if (this.formData.planCycle == 6) {
|
|
|
this.formData.buildTaskNow = true;
|
|
|
}
|
|
|
@@ -824,6 +830,9 @@ export default {
|
|
|
this.onHide();
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
+ this.formData.roleList=rols;
|
|
|
+ this.formData.roleIds=rolis;
|
|
|
+ this.formData.planStatus=status;
|
|
|
this.loading = false;
|
|
|
// console.log(err,"err")
|
|
|
});
|