From 771c36beeee1bf715f45630fcce2c066ab7762aa Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 18 Mar 2024 17:20:08 +0800 Subject: [PATCH] fix --- src/components/Panel/index.vue | 9 ++++++--- src/views/product/fund/Add.vue | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/Panel/index.vue b/src/components/Panel/index.vue index 732e508..5ddf44a 100644 --- a/src/components/Panel/index.vue +++ b/src/components/Panel/index.vue @@ -407,7 +407,6 @@ let counter = async (counterTime: number) => { let startCount = () => { clearInterval(counterTimer.value); counterTimer.value = setInterval(() => { - console.log('counter'); counter(per.value ? countVal.value-- : countVal.value++); }, 1000); }; @@ -622,8 +621,11 @@ let submit = async () => { submiting.value = false; // 非练习 - per.value && - ElMessageBox.alert(`提交成功${param.resultAnnouncementTime ? ',成绩将在' + param.resultAnnouncementTime + '小时后发布,请去参赛信息模块查看' : ''}`, '提示', { + if (per.value) { + const time = param.resultAnnouncementTime; + const msg = + time === '0' ? '提交成功!成绩将在比赛结束后公布,请前往参赛信息模块查看' : time > 0 ? `提交成功!成绩将在比赛结束后${time}小时公布,请前往参赛信息模块查看` : '提交成功'; + ElMessageBox.alert(msg, '提示', { confirmButtonText: '确定', closeOnClickModal: false, showClose: false, @@ -631,6 +633,7 @@ let submit = async () => { logout(); }, }); + } } catch (e) { submiting.value = false; } diff --git a/src/views/product/fund/Add.vue b/src/views/product/fund/Add.vue index 25e81be..bf985d2 100644 --- a/src/views/product/fund/Add.vue +++ b/src/views/product/fund/Add.vue @@ -516,7 +516,7 @@ const submit = async () => { try { const param = JSON.parse(JSON.stringify(form)); - if (!param.fundName) return ElMessage.error('请输入保险名称'); + if (!param.fundName) return ElMessage.error('请输入基金名称'); if (!param.fundType) return ElMessage.error('请选择基金类型'); if (!param.fundraisingScale) return ElMessage.error('请输入募集规模'); if (isIllegalNum(param.fundraisingScale)) return ElMessage.error('请输入合理的募集规模');