From 4b8fcc75030ef57bf36b00d412242fd2b69cdf5a Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Sat, 10 Dec 2022 17:08:41 +0800 Subject: [PATCH] =?UTF-8?q?--=20=E5=AD=A6=E5=91=98=E4=B8=8D=E5=9B=9E?= =?UTF-8?q?=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/ProjCheckPower.vue | 58 ++++++++++------------- 1 file changed, 26 insertions(+), 32 deletions(-) diff --git a/src/components/drawers/ProjCheckPower.vue b/src/components/drawers/ProjCheckPower.vue index 305d1e1f..9a60d7e1 100644 --- a/src/components/drawers/ProjCheckPower.vue +++ b/src/components/drawers/ProjCheckPower.vue @@ -77,8 +77,7 @@ -->
-
-
BOE组织树
+
-->
-
BOE组织树
{{ item.name }}
@@ -575,15 +573,11 @@ import {reactive, toRefs, onMounted, onUnmounted, computed} from "vue"; import elementResizeDetectorMaker from "element-resize-detector"; import {message} from "ant-design-vue"; -// import { toDate } from "../../api/method"; import {useStore} from "vuex"; import { traverseArr, - // deepClone, - // batchLoadList, } from "../../utils/utils"; import * as api from "../../api/index1"; -import {getStuList} from "../../api/index1"; export default { name: "ProjCheckShip", @@ -810,9 +804,9 @@ export default { }; const afterVisibleChange = (bool) => { console.log("state", bool); - if (bool) { - props.type === 1 ? optionAuthPerm() : getStuentList() - } + // if (bool) { + // props.type === 1 ? optionAuthPerm() : getStuentList() + // } }; //获取组织树 state.treeData = computed(() => { @@ -1059,18 +1053,18 @@ export default { // if (state.isSearchOrg) { // searchOrg(e[0]); // } - if (!k.node.treeChildList) { - state.selectedKeys1 = e.reverse(); - if (k.selected) { - state.chooseorganization.unshift(k.node); - } else { - for (let i = 0; i < state.chooseorganization.length; i++) { - if (state.chooseorganization[i].key === k.node.key) { - state.chooseorganization.splice(i, 1); - } - } - } - } + state.selectedKeys1 = e.reverse(); + state.chooseorganization = k.selectedNodes.reverse() + state.chooseorganization1 = k.selectedNodes.reverse() + // if (k.selected) { + // state.chooseorganization.unshift(k.node); + // } else { + // for (let i = 0; i < state.chooseorganization.length; i++) { + // if (state.chooseorganization[i].key === k.node.key) { + // state.chooseorganization.splice(i, 1); + // } + // } + // } console.log("选中的部门2", state.selectedKeys1, state.chooseorganization); }; //点击确认添加-判断是否显示确定弹窗 @@ -1342,15 +1336,15 @@ export default { closeDrawer(); }; //获取学员列表 - const getStuentList = () => { - getStuList({ - refType: {learnPath: 1, project: 2, course: 3, addstudent: 2}[props.classify], - refId: props.selectProjectId, - extId: 0 - }).then(res => { - initResp(res) - }) - } + // const getStuentList = () => { + // getStuList({ + // refType: {learnPath: 1, project: 2, course: 3, addstudent: 2}[props.classify], + // refId: props.selectProjectId, + // extId: 0 + // }).then(res => { + // initResp(res) + // }) + // } function initResp(res) { let studentArr = res.data.data.studentList;