feat(src/views/reagent/management): 删除试剂 添加消息提示

duizhaopin_ui
duan 2 years ago
parent 9acb856462
commit 013c1d7c08

@ -538,12 +538,23 @@ export default {
this.$message.warning('请选择一个试剂!') this.$message.warning('请选择一个试剂!')
return return
} }
const data = { this.$confirm('此操作将永久删除该试剂, 是否继续?', '提示', {
medicament_id: this.multipleSelection[0].medicament_id confirmButtonText: '确定',
} cancelButtonText: '取消',
del(stringify(data)).then(res => { type: 'warning'
this.$message.success(res.msg) }).then(() => {
this.getList() const data = {
medicament_id: this.multipleSelection[0].medicament_id
}
del(stringify(data)).then(res => {
this.$message.success(res.msg)
this.getList()
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
}) })
}, },
// //

Loading…
Cancel
Save