From 013c1d7c08b8aeb64aaf7fe31622c364195d31af Mon Sep 17 00:00:00 2001 From: duan Date: Fri, 12 Aug 2022 16:12:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(src/views/reagent/management):=20=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E8=AF=95=E5=89=82=20=E6=B7=BB=E5=8A=A0=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/reagent/management/index.vue | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/views/reagent/management/index.vue b/src/views/reagent/management/index.vue index 846a639..c3b7158 100644 --- a/src/views/reagent/management/index.vue +++ b/src/views/reagent/management/index.vue @@ -538,12 +538,23 @@ export default { this.$message.warning('请选择一个试剂!') return } - const data = { - medicament_id: this.multipleSelection[0].medicament_id - } - del(stringify(data)).then(res => { - this.$message.success(res.msg) - this.getList() + this.$confirm('此操作将永久删除该试剂, 是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + 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: '已取消删除' + }) }) }, // 设置空瓶