fix:新增校验选修课数量

This commit is contained in:
zxj
2025-11-17 18:04:16 +08:00
parent 2ecec80bdd
commit 3511b29e54
2 changed files with 554 additions and 257 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -2838,6 +2838,7 @@ export default {
const headers = { token: getCookieForName("token") }; const headers = { token: getCookieForName("token") };
const state = reactive({ const state = reactive({
electiveCourseCount:0,
isNewEmployee: false, isNewEmployee: false,
createId: "", createId: "",
permissions: "", permissions: "",
@@ -3889,6 +3890,18 @@ export default {
}; };
// 提交审核 // 提交审核
const submitExamine = () => { const submitExamine = () => {
let num = 0;
state.taskSyllabus.map(item => {
item.taskList.map(i => {
if(!i.flag){
num+=1;
}
})
})
if(num<state.electiveCourseCount){
message.warning("选修课课程数小于设置的“选修课数量’值,请修改后重新提交");
return;
}
state.reviewModal = true; state.reviewModal = true;
}; };
const submitReviewProject = () => { const submitReviewProject = () => {
@@ -4492,6 +4505,7 @@ export default {
})); }));
let info = res.data.data.projectInfo; let info = res.data.data.projectInfo;
console.log(121, info); console.log(121, info);
state.electiveCourseCount = info.electiveCourseCount;
state.permissions = info.permissions; state.permissions = info.permissions;
state.createId = info.createId; state.createId = info.createId;
let start = info.beginTime; let start = info.beginTime;