-- 学员不回显

This commit is contained in:
yuping
2022-12-10 17:08:41 +08:00
parent a08906df47
commit 4b8fcc7503

View File

@@ -77,8 +77,7 @@
</div>
</div> -->
<div class="chooseLeft">
<div class="boeTree">
<div class="boeTreeTitle">BOE组织树</div>
<div class="boeTree" style="margin-top: 20px">
<a-tree
v-model:value="valueSelectboe"
class="treeMain"
@@ -179,7 +178,6 @@
</div> -->
</div>
<div class="boeTree">
<div class="boeTreeTitle">BOE组织树</div>
<a-tree
v-if="!isSearchOrg"
class="treeMain treeMain2"
@@ -417,7 +415,7 @@
<div
class="chose"
v-for="item in chooseorganization1"
:key="item.key"
:key="item.id"
>
<div>{{ item.name }}</div>
<div class="ch" @click="deleteChoosePeople1(item)"></div>
@@ -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;