| | |
| | | </template> |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop, namespace } from 'nuxt-property-decorator'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | import { Vue, Component, Prop } from 'nuxt-property-decorator'; |
| | | |
| | | const roleStorage = namespace('localStorage'); |
| | | import authService from '~/shared/services/auth.service'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | |
| | | @Component |
| | | export default class ConsultantList extends Vue { |
| | | @Prop() agents!: Consultant[]; |
| | | @Prop() title! : string; |
| | | @roleStorage.Getter isUserLogin!:boolean; |
| | | @Prop() |
| | | agents!: Consultant[]; |
| | | |
| | | @Prop() |
| | | title! : string; |
| | | |
| | | isUserLogin = false; |
| | | |
| | | get agentList(){ |
| | | return this.agents.map((agentDto)=> |
| | | ({...agentDto,customerScore:0,}) |
| | | ) |
| | | return this.agents.map((agentDto)=> |
| | | ({...agentDto,customerScore:0,}) |
| | | ) |
| | | } |
| | | |
| | | get noDataPlaceholder(): string { |
| | |
| | | : '您目前無已選顧問'; |
| | | } |
| | | |
| | | ////////////////////////////////////////////////////////////////////// |
| | | |
| | | mounted() { |
| | | this.isUserLogin = authService.isUserLogin(); |
| | | } |
| | | |
| | | } |
| | | </script> |
| | | |