fix:增加type判断

This commit is contained in:
wyx
2023-03-03 10:43:07 +08:00
parent 123fbe5f28
commit 896a7c9c78
5 changed files with 8 additions and 6 deletions

View File

@@ -202,7 +202,7 @@ const router = useRouter();
const returnclick = () => { const returnclick = () => {
router.back(); router.back();
}; };
const { data: dataInfo } = useRequest(VOTE_DETAIL3(courseId), {}); const { data: dataInfo } = useRequest(VOTE_DETAIL3(courseId), {type});
const userInfo = computed(() => store.state.userInfo); const userInfo = computed(() => store.state.userInfo);
const answerTime = dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss"); const answerTime = dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss");

View File

@@ -494,13 +494,15 @@ console.log("data==----->", data);
const { data: submitList } = useRequest(TASK_WORK_SUBMIT_LIST, { const { data: submitList } = useRequest(TASK_WORK_SUBMIT_LIST, {
workerId: workId, workerId: workId,
type
}); });
console.log("submitList==----->", submitList); console.log("submitList==----->", submitList);
// 判断是否已经提交过成绩 // 判断是否已经提交过成绩
const submitScore = ref(false); const submitScore = ref(false);
request(WhetherImportHomeWorkScore,{ request(WhetherImportHomeWorkScore,{
"workId": workId "workId": workId,
type
}).then(res=>{ }).then(res=>{
console.log('学员端是否导入过成绩查询', res) console.log('学员端是否导入过成绩查询', res)
if(res.data){ if(res.data){

View File

@@ -209,7 +209,7 @@ const returnclick = () => {
router.back(); router.back();
}; };
const {data} = useRequest(TASK_BROADCAST_DETAIL, {liveId}); const {data} = useRequest(TASK_BROADCAST_DETAIL, {liveId,type});
console.log('直播信息', data) console.log('直播信息', data)
const teacherInfo = useUserInfo( const teacherInfo = useUserInfo(
computed(() => data.value?.userInfoBo?.userId) computed(() => data.value?.userInfoBo?.userId)

View File

@@ -188,7 +188,7 @@ const state = reactive({
const { isAllowSign } = toRefs(state); const { isAllowSign } = toRefs(state);
const {nextPage,prevPage,hasPrev, hasNext} = useTaskPage() const {nextPage,prevPage,hasPrev, hasNext} = useTaskPage()
const { data } = useRequest(ACTIVITY, { activityId }); const { data } = useRequest(ACTIVITY, { activityId, type });
console.log('data', data) console.log('data', data)
const signClick = (tab, event) => { const signClick = (tab, event) => {
if (data.value.signFlag) { if (data.value.signFlag) {

View File

@@ -85,7 +85,7 @@
import {useTaskPage} from "@/api/useCommon"; import {useTaskPage} from "@/api/useCommon";
const { const {
query: {courseId, pName, sName, chapterOrStageId, infoId, id, exname}, query: {courseId, pName, sName, chapterOrStageId, infoId, id, exname, type},
} = useRoute(); } = useRoute();
const {nextPage,prevPage,hasPrev, hasNext} = useTaskPage() const {nextPage,prevPage,hasPrev, hasNext} = useTaskPage()
const router = useRouter(); const router = useRouter();
@@ -96,7 +96,7 @@
const datainfo = ref({}); const datainfo = ref({});
//获取基本信息 //获取基本信息
request(LINKGETONE, {linkId:courseId}).then(res=>{ request(LINKGETONE, {linkId:courseId,type}).then(res=>{
console.log("我是获取的外链基本信息1",res) console.log("我是获取的外链基本信息1",res)
datainfo.value = res.data; datainfo.value = res.data;
console.log("我是获取的外链基本信息2",datainfo.value) console.log("我是获取的外链基本信息2",datainfo.value)