清除勾选组员选中状态

This commit is contained in:
lpq
2023-02-25 21:29:18 +08:00
parent 92b32f85b0
commit 6089ab74f9
2 changed files with 7 additions and 2 deletions

View File

@@ -395,6 +395,7 @@ const getStu = () => {
realName: value.studentName,
userNo: value.studentId,
isLeader: value.isLeader,
groupId: value.groupId,
orgName: value.studentOrgName ? value.studentOrgName : "-",
departName: value.studentDepartName ? value.studentDepartName : "-",
};
@@ -411,6 +412,7 @@ const projectChangePagination = (page) => {
getStu();
};
function onProjectSelectChange(e, l) {
debugger
console.log("eeeee", e, l);
projectSelectKeys.value = e;
selectsData.value.projectMemberList = l;
@@ -458,8 +460,8 @@ const searchOrgName = ref({
const stageIds = computed(() => props.stage);
const {
data: stuData,
fetch: searchStu,
page: stuPageNo,
fetch: searchStu,
pageSize: stuPageSize,
loading: stuLoading,
total: stuTotal,
@@ -742,6 +744,7 @@ const resetStu = () => {
const deleteDepSelect = () => {
stuSelectKeys.value = [];
selectedOrgKeys.value = [];
projectSelectKeys.value = [];
};
//重置组织
const resetOrg = () => {
@@ -765,6 +768,7 @@ const resetAudienceInfo = () => {
// };
//确定添加授权
const submitAuth = () => {
debugger
if (props.type === 2) {
stageVisible.value = true;
} else {
@@ -784,6 +788,7 @@ function handleStageOk() {
return message.warning("当前选中学员"+leaderArray[0].realName+"已是小组长,请勿重复选择。");
}
// 对选中的人员进行判断是否已经分组了
debugger
let haveGroupNum = selectsData.value.projectMemberList.filter(item => item.groupId !== null);
if (haveGroupNum.length > 0) {
message.warning("部分学员已经有小组,再次添加会被添加到当前小组.");