From 661f0e5dfbded1126ef12c85142972b1ac56fdf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E9=A3=9E?= Date: Tue, 12 Mar 2024 16:36:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=E6=94=B9=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trials/trials-workbench/index.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/trials/trials-workbench/index.vue b/src/views/trials/trials-workbench/index.vue index e97b3d7a..41fa6467 100644 --- a/src/views/trials/trials-workbench/index.vue +++ b/src/views/trials/trials-workbench/index.vue @@ -27,6 +27,9 @@ .my_select_box_content{ color: #333; font-size: .875rem; + white-space:nowrap; + overflow:hidden; + text-overflow:ellipsis; } .my_select_box:hover{ background: #f5f5f5; @@ -65,7 +68,7 @@
{{user.RealName}},{{ hoursTip }}
-
今天是{{new Date().getMonth() + 1}}月{{new Date().getDate()}}日,{{ dayOfWeek }}
+
{{$t('common:date:today')}}{{new Date().getMonth() + 1}}{{$t('common:date:month')}}{{new Date().getDate()}}{{$t('common:date:day')}},{{ dayOfWeek }}
@@ -462,17 +465,17 @@ export default { this.getUserTobeDoneRecord() this.getNeedSignTrialDocTrialIdList() this.getUserInfo() - const days = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']; + const days = [this.$t('common:date:Sunday'), this.$t('common:date:Monday'), this.$t('common:date:Tuesday'), this.$t('common:date:Wednesday'), this.$t('common:date:Thursday'), this.$t('common:date:Friday'), this.$t('common:date:Saturday')]; const date = new Date(); this.dayOfWeek = days[date.getDay()]; let date2=(new Date()).getHours(); let hoursTip = ""; if(date2>=6&&date2<12){ - hoursTip="上午好" + hoursTip= this.$t('common:date:good morning') }else if(date2>=12&&date2<18){ - hoursTip="下午好" + hoursTip=this.$t('common:date:good afternoon') }else{ - hoursTip="晚上好" + hoursTip=this.$t('common:date:good evening') } this.hoursTip = hoursTip },