This commit is contained in:
yuping
2022-12-13 01:24:05 +08:00
parent 4cb5e938ab
commit 2ff1e154cb
2 changed files with 33 additions and 10 deletions

View File

@@ -48,7 +48,7 @@
</div> </div>
</div> </div>
<template #reference> <template #reference>
<!-- todo #学习路径 只会有一个未完成任务么?是否是直接跳到任务详情--> <!-- todo #学习路径 只会有一个未完成任务么?是否是直接跳到任务详情-->
<div class="titleR">进入未完成任务</div> <div class="titleR">进入未完成任务</div>
</template> </template>
</el-popover> </el-popover>
@@ -118,9 +118,9 @@
<div v-for="(item,i) in detail?.rows"> <div v-for="(item,i) in detail?.rows">
<img :src="useImage(`222_0${i+2}.png`)"> <img :src="useImage(`222_0${i+2}.png`)">
</div> </div>
<!-- <div class="modal"--> <!-- <div class="modal"-->
<!-- style="width: calc(100% - 168px); height: 525px;background-image: url('../../src/assets/image/mapdetail.png');background-size: 100%;background-repeat: no-repeat;">--> <!-- style="width: calc(100% - 168px); height: 525px;background-image: url('../../src/assets/image/mapdetail.png');background-size: 100%;background-repeat: no-repeat;">-->
<!-- </div>--> <!-- </div>-->
</div> </div>
<!-- 路径详情图 --> <!-- 路径详情图 -->
</div> </div>
@@ -134,10 +134,13 @@ import ongoing from '../../assets/image/ongoing.png'
import {request, usePage, useRequest} from "@/api/request"; import {request, usePage, useRequest} from "@/api/request";
import {ROUTER_CHAPTER_LIST, ROUTER_LIST, ROUTER_UNCOMPLETE_LIST} from "@/api/api"; import {ROUTER_CHAPTER_LIST, ROUTER_LIST, ROUTER_UNCOMPLETE_LIST} from "@/api/api";
import {useImage} from "@/api/utils"; import {useImage} from "@/api/utils";
import {useRouter} from "vue-router";
const detail = ref() const detail = ref()
const {data} = usePage(ROUTER_LIST, {}) const {data} = usePage(ROUTER_LIST, {})
const router = useRouter()
const {unCompleteTaskList} = useRequest(ROUTER_UNCOMPLETE_LIST, {}) const {unCompleteTaskList} = useRequest(ROUTER_UNCOMPLETE_LIST, {})
const state = reactive({ const state = reactive({
showmapdetail: false, showmapdetail: false,
@@ -148,10 +151,12 @@ const returnfun = () => {
state.showmapdetail = false; state.showmapdetail = false;
}; };
async function gofun(routerId) { async function gofun({routerId}) {
const data = await request(ROUTER_CHAPTER_LIST, {stuChapterListVo: {routerId}}) // console.log(routerId)
detail.value = data.data // const data = await request(ROUTER_CHAPTER_LIST, {stuChapterListVo: {routerId}})
state.showmapdetail = true; // detail.value = data.data
// state.showmapdetail = true;
router.push({path: '/pathdetails', query: {routerId}})
} }
function toUnTask() { function toUnTask() {

View File

@@ -40,7 +40,23 @@
<div class="coursename">{{ value.name }}</div> <div class="coursename">{{ value.name }}</div>
<div class="coursetag"> <div class="coursetag">
<div class="tag1" style="margin-right: 11px; margin-top: 16px">必修</div> <div class="tag1" style="margin-right: 11px; margin-top: 16px">必修</div>
<div class="tag3" style="margin-right: 11px; margin-top: 16px">{{ {1: '在线',2: '面授',3: '案例',4: '作业',5: '考试',6: '直播',7: '外链',8: '讨论',9: '活动',10: '测评',11: '评估',12: '投票'}[value.type] || '' }}</div> <div class="tag3" style="margin-right: 11px; margin-top: 16px">{{
{
1: '在线',
2: '面授',
3: '案例',
4: '作业',
5: '考试',
6: '直播',
7: '外链',
8: '讨论',
9: '活动',
10: '测评',
11: '评估',
12: '投票'
}[value.type] || ''
}}
</div>
<!-- <div--> <!-- <div-->
<!-- v-for="(item, key) in value.flag"--> <!-- v-for="(item, key) in value.flag"-->
@@ -317,11 +333,13 @@ import medal3 from '@/assets/image/medal/medal3.png'
import img from '@/assets/image/uploadimg.png' import img from '@/assets/image/uploadimg.png'
import {useRequest} from "@/api/request"; import {useRequest} from "@/api/request";
import {ROUTER_PROCESS} from "@/api/api"; import {ROUTER_PROCESS} from "@/api/api";
import {useRoute} from "vue-router";
export default { export default {
name: "PathDetails", name: "PathDetails",
setup() { setup() {
const {data} = useRequest(ROUTER_PROCESS, {routerId: 234}) const {query:{routerId}} = useRoute()
const {data} = useRequest(ROUTER_PROCESS, {routerId})
const state = reactive({ const state = reactive({
activeName: "first", activeName: "first",
course: [ course: [