From 09e9c51c8071bf48fc2e996d0e61075d4caa83da Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Sat, 4 Feb 2023 09:29:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=91=98=E5=B7=A5=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/sysstaffinfo/yuangongguanli.vue | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/anrui-management/anrui-management-ui/src/views/sysstaffinfo/yuangongguanli.vue b/anrui-management/anrui-management-ui/src/views/sysstaffinfo/yuangongguanli.vue index 19376970b2..b63133f6e1 100644 --- a/anrui-management/anrui-management-ui/src/views/sysstaffinfo/yuangongguanli.vue +++ b/anrui-management/anrui-management-ui/src/views/sysstaffinfo/yuangongguanli.vue @@ -338,19 +338,18 @@ export default { this.loadList() }, handleOpen() { - const _this = this this.personTypeForm.sid = this.sids[0] req.del(this.personTypeForm).then((resp) => { - loading.close() - _this.$message({ - type: 'success', - message: resp.msg, - showClose: true - }) - _this.loadList() - this.dialogVisible = false + if (resp.success) { + this.dialogVisible = false + this.$message({ + type: 'success', + message: resp.msg, + showClose: true + }) + this.loadList() + } }).catch((e) => { - loading.close() }) }, // 获取数据sid