评估项目外人员扫码报错进一步处理

This commit is contained in:
zhangsir
2024-08-28 16:34:02 +08:00
parent 3ed6be51cc
commit 693879d6b3

View File

@@ -180,10 +180,10 @@
<div <div
style="display: flex; justify-content: center; width: 100%" style="display: flex; justify-content: center; width: 100%"
v-if=" v-if="
data.essayQuestionVoList?.length || data?.essayQuestionVoList?.length ||
data.multipleStemVoList?.length || data?.multipleStemVoList?.length ||
data.scoringQuestionVoList?.length || data?.scoringQuestionVoList?.length ||
data.singleStemVoList?.length data?.singleStemVoList?.length
" "
> >
<div <div
@@ -300,22 +300,23 @@ const { data } = useRequest(
type, type,
chapterOrStageId, chapterOrStageId,
targetId: infoId ? infoId : 0, targetId: infoId ? infoId : 0,
},(res)=>{ },
if (res.code === 6) { (e) => {
if (e.code === 6) {
router.push({ router.push({
path: "/NotProject2", path: "/NotProject2",
}); });
} }
if(res.data.projectInfoList.length == 0){ if(e.data && e.data.projectInfoList.length == 0){
res.data.projectInfoList=[ e.data.projectInfoList=[
{teacherName: '', courseName: '', projectName: ''} {teacherName: '', courseName: '', projectName: ''}
] ]
res.data.falseS = false e.data.falseS = false
}else{ }else{
res.data.falseS = true if(e.data){
e.data.falseS = true
}
} }
},
(e) => {
useRequest( useRequest(
checkStudentExist, checkStudentExist,
{ {