mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-06-21 09:30:24 +08:00
fix(member/advance/withdrawApply): 完善提现申请审核提交逻辑
- 调整加载状态为submitLoading,通过finally确保加载状态正确关闭 - 优化成功判断逻辑,兼容布尔值和带success字段的响应结果 - 提交成功后重置更多表单状态并关闭相关弹窗
This commit is contained in:
@@ -277,13 +277,21 @@ export default {
|
||||
this.$Message.error("审核备注不能为空");
|
||||
return;
|
||||
}
|
||||
withdrawApply(params).then((res) => {
|
||||
this.loading = false;
|
||||
if (res == true) {
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user