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

duizhaopin_ui
duan 2 years ago
parent 9acb856462
commit 013c1d7c08

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

Loading…
Cancel
Save