保誠-保戶業務員媒合平台
Mila
2021-12-01 929c7a3066ee87b424954821f2a93f2853937592
PAMapp/pages/recommendConsultant/index.vue
@@ -87,11 +87,12 @@
    Vue,
    Component,
    Mutation,
    namespace
    namespace,
    Action,
    State
  } from 'nuxt-property-decorator';
  import * as _ from 'lodash';
  import { strictQuery } from '~/assets/ts/api/consultant';
  import { Seniority } from '~/assets/ts/models/enum/Seniority';
import { Seniority } from '~/assets/ts/models/enum/seniority';
  const localStorage = namespace('localStorage');
@@ -226,7 +227,8 @@
    showAddress = false;
    @Mutation updateStrictQueryList!: (data: any) => void;
    @localStorage.Mutation storageRecommendConsultant!: (data: any) => void;
    @Action storeStrictQueryList!: (data: any) => Promise<number>;
    @State strictQueryList!: any;
    @localStorage.State recommendConsultantItem!: string;
    mounted() {
@@ -234,12 +236,9 @@
        this.strictQueryDto = JSON.parse(this.recommendConsultantItem);
      }
    }
    makePair():void{
      strictQuery(this.strictQueryDto).then(res=>{
        console.log('resultData',res.data);
        this.storageRecommendConsultant(JSON.stringify(this.strictQueryDto));
        this.updateStrictQueryList(res.data);
        if (res.data.length === 0) {
    async makePair() {
      await this.storeStrictQueryList(this.strictQueryDto).then(dataLength => {
        if (dataLength === 0) {
          this.isVisiblePopUp = true;
          return;
        }