Bläddra i källkod

解决多次提交报错的问题

zhulu 2 år sedan
förälder
incheckning
835ce84c38
1 ändrade filer med 7 tillägg och 1 borttagningar
  1. 7 1
      src/views/core/edu/plan/index.vue

+ 7 - 1
src/views/core/edu/plan/index.vue

@@ -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("修改成功");