Commit f2c147b2 authored by 李苏's avatar 李苏 💬

关闭改多选

parent ee337f30
...@@ -303,6 +303,27 @@ ...@@ -303,6 +303,27 @@
} }
}, },
gb(ctx) { gb(ctx) {
let list = ctx.$refs.TablePager.selectedList || []
if (list.length > 0) {
this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/ckgl/usofh/close', {
ids: list.map(item => item.id)
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请至少勾选一条数据')
}
return
if (ctx.singleItem && ctx.singleItem.id) { if (ctx.singleItem && ctx.singleItem.id) {
this.$prompt('请输入原因', '', { this.$prompt('请输入原因', '', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment