mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-10 03:16:46 +08:00
feat:合并
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2023-01-13 11:42:48
|
* @Date: 2023-01-13 11:42:48
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2023-03-10 00:56:52
|
* @LastEditTime: 2023-03-17 09:44:50
|
||||||
* @FilePath: /stu_h5/src/api/api.js
|
* @FilePath: /stu_h5/src/api/api.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
@@ -87,3 +87,5 @@ export const FILE_UPLOAD_IMG = import.meta.env.VITE_BASE_API + '/file/img'
|
|||||||
export const QueryEvaluationTaskStatusOne = `/evaluation/queryEvaluationTaskStatusOne`
|
export const QueryEvaluationTaskStatusOne = `/evaluation/queryEvaluationTaskStatusOne`
|
||||||
// 投票浏览和参与数目
|
// 投票浏览和参与数目
|
||||||
export const EditVoteInvolvedAndBrowse = `/vote/editVoteInvolvedAndBrowse post`
|
export const EditVoteInvolvedAndBrowse = `/vote/editVoteInvolvedAndBrowse post`
|
||||||
|
//任务是否删除
|
||||||
|
export const checkStudentExist = `/admin/taskmanage/checkStudentExist post`
|
||||||
@@ -230,6 +230,7 @@ const closeLoading = () => {
|
|||||||
// ],
|
// ],
|
||||||
// });
|
// });
|
||||||
// closeLoading();
|
// closeLoading();
|
||||||
|
|
||||||
const { data } = useRequest(
|
const { data } = useRequest(
|
||||||
ROUTERTASK_LIST,
|
ROUTERTASK_LIST,
|
||||||
{ routerId: props.routerId },
|
{ routerId: props.routerId },
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2023-02-06 18:26:23
|
* @Date: 2023-02-06 18:26:23
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2023-03-03 09:37:16
|
* @LastEditTime: 2023-03-17 11:27:21
|
||||||
* @FilePath: /stu_h5/src/views/examination/ExternalExam.vue
|
* @FilePath: /stu_h5/src/views/examination/ExternalExam.vue
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
-->
|
-->
|
||||||
@@ -41,11 +41,11 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import ReturnHead from "@/components/ReturnHead.vue";
|
import ReturnHead from "@/components/ReturnHead.vue";
|
||||||
import { useRequest, request } from "@/api/request";
|
import { useRequest, request } from "@/api/request";
|
||||||
import { EXTERNALEXAM } from "@/api/api";
|
import { EXTERNALEXAM, checkStudentExist } from "@/api/api";
|
||||||
import { reactive } from "vue";
|
import { reactive } from "vue";
|
||||||
import { useRoute, useRouter } from "vue-router/dist/vue-router";
|
import { useRoute, useRouter } from "vue-router/dist/vue-router";
|
||||||
const {
|
const {
|
||||||
query: { courseId, type },
|
query: { courseId, type, id: taskId, infoId, chapterOrStageId },
|
||||||
} = useRoute();
|
} = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
@@ -53,14 +53,33 @@ const state = reactive({
|
|||||||
});
|
});
|
||||||
//获取基本信息
|
//获取基本信息
|
||||||
request(EXTERNALEXAM, { externalId: courseId, type })
|
request(EXTERNALEXAM, { externalId: courseId, type })
|
||||||
.then((res) => {
|
.then((e) => {
|
||||||
console.log("获取考试", res);
|
useRequest(
|
||||||
if (res.code === 6) {
|
checkStudentExist,
|
||||||
router.push({
|
{
|
||||||
path: "/notpath",
|
targetId: infoId,
|
||||||
});
|
type: type,
|
||||||
}
|
chapterId: chapterOrStageId,
|
||||||
state.datainfo = res.data;
|
courseId: taskId,
|
||||||
|
},
|
||||||
|
(res) => {
|
||||||
|
console.log("判断任务是否删除", res);
|
||||||
|
closeLoading();
|
||||||
|
if (res.code === 7) {
|
||||||
|
router.push({
|
||||||
|
path: "/loseefficacy",
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
if (e.code === 6) {
|
||||||
|
router.push({
|
||||||
|
path: "/notpath",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
state.datainfo = e.data;
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ import {
|
|||||||
TASK_WORK_DETAIL,
|
TASK_WORK_DETAIL,
|
||||||
TASK_WORK_SUBMIT_LIST,
|
TASK_WORK_SUBMIT_LIST,
|
||||||
WORK_HISTROY,
|
WORK_HISTROY,
|
||||||
|
checkStudentExist,
|
||||||
} from "@/api/api";
|
} from "@/api/api";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
@@ -123,7 +124,7 @@ const returnclick = () => {
|
|||||||
router.back();
|
router.back();
|
||||||
};
|
};
|
||||||
const {
|
const {
|
||||||
query: { courseId: workId, type, id: taskId, infoId },
|
query: { courseId: workId, type, id: taskId, infoId, chapterOrStageId },
|
||||||
} = useRoute();
|
} = useRoute();
|
||||||
// 从报错信息来看 是因为内部 把这个组件看成了个异步组件 中间有代码是异步执行的 导致unmounted执行的时机不对。。放上面就好了
|
// 从报错信息来看 是因为内部 把这个组件看成了个异步组件 中间有代码是异步执行的 导致unmounted执行的时机不对。。放上面就好了
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
@@ -146,17 +147,36 @@ openLoading();
|
|||||||
const closeLoading = () => {
|
const closeLoading = () => {
|
||||||
loading.value.close();
|
loading.value.close();
|
||||||
};
|
};
|
||||||
|
console.log("infoId", infoId);
|
||||||
|
|
||||||
const { data } =
|
const { data } =
|
||||||
taskId && taskId !== "undefined"
|
taskId && taskId !== "undefined"
|
||||||
? useRequest(TASK_WORK_DETAIL, { workId, taskId, type }, (e) => {
|
? useRequest(TASK_WORK_DETAIL, { workId, taskId, type }, (e) => {
|
||||||
closeLoading();
|
useRequest(
|
||||||
if (e.code === 6) {
|
checkStudentExist,
|
||||||
console.log("作业判断", e);
|
{
|
||||||
router.push({
|
targetId: infoId,
|
||||||
path: "/notpath",
|
type: type,
|
||||||
});
|
chapterId: chapterOrStageId,
|
||||||
}
|
courseId: taskId,
|
||||||
|
},
|
||||||
|
(res) => {
|
||||||
|
console.log("判断任务是否删除", res);
|
||||||
|
closeLoading();
|
||||||
|
if (res.code === 7) {
|
||||||
|
router.push({
|
||||||
|
path: "/loseefficacy",
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
if (e.code === 6) {
|
||||||
|
console.log("作业判断", e);
|
||||||
|
router.push({
|
||||||
|
path: "/notpath",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
})
|
})
|
||||||
: useRequest(TASK_WORK_DETAIL, { workId, type }, (e) => {
|
: useRequest(TASK_WORK_DETAIL, { workId, type }, (e) => {
|
||||||
closeLoading();
|
closeLoading();
|
||||||
|
|||||||
@@ -208,7 +208,11 @@ import ReturnHead from "@/components/ReturnHead.vue";
|
|||||||
import { computed, reactive, toRefs, onUnmounted, ref, watch } from "vue";
|
import { computed, reactive, toRefs, onUnmounted, ref, watch } from "vue";
|
||||||
import img from "@/assets/image/uploadimg.png";
|
import img from "@/assets/image/uploadimg.png";
|
||||||
import { request, useRequest } from "@/api/request";
|
import { request, useRequest } from "@/api/request";
|
||||||
import { TASK_BROADCAST_DETAIL, TASK_BROADCAST_SIGN } from "@/api/api";
|
import {
|
||||||
|
TASK_BROADCAST_DETAIL,
|
||||||
|
TASK_BROADCAST_SIGN,
|
||||||
|
checkStudentExist,
|
||||||
|
} from "@/api/api";
|
||||||
import { useRoute } from "vue-router/dist/vue-router";
|
import { useRoute } from "vue-router/dist/vue-router";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import { useUserInfo } from "@/api/utils";
|
import { useUserInfo } from "@/api/utils";
|
||||||
@@ -225,6 +229,8 @@ const {
|
|||||||
projectStatus,
|
projectStatus,
|
||||||
projectEndTime,
|
projectEndTime,
|
||||||
targetId,
|
targetId,
|
||||||
|
infoId,
|
||||||
|
chapterOrStageId,
|
||||||
},
|
},
|
||||||
} = useRoute();
|
} = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@@ -238,11 +244,30 @@ onUnmounted(() => {
|
|||||||
});
|
});
|
||||||
const { data } = useRequest(TASK_BROADCAST_DETAIL, { liveId, type }, (e) => {
|
const { data } = useRequest(TASK_BROADCAST_DETAIL, { liveId, type }, (e) => {
|
||||||
console.log("直播判断", e);
|
console.log("直播判断", e);
|
||||||
if (e.code === 6) {
|
useRequest(
|
||||||
router.push({
|
checkStudentExist,
|
||||||
path: "/notpath",
|
{
|
||||||
});
|
targetId: infoId,
|
||||||
}
|
type: type,
|
||||||
|
chapterId: chapterOrStageId,
|
||||||
|
courseId: taskId,
|
||||||
|
},
|
||||||
|
(res) => {
|
||||||
|
console.log("判断任务是否删除", res);
|
||||||
|
closeLoading();
|
||||||
|
if (res.code === 7) {
|
||||||
|
router.push({
|
||||||
|
path: "/loseefficacy",
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
if (e.code === 6) {
|
||||||
|
router.push({
|
||||||
|
path: "/notpath",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
});
|
});
|
||||||
console.log("直播信息", data);
|
console.log("直播信息", data);
|
||||||
|
|
||||||
|
|||||||
21
src/views/nottask/LoseEfficacy.vue
Normal file
21
src/views/nottask/LoseEfficacy.vue
Normal 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-17 10:15:42
|
||||||
|
* @FilePath: /stu_h5/src/views/nottask/LoseEfficacy.vue
|
||||||
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<el-result icon="success" 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>
|
||||||
Reference in New Issue
Block a user