소스 검색

解决多次提交报错的问题

zhulu 2 년 전
부모
커밋
835ce84c38
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  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("修改成功");