【修改】修改删除权限
This commit is contained in:
@@ -91,7 +91,7 @@
|
|||||||
<vxe-column show-overflow show-header-overflow title="操作" width="200" fixed="right">
|
<vxe-column show-overflow show-header-overflow title="操作" width="200" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button type="text" @click="openReportModify('modify', row)">编辑</el-button>
|
<el-button type="text" @click="openReportModify('modify', row)">编辑</el-button>
|
||||||
<el-button type="text" class="del-btn" @click="reportDelete(row.id)">删除</el-button>
|
<el-button type="text" class="del-btn" @click="reportDelete(row)">删除</el-button>
|
||||||
<el-button type="text" @click="previewRow(row)">预览</el-button>
|
<el-button type="text" @click="previewRow(row)">预览</el-button>
|
||||||
<el-button type="text" @click="downloadRow(row)">下载</el-button>
|
<el-button type="text" @click="downloadRow(row)">下载</el-button>
|
||||||
</template>
|
</template>
|
||||||
@@ -913,13 +913,17 @@ export default {
|
|||||||
this.reportDateList();
|
this.reportDateList();
|
||||||
},
|
},
|
||||||
// 报告删除
|
// 报告删除
|
||||||
reportDelete(ids) {
|
reportDelete(row) {
|
||||||
|
if(+row.isAct == 0){
|
||||||
|
this.$message.warning("当前选择的"+row.name+"已经在流程中")
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$confirm('此操作将删除所选数据, 是否继续?', '提示', {
|
this.$confirm('此操作将删除所选数据, 是否继续?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$api.report.reportDelete({ ids }).then(_ => {
|
this.$api.report.reportDelete({ ids:row.id }).then(_ => {
|
||||||
this.$message.success('操作成功');
|
this.$message.success('操作成功');
|
||||||
this.reportList();
|
this.reportList();
|
||||||
this.reportDateList();
|
this.reportDateList();
|
||||||
|
|||||||
Reference in New Issue
Block a user