工作台改版
parent
70adad29e4
commit
283533ff6d
|
@ -64,8 +64,8 @@
|
||||||
{{ user.LastName }}
|
{{ user.LastName }}
|
||||||
</div>
|
</div>
|
||||||
<div class="user-description" style="">
|
<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>,下午好</div>
|
<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">今天是3月11日,星期一</div>
|
<div style="font-size: .75rem;line-height: 18px;color:#999">今天是{{new Date().getMonth() + 1}}月{{new Date().getDate()}}日,{{ dayOfWeek }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="user-status" style="display: flex">
|
<div class="user-status" style="display: flex">
|
||||||
|
@ -450,7 +450,9 @@ export default {
|
||||||
activeName: '',
|
activeName: '',
|
||||||
width: 0,
|
width: 0,
|
||||||
user: {},
|
user: {},
|
||||||
selected: null
|
selected: null,
|
||||||
|
dayOfWeek: null,
|
||||||
|
hoursTip: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -460,6 +462,19 @@ export default {
|
||||||
this.getUserTobeDoneRecord()
|
this.getUserTobeDoneRecord()
|
||||||
this.getNeedSignTrialDocTrialIdList()
|
this.getNeedSignTrialDocTrialIdList()
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
|
const days = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
|
||||||
|
const date = new Date();
|
||||||
|
this.dayOfWeek = days[date.getDay()];
|
||||||
|
let date2=(new Date()).getHours();
|
||||||
|
let hoursTip = "";
|
||||||
|
if(date2>=6&&date2<12){
|
||||||
|
hoursTip="上午好"
|
||||||
|
}else if(date2>=12&&date2<18){
|
||||||
|
hoursTip="下午好"
|
||||||
|
}else{
|
||||||
|
hoursTip="晚上好"
|
||||||
|
}
|
||||||
|
this.hoursTip = hoursTip
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getUserInfo() {
|
getUserInfo() {
|
||||||
|
|
Loading…
Reference in New Issue