From 28db8d08ffd22b640b7b8d4c994b2fda3289894c Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: 星期三, 13 四月 2022 14:55:01 +0800
Subject: [PATCH] 查

---
 src/views/delayHiddenDangerRectification/index.vue |   28 +++++++++++++++++++++++-----
 1 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/src/views/delayHiddenDangerRectification/index.vue b/src/views/delayHiddenDangerRectification/index.vue
index 9715bc7..b08f80c 100644
--- a/src/views/delayHiddenDangerRectification/index.vue
+++ b/src/views/delayHiddenDangerRectification/index.vue
@@ -132,8 +132,8 @@
     </el-col>
   </el-form-item>
    <el-form-item style="text-align:center;padding:0 50px">
-    <el-button type="primary" class="btns" icon="el-icon-search">查询</el-button>
-    <el-button type="primary" class="btns" icon="el-icon-upload2">导出excel</el-button>
+    <el-button type="primary" class="btns"  size="small" icon="el-icon-search">查询</el-button>
+    <el-button type="primary" class="btns"  size="small" icon="el-icon-upload2">导出excel</el-button>
   </el-form-item>
   </el-form>
     <el-row class="title-center">
@@ -148,7 +148,7 @@
         <el-button class="btns" type="primary" size="small">批量发送</el-button>
       </el-col>
     </el-row>
-    <el-table :data="tableData" style="width: 100%">
+    <el-table :data="tableData" style="width: 100%"  @selection-change="handleSelectionChange">
       <el-table-column
         type="selection"
         width="55"
@@ -181,7 +181,7 @@
       <el-table-column prop="date" label="检查类别" align="center">
       </el-table-column>
       <el-table-column label="隐患项目" align="center">
-        <el-table-column label="检察时间" width="120" sortable align="center">
+        <el-table-column label="检查时间" width="120" sortable align="center">
         </el-table-column>
         <el-table-column label="地点" align="center"> </el-table-column>
         <el-table-column label="内容" align="center"> </el-table-column>
@@ -209,7 +209,11 @@
       <el-table-column label="风险等级" align="center"> </el-table-column>
       <el-table-column label="初始警情" align="center"> </el-table-column>
       <el-table-column label="当前警情" align="center"> </el-table-column>
-      <el-table-column label="流程操作" align="center"> </el-table-column>
+      <el-table-column label="流程操作" align="center">
+          <template slot-scope="scope">
+              <el-button @click="handleClick(scope.row)" type="text" size="small">点击发送</el-button>
+          </template>
+      </el-table-column>
     </el-table>
     <div style="text-align: right">
       <el-pagination
@@ -265,11 +269,25 @@
             name: '王小虎',
             address: '上海市普陀区金沙江路 1516 弄'
           }],
+      multipleSelection :[],
       pageSize: 10,
       recordTotal: 0,
       currentPage: 1,
     };
   },
+    methods:{
+      // table点击多选框返回数据
+        handleSelectionChange(val) {
+        this.multipleSelection = val;
+  console.log(val)
+      },
+        // 发送隐患单跳转
+        handleClick(){
+            this.$router.push({
+                path:"/rectificationDelayHiddenDanger"
+            })
+        },
+    }
 };
 </script>
 <style>

--
Gitblit v1.9.2