feat:增加关卡等

This commit is contained in:
lixg
2023-02-14 20:57:38 +08:00
parent fafe4813bf
commit 47778cb8e0
6 changed files with 24 additions and 27 deletions

View File

@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com * @Author: lixg lixg@dongwu-inc.com
* @Date: 2023-01-13 11:42:48 * @Date: 2023-01-13 11:42:48
* @LastEditors: lixg lixg@dongwu-inc.com * @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2023-02-10 15:31:15 * @LastEditTime: 2023-02-13 18:13:43
* @FilePath: /stu_h5/src/api/api.js * @FilePath: /stu_h5/src/api/api.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
@@ -61,3 +61,5 @@ export const COMMENT_COLLECTION = '/comment/collection post'
export const EXTERNALEXAM = `/external/exam/queryExternalExam` export const EXTERNALEXAM = `/external/exam/queryExternalExam`
//关卡列表接口 //关卡列表接口
export const ROUTERTASK_LIST = '/stu/router/chapterList post' export const ROUTERTASK_LIST = '/stu/router/chapterList post'
//获取项目详情
export const PROJECT_DETAIL = '/admin/project/detail'

View File

@@ -95,13 +95,13 @@ function show() {
} }
function toDetail(i) { function toDetail(i) {
console.log("import.meta.env.MODE", import.meta.env.MODE); // console.log("import.meta.env.MODE", import.meta.env.MODE);
if (current.value !== i) { if (current.value !== i) {
return; return;
} }
import.meta.env.MODE === "development" || import.meta.env.MODE === "test" import.meta.env.MODE === "development" || import.meta.env.MODE === "test"
? router.push({ ? router.push({
path: "/pathdetails", path: "/pathmappage",
query: { query: {
routerId: props.routerId, routerId: props.routerId,
// routerName: props.detail.routerName, // routerName: props.detail.routerName,
@@ -110,7 +110,7 @@ function toDetail(i) {
: window.open( : window.open(
`${ `${
window.location.protocol + import.meta.env.VITE_BOE_PATH_DETAIL_URL window.location.protocol + import.meta.env.VITE_BOE_PATH_DETAIL_URL
}/pathdetails&params=${encodeURIComponent( }/pathmappage&params=${encodeURIComponent(
`routerId=${props.detail.routerId}&routerName=${props.detail.routerName}` `routerId=${props.detail.routerId}&routerName=${props.detail.routerName}`
)}`, )}`,
"_top" "_top"

View File

@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com * @Author: lixg lixg@dongwu-inc.com
* @Date: 2023-01-19 14:59:34 * @Date: 2023-01-19 14:59:34
* @LastEditors: lixg lixg@dongwu-inc.com * @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2023-02-10 19:02:17 * @LastEditTime: 2023-02-13 18:00:16
* @FilePath: /stu_h5/src/views/pathmap/LevelList.vue * @FilePath: /stu_h5/src/views/pathmap/LevelList.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
@@ -15,12 +15,9 @@
></ReturnHead> ></ReturnHead>
<!-- 学习路径介绍 --> <!-- 学习路径介绍 -->
<div class="pathdetail"> <div class="pathdetail">
<div class="pathName">产品经理学习路径图</div> <div class="pathName">{{ data?.routerInfo?.name }}</div>
<div class="pathIntro"> <div class="pathIntro">
为了提升集团各条线产品经理的专业能力集团XX组织为产 {{ data?.routerInfo?.remark ? data?.routerInfo?.remark : "-" }}
品经理设置了统一的学习径为了提升集团各条线产品经理的
专业能力集团XX组织为产品经理设置了统一的学习径为了
提升集团各条线产品经理的专业
</div> </div>
</div> </div>
<!-- 学习路径介绍 --> <!-- 学习路径介绍 -->
@@ -56,8 +53,8 @@ const listheight = document.body.clientHeight - 310 + "px";
const { const {
query: { routerId }, query: { routerId },
} = useRoute(); } = useRoute();
// const { data } = useRequest(TASK_LIST, { routerId: routerId }); const { data } = useRequest(ROUTER_DETAILS, { routerId: routerId });
// console.log("获取路径图", data); console.log("获取路径图", data);
</script> </script>
<style lang="scss"> <style lang="scss">

View File

@@ -133,7 +133,7 @@ const router = useRouter();
const returnclick = () => { const returnclick = () => {
router.back(); router.back();
}; };
const { data } = useRequest(ROUTER_PROCESS, { routerId }); const { data } = useRequest(ROUTER_PROCESS, { id: routerId });
const userInfo = computed(() => store.state.userInfo); const userInfo = computed(() => store.state.userInfo);
console.log("lalalallala", data, userInfo); console.log("lalalallala", data, userInfo);
const activeName = ref("first"); const activeName = ref("first");

View File

@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com * @Author: lixg lixg@dongwu-inc.com
* @Date: 2023-01-19 11:28:11 * @Date: 2023-01-19 11:28:11
* @LastEditors: lixg lixg@dongwu-inc.com * @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2023-02-11 09:47:29 * @LastEditTime: 2023-02-14 17:35:07
* @FilePath: /stu_h5/src/views/projectdetails/ProjectPath.vue * @FilePath: /stu_h5/src/views/projectdetails/ProjectPath.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
@@ -180,12 +180,12 @@ const handleClick = (tab, event) => {
}; };
const goDetails = () => { const goDetails = () => {
router.push({ router.push({
path: "/pathmappage", path: "/pathdetails",
query: { routerId: 290 }, query: { routerId: 339 },
}); });
// router.push({ // router.push({
// path: "/projectdetails", // path: "/projectdetails",
// query: { projectId: 485 }, // query: { projectId: 517 },
// }); // });
}; };
</script> </script>

View File

@@ -14,9 +14,9 @@
<span class="close"></span> <span class="close"></span>
</div> --> </div> -->
<div class="content"> <div class="content">
<div class="title">{{ data.name }}</div> <div class="title">{{ data?.projectInfo?.name }}</div>
<div class="text2"> <div class="text2">
{{ data.remark }} {{ data?.projectInfo?.remark ? data?.projectInfo?.remark : "-" }}
</div> </div>
</div> </div>
</div> </div>
@@ -57,12 +57,10 @@
<div <div
class="project_second" class="project_second"
v-for="(item, key) in data?.stageProcessList" v-for="(item, key) in data?.stageList"
:key="key" :key="key"
> >
<div <div v-if="item.id == '0' && item.taskList.length == 0"></div>
v-if="item.stageId == '0' && item.taskProcessList.length == 0"
></div>
<div <div
v-else v-else
style=" style="
@@ -73,7 +71,7 @@
" "
> >
<div class="course1_first"> <div class="course1_first">
<div class="text8">{{ item.stageName }}</div> <div class="text8">{{ item.name }}</div>
<div class="course1_right"> <div class="course1_right">
<div class="circular"></div> <div class="circular"></div>
<div class="text9">进行中</div> <div class="text9">进行中</div>
@@ -83,7 +81,7 @@
<div class="secondcontent"> <div class="secondcontent">
<div <div
class="question" class="question"
v-for="(el, index) in item.taskProcessList" v-for="(el, index) in item.taskList"
:key="index" :key="index"
> >
<div style="width: calc(100% - 80px)"> <div style="width: calc(100% - 80px)">
@@ -159,7 +157,7 @@ import { computed, reactive, ref } from "vue";
import { ElLoading } from "element-plus"; import { ElLoading } from "element-plus";
import { useRequest, request } from "@/api/request"; import { useRequest, request } from "@/api/request";
import { PROJECT_PROCESS, STUDY_RECORD } from "@/api/api"; import { PROJECT_PROCESS, STUDY_RECORD, PROJECT_DETAIL } from "@/api/api";
import { useRoute, useRouter } from "vue-router"; import { useRoute, useRouter } from "vue-router";
import store from "@/store"; import store from "@/store";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
@@ -171,7 +169,7 @@ const {
} = useRoute(); } = useRoute();
const router = useRouter(); const router = useRouter();
const { data } = useRequest(PROJECT_PROCESS, { const { data } = useRequest(PROJECT_DETAIL, {
projectId: projectId || courseId, projectId: projectId || courseId,
}); });