工作台改版

uat_us
熊飞 2024-03-12 16:36:52 +08:00
parent a4070374c6
commit 661f0e5dfb
1 changed files with 8 additions and 5 deletions

View File

@ -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 @@
</div>
<div class="user-description" style="">
<div style="font-size: .875rem;color: #333;line-height: 22px;display: flex;margin-bottom: 0.25rem;"><span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;max-width: 75px">{{user.RealName}}</span>{{ hoursTip }}</div>
<div style="font-size: .75rem;line-height: 18px;color:#999">今天是{{new Date().getMonth() + 1}}{{new Date().getDate()}}{{ dayOfWeek }}</div>
<div style="font-size: .75rem;line-height: 18px;color:#999">{{$t('common:date:today')}}{{new Date().getMonth() + 1}}{{$t('common:date:month')}}{{new Date().getDate()}}{{$t('common:date:day')}}{{ dayOfWeek }}</div>
</div>
</div>
<div class="user-status" style="display: flex">
@ -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
},