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;