|
|
@@ -517,7 +517,13 @@ export default {
|
|
|
submitForm() {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
- this.form.planExecOrgIdList = [this.form.planExecOrgIdList];
|
|
|
+ let request={...this.form};
|
|
|
+ if(this.form.planExecOrgIdList){
|
|
|
+ request.planExecOrgIdList = [this.form.planExecOrgIdList];
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ request.planExecOrgIdList = [];
|
|
|
+ }
|
|
|
if (this.form.id != null) {
|
|
|
updatePlan(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|