From 96783fcd7b6414cae176642d1c7da1d5e3f00640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B3=89=E4=BD=B3?= <1107186916@qq.com> Date: Thu, 22 Oct 2026 20:08:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8E=A8=E9=80=81=E5=90=88=E8=A7=84?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=A2=9E=E5=8A=A0=E5=8A=A0=E8=BD=BD=E9=81=AE?= =?UTF-8?q?=E7=BD=A9=E9=98=B2=E9=87=8D=E5=A4=8D=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/contract-manage.vue | 14 ++++++++++++++ src/views/business/project-apply.vue | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/src/views/business/contract-manage.vue b/src/views/business/contract-manage.vue index de25000..f509b7c 100644 --- a/src/views/business/contract-manage.vue +++ b/src/views/business/contract-manage.vue @@ -1771,6 +1771,12 @@ export default { cancelButtonText: '取消', type: 'warning', }).then(() => { + // 同步推送合规耗时较长,加遮罩防重复操作(照审批通过遮罩) + const loading = this.$loading({ + lock: true, + text: '正在推送合规,请稍候…', + background: 'rgba(255, 255, 255, 0.6)', + }); this.hcsRepushingId = row.id; hcsRepush('contract', row.id) .then(res => { @@ -1789,6 +1795,7 @@ export default { }) .finally(() => { this.hcsRepushingId = null; + loading.close(); }); }); }, @@ -1808,6 +1815,12 @@ export default { cancelButtonText: '取消', type: 'warning', }).then(() => { + // 同步推送合规耗时较长,加遮罩防重复操作(照审批通过遮罩) + const loading = this.$loading({ + lock: true, + text: '正在批量推送合规,请稍候…', + background: 'rgba(255, 255, 255, 0.6)', + }); this.hcsRepushingId = 'batch'; hcsRepushBatch('contract', this.selectionList.map(item => item.id)) .then(res => { @@ -1826,6 +1839,7 @@ export default { }) .finally(() => { this.hcsRepushingId = null; + loading.close(); }); }); }, diff --git a/src/views/business/project-apply.vue b/src/views/business/project-apply.vue index b7abfc1..750d263 100644 --- a/src/views/business/project-apply.vue +++ b/src/views/business/project-apply.vue @@ -1670,6 +1670,12 @@ export default { cancelButtonText: '取消', type: 'warning', }).then(() => { + // 同步推送合规耗时较长,加遮罩防重复操作(照审批通过遮罩) + const loading = this.$loading({ + lock: true, + text: '正在推送合规,请稍候…', + background: 'rgba(255, 255, 255, 0.6)', + }); this.hcsRepushingId = row.id; hcsRepush('project', row.id) .then(res => { @@ -1688,6 +1694,7 @@ export default { }) .finally(() => { this.hcsRepushingId = null; + loading.close(); }); }); }, @@ -1707,6 +1714,12 @@ export default { cancelButtonText: '取消', type: 'warning', }).then(() => { + // 同步推送合规耗时较长,加遮罩防重复操作(照审批通过遮罩) + const loading = this.$loading({ + lock: true, + text: '正在批量推送合规,请稍候…', + background: 'rgba(255, 255, 255, 0.6)', + }); this.hcsRepushingId = 'batch'; hcsRepushBatch('project', this.selectionList.map(item => item.id)) .then(res => { @@ -1725,6 +1738,7 @@ export default { }) .finally(() => { this.hcsRepushingId = null; + loading.close(); }); }); },