mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 11:26:49 +08:00
init
This commit is contained in:
@@ -20,42 +20,42 @@
|
||||
</div>
|
||||
</div>
|
||||
<div :style="{ display: !showmapdetail ? 'flex' : 'none' }">
|
||||
<!-- <el-popover width="475px" trigger="hover" popper-class="lppopover">-->
|
||||
<!-- <div>-->
|
||||
<!-- <div class="finish">-->
|
||||
<!-- <img-->
|
||||
<!-- src="../../assets/image/circle.png"-->
|
||||
<!-- style="width: 20px; height: 20px"-->
|
||||
<!-- />-->
|
||||
<!-- <div class="text">未完成</div>-->
|
||||
<!-- <div class="box"></div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div-->
|
||||
<!-- v-for="(value, index) in unCompleteTaskList"-->
|
||||
<!-- :key="index"-->
|
||||
<!-- class="tasks"-->
|
||||
<!-- :style="{-->
|
||||
<!-- 'border-bottom':-->
|
||||
<!-- index === unCompleteTaskList.length - 1-->
|
||||
<!-- ? null-->
|
||||
<!-- : '1px solid rgba(229, 228, 228, 1)',-->
|
||||
<!-- }"-->
|
||||
<!-- >-->
|
||||
<!-- <div style="font-size: 14px; font-weight: 500; color: #677d86">-->
|
||||
<!-- {{ value.name }}-->
|
||||
<!-- </div>-->
|
||||
<!-- <img-->
|
||||
<!-- style="width: 20px; height: 20px"-->
|
||||
<!-- src="../../assets/image/go.png"-->
|
||||
<!-- @click="toUnTask(chapterId)"-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <template #reference>-->
|
||||
<!-- todo #学习路径 只会有一个未完成任务么?是否是直接跳到任务详情-->
|
||||
<!-- <div class="titleR">进入未完成任务</div>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-popover>-->
|
||||
<!-- <el-popover width="475px" trigger="hover" popper-class="lppopover">-->
|
||||
<!-- <div>-->
|
||||
<!-- <div class="finish">-->
|
||||
<!-- <img-->
|
||||
<!-- src="../../assets/image/circle.png"-->
|
||||
<!-- style="width: 20px; height: 20px"-->
|
||||
<!-- />-->
|
||||
<!-- <div class="text">未完成</div>-->
|
||||
<!-- <div class="box"></div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div-->
|
||||
<!-- v-for="(value, index) in unCompleteTaskList"-->
|
||||
<!-- :key="index"-->
|
||||
<!-- class="tasks"-->
|
||||
<!-- :style="{-->
|
||||
<!-- 'border-bottom':-->
|
||||
<!-- index === unCompleteTaskList.length - 1-->
|
||||
<!-- ? null-->
|
||||
<!-- : '1px solid rgba(229, 228, 228, 1)',-->
|
||||
<!-- }"-->
|
||||
<!-- >-->
|
||||
<!-- <div style="font-size: 14px; font-weight: 500; color: #677d86">-->
|
||||
<!-- {{ value.name }}-->
|
||||
<!-- </div>-->
|
||||
<!-- <img-->
|
||||
<!-- style="width: 20px; height: 20px"-->
|
||||
<!-- src="../../assets/image/go.png"-->
|
||||
<!-- @click="toUnTask(chapterId)"-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <template #reference>-->
|
||||
<!-- todo #学习路径 只会有一个未完成任务么?是否是直接跳到任务详情-->
|
||||
<!-- <div class="titleR">进入未完成任务</div>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-popover>-->
|
||||
</div>
|
||||
<div
|
||||
:style="{ display: showmapdetail ? 'flex' : 'none' }"
|
||||
@@ -140,7 +140,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import {reactive, toRefs, ref, onMounted} from "vue";
|
||||
import {reactive, toRefs, ref, onMounted, computed} from "vue";
|
||||
import nostarted from "../../assets/image/nostarted.png";
|
||||
import completed from "../../assets/image/completed.png";
|
||||
import ongoing from "../../assets/image/ongoing.png";
|
||||
@@ -152,22 +152,16 @@ import {
|
||||
} from "@/api/api";
|
||||
import {useImage} from "@/api/utils";
|
||||
import {useRouter} from "vue-router";
|
||||
import {GET_USER_INFO} from "@/api/ThirdApi";
|
||||
import store from "@/store";
|
||||
|
||||
const detail = ref();
|
||||
const useInfo = ref({});
|
||||
const useInfo = computed(() => store.state.userInfo);
|
||||
const {data} = usePage(ROUTER_LIST, {});
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
// const {unCompleteTaskList} = useRequest(ROUTER_UNCOMPLETE_LIST, {});
|
||||
|
||||
onMounted(()=>{
|
||||
boeRequest(GET_USER_INFO).then(res=>{
|
||||
useInfo.value=res.result
|
||||
})
|
||||
})
|
||||
|
||||
const state = reactive({
|
||||
showmapdetail: false,
|
||||
});
|
||||
@@ -177,7 +171,7 @@ const returnfun = () => {
|
||||
state.showmapdetail = false;
|
||||
};
|
||||
|
||||
async function gofun({routerId}) {
|
||||
async function gofun({routerId, name: routerName}) {
|
||||
// console.log(routerId)
|
||||
// const data = await request(ROUTER_CHAPTER_LIST, {stuChapterListVo: {routerId}})
|
||||
// detail.value = data.data
|
||||
@@ -185,8 +179,8 @@ async function gofun({routerId}) {
|
||||
// router.push({path: "/pathdetails", query: {routerId}});
|
||||
import.meta.env.DEV ? router.push({
|
||||
path: "/pathdetails",
|
||||
query: {routerId}
|
||||
}) : window.parent.location.href = `http://u-pre.boe.com/pc/forward?to=/fe-student/pathdetails¶ms=${encodeURIComponent(`routerId=${routerId}`)}`
|
||||
query: {routerId, routerName}
|
||||
}) : window.parent.location.href = `http://u-pre.boe.com/pc/forward?to=/fe-student/pathdetails¶ms=${encodeURIComponent(`routerId=${routerId}&routerName=${routerName}`)}`
|
||||
}
|
||||
|
||||
function toUnTask() {
|
||||
|
||||
Reference in New Issue
Block a user