修改面授课提示

This commit is contained in:
sunhonglai
2025-04-02 14:05:00 +08:00
parent 180bd018b4
commit b76f31c2c7
4 changed files with 105 additions and 24 deletions

View File

@@ -316,6 +316,21 @@ const { data } = useRequest(
path: "/NotProject2",
});
}
if (e.code === 13) {
router.push({
path: "/NotPublish",
});
}
if (e.code === 14) {
router.push({
path: "/AssessmentBegin",
});
}
if (e.code === 15) {
router.push({
path: "/AssessmentEnd",
});
}
if(e.data && e.data.projectInfoList.length == 0){
e.data.projectInfoList=[
{teacherName: '', courseName: '', projectName: ''}
@@ -326,32 +341,35 @@ const { data } = useRequest(
e.data.falseS = true
}
}
useRequest(
checkStudentExist,
{
targetId: infoId,
type: type,
chapterId: chapterOrStageId,
courseId: taskId,
},
(res) => {
console.log("判断任务是否删除", res);
if (res.code === 7) {
router.push({
path: "/loseefficacy",
query: {
msg: res.message,
if (e.code !== 13 && e.code !== 14 && e.code !== 15) {
useRequest(
checkStudentExist,
{
targetId: infoId,
type: type,
chapterId: chapterOrStageId,
courseId: taskId,
},
(res) => {
console.log("判断任务是否删除", res);
if (res.code === 7) {
router.push({
path: "/loseefficacy",
query: {
msg: res.message,
}
});
} else {
if (res.code === 6) {
router.push({
path: "/notpath",
});
}
}
});
} else {
if (res.code === 6) {
router.push({
path: "/notpath",
});
}
}
}
);
);
}
}
);

View File

@@ -0,0 +1,21 @@
<!--
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2023-03-01 20:41:06
* @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2023-03-09 18:33:51
* @FilePath: /stu_h5/src/views/nottask/NotTask.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<el-result icon="error" title="评估异常" sub-title="评估未开始">
<template #extra>
<el-button type="primary" @click="toIndex">返回首页</el-button>
</template>
</el-result>
</template>
<script setup>
function toIndex() {
window.location.href =
window.location.protocol + import.meta.env.VITE_BOE_HOME;
}
</script>

View File

@@ -0,0 +1,21 @@
<!--
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2023-03-01 20:41:06
* @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2023-03-09 18:33:51
* @FilePath: /stu_h5/src/views/nottask/NotTask.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<el-result icon="error" title="评估异常" sub-title="评估已结束">
<template #extra>
<el-button type="primary" @click="toIndex">返回首页</el-button>
</template>
</el-result>
</template>
<script setup>
function toIndex() {
window.location.href =
window.location.protocol + import.meta.env.VITE_BOE_HOME;
}
</script>

View File

@@ -0,0 +1,21 @@
<!--
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2023-03-01 20:41:06
* @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2023-03-09 18:33:51
* @FilePath: /stu_h5/src/views/nottask/NotTask.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<el-result icon="error" title="评估异常" sub-title="面授课未发布">
<template #extra>
<el-button type="primary" @click="toIndex">返回首页</el-button>
</template>
</el-result>
</template>
<script setup>
function toIndex() {
window.location.href =
window.location.protocol + import.meta.env.VITE_BOE_HOME;
}
</script>