From 896a7c9c78230dfb6dfe7f45a430cb9f80071bfb Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 3 Mar 2023 10:43:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A2=9E=E5=8A=A0type=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ballot/BallotPage.vue | 2 +- src/views/homework/HomeworkPage.vue | 4 +++- src/views/liveBroadcast/LiveBroadcast.vue | 2 +- src/views/moreActive/MoreActive.vue | 2 +- src/views/testscore/OuterChain.vue | 4 ++-- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/ballot/BallotPage.vue b/src/views/ballot/BallotPage.vue index 0dc0704..8bab322 100644 --- a/src/views/ballot/BallotPage.vue +++ b/src/views/ballot/BallotPage.vue @@ -202,7 +202,7 @@ const router = useRouter(); const returnclick = () => { router.back(); }; -const { data: dataInfo } = useRequest(VOTE_DETAIL3(courseId), {}); +const { data: dataInfo } = useRequest(VOTE_DETAIL3(courseId), {type}); const userInfo = computed(() => store.state.userInfo); const answerTime = dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss"); diff --git a/src/views/homework/HomeworkPage.vue b/src/views/homework/HomeworkPage.vue index c8733fb..59000bc 100644 --- a/src/views/homework/HomeworkPage.vue +++ b/src/views/homework/HomeworkPage.vue @@ -494,13 +494,15 @@ console.log("data==----->", data); const { data: submitList } = useRequest(TASK_WORK_SUBMIT_LIST, { workerId: workId, + type }); console.log("submitList==----->", submitList); // 判断是否已经提交过成绩 const submitScore = ref(false); request(WhetherImportHomeWorkScore,{ - "workId": workId + "workId": workId, + type }).then(res=>{ console.log('学员端是否导入过成绩查询', res) if(res.data){ diff --git a/src/views/liveBroadcast/LiveBroadcast.vue b/src/views/liveBroadcast/LiveBroadcast.vue index e4473b7..05797f4 100644 --- a/src/views/liveBroadcast/LiveBroadcast.vue +++ b/src/views/liveBroadcast/LiveBroadcast.vue @@ -209,7 +209,7 @@ const returnclick = () => { router.back(); }; -const {data} = useRequest(TASK_BROADCAST_DETAIL, {liveId}); +const {data} = useRequest(TASK_BROADCAST_DETAIL, {liveId,type}); console.log('直播信息', data) const teacherInfo = useUserInfo( computed(() => data.value?.userInfoBo?.userId) diff --git a/src/views/moreActive/MoreActive.vue b/src/views/moreActive/MoreActive.vue index 5bc8ef6..2d31f25 100644 --- a/src/views/moreActive/MoreActive.vue +++ b/src/views/moreActive/MoreActive.vue @@ -188,7 +188,7 @@ const state = reactive({ const { isAllowSign } = toRefs(state); const {nextPage,prevPage,hasPrev, hasNext} = useTaskPage() -const { data } = useRequest(ACTIVITY, { activityId }); +const { data } = useRequest(ACTIVITY, { activityId, type }); console.log('data', data) const signClick = (tab, event) => { if (data.value.signFlag) { diff --git a/src/views/testscore/OuterChain.vue b/src/views/testscore/OuterChain.vue index 2e07bc1..7228cce 100644 --- a/src/views/testscore/OuterChain.vue +++ b/src/views/testscore/OuterChain.vue @@ -85,7 +85,7 @@ import {useTaskPage} from "@/api/useCommon"; const { - query: {courseId, pName, sName, chapterOrStageId, infoId, id, exname}, + query: {courseId, pName, sName, chapterOrStageId, infoId, id, exname, type}, } = useRoute(); const {nextPage,prevPage,hasPrev, hasNext} = useTaskPage() const router = useRouter(); @@ -96,7 +96,7 @@ const datainfo = ref({}); //获取基本信息 - request(LINKGETONE, {linkId:courseId}).then(res=>{ + request(LINKGETONE, {linkId:courseId,type}).then(res=>{ console.log("我是获取的外链基本信息1",res) datainfo.value = res.data; console.log("我是获取的外链基本信息2",datainfo.value)