mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
-- fix bug
This commit is contained in:
@@ -898,13 +898,15 @@ const submitAuth = () => {
|
|||||||
|
|
||||||
function handleStageOk() {
|
function handleStageOk() {
|
||||||
// 判断添加人数是否已超过限制人数 限制 = 本次添加的人 + 原有的人
|
// 判断添加人数是否已超过限制人数 限制 = 本次添加的人 + 原有的人
|
||||||
if (props.groupMemberCount < selectsData.value.studentList.length + props.groupMemberNumber) {
|
if(props.type === 1){
|
||||||
return message.warning("添加小组学员超过最大值");
|
if (props.groupMemberCount < selectsData.value.studentList.length + props.groupMemberNumber) {
|
||||||
}
|
return message.warning("添加小组学员超过最大值");
|
||||||
// 对选中的人员进行判断是否已经分组了
|
}
|
||||||
let haveGroupNum = selectsData.value.projectMemberList.filter(item => item.groupId !== null);
|
// 对选中的人员进行判断是否已经分组了
|
||||||
if (haveGroupNum.length > 0) {
|
let haveGroupNum = selectsData.value.projectMemberList.filter(item => item.groupId !== null);
|
||||||
message.warning("部分学员已经有小组,再次添加会被添加到当前小组.");
|
if (haveGroupNum.length > 0) {
|
||||||
|
message.warning("部分学员已经有小组,再次添加会被添加到当前小组.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
stageVisible.value = false;
|
stageVisible.value = false;
|
||||||
visiable.value = false;
|
visiable.value = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user