From 9e3f3dd8691cd647ddad68907e9582e5dba14e9d Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 24 十月 2024 17:19:50 +0800
Subject: [PATCH] 工单回显补全、一机一档OSd优化

---
 src/views/system/check/result/detail/index.vue |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/views/system/check/result/detail/index.vue b/src/views/system/check/result/detail/index.vue
index c7507dd..895d76d 100644
--- a/src/views/system/check/result/detail/index.vue
+++ b/src/views/system/check/result/detail/index.vue
@@ -72,7 +72,7 @@
                 size="mini"
                 type="text"
                 icon="el-icon-view"
-                @click="handleDetail(scope.row.id)"
+                @click="handleDetail(scope.row)"
               >璇︾粏
               </el-button>
             </div>
@@ -155,11 +155,11 @@
     this.date = year + '-' + month;
     this.queryParams.date = this.date;
     let examineTag = this.$route.query.examineTag;
-    if (examineTag === '2') {
-      examineTag = '0'
-    }
-    if (examineTag === '3') {
+    if (examineTag === '2' || examineTag === '3') {
       examineTag = '1'
+    }
+    if (examineTag === '4' || examineTag === '5') {
+      examineTag = '2'
     }
     this.queryParams.examineTag = examineTag;
     this.queryParamsList.examineTag = examineTag;
@@ -246,12 +246,13 @@
     handleCurrentChange(val) {
       console.log(`褰撳墠椤�: ${val}`);
     },
-    handleDetail(id) {
+    handleDetail(row) {
       this.$router.push({
         path: '/check/detail/detail',
         query: {
-          id: id,
+          id: row.id,
           examineTag: this.activeIndex,
+          examineCategory: row.examineCategory,
           deptId: this.queryParamsList.deptId
         }
       })
@@ -376,7 +377,6 @@
 
     dateChange() {
       this.queryParams.date = this.date;
-      console.log(this.queryParams);
       this.getChart(this.queryParams.deptId);
     }
 

--
Gitblit v1.8.0