From 024064ec1f6535c7c6ce7b14665774b2907f1af8 Mon Sep 17 00:00:00 2001 From: wanglei Date: Wed, 5 Nov 2025 09:35:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E8=B4=A6=E5=8F=B7=20Loading?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/kaohe/pingce/index.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ruoyi-ui/src/views/kaohe/pingce/index.vue b/ruoyi-ui/src/views/kaohe/pingce/index.vue index 0893720..a6ad2fe 100644 --- a/ruoyi-ui/src/views/kaohe/pingce/index.vue +++ b/ruoyi-ui/src/views/kaohe/pingce/index.vue @@ -1566,6 +1566,11 @@ export default { // 提交生成评分账号 scpfzhSubmit(){ this.scpfzhLoading = true; + const loading1 = this.$loading({ + lock: true, + text: '生成中,请等待...', + spinner: 'el-icon-loading', + }); this.$refs["scpfzhForm"].validate(valid => { if (valid) { this.scpfzhForm.voteIds = this.scpfzhForm.votes.map(item => item.id).join(","); @@ -1579,10 +1584,12 @@ export default { itemNames: itemNames, }).then(response => { this.scpfzhLoading = false; + loading1.close() this.scpfzhOpen = false; this.$modal.msgSuccess("生成成功") }).catch(()=>{ this.scpfzhLoading = false; + loading1.close() }) } }) @@ -1683,6 +1690,13 @@ export default { // 多任务提交生成评分账号 drwScpfzhSubmit(){ this.drwScpfzhLoading = true + + const loading1 = this.$loading({ + lock: true, + text: '生成中,请等待...', + spinner: 'el-icon-loading', + }); + this.$refs["drwScpfzhForm"].validate(valid => { if (valid) { let VoteIds=[]; @@ -1700,10 +1714,12 @@ export default { voteIds: VoteIds.join(','), }).then(response => { this.drwScpfzhLoading = false; + loading1.close(); this.drwScpfzhOpen = false; this.$modal.msgSuccess("生成成功"); }).catch(()=>{ this.drwScpfzhLoading = false; + loading1.close(); }) } })