fix:修改添加学员

This commit is contained in:
lixg
2022-12-01 14:55:31 +08:00
parent bb84f0a026
commit 8ae00ef4ce
6 changed files with 27 additions and 15 deletions

View File

@@ -792,12 +792,15 @@ export default {
// 开始 快速选人------------------------------------------------------------------
//选中部门
const departmentSelect = (e, k) => {
console.log("选中的部门", e, k);
state.currentPage = 1;
state.selectedKeys = [k.node.key];
state.selectOrgId = k.selectedNodes[0].id; //选中的组织id
state.selectOrgName = k.selectedNodes[0].name; //选中的组织名称
getMember(k.selectedNodes[0].id);
if (!k.node.treeChildList) {
console.log("选中的部门", e, k);
state.currentPage = 1;
state.selectedKeys = [k.node.key];
state.selectOrgId = k.selectedNodes[0].id; //选中的组织id
state.selectOrgName = k.selectedNodes[0].name; //选中的组织名称
console.log("treeChildList", k.node.treeChildList);
getMember(k.selectedNodes[0].id);
}
};
//获取学员
const getMember = async (org) => {
@@ -831,12 +834,14 @@ export default {
//分页获取学员
const changePagination = (page) => {
state.currentPage = page;
console.log("1111111");
getMember(state.selectOrgId);
};
//搜索学员
const handleSearchStu = () => {
deleteDepSelect();
state.currentPage2 = 1;
console.log("22222");
getMember();
};
//重置
@@ -996,7 +1001,7 @@ export default {
// if (state.isSearchOrg) {
// searchOrg(e[0]);
// }
if (!k.node.children) {
if (!k.node.treeChildList) {
state.selectedKeys1 = e.reverse();
if (k.selected) {
state.chooseorganization.unshift(k.node);