| | |
| | | |
| | | <script lang='ts'> |
| | | import { Vue, Component, Watch, State, Action } from 'nuxt-property-decorator'; |
| | | import { Route } from 'vue-router/types/router.d' |
| | | import { Consultants } from '~/assets/ts/api/consultant'; |
| | | |
| | | @Component |
| | |
| | | |
| | | mounted() { |
| | | this.storeConsultantList(); |
| | | |
| | | if (this.$route.name) { |
| | | this.activeTabName = this.$route.name.split('-')[1] |
| | | } |
| | | } |
| | | |
| | | filterContactedList() { |
| | |
| | | this.contactedList = (this.myConsultantList || []) |
| | | .filter(item => item.contactStatus === 'contacted') |
| | | .sort((a, b) => a.updateTime > b.updateTime ? -1 : 1); |
| | | } |
| | | |
| | | @Watch('$route') watchRouter(currentRoute: Route) { |
| | | const pathArray = currentRoute.fullPath.split('/'); |
| | | this.activeTabName = pathArray[pathArray.length - 1]; |
| | | } |
| | | |
| | | } |