From 4c1f572561a11a1030f1dc3a809f7d19e06e906e Mon Sep 17 00:00:00 2001 From: wanglei Date: Wed, 29 Oct 2025 08:37:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E5=88=B0=E6=9C=9F=E6=97=B6=E9=97=B4=E6=8F=90=E7=A4=BA=20?= =?UTF-8?q?=E7=94=9F=E6=88=90=E8=AF=84=E5=88=86=E8=B4=A6=E5=8F=B7=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=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 | 18 ++++++++++++++---- ruoyi-ui/src/views/login.vue | 4 ++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ruoyi-ui/src/views/kaohe/pingce/index.vue b/ruoyi-ui/src/views/kaohe/pingce/index.vue index c36859c..a926e79 100644 --- a/ruoyi-ui/src/views/kaohe/pingce/index.vue +++ b/ruoyi-ui/src/views/kaohe/pingce/index.vue @@ -1096,8 +1096,6 @@ export default { pcSetUpList.push(item); }) this.pcSetUpList = pcSetUpList; - - console.log(this.pcSetUpList,'pcSetUpList'); }) }, // 评测规则设置 @@ -1377,8 +1375,20 @@ export default { id: row.templateId, pingceId: row.id, }).then(response => { - this.scpfzh.itemsOtions = response.data.items - this.scpfzh.open = true; + let flag = true; + response.data.items.forEach( item =>{ + if(!item.vote){ + flag = false + } + }) + if(flag){ + this.scpfzh.itemsOtions = response.data.items + this.scpfzh.open = true; + }else { + this.$alert(`还有未发布评分规则考核项,请发布评分规则都完成后再生成评分账号`, `提示`, { + type: 'Danger' + }) + } }) }, // 查看评分账号 diff --git a/ruoyi-ui/src/views/login.vue b/ruoyi-ui/src/views/login.vue index 50e9069..c2f0704 100644 --- a/ruoyi-ui/src/views/login.vue +++ b/ruoyi-ui/src/views/login.vue @@ -162,6 +162,10 @@ export default { methods: { getCode() { getCodeImg().then(res => { + + this.day = localStorage.getItem('licenseWarning')||null; + console.log('day',this.day); + this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled if (this.captchaEnabled) { this.codeUrl = "data:image/gif;base64," + res.img