Commit 9992c914 authored by 李苏's avatar 李苏 💬

添加确认弹框

parent abb9df95
...@@ -159,17 +159,27 @@ ...@@ -159,17 +159,27 @@
}, },
qxgb(ctx) { qxgb(ctx) {
if (ctx.singleItem && ctx.singleItem.id) { if (ctx.singleItem && ctx.singleItem.id) {
this.$post('wms/rkgl/sjtz/batchUnClose/sjtzmx', {
datas:[{ this.$confirm('是否继续操作?', '提示', {
id: ctx.singleItem.id confirmButtonText: '确定',
}], cancelButtonText: '取消',
}).then(res => { type: 'warning'
if (res.success) { }).then(res=>{
this.$success('操作成功') this.$post('wms/rkgl/sjtz/batchUnClose/sjtzmx', {
ctx.refresh() datas:[{
} id: ctx.singleItem.id
}],
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
}) })
} else { } else {
this.$warning('请选中一条数据') this.$warning('请选中一条数据')
} }
......
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