| | |
| | | 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); |
| | | } |
| | | |
| | | } |