feat: 推送合规按钮增加加载遮罩防重复操作

This commit is contained in:
刘泉佳
2026-10-22 20:08:02 +08:00
parent b9de34aa0e
commit 96783fcd7b
2 changed files with 28 additions and 0 deletions
+14
View File
@@ -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();
});
});
},
+14
View File
@@ -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();
});
});
},