From 3c647d3837f7a1c2c146b7d4c39a87174782215f Mon Sep 17 00:00:00 2001 From: Your Name <123456> Date: 星期二, 23 八月 2022 11:15:51 +0800 Subject: [PATCH] lct --- src/views/doublePreventAction/riskLevelManage/riskSourceManage/index.vue | 30 +++++++++++++++++++----------- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/views/doublePreventAction/riskLevelManage/riskSourceManage/index.vue b/src/views/doublePreventAction/riskLevelManage/riskSourceManage/index.vue index b8c42f1..377ace5 100644 --- a/src/views/doublePreventAction/riskLevelManage/riskSourceManage/index.vue +++ b/src/views/doublePreventAction/riskLevelManage/riskSourceManage/index.vue @@ -16,7 +16,7 @@ </div> <div class="basic_search"> <span>风险等级:</span> - <el-select v-model="listQuery.level"> + <el-select v-model="listQuery.riskLevel"> <el-option v-for="item in levelList" :key="item.id" @@ -55,8 +55,8 @@ <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="showRiskSourceForm('','新增')">新增</el-button> - <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary" @click="showImportDialog()">导入</el-button> - <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary" @click="exportToExcel()">导出</el-button> +<!-- <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary" @click="showImportDialog()">导入</el-button>--> +<!-- <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary" @click="exportToExcel()">导出</el-button>--> </div> <div class="table_content"> <el-table @@ -378,14 +378,22 @@ cancelButtonText:'取消', type:'warning', }).then(()=> { - deleteRiskSource({id:val.id}).then( ()=>{ - this.getRiskSourceData() - this.$notify({ - title:'成功', - message:'删除成功', - type:'success', - duration:2000, - }) + deleteRiskSource({id:val.id}).then( (res)=>{ + if(res.data.code === '200'){ + this.getRiskSourceData() + this.$notify({ + title:'成功', + message:'删除成功', + type:'success', + duration:2000, + }) + }else{ + this.$message({ + type:'warning', + message:res.data.message + }) + } + }) }) }, -- Gitblit v1.9.2