mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 23:06:47 +08:00
项目内选择添加小组长
This commit is contained in:
@@ -374,7 +374,6 @@ const projectRowSelection = computed(() => ({
|
|||||||
preserveSelectedRowKeys: true,
|
preserveSelectedRowKeys: true,
|
||||||
}));
|
}));
|
||||||
const getStu = () => {
|
const getStu = () => {
|
||||||
debugger
|
|
||||||
let obj = {
|
let obj = {
|
||||||
studentName: proStudentName.value,
|
studentName: proStudentName.value,
|
||||||
pageNo: procurrentPage.value,
|
pageNo: procurrentPage.value,
|
||||||
@@ -394,6 +393,7 @@ const getStu = () => {
|
|||||||
id: value.id,
|
id: value.id,
|
||||||
realName: value.studentName,
|
realName: value.studentName,
|
||||||
userNo: value.studentId,
|
userNo: value.studentId,
|
||||||
|
isLeader: value.isLeader,
|
||||||
orgName: value.studentOrgName ? value.studentOrgName : "-",
|
orgName: value.studentOrgName ? value.studentOrgName : "-",
|
||||||
departName: value.studentDepartName ? value.studentDepartName : "-",
|
departName: value.studentDepartName ? value.studentDepartName : "-",
|
||||||
};
|
};
|
||||||
@@ -758,11 +758,17 @@ const submitAuth = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function handleStageOk() {
|
function handleStageOk() {
|
||||||
|
debugger
|
||||||
// 判断添加人数是否已超过限制人数 限制 = 本次添加的人 + 原有的人
|
// 判断添加人数是否已超过限制人数 限制 = 本次添加的人 + 原有的人
|
||||||
if (props.type === 1) {
|
if (props.type === 1) {
|
||||||
if (props.groupMemberCount < selectsData.value.studentList.length + props.groupMemberNumber) {
|
if (props.groupMemberCount < selectsData.value.studentList.length + props.groupMemberNumber) {
|
||||||
return message.warning("添加小组学员超过最大值");
|
return message.warning("添加小组学员超过最大值");
|
||||||
}
|
}
|
||||||
|
// 判断是否是组长,组长不能添加
|
||||||
|
const leaderArray = selectsData.value.projectMemberList.filter(item => item.isLeader === '1');
|
||||||
|
if (leaderArray.length > 0) {
|
||||||
|
return message.warning("当前选学员"+leaderArray[0].realName+"已在其他小组为小组长,请勿重复选择。");
|
||||||
|
}
|
||||||
// 对选中的人员进行判断是否已经分组了
|
// 对选中的人员进行判断是否已经分组了
|
||||||
let haveGroupNum = selectsData.value.projectMemberList.filter(item => item.groupId !== null);
|
let haveGroupNum = selectsData.value.projectMemberList.filter(item => item.groupId !== null);
|
||||||
if (haveGroupNum.length > 0) {
|
if (haveGroupNum.length > 0) {
|
||||||
|
|||||||
@@ -2105,7 +2105,6 @@ export default {
|
|||||||
pid: state.routerId,
|
pid: state.routerId,
|
||||||
type: 2,
|
type: 2,
|
||||||
};
|
};
|
||||||
debugger
|
|
||||||
getStuPage(stuobj)
|
getStuPage(stuobj)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log("获取学员列表", res.data.data.total);
|
console.log("获取学员列表", res.data.data.total);
|
||||||
|
|||||||
Reference in New Issue
Block a user