Commit 83286629 by peiqiQQQ

修改

1 parent 604b4081
Showing with 37 additions and 4 deletions
......@@ -109,10 +109,7 @@ export default {
type: 'primary',
size: 'mini',
plain: true,
icon: 'el-icon-circle-check',
disabledCallback: (row, title) => {
return row.state == '1' ? true : false
},
icon: 'el-icon-view',
},
],
callback: (row, title) => {
......@@ -131,6 +128,21 @@ export default {
{ label: '启用时间', prop: 'startTime', },
{ label: '创建人', prop: 'createMan', },
{ label: '创建时间', prop: 'createTime', },
{
label: '操作', type: 'operation', width: '200px',
actionButtons: [
{
title: '删除',
type: 'danger',
size: 'mini',
plain: true,
icon: 'el-icon-delete',
},
],
callback: (row, title) => {
this.fnOperation(row, title)
},
},
]
}
},
......@@ -175,6 +187,9 @@ export default {
case '审查':
this.fnSubmit(row)
break
case '删除':
this.fnDel(row)
break
default:
break
}
......@@ -182,6 +197,24 @@ export default {
fnSubmit(row){
this.$router.push('/main/examine')
},
fnDel(row){
this.$confirm('是否确认删除?', '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
this.$postRequest('/klTechPolicyCheck/del/', {id: row.id}).then(res => {
if (res.code === 200) {
this.$message.success('删除成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
})
})
.catch(() => {})
}
},
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!