mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-08 18:36:48 +08:00
feat:增加关卡等
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: lixg lixg@dongwu-inc.com
|
||||
* @Date: 2023-01-13 11:42:48
|
||||
* @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
|
||||
* @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 ROUTERTASK_LIST = '/stu/router/chapterList post'
|
||||
//获取项目详情
|
||||
export const PROJECT_DETAIL = '/admin/project/detail'
|
||||
|
||||
@@ -95,13 +95,13 @@ function show() {
|
||||
}
|
||||
|
||||
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) {
|
||||
return;
|
||||
}
|
||||
import.meta.env.MODE === "development" || import.meta.env.MODE === "test"
|
||||
? router.push({
|
||||
path: "/pathdetails",
|
||||
path: "/pathmappage",
|
||||
query: {
|
||||
routerId: props.routerId,
|
||||
// routerName: props.detail.routerName,
|
||||
@@ -110,7 +110,7 @@ function toDetail(i) {
|
||||
: window.open(
|
||||
`${
|
||||
window.location.protocol + import.meta.env.VITE_BOE_PATH_DETAIL_URL
|
||||
}/pathdetails¶ms=${encodeURIComponent(
|
||||
}/pathmappage¶ms=${encodeURIComponent(
|
||||
`routerId=${props.detail.routerId}&routerName=${props.detail.routerName}`
|
||||
)}`,
|
||||
"_top"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: lixg lixg@dongwu-inc.com
|
||||
* @Date: 2023-01-19 14:59:34
|
||||
* @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
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
@@ -15,12 +15,9 @@
|
||||
></ReturnHead>
|
||||
<!-- 学习路径介绍 -->
|
||||
<div class="pathdetail">
|
||||
<div class="pathName">产品经理学习路径图</div>
|
||||
<div class="pathName">{{ data?.routerInfo?.name }}</div>
|
||||
<div class="pathIntro">
|
||||
为了提升集团各条线产品经理的专业能力,集团XX组织为产
|
||||
品经理设置了统一的学习径为了提升集团各条线产品经理的
|
||||
专业能力,集团XX组织为产品经理设置了统一的学习径为了
|
||||
提升集团各条线产品经理的专业
|
||||
{{ data?.routerInfo?.remark ? data?.routerInfo?.remark : "-" }}
|
||||
</div>
|
||||
</div>
|
||||
<!-- 学习路径介绍 -->
|
||||
@@ -56,8 +53,8 @@ const listheight = document.body.clientHeight - 310 + "px";
|
||||
const {
|
||||
query: { routerId },
|
||||
} = useRoute();
|
||||
// const { data } = useRequest(TASK_LIST, { routerId: routerId });
|
||||
// console.log("获取路径图", data);
|
||||
const { data } = useRequest(ROUTER_DETAILS, { routerId: routerId });
|
||||
console.log("获取路径图", data);
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
@@ -133,7 +133,7 @@ const router = useRouter();
|
||||
const returnclick = () => {
|
||||
router.back();
|
||||
};
|
||||
const { data } = useRequest(ROUTER_PROCESS, { routerId });
|
||||
const { data } = useRequest(ROUTER_PROCESS, { id: routerId });
|
||||
const userInfo = computed(() => store.state.userInfo);
|
||||
console.log("lalalallala", data, userInfo);
|
||||
const activeName = ref("first");
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: lixg lixg@dongwu-inc.com
|
||||
* @Date: 2023-01-19 11:28:11
|
||||
* @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
|
||||
* @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 = () => {
|
||||
router.push({
|
||||
path: "/pathmappage",
|
||||
query: { routerId: 290 },
|
||||
path: "/pathdetails",
|
||||
query: { routerId: 339 },
|
||||
});
|
||||
// router.push({
|
||||
// path: "/projectdetails",
|
||||
// query: { projectId: 485 },
|
||||
// query: { projectId: 517 },
|
||||
// });
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
<span class="close"></span>
|
||||
</div> -->
|
||||
<div class="content">
|
||||
<div class="title">{{ data.name }}</div>
|
||||
<div class="title">{{ data?.projectInfo?.name }}</div>
|
||||
<div class="text2">
|
||||
{{ data.remark }}
|
||||
{{ data?.projectInfo?.remark ? data?.projectInfo?.remark : "-" }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -57,12 +57,10 @@
|
||||
|
||||
<div
|
||||
class="project_second"
|
||||
v-for="(item, key) in data?.stageProcessList"
|
||||
v-for="(item, key) in data?.stageList"
|
||||
:key="key"
|
||||
>
|
||||
<div
|
||||
v-if="item.stageId == '0' && item.taskProcessList.length == 0"
|
||||
></div>
|
||||
<div v-if="item.id == '0' && item.taskList.length == 0"></div>
|
||||
<div
|
||||
v-else
|
||||
style="
|
||||
@@ -73,7 +71,7 @@
|
||||
"
|
||||
>
|
||||
<div class="course1_first">
|
||||
<div class="text8">{{ item.stageName }}</div>
|
||||
<div class="text8">{{ item.name }}</div>
|
||||
<div class="course1_right">
|
||||
<div class="circular"></div>
|
||||
<div class="text9">进行中</div>
|
||||
@@ -83,7 +81,7 @@
|
||||
<div class="secondcontent">
|
||||
<div
|
||||
class="question"
|
||||
v-for="(el, index) in item.taskProcessList"
|
||||
v-for="(el, index) in item.taskList"
|
||||
:key="index"
|
||||
>
|
||||
<div style="width: calc(100% - 80px)">
|
||||
@@ -159,7 +157,7 @@ import { computed, reactive, ref } from "vue";
|
||||
import { ElLoading } from "element-plus";
|
||||
|
||||
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 store from "@/store";
|
||||
import { ElMessage } from "element-plus";
|
||||
@@ -171,7 +169,7 @@ const {
|
||||
} = useRoute();
|
||||
const router = useRouter();
|
||||
|
||||
const { data } = useRequest(PROJECT_PROCESS, {
|
||||
const { data } = useRequest(PROJECT_DETAIL, {
|
||||
projectId: projectId || courseId,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user