-- 学员不回显

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> --> </div> -->
<div class="chooseLeft"> <div class="chooseLeft">
<div class="boeTree"> <div class="boeTree" style="margin-top: 20px">
<div class="boeTreeTitle">BOE组织树</div>
<a-tree <a-tree
v-model:value="valueSelectboe" v-model:value="valueSelectboe"
class="treeMain" class="treeMain"
@@ -179,7 +178,6 @@
</div> --> </div> -->
</div> </div>
<div class="boeTree"> <div class="boeTree">
<div class="boeTreeTitle">BOE组织树</div>
<a-tree <a-tree
v-if="!isSearchOrg" v-if="!isSearchOrg"
class="treeMain treeMain2" class="treeMain treeMain2"
@@ -417,7 +415,7 @@
<div <div
class="chose" class="chose"
v-for="item in chooseorganization1" v-for="item in chooseorganization1"
:key="item.key" :key="item.id"
> >
<div>{{ item.name }}</div> <div>{{ item.name }}</div>
<div class="ch" @click="deleteChoosePeople1(item)"></div> <div class="ch" @click="deleteChoosePeople1(item)"></div>
@@ -575,15 +573,11 @@
import {reactive, toRefs, onMounted, onUnmounted, computed} from "vue"; import {reactive, toRefs, onMounted, onUnmounted, computed} from "vue";
import elementResizeDetectorMaker from "element-resize-detector"; import elementResizeDetectorMaker from "element-resize-detector";
import {message} from "ant-design-vue"; import {message} from "ant-design-vue";
// import { toDate } from "../../api/method";
import {useStore} from "vuex"; import {useStore} from "vuex";
import { import {
traverseArr, traverseArr,
// deepClone,
// batchLoadList,
} from "../../utils/utils"; } from "../../utils/utils";
import * as api from "../../api/index1"; import * as api from "../../api/index1";
import {getStuList} from "../../api/index1";
export default { export default {
name: "ProjCheckShip", name: "ProjCheckShip",
@@ -810,9 +804,9 @@ export default {
}; };
const afterVisibleChange = (bool) => { const afterVisibleChange = (bool) => {
console.log("state", bool); console.log("state", bool);
if (bool) { // if (bool) {
props.type === 1 ? optionAuthPerm() : getStuentList() // props.type === 1 ? optionAuthPerm() : getStuentList()
} // }
}; };
//获取组织树 //获取组织树
state.treeData = computed(() => { state.treeData = computed(() => {
@@ -1059,18 +1053,18 @@ export default {
// if (state.isSearchOrg) { // if (state.isSearchOrg) {
// searchOrg(e[0]); // searchOrg(e[0]);
// } // }
if (!k.node.treeChildList) { state.selectedKeys1 = e.reverse();
state.selectedKeys1 = e.reverse(); state.chooseorganization = k.selectedNodes.reverse()
if (k.selected) { state.chooseorganization1 = k.selectedNodes.reverse()
state.chooseorganization.unshift(k.node); // if (k.selected) {
} else { // state.chooseorganization.unshift(k.node);
for (let i = 0; i < state.chooseorganization.length; i++) { // } else {
if (state.chooseorganization[i].key === k.node.key) { // for (let i = 0; i < state.chooseorganization.length; i++) {
state.chooseorganization.splice(i, 1); // if (state.chooseorganization[i].key === k.node.key) {
} // state.chooseorganization.splice(i, 1);
} // }
} // }
} // }
console.log("选中的部门2", state.selectedKeys1, state.chooseorganization); console.log("选中的部门2", state.selectedKeys1, state.chooseorganization);
}; };
//点击确认添加-判断是否显示确定弹窗 //点击确认添加-判断是否显示确定弹窗
@@ -1342,15 +1336,15 @@ export default {
closeDrawer(); closeDrawer();
}; };
//获取学员列表 //获取学员列表
const getStuentList = () => { // const getStuentList = () => {
getStuList({ // getStuList({
refType: {learnPath: 1, project: 2, course: 3, addstudent: 2}[props.classify], // refType: {learnPath: 1, project: 2, course: 3, addstudent: 2}[props.classify],
refId: props.selectProjectId, // refId: props.selectProjectId,
extId: 0 // extId: 0
}).then(res => { // }).then(res => {
initResp(res) // initResp(res)
}) // })
} // }
function initResp(res) { function initResp(res) {
let studentArr = res.data.data.studentList; let studentArr = res.data.data.studentList;