From 76154aee3feac09989165ab8825fc258568de02d Mon Sep 17 00:00:00 2001
From: louyinlei <398221207@qq.com>
Date: Tue, 05 Mar 2024 12:51:15 +0800
Subject: [PATCH] 验收整改-lou
---
src/views/coalMine/cViolationRegistration/index.vue | 43 ++++++++++++++++++++++++++++++++++---------
1 files changed, 34 insertions(+), 9 deletions(-)
diff --git a/src/views/coalMine/cViolationRegistration/index.vue b/src/views/coalMine/cViolationRegistration/index.vue
index 16e8d1e..e6a78ee 100644
--- a/src/views/coalMine/cViolationRegistration/index.vue
+++ b/src/views/coalMine/cViolationRegistration/index.vue
@@ -55,7 +55,7 @@
size="mini"
@click="openViolation({},'add')"
v-hasPermi="['system:experts:add']"
- >新增填报</el-button>
+ >新增处罚登记</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@@ -73,22 +73,30 @@
<el-table-column label="作业种类" align="center" prop="jobCategory"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
+
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-edit"
+ @click="open('核准')"
+ >核准</el-button>
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-edit"
+ @click="open('撤销')"
+ >撤销</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="openViolation(scope.row,'view')"
- >查看违规详情</el-button>
-<!-- <el-button-->
-<!-- size="mini"-->
-<!-- type="text"-->
-<!-- icon="el-icon-edit"-->
-<!-- @click="openViolation(scope.row,'edit')"-->
-<!-- v-hasPermi="['system:experts:remove']"-->
-<!-- >编辑</el-button>-->
+ >查看详情</el-button>
+
<el-button
size="mini"
type="text"
+ style="color: red;"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:experts:remove']"
@@ -174,6 +182,23 @@
handleChange(){
},
+ open(val) {
+ this.$confirm('确认'+val+'该项处罚?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ this.$message({
+ type: 'success',
+ message: val+'成功!'
+ });
+ }).catch(() => {
+ this.$message({
+ type: 'info',
+ message: '已取消'+val
+ });
+ });
+ },
handleDelete(row){
this.$confirm('此操作将永久删除该条数据, 是否继续?', '提示', {
confirmButtonText: '确定',
--
Gitblit v1.9.2