Michael Wang hace 3 años
padre
commit
ea29368496

+ 1 - 0
src/App.vue

@@ -7,6 +7,7 @@
     :delay="1000"
     class="global-mask fade-in"
   />
+  <ExplainModal />
 </template>
 
 <script lang="ts">

+ 5 - 6
src/features/projectManagement/ProjectManagement.vue

@@ -75,12 +75,7 @@
               参数配置
             </a-button>
             <a-button @click="goProjectPapers(record.id)"> 试卷列表 </a-button>
-            <a-button @click="handleDeleteProjects([record.id])">
-              整体分析
-            </a-button>
-            <a-button @click="handleDeleteProjects([record.id])">
-              报告说明
-            </a-button>
+            <a-button @click="goAllAnalysis(record.id)"> 整体分析 </a-button>
           </span>
         </template>
       </a-table>
@@ -276,4 +271,8 @@ function goProjectParams(id: number) {
 function goProjectPapers(id: number) {
   router.push("papers/" + id);
 }
+
+async function goAllAnalysis(projectId: number) {
+  router.push(`/project/allAnalysis/${projectId}`);
+}
 </script>

+ 6 - 2
src/features/projectPapersManagement/ProjectPapersManagement.vue

@@ -37,7 +37,7 @@
         </template>
         <template #action="{ record }">
           <span>
-            <a-button @click="showModal(record)">编辑</a-button>
+            <a-button @click="goPaperAnalysis(record)">查看分析结果</a-button>
           </span>
         </template>
       </a-table>
@@ -124,6 +124,10 @@ onMounted(async () => {
 });
 
 async function goAllAnalysis() {
-  router.push("/" + projectId);
+  router.push(`/project/allAnalysis/${projectId}`);
+}
+
+async function goPaperAnalysis(record: any) {
+  router.push(`/project/${projectId}/paperAnalysis/${record.id}`);
 }
 </script>

+ 8 - 0
src/router/index.ts

@@ -70,6 +70,14 @@ const routes = [
             "@/features/projectPapersManagement/ProjectPapersManagement.vue"
           ),
       },
+      {
+        path: ":projectId/paperAnalysis/:paperId",
+        component: () => import("@/features/paperAnalysis/PaperAnalysis.vue"),
+      },
+      {
+        path: "allAnalysis/:projectId",
+        component: () => import("@/features/allAnalysis/AllAnalysis2.vue"),
+      },
     ],
     component: Layout,
   },