人生啊人生 1 tháng trước cách đây
mục cha
commit
8eb3b9f773

+ 6 - 0
src/router/studentRoute.ts

@@ -22,6 +22,12 @@ const studentRoute = {
             component: () => import('../view/student/trainMain/assessmentSelect.vue'),
             component: () => import('../view/student/trainMain/assessmentSelect.vue'),
             meta: { title: '考核内容' },
             meta: { title: '考核内容' },
         },
         },
+        {
+            path: '/trainChapter/trainTheory/:taskId/:studentTaskId',
+            name: 'trainChapterTrainTheory',
+            component: () => import('../view/student/trainChapter/trainTheory.vue'),
+            meta: { title: '理论考核' },
+        },
         {
         {
             path: '/trainChapter/trainAssessment/:taskId/:studentTaskId',
             path: '/trainChapter/trainAssessment/:taskId/:studentTaskId',
             name: 'trainChapterTrainAssessment',
             name: 'trainChapterTrainAssessment',

+ 59 - 0
src/view/student/trainChapter/trainTheory.vue

@@ -0,0 +1,59 @@
+<template>
+    <div class="trainTheory">
+        
+        <div class="topRight" >
+            <!-- <NavMenus></NavMenus> -->
+            <NavMenus :back-confirm="false" ></NavMenus>
+        </div>
+
+        理论考核
+        
+    </div>
+</template>
+<script setup lang="ts">
+import { onMounted, reactive, computed, watch, onUnmounted, nextTick, ref } from 'vue';
+import NavMenus from '../components/navMenus.vue';
+import QingXiCheAndQvMain from '@/components/ThreeWorldEventQingXiCheAndQv/QingXiCheAndQvMain.vue';
+import { useRoute } from 'vue-router';
+const route = useRoute();
+const taskId = route.params.taskId as string;
+const studentTaskId = route.params.studentTaskId as string;
+
+
+onMounted(() => {
+
+    console.log("taskId", taskId, studentTaskId);
+
+});
+
+</script>
+<style lang="scss" scoped>
+
+.trainTheory {
+    position: fixed;
+    top: 0px;
+    left: 0px;
+    width: 100%;
+    height: 100%;
+
+    .topRight {
+        position: absolute;
+        right: 0rem;
+        top: 6rem;
+        z-index: 100;
+    }
+    
+}
+
+
+</style>
+
+
+
+
+
+
+
+
+
+

+ 10 - 1
src/view/student/trainMain/assessmentSelect.vue

@@ -72,8 +72,17 @@ const itemClick = (json: any) => {
     switch(json.class) {
     switch(json.class) {
 
 
         case 'liLunKaoHe':
         case 'liLunKaoHe':
-            
 
 
+            router.push({ path: `/trainChapter/trainTheory/${state.taskId}/${state.trainSelf.id}` }).then(() => {
+                // console.log("路由跳转完成了 ===>");
+                /**
+                 * 由于 router.push 跳转页面,会导致来回切换三维场景存留一些其他参数
+                 * 导致第一次进入三维界面是正常的,退回,切换回来,三维场景会出现报错
+                 * 所以,这里切换到三维场景,要进行整个页面刷新一下
+                 * 就可以解决这个问题,让它正常运行
+                 */
+                window.location.reload();
+            });
             break;
             break;
 
 
         case 'shiJiKaoHe':
         case 'shiJiKaoHe':