保誠-保戶業務員媒合平台
HelenHuang
2021-12-08 a5a9a36fe627fa68a56ea536d425f81d55ac78af
PAMapp/pages/myConsultantList.vue
@@ -42,10 +42,14 @@
    onMyConsultantListChange() {
        this.filterContactedList();
    }
    tabClick(path: string) {
        this.activeTabName = path;
        this.$router.push('/myConsultantList/' + this.activeTabName)
    beforeRouteEnter(to: any, from: any, next: any) {
      next(vm => {
        if (to.name === 'myConsultantList') {
            vm.$router.push('myConsultantList/consultantList');
          return;
        }
      })
    }
    mounted() {
@@ -56,6 +60,12 @@
        }
    }
    tabClick(path: string) {
        this.activeTabName = path;
        this.$router.push('/myConsultantList/' + this.activeTabName)
    }
    filterContactedList() {
        this.consultantList = (this.myConsultantList || [])
                .filter(item => item.contactStatus !== 'contacted')