Commit ac386d7f by peiqiQQQ

修改

2 parents a14c0741 83286629
Showing with 37 additions and 4 deletions
...@@ -109,10 +109,7 @@ export default { ...@@ -109,10 +109,7 @@ export default {
type: 'primary', type: 'primary',
size: 'mini', size: 'mini',
plain: true, plain: true,
icon: 'el-icon-circle-check', icon: 'el-icon-view',
disabledCallback: (row, title) => {
return row.state == '1' ? true : false
},
}, },
], ],
callback: (row, title) => { callback: (row, title) => {
...@@ -131,6 +128,21 @@ export default { ...@@ -131,6 +128,21 @@ export default {
{ label: '启用时间', prop: 'startTime', }, { label: '启用时间', prop: 'startTime', },
{ label: '创建人', prop: 'createMan', }, { label: '创建人', prop: 'createMan', },
{ label: '创建时间', prop: 'createTime', }, { 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 { ...@@ -175,6 +187,9 @@ export default {
case '审查': case '审查':
this.fnSubmit(row) this.fnSubmit(row)
break break
case '删除':
this.fnDel(row)
break
default: default:
break break
} }
...@@ -182,6 +197,24 @@ export default { ...@@ -182,6 +197,24 @@ export default {
fnSubmit(row){ fnSubmit(row){
this.$router.push('/main/examine') 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> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!