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(); }); }); },