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,14 +277,22 @@ export default {
|
|||||||
this.$Message.error("审核备注不能为空");
|
this.$Message.error("审核备注不能为空");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
withdrawApply(params).then((res) => {
|
this.submitLoading = true;
|
||||||
this.loading = false;
|
withdrawApply(params)
|
||||||
if (res == true) {
|
.then((result) => {
|
||||||
this.$Message.success("操作成功");
|
const success = result === true || (result && result.success === true);
|
||||||
this.roleModalVisible = false;
|
if (success) {
|
||||||
this.getDataList();
|
this.$Message.success("操作成功");
|
||||||
}
|
this.roleModalVisible = false;
|
||||||
});
|
this.queryModalVisible = false;
|
||||||
|
this.audit = "";
|
||||||
|
this.showList = {};
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.submitLoading = false;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
|
|||||||
Reference in New Issue
Block a user