保誠-保戶業務員媒合平台
劉鈞霖
2021-12-15 95d0e5524c3ab1e55a9909e2c38e7cc35901220f
PAMapp/pages/index.vue
@@ -52,7 +52,7 @@
  })
  export default class MainComponent extends Vue {
    consultantList: Consultant[] = [];
    agents: Consultant[] = [];
    @State('recommendList') recommendList!: Consultant[];
    @Action storeRecommendList!: any;
@@ -66,7 +66,8 @@
    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 || item.createTime)}))
        .sort((preItem, nextItem) => +nextItem.formatDate - +preItem.formatDate)
    }
    mounted() {
@@ -75,7 +76,6 @@
      }
      this.storeConsultantList();
      this.storageClearQuickFilter();
      this.storageClearRecommendConsultant();
    }