diff --git a/src/App.vue b/src/App.vue index 4770cf5..97a3d26 100644 --- a/src/App.vue +++ b/src/App.vue @@ -27,7 +27,7 @@ import { GET_USER_INFO } from "@/api/ThirdApi"; import { getCookie } from "@/api/utils"; import { USER_INFO } from "@/api/api"; -console.log("版本1.3.4------------"); +console.log("版本1.3.5------------"); const store = useStore(); const router = useRouter(); diff --git a/src/api/api.js b/src/api/api.js index f196a15..023a3f6 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2023-01-13 11:42:48 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2023-03-02 18:04:53 + * @LastEditTime: 2023-03-03 13:47:22 * @FilePath: /stu_h5/src/api/api.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -31,7 +31,7 @@ export const ACTIVITY = '/activity' export const EXAMINATION_QUERY = examinationId => `/examination/queryExaminationDetailById?examinationId=${examinationId} post` export const TASK_OFFCOURSE_NOTASK_SIGN = '/stu/task/offcourse/notask/sign post' export const TASK_OFFCOURSE_SIGN = '/stu/task/offcourse/sign post' -export const LINK_DETAILS = linkId => `/link/getOne?linkId=${linkId}` +export const LINK_DETAILS = `/link/getOne` export const STUDY_RECORD = '/stu/task/thirdTask/submit post' export const TASK_WORK_SUBMIT_LIST = '/workSubmit/queryWorkSubmitDetailById' export const WORK_HISTROY = '/workSubmit/queryWorkDetailListByStuId' @@ -42,13 +42,13 @@ export const ROUTER_DETAILS = '/admin/router/detail' export const TASK_LIST = '/stu/tasks' export const ONLINE_PROCESS = '/onlineClasses/queryOnlineClassesStudyDetail post' export const PROJECT_PROCESS = '/stu/project/process' -export const EVALUATION_DETAIL = evaluationId => `/evaluation/queryEvaluationDetailById?evaluationId=${evaluationId} post` +export const EVALUATION_DETAIL = `/evaluation/queryEvaluationDetailById` export const DISCUSS_LIKE = '/discussSubmit/clickDiscussLikeCountOr post' export const DISCUSS_LIST = '/discussSubmit/taskList' export const DISCUSS_DETAIL = '/discussSubmit/detail' export const DISCUSS_SUBMIT_REVIEW_LIST = '/discussSubmit/queryDiscussSubmitAndReview' export const VOTE_DETAIL2 = `/vote/queryVoteById` -export const VOTE_DETAIL3 = voteId => `/vote/queryVoteById?voteId=${voteId}` +export const VOTE_DETAIL3 = `/vote/queryVoteById` // 投票详情接口 export const VOTE_DETAIL_SUBMIT = `voteSubmit/vote/commit post` diff --git a/src/store/index.js b/src/store/index.js index 50c4893..84b92f3 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2023-01-17 19:47:07 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2023-02-28 15:31:03 + * @LastEditTime: 2023-03-03 10:30:46 * @FilePath: /stu_h5/src/store/index.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -81,8 +81,8 @@ export default createStore({ }, }, actions: { - getProjectInfo(content, { projectId }) { - request(PROJECT_PROCESS, { projectId }).then(res => { + getProjectInfo(content, { projectId, type }) { + request(PROJECT_PROCESS, { projectId, type }).then(res => { content.commit('SET_PROJECT_INFO', res.data) content.commit('INIT_PROJECT_INFO') }) diff --git a/src/views/activities/ActivitiesPage.vue b/src/views/activities/ActivitiesPage.vue index 441d96a..d038c54 100644 --- a/src/views/activities/ActivitiesPage.vue +++ b/src/views/activities/ActivitiesPage.vue @@ -168,7 +168,7 @@ const state = reactive({ const { isAllowSign, closeBtn } = toRefs(state); -const { data } = useRequest(ACTIVITY, { activityId }, (e) => { +const { data } = useRequest(ACTIVITY, { activityId, type }, (e) => { if (e.code === 6) { router.push({ path: "/notpath", diff --git a/src/views/ballotpage/BallotPage.vue b/src/views/ballotpage/BallotPage.vue index d6c7ccc..091e629 100644 --- a/src/views/ballotpage/BallotPage.vue +++ b/src/views/ballotpage/BallotPage.vue @@ -184,10 +184,10 @@ import { ElMessage } from "element-plus"; import { useRoute, useRouter } from "vue-router/dist/vue-router"; const router = useRouter(); const { - query: { courseId, chapterOrStageId, infoId, id, btype }, + query: { courseId, chapterOrStageId, infoId, id, btype, type }, } = useRoute(); const userInfo = computed(() => store.state.userInfo); -const { data } = useRequest(VOTE_DETAIL3(courseId), {}, (e) => { +const { data } = useRequest(VOTE_DETAIL3, { voteId: courseId, type }, (e) => { if (e.code === 6) { router.push({ path: "/notpath", diff --git a/src/views/discuss/DiscussPage.vue b/src/views/discuss/DiscussPage.vue index b3eb360..9c5f943 100644 --- a/src/views/discuss/DiscussPage.vue +++ b/src/views/discuss/DiscussPage.vue @@ -157,7 +157,7 @@ const { query: { id, type }, } = useRoute(); request(DISCUSS_LIST, { - type: type == 1 ? 2 : 1, + type: type, id, }) .then((e) => { diff --git a/src/views/evaluation/Evaluation.vue b/src/views/evaluation/Evaluation.vue index 9b71199..9b751f1 100644 --- a/src/views/evaluation/Evaluation.vue +++ b/src/views/evaluation/Evaluation.vue @@ -92,10 +92,11 @@ const { infoId, btype, quizTaskId, + type, }, } = useRoute(); const router = useRouter(); -const { data } = useRequest(EVALUATION_DETAIL(evaluationId), {}, (e) => { +const { data } = useRequest(EVALUATION_DETAIL, { evaluationId, type }, (e) => { if (e.code === 6) { router.push({ path: "/notpath", diff --git a/src/views/examination/ExternalExam.vue b/src/views/examination/ExternalExam.vue index 0b626c4..fe11c0c 100644 --- a/src/views/examination/ExternalExam.vue +++ b/src/views/examination/ExternalExam.vue @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2023-02-06 18:26:23 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2023-03-02 02:38:59 + * @LastEditTime: 2023-03-03 09:37:16 * @FilePath: /stu_h5/src/views/examination/ExternalExam.vue * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE --> @@ -45,14 +45,14 @@ import { EXTERNALEXAM } from "@/api/api"; import { reactive } from "vue"; import { useRoute, useRouter } from "vue-router/dist/vue-router"; const { - query: { courseId }, + query: { courseId, type }, } = useRoute(); const router = useRouter(); const state = reactive({ datainfo: {}, }); //获取基本信息 -request(EXTERNALEXAM, { externalId: courseId }) +request(EXTERNALEXAM, { externalId: courseId, type }) .then((res) => { console.log("获取考试", res); if (res.code === 6) { diff --git a/src/views/faceteach/FaceTeach.vue b/src/views/faceteach/FaceTeach.vue index e7573c0..e49ea3c 100644 --- a/src/views/faceteach/FaceTeach.vue +++ b/src/views/faceteach/FaceTeach.vue @@ -585,6 +585,7 @@ function toExamItem(obj) { path: "/externalexam", query: { courseId: obj.id, + type, }, }); } else { diff --git a/src/views/homeworkpage/HomeworkPage.vue b/src/views/homeworkpage/HomeworkPage.vue index b868cc5..6acede8 100644 --- a/src/views/homeworkpage/HomeworkPage.vue +++ b/src/views/homeworkpage/HomeworkPage.vue @@ -117,7 +117,7 @@ const { // console.log("type", type); const { data } = taskId && taskId !== "undefined" - ? useRequest(TASK_WORK_DETAIL, { workId, taskId }, (e) => { + ? useRequest(TASK_WORK_DETAIL, { workId, taskId, type }, (e) => { if (e.code === 6) { console.log("作业判断", e); router.push({ @@ -125,7 +125,7 @@ const { data } = }); } }) - : useRequest(TASK_WORK_DETAIL, { workId }, (e) => { + : useRequest(TASK_WORK_DETAIL, { workId, type }, (e) => { if (e.code === 6) { console.log("作业判断", e); router.push({ diff --git a/src/views/liveboradcast/LiveBoradcast.vue b/src/views/liveboradcast/LiveBoradcast.vue index 4ebcc07..57fa94f 100644 --- a/src/views/liveboradcast/LiveBoradcast.vue +++ b/src/views/liveboradcast/LiveBoradcast.vue @@ -222,7 +222,7 @@ const returnclick = () => { router.back(); }; -const { data } = useRequest(TASK_BROADCAST_DETAIL, { liveId }, (e) => { +const { data } = useRequest(TASK_BROADCAST_DETAIL, { liveId, type }, (e) => { console.log("直播判断", e); if (e.code === 6) { router.push({ diff --git a/src/views/outerchain/OuterChain.vue b/src/views/outerchain/OuterChain.vue index b862e0b..5daa975 100644 --- a/src/views/outerchain/OuterChain.vue +++ b/src/views/outerchain/OuterChain.vue @@ -77,7 +77,7 @@ const { const router = useRouter(); console.log("外链信息", linkId); -const { data } = useRequest(LINK_DETAILS(linkId), {}, (e) => { +const { data } = useRequest(LINK_DETAILS, { linkId, type }, (e) => { if (e.code === 6) { router.push({ path: "/notpath", diff --git a/src/views/pathmap/PathmapPage.vue b/src/views/pathmap/PathmapPage.vue index cc4e932..1b40e40 100644 --- a/src/views/pathmap/PathmapPage.vue +++ b/src/views/pathmap/PathmapPage.vue @@ -370,7 +370,7 @@ function toFinish(d) { return; } // 此处判断外部考试跳转 - if (d.startTime == null || d.endTime == null) { + if (d.examType == 2) { // 点击即更新状态 进行中 request(SubmitExternalExam, { chapterId: data.value.currentStageId, @@ -389,6 +389,7 @@ function toFinish(d) { path: "/externalexam", query: { courseId: d.courseId, + type: ROUTER, }, }); return; @@ -435,6 +436,7 @@ function toFinish(d) { path: "/projectdetails", query: { projectId: d.courseId, + type: ROUTER, }, }); return; diff --git a/src/views/projectdetails/projectDetails.vue b/src/views/projectdetails/projectDetails.vue index 413895b..2dcabc8 100644 --- a/src/views/projectdetails/projectDetails.vue +++ b/src/views/projectdetails/projectDetails.vue @@ -160,7 +160,7 @@