feat: 审核按钮统一30秒超时并加遮罩

This commit is contained in:
刘泉佳
2026-10-22 12:06:27 +08:00
parent 9558426da1
commit 2f64abfc83
11 changed files with 84 additions and 29 deletions
@@ -331,6 +331,11 @@ export default {
// 防止重复点击:请求进行中忽略后续点击
if (this.approveLoading) return;
this.approveLoading = true;
const loading = this.$loading({
lock: true,
text: '审批处理中,请稍候…',
background: 'rgba(255, 255, 255, 0.6)',
});
try {
const res = await api.approve({ id: row.id });
// data=false 表示审批已通过但自动同步金蝶失败,msg 带具体原因
@@ -341,6 +346,7 @@ export default {
}
this.refreshChange();
} finally {
loading.close();
this.approveLoading = false;
}
},