From 17cae4457a301ca79ff3a2975641d5989c127b13 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: 星期一, 11 四月 2022 17:11:34 +0800
Subject: [PATCH] 新增
---
src/views/doublePreventAction/riskLevelManage/controlAction/index.vue | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/views/doublePreventAction/riskLevelManage/controlAction/index.vue b/src/views/doublePreventAction/riskLevelManage/controlAction/index.vue
index 3a2fb13..42ad0d6 100644
--- a/src/views/doublePreventAction/riskLevelManage/controlAction/index.vue
+++ b/src/views/doublePreventAction/riskLevelManage/controlAction/index.vue
@@ -7,7 +7,7 @@
</el-input>
</div>
<el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary" icon="el-icon-refresh" @click="refreshHandle">搜索</el-button>
- <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary" icon="el-icon-plus" @click="showRiskControlMeasureForm('','新增')">新增</el-button>
+ <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary" icon="el-icon-plus" @click="showRiskControlMeasureForm('','新增')" v-show="showCurrent">新增</el-button>
</div>
<div class="table_content">
<el-table
@@ -45,8 +45,9 @@
</el-table-column>
<el-table-column label="操作" align="center" width="280" class-name="small-padding fixed-width">
<template slot-scope="scope">
- <el-button type="text" @click="showRiskControlMeasureForm(scope.row,'编辑')">编辑</el-button>
- <el-button type="text" style="color: red" @click="deleteById(scope.row)">删除</el-button>
+ <el-button type="text" @click="giveValue(scope.row,)" v-show="showOther">选择</el-button>
+ <el-button type="text" @click="showRiskControlMeasureForm(scope.row,'编辑')" v-show="showCurrent">编辑</el-button>
+ <el-button type="text" style="color: red" @click="deleteById(scope.row)" v-show="showCurrent">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -156,6 +157,8 @@
classifyOneList:[],
classifyTwoList:[],
listLoading: false,
+ showCurrent:true,
+ showOther:false,
pageSize: 10,
recordTotal: 0,
currentPage: 1,
@@ -237,7 +240,6 @@
async getClassify(){
let res = await getClassify({pageSize:1000,pageIndex:1,filter:{riskEventName:''}})
if(res.data.code === '200'){
- debugger
this.classifyOneList = res.data.result
}else{
this.$message({
@@ -384,6 +386,14 @@
this.listQuery.pageIndex = val
this.getRiskControlMeasureData()
},
+
+ ifShowButton (){
+ this.showCurrent = false
+ this.showOther = true
+ },
+ giveValue(){
+
+ }
}
}
</script>
--
Gitblit v1.9.2