保誠-保戶業務員媒合平台
Benson
2021-12-30 0d13a8e22cfd29bcb4360f2f5d6ed0c2e38e1052
PAMapp/pages/agentInfo/edit/_agentNo.vue
@@ -3,10 +3,7 @@
      <el-row
        type="flex"
        justify="center">
        <UiAvatar
          :size="150"
          :agentNo="agentInfo.agentNo">
        </UiAvatar>
        <EditConsultantAvatar :agentNo="agentInfo.agentNo" :photoBase64.sync="editInfoValue.photoBase64"/>
      </el-row>
      <el-row
        type="flex"
@@ -20,7 +17,7 @@
      <el-row
        type="flex"
        class="pt-10"
        class="pam-paragraph"
        justify="center">
        <el-input class="mdTxt" v-model="editInfoValue.name"></el-input>
      </el-row>
@@ -190,7 +187,7 @@
<script lang="ts">
import { Context } from '@nuxt/types';
import { namespace } from 'nuxt-property-decorator';
import { Vue, Component } from 'vue-property-decorator';
import { Vue, Component, Prop } from 'vue-property-decorator';
import * as _ from "lodash";
import myConsultantService from '~/shared/services/my-consultant.service';
@@ -200,15 +197,14 @@
import { hideReviews } from '~/shared/const/hide-reviews';
import { AgentInfoSetting } from '~/shared/models/account.model';
import { Role } from '~/shared/models/enum/Role';
import { agentExpertList } from '~/shared/const/agent-expert-list';
import { agentCommunicationStyleList } from '~/shared/const/agent-communication-style-list';
const localStorage = namespace('localStorage');
const localStorageTest = namespace('localStorage');
@Component
export default class AgentInfoComponent extends Vue {
  @localStorage.State('current_role')
  @Prop({type:Object ,}) aa!:any;
  @localStorageTest.State('current_role')
  currentRole!:string | null;
  _agentInfoSetting!: AgentInfoSetting;
@@ -234,7 +230,7 @@
    communicationStyle: [] as string[],
    photoBase64       : '',
  };
  communicationStyleList: string[] = agentCommunicationStyleList;
  role           = Role;
  agentExpertList = [
@@ -293,7 +289,7 @@
  mounted(){
    this.setAgentInfo(this.agentInfo);
  }
  /////////////////////////////////////////////////////////////////////////////
  private setAgentInfo(agentInfo: AgentInfo): void {
    const [agentYear, _yearUnit , agentMonth, _monthUnit] =  agentInfo.seniority.split(" ");