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
},