Compare commits
No commits in common. "44b341f7ac5e6d81891158a1adae44ef5320d953" and "f2faa882a8e8edd29ffdeabb9a03c0c6316d2d98" have entirely different histories.
44b341f7ac
...
f2faa882a8
|
@ -703,7 +703,6 @@ const handleClassWorkSave = async () => {
|
|||
entpcourseworklist: '', // 选择的 习题训练 list 需要转字符串
|
||||
};
|
||||
|
||||
if(cform.uniquekey.trim() == '') return ElMessage({ type: 'warning', message: '作业名称不能为空!'});
|
||||
|
||||
// 当前为[编辑]状态下点进来得处理 newWorkSpaceEdit true 为编辑状态
|
||||
if(classWorkForm.id != '' ) {// 编辑状态 有id
|
||||
|
@ -742,7 +741,6 @@ const handleClassWorkSave = async () => {
|
|||
}
|
||||
}
|
||||
else if(classWorkForm.worktype === "常规作业"){
|
||||
if (classWorkForm.fileHomeworkList.length == 0) return ElMessage({ type: 'warning', message: '请上传常规作业附件!'});
|
||||
fileLoading.value = true
|
||||
cform.workcodes = JSON.stringify(classWorkForm.fileHomeworkList);
|
||||
cform.entpcourseworklist = JSON.stringify([{'id':-2, 'score': '10'}]);
|
||||
|
@ -834,12 +832,7 @@ const editWork = async (cform) =>{
|
|||
}
|
||||
}else if (classWorkForm.worktype == '课堂展示' || classWorkForm.worktype == '常规作业') {
|
||||
// 不做校验
|
||||
// 不做校验
|
||||
if(classWorkForm.worktype == '课堂展示'){
|
||||
//
|
||||
}else{
|
||||
if (classWorkForm.fileHomeworkList.length == 0) return ElMessage({ type: 'warning', message: '请上传常规作业附件!'});
|
||||
}
|
||||
|
||||
}else {
|
||||
if (classWorkForm.chooseWorkLists.length == 0) {
|
||||
// 框架梳理
|
||||
|
|
|
@ -489,7 +489,6 @@ const handleClassWorkFormQuizRemove = (index) =>{
|
|||
entpcourseworklist: '', // 选择的 习题训练 list 需要转字符串
|
||||
};
|
||||
|
||||
if(cform.uniquekey.trim() == '') return ElMessage({ type: 'warning', message: '作业名称不能为空!'});
|
||||
|
||||
// 当前为[编辑]状态下点进来得处理 newWorkSpaceEdit true 为编辑状态
|
||||
if(isShow.value === false){
|
||||
|
@ -531,7 +530,6 @@ const handleClassWorkFormQuizRemove = (index) =>{
|
|||
}
|
||||
}
|
||||
else if(classWorkForm.worktype === "常规作业"){
|
||||
if (classWorkForm.fileHomeworkList.length == 0) return ElMessage({ type: 'warning', message: '请上传常规作业附件!'});
|
||||
fileLoading.value = true
|
||||
cform.workcodes = JSON.stringify(classWorkForm.fileHomeworkList);
|
||||
cform.entpcourseworklist = JSON.stringify([{'id':-2, 'score': '10'}]);
|
||||
|
@ -636,11 +634,7 @@ const editWork = async (cform) =>{
|
|||
}
|
||||
}else if (classWorkForm.worktype == '课堂展示' || classWorkForm.worktype == '常规作业') {
|
||||
// 不做校验
|
||||
if(classWorkForm.worktype == '课堂展示'){
|
||||
//
|
||||
}else{
|
||||
if (classWorkForm.fileHomeworkList.length == 0) return ElMessage({ type: 'warning', message: '请上传常规作业附件!'});
|
||||
}
|
||||
|
||||
}else {
|
||||
if (classWorkForm.chooseWorkLists.length == 0) {
|
||||
// 框架梳理
|
||||
|
|
Loading…
Reference in New Issue