From f9b6e984e8abfa4535d329693037b6d6480e2ace Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 8 May 2024 11:45:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/noticeMarquee.vue | 2 +- .../trials-list/components/TrialForm.vue | 18 +++ src/views/trials/trials-list/index.vue | 3 +- src/views/trials/trials-notice/index.vue | 114 +++++++++--------- .../trials-panel/reading/read-task/index.vue | 51 +++++--- .../trial-summary/audit-record/index.vue | 4 +- 6 files changed, 112 insertions(+), 80 deletions(-) diff --git a/src/views/trials/trials-layout/components/noticeMarquee.vue b/src/views/trials/trials-layout/components/noticeMarquee.vue index 86363d5..6ddc026 100644 --- a/src/views/trials/trials-layout/components/noticeMarquee.vue +++ b/src/views/trials/trials-layout/components/noticeMarquee.vue @@ -4,7 +4,7 @@ ref="mar" hspace="0" direction="left" - max-width="500" + width="500" @mouseout="start()" @mouseover="stop()" > diff --git a/src/views/trials/trials-list/components/TrialForm.vue b/src/views/trials/trials-list/components/TrialForm.vue index e4375fc..1ed7475 100644 --- a/src/views/trials/trials-list/components/TrialForm.vue +++ b/src/views/trials/trials-list/components/TrialForm.vue @@ -249,6 +249,24 @@ export default { message: this.$t("trials:trials-list:formRule:minMaxAuthorized"), trigger: "blur", }, + { + validator: (rule, value, callback) => { + if ( + value && + (String(value).includes(".") || + new RegExp(/\D/g).test(String(value))) + ) { + callback( + new Error( + this.$t("trials:trials-list:formRule:notDecimalsAuthorized") + ) + ); + } else { + callback(); + } + }, + trigger: "blur", + }, ], // 阅片标准 CriterionTypeList: [ diff --git a/src/views/trials/trials-list/index.vue b/src/views/trials/trials-list/index.vue index 12dcc25..d939ecf 100644 --- a/src/views/trials/trials-list/index.vue +++ b/src/views/trials/trials-list/index.vue @@ -160,7 +160,7 @@ prop="ExperimentName" :label="$t('trials:trials-list:table:experimentName')" show-overflow-tooltip - min-width="100" + min-width="140" sortable="custom" /> @@ -206,6 +206,7 @@ :label="$t('trials:trials-list:table:CriterionTypeList')" show-overflow-tooltip v-if="hasPermi(['role:pm', 'role:pi', 'role:sr'])" + min-width="140" >