| | |
| | | </template> |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop, Emit } from 'nuxt-property-decorator'; |
| | | import { Agents } from '~/plugins/api/home'; |
| | | import { Vue, Component, Prop, Emit, Getter } from 'nuxt-property-decorator'; |
| | | import { Consultants } from '~/assets/ts/api/consultant'; |
| | | |
| | | @Component |
| | | export default class ConsultantPage extends Vue { |
| | | @Prop() consultantList!: Agents[]; |
| | | pageList: Agents[] = []; |
| | | @Prop() consultantList!: Consultants[]; |
| | | @Getter isLogin!: boolean; |
| | | pageList: Consultants[] = []; |
| | | |
| | | @Emit('remove') remove(agentNo: number) { |
| | | @Emit('remove') removeAgent(agentNo: number) { |
| | | return agentNo; |
| | | } |
| | | |
| | | changePage(pageList: Agents[]) { |
| | | changePage(pageList: Consultants[]) { |
| | | this.pageList = pageList; |
| | | } |
| | | |
| | | removeAgent(agentNo: number) { |
| | | this.remove(agentNo); |
| | | } |
| | | } |
| | | </script> |