fix(member/advance/withdrawApply): 完善提现申请审核提交逻辑

- 调整加载状态为submitLoading,通过finally确保加载状态正确关闭
- 优化成功判断逻辑,兼容布尔值和带success字段的响应结果
- 提交成功后重置更多表单状态并关闭相关弹窗
This commit is contained in:
pikachu1995@126.com
2026-05-20 11:26:52 +08:00
parent 020b413e20
commit 38da0d9f3a

View File

@@ -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();