mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 03:16:44 +08:00
修改推荐按钮
This commit is contained in:
@@ -766,7 +766,6 @@ function handleStageOk() {
|
||||
if (props.type === 1 && props.groupId && (props.groupMemberCount < (props.groupMemberNumber * 1 + projectSelectRows.value.length + stuSelectRows.value.length))) {
|
||||
return message.warning("添加小组学员超过最大值");
|
||||
}
|
||||
emit("finash", false);
|
||||
nameSearch.value.keyword = "";
|
||||
caseRecommend({
|
||||
launchType: 1,
|
||||
@@ -775,16 +774,19 @@ function handleStageOk() {
|
||||
pushUserIdList: stuSelectRows.value.map((stu) => stu.id),
|
||||
groupIds: auditSelectRows.value?.map((e) => e.id),
|
||||
deptIds: deptList.value?.map((e) => e.id),
|
||||
}).then((res) => {
|
||||
if (res?.data?.status == 200) {
|
||||
message.success("推荐成功");
|
||||
emit("finash", true);
|
||||
} else {
|
||||
message.error("推荐失败");
|
||||
}).then(response => {
|
||||
console.log(response);
|
||||
if (!response.ok) {
|
||||
throw new Error("Failed to load response data");
|
||||
}
|
||||
return response.json();
|
||||
}).then(() => {
|
||||
message.success("推荐成功");
|
||||
emit("finash", true);
|
||||
deleteDepSelect();
|
||||
clear()
|
||||
}).catch(() => {
|
||||
deleteDepSelect();
|
||||
clear()
|
||||
message.error("推荐失败");
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user