保誠-保戶業務員媒合平台
Mila
2021-12-01 929c7a3066ee87b424954821f2a93f2853937592
PAMapp/pages/recommendConsultant/result.vue
@@ -81,16 +81,26 @@
</div>
</template>
<script lang="ts">
import {Vue,Component, State} from 'nuxt-property-decorator';
import {Vue,Component, State, namespace, Action} from 'nuxt-property-decorator';
import { AgentOfStrictQuery } from '~/assets/ts/api/consultant';
const localStorage = namespace('localStorage');
@Component
export default class Reslut extends Vue{
    @State('strictQueryList') strictQueryList!: AgentOfStrictQuery;
    @State('strictQueryList') strictQueryList!: AgentOfStrictQuery[];
    @Action storeStrictQueryList!: (data: any) => Promise<number>;
    @localStorage.State recommendConsultantItem!: string;
    pageList: any[] = [];
    isVisiblePopUp = false;
    popUpTxt = '';
    mounted() {
        if (this.recommendConsultantItem && this.strictQueryList.length === 0) {
            const strictQueryDto = JSON.parse(this.recommendConsultantItem);
            this.storeStrictQueryList(strictQueryDto);
        }
    }
    changePage(pageList: any[]) {
        this.pageList = pageList;