| | |
| | | expertise : string[]; |
| | | avgScore : number; |
| | | contactStatus? : string; |
| | | createTime : Date; |
| | | updateTime : Date; |
| | | createTime : Date | string; |
| | | updateTime : Date | string; |
| | | role : string; |
| | | seniority : string, |
| | | appointments? : Appointment[]; |
| | |
| | | .sort((preAppointment, nextAppointment) => +nextAppointment.sortDate - +preAppointment.sortDate)[0]; |
| | | } |
| | | get displayTime(): string { |
| | | let time = ''; |
| | | let time: Date | string = ''; |
| | | switch(this.agentInfo.contactStatus) { |
| | | case 'reserved': |
| | | time = this.agentInfo.updateTime |
| | |
| | | time = this.agentInfo.createTime |
| | | break; |
| | | } |
| | | return time; |
| | | if (typeof time !== 'string') { |
| | | time.toString(); |
| | | } |
| | | return time as string; |
| | | } |
| | | |
| | | appointmentDetail: any = { |