fix:修改学习路径默认归属权

This commit is contained in:
lixg
2022-12-03 11:57:54 +08:00
parent 9568dade0e
commit ac181d97fa
5 changed files with 92 additions and 201 deletions

View File

@@ -181,8 +181,34 @@
</div>
<div class="boeTree">
<div class="boeTreeTitle">BOE组织树</div>
<a-tree
v-if="!isSearchOrg"
class="treeMain treeMain2"
:style="{ height: screenHeight - 430 + 'px' }"
dropdownClassName="changetreedropdownboe"
:dropdown-style="{
maxHeight: '600px',
}"
placeholder="BOE组织树"
allow-clear
tree-default-expand-all
:tree-data="isSearchOrg ? treeData2 : treeData"
@select="departmentSelect1"
multiple
v-model:selectedKeys="selectedKeys1"
:fieldNames="{
children: 'treeChildList',
key: 'id',
title: 'name',
value: 'name',
}"
v-model:expandedKeys="expandedKeys"
>
<template #suffixIcon></template>
</a-tree>
<a-tree
v-else-if="isSearchOrg"
class="treeMain treeMain2"
:style="{ height: screenHeight - 430 + 'px' }"
dropdownClassName="changetreedropdownboe"
@@ -953,13 +979,14 @@ export default {
.getOrgInfo(obj)
.then((res) => {
if (res.data.code === 200) {
console.log("搜索组织", res);
state.isSearchOrg = true;
// res.data.data.rows.forEach((element) => {
// // console.log("element", element);
// element.treeChildList = [];
// });
// console.log("组织树搜索成功", res.data.data.rows);
state.treeData2 = res.data.data.rows;
state.treeData2 = res.data.data;
}
})
.catch((err) => {