Browse Source

教育培训 bug修改

jingyuanchao 2 years ago
parent
commit
064d61a9a4
2 changed files with 6 additions and 2 deletions
  1. 0 1
      src/components/orgTreeSelect/index.vue
  2. 6 1
      src/views/core/edu/plan/index.vue

+ 0 - 1
src/components/orgTreeSelect/index.vue

@@ -147,7 +147,6 @@ export default {
             arr.push(node.data)
           })
           this.sNodeList = arr;
-          this.$refs.tree.e
           console.log(arr,'arr')
         });
       },

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

@@ -219,7 +219,8 @@
                                        placeholder="请选择培训机构"/>
                         </el-form-item>-->
             <el-form-item v-show="form.execOrgType" label="培训机构" prop="planExecOrgIdList">
-              <org-tree-select v-model="form.planExecOrgIdList" :queryData="form.execOrgType" ref="orgTreeSelect"
+<!--              <p>{{form.planExecOrgIdList}}</p>-->
+              <org-tree-select :default-node="form.planExecOrgIdList"  :queryData="form.execOrgType" ref="orgTreeSelect"
                                @selectNode="queryNode" :disable="true">
               </org-tree-select>
             </el-form-item>
@@ -527,6 +528,10 @@ export default {
       const id = row.id || this.ids
       getPlan(id).then(response => {
         this.form = response.data;
+        console.log(this.form,'ffffff')
+       //将 this.form.planExecOrgIdList中的元素转为字符串
+        this.form.planExecOrgIdList = this.form.planExecOrgIdList.map(element => element.toString());
+        console.log("this.form.planExecOrgIdList", this.form.planExecOrgIdList);
         this.formFileListDefualtValue = this.form.fileList;
         this.open = true;
         this.title = "修改教育培训计划";