diff --git a/ruoyi-ui/src/views/kaohe/pingce/index.vue b/ruoyi-ui/src/views/kaohe/pingce/index.vue index b303769..0893720 100644 --- a/ruoyi-ui/src/views/kaohe/pingce/index.vue +++ b/ruoyi-ui/src/views/kaohe/pingce/index.vue @@ -598,7 +598,7 @@ @@ -850,6 +850,7 @@ export default { vote_options: [], // 生成评分账号 scpfzhOpen: false, + scpfzhLoading: false, scpfzhForm: {}, scpfzhRules: { deptId: [ @@ -1564,6 +1565,7 @@ export default { }, // 提交生成评分账号 scpfzhSubmit(){ + this.scpfzhLoading = true; this.$refs["scpfzhForm"].validate(valid => { if (valid) { this.scpfzhForm.voteIds = this.scpfzhForm.votes.map(item => item.id).join(","); @@ -1576,8 +1578,11 @@ export default { num: this.scpfzhForm.num, itemNames: itemNames, }).then(response => { + this.scpfzhLoading = false; this.scpfzhOpen = false; this.$modal.msgSuccess("生成成功") + }).catch(()=>{ + this.scpfzhLoading = false; }) } })