Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM
| | |
| | | job : string, |
| | | requirement : string, |
| | | communicateStatus: string, |
| | | hopeContactTime: string, |
| | | otherRequirement: string, |
| | | appointmentDate: Date, |
| | | agentNo: string, |
| | | customerId: number, |
| | | name: string, |
| | | hopeContactTime : string, |
| | | otherRequirement : string, |
| | | appointmentDate : Date, |
| | | agentNo : string, |
| | | customerId : number, |
| | | name : string, |
| | | consultantViewTime: Date, |
| | | consultantReadTime: Date, |
| | | contactTime: Date, |
| | | contactTime : Date, |
| | | satisfactionScore: number |
| | | } |
| | |
| | | }) |
| | | export default class MainComponent extends Vue { |
| | | consultantList: Consultant[] = []; |
| | | agents: Consultant[] = []; |
| | | |
| | | @State('recommendList') recommendList!: Consultant[]; |
| | | @Action storeRecommendList!: any; |
| | | |
| | |
| | | onMyConsultantListChange() { |
| | | this.consultantList = (this.myConsultantList || []) |
| | | .filter(item => item.contactStatus !== 'contacted') |
| | | .sort((a, b) => a.updateTime > b.updateTime ? -1 : 1) |
| | | .map((item) => ({ ...item, formatDate: new Date(item.updateTime)})) |
| | | .sort((preItem, nextItem) => +nextItem.formatDate - +preItem.formatDate) |
| | | } |
| | | |
| | | mounted() { |
| | |
| | | } |
| | | |
| | | this.storeConsultantList(); |
| | | |
| | | this.storageClearQuickFilter(); |
| | | this.storageClearRecommendConsultant(); |
| | | } |
| | |
| | | filterContactedList() { |
| | | this.consultantList = (this.myConsultantList || []) |
| | | .filter(item => item.contactStatus !== 'contacted') |
| | | .sort((a, b) => a.updateTime > b.updateTime ? -1 : 1); |
| | | .map((item) => ({ ...item, formatDate: new Date(item.updateTime)})) |
| | | .sort((preItem, nextItem) => +nextItem.formatDate - +preItem.formatDate ); |
| | | this.contactedList = (this.myConsultantList || []) |
| | | .filter(item => item.contactStatus === 'contacted') |
| | | .sort((a, b) => a.updateTime > b.updateTime ? -1 : 1); |
| | | .map((item) => ({ ...item, formDate: new Date(item.updateTime)})) |
| | | .sort((preItem, nextItem) => +nextItem.formDate - +preItem.formDate); |
| | | } |
| | | |
| | | } |