| | |
| | | <div> |
| | | <ConsultantList |
| | | :agents="pageList" |
| | | @removeAgent="removeAgent" |
| | | :title="'consultantList'" |
| | | ></ConsultantList> |
| | | |
| | | <UiPagination |
| | |
| | | </template> |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop, Emit } from 'nuxt-property-decorator'; |
| | | import { Agents } from '~/plugins/api/home'; |
| | | import { Vue, Component, Prop } from 'nuxt-property-decorator'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | |
| | | |
| | | @Component |
| | | export default class ConsultantPage extends Vue { |
| | | @Prop() consultantList!: Agents[]; |
| | | pageList: Agents[] = []; |
| | | @Prop() consultantList!: Consultant[]; |
| | | pageList: Consultant[] = []; |
| | | |
| | | @Emit('remove') remove(agentNo: number) { |
| | | return agentNo; |
| | | } |
| | | |
| | | changePage(pageList: Agents[]) { |
| | | changePage(pageList: Consultant[]) { |
| | | this.pageList = pageList; |
| | | } |
| | | |
| | | removeAgent(agentNo: number) { |
| | | this.remove(agentNo); |
| | | } |
| | | } |
| | | </script> |
| | | </script> |