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:
@@ -3101,6 +3101,7 @@ export default {
|
|||||||
};
|
};
|
||||||
//点击确定创建小组
|
//点击确定创建小组
|
||||||
const createG = () => {
|
const createG = () => {
|
||||||
|
debugger
|
||||||
if (!state.groupInfo.groupName) {
|
if (!state.groupInfo.groupName) {
|
||||||
return message.warning("请输入小组名称");
|
return message.warning("请输入小组名称");
|
||||||
}
|
}
|
||||||
@@ -3114,7 +3115,6 @@ export default {
|
|||||||
return message.warning("请输入组员数量");
|
return message.warning("请输入组员数量");
|
||||||
}
|
}
|
||||||
createGroup();
|
createGroup();
|
||||||
closeModal2();
|
|
||||||
};
|
};
|
||||||
const showFaceIn = () => {
|
const showFaceIn = () => {
|
||||||
state.TaskFaceImpStuvisible = true;
|
state.TaskFaceImpStuvisible = true;
|
||||||
@@ -3931,11 +3931,12 @@ export default {
|
|||||||
};
|
};
|
||||||
//创建小组
|
//创建小组
|
||||||
const createGroup = async () => {
|
const createGroup = async () => {
|
||||||
|
debugger
|
||||||
console.log("state.groupPageList" + state.groupPageList);
|
console.log("state.groupPageList" + state.groupPageList);
|
||||||
const d = state.groupPageList.filter(
|
const id = state.groupInfo.id;
|
||||||
|
const d = state.groupPageList.filter(item => item.id !== id).filter(
|
||||||
(item) => item.leaderId === state.groupInfo.leaderId
|
(item) => item.leaderId === state.groupInfo.leaderId
|
||||||
);
|
);
|
||||||
const id = state.groupInfo.id;
|
|
||||||
if (state.isEdit) {
|
if (state.isEdit) {
|
||||||
if (d.length > 0 && d[0].id !== id) {
|
if (d.length > 0 && d[0].id !== id) {
|
||||||
return message.warn(d[0].leaderName + "已是小组长,请重新选择");
|
return message.warn(d[0].leaderName + "已是小组长,请重新选择");
|
||||||
@@ -3953,6 +3954,7 @@ export default {
|
|||||||
getGroup();
|
getGroup();
|
||||||
console.log("state.groupPageList:");
|
console.log("state.groupPageList:");
|
||||||
getStu();
|
getStu();
|
||||||
|
closeModal2();
|
||||||
};
|
};
|
||||||
//搜索小组重置
|
//搜索小组重置
|
||||||
const resetGroupName = () => {
|
const resetGroupName = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user