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" >