Parcourir la source

解决 培训计划再次修改时 执行机构数据错误问题

zhulu il y a 2 ans
Parent
commit
61fbc6c080
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/views/core/edu/plan/index.vue

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

@@ -519,7 +519,8 @@ export default {
         if (valid) {
           let request={...this.form};
           if(this.form.planExecOrgIdList){
-          request.planExecOrgIdList = [this.form.planExecOrgIdList];
+            const list = Array.isArray(this.form.planExecOrgIdList) ? this.form.planExecOrgIdList : [this.form.planExecOrgIdList];
+          request.planExecOrgIdList = list;
         }
           else{
             request.planExecOrgIdList = [];