From 38da0d9f3a44f57f494fe1f373f9c10d57145cec Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Wed, 20 May 2026 11:26:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(member/advance/withdrawApply):=20=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E6=8F=90=E7=8E=B0=E7=94=B3=E8=AF=B7=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整加载状态为submitLoading,通过finally确保加载状态正确关闭 - 优化成功判断逻辑,兼容布尔值和带success字段的响应结果 - 提交成功后重置更多表单状态并关闭相关弹窗 --- .../views/member/advance/withdrawApply.vue | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/manager/src/views/member/advance/withdrawApply.vue b/manager/src/views/member/advance/withdrawApply.vue index 809c7c8e..36bcf667 100644 --- a/manager/src/views/member/advance/withdrawApply.vue +++ b/manager/src/views/member/advance/withdrawApply.vue @@ -277,14 +277,22 @@ export default { this.$Message.error("审核备注不能为空"); return; } - withdrawApply(params).then((res) => { - this.loading = false; - if (res == true) { - this.$Message.success("操作成功"); - this.roleModalVisible = false; - this.getDataList(); - } - }); + this.submitLoading = true; + withdrawApply(params) + .then((result) => { + const success = result === true || (result && result.success === true); + if (success) { + this.$Message.success("操作成功"); + this.roleModalVisible = false; + this.queryModalVisible = false; + this.audit = ""; + this.showList = {}; + this.getDataList(); + } + }) + .finally(() => { + this.submitLoading = false; + }); }, init() { this.getDataList();