From 880ca55f38ffb3d0b4dd0c1b42a1cfa0c13b299e Mon Sep 17 00:00:00 2001 From: shj <1790240199@qq.com> Date: 星期三, 13 四月 2022 09:24:43 +0800 Subject: [PATCH] 隐患 --- src/views/hiddenDangerRegistration/index.vue | 33 ++++++++++++++++++++++++++------- 1 files changed, 26 insertions(+), 7 deletions(-) diff --git a/src/views/hiddenDangerRegistration/index.vue b/src/views/hiddenDangerRegistration/index.vue index 24234c9..1d690fd 100644 --- a/src/views/hiddenDangerRegistration/index.vue +++ b/src/views/hiddenDangerRegistration/index.vue @@ -168,10 +168,10 @@ </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 type="primary" class="btns" size="small" icon="el-icon-search" >查询</el-button > - <el-button type="primary" class="btns" icon="el-icon-upload2" + <el-button type="primary" class="btns" size="small" icon="el-icon-upload2" >导出excel</el-button > </el-form-item> @@ -210,13 +210,13 @@ size="small" >批量发送</el-button > - <el-button class="btns" type="primary" icon="el-icon-plus" size="small" + <el-button class="btns" @click="jump" type="primary" icon="el-icon-plus" size="small" >添加</el-button > <el-button size="small" >删除</el-button > - + </el-col> </el-row> <el-table :data="tableData" style="width: 100%"> @@ -280,7 +280,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 @@ -302,7 +306,6 @@ data() { return { form: {}, - radio1: "上海", options: [ { value: "选项1", @@ -325,12 +328,28 @@ label: "北京烤鸭", }, ], - tableData: [], + tableData: [{ + date:"2016-05-04", + }], pageSize: 10, recordTotal: 0, currentPage: 1, }; }, + methods:{ + jump(){ + this.$router.push({ + path:"/hiddenDangerAdd" + }) + }, + // 发送隐患单跳转 + handleClick(){ + this.$router.push({ + path:"/hiddenDangerList", + + }) + }, + } }; </script> <style> -- Gitblit v1.9.2