From b56ab52b724ba0d80761ac78183b968d28e3b75a Mon Sep 17 00:00:00 2001
From: panzy <225@qq.com>
Date: 星期六, 21 五月 2022 07:58:12 +0800
Subject: [PATCH] 页面优化,接入柱状图

---
 src/views/safetyHazardAccount/index.vue |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/src/views/safetyHazardAccount/index.vue b/src/views/safetyHazardAccount/index.vue
index 66ae526..ce6794d 100644
--- a/src/views/safetyHazardAccount/index.vue
+++ b/src/views/safetyHazardAccount/index.vue
@@ -195,7 +195,11 @@
         </el-row>
         <el-table :data="tableData" ref="pageTable" style="width: 100%" @selection-change="changeBox">
             <el-table-column type="selection" width="55" align="center"></el-table-column>
-            <el-table-column prop="number" label="编号" align="center" width="120"></el-table-column>
+            <el-table-column prop="number" label="编号" align="center" width="120">
+                <template slot-scope="scope">
+                    <div class="blue-font-color" @click="showDetails(scope.row)">{{ scope.row.number }}</div>
+                </template>
+            </el-table-column>
             <el-table-column prop="check_branch" label="检查部门" align="center" width="120"></el-table-column>
             <el-table-column prop="check_man" label="检查人" align="center" width="120"></el-table-column>
             <el-table-column prop="checktype" label="检查类别" align="center"></el-table-column>
@@ -682,6 +686,12 @@
                     }
                 })
             }
+        },
+        showDetails(row){
+            this.$router.push({
+                path: "/dangerDetails",
+                query:{"id":row.id,"route":"/safetyHazardAccount"}
+            })
         }
     }
 };
@@ -719,5 +729,10 @@
     background-color: #034ea2;
     background-color: #034ea2;
 }
+
+.blue-font-color:hover{
+    cursor: pointer;
+    color: blue;
+}
 </style>
 

--
Gitblit v1.9.2