保誠-保戶業務員媒合平台
Tomas
2021-12-22 abfd26bb700d93a92da6a04703b0187d4acaaeb5
PAMapp/pages/myConsultantList/consultantList.vue
@@ -2,7 +2,7 @@
    <div>
        <ConsultantList
            :agents="pageList"
            @removeAgent="removeAgent"
            :title="'consultantList'"
        ></ConsultantList>
        <UiPagination
@@ -13,24 +13,18 @@
</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>