From f8858063c1daa9f9255206759bd11a30ee19980a Mon Sep 17 00:00:00 2001 From: Benson <benson@pollex.com> Date: 星期四, 30 十二月 2021 17:53:51 +0800 Subject: [PATCH] [Update] : 顧問頭像編輯 測試 --- PAMapp/pages/agentInfo/edit/_agentNo.vue | 20 ++++++++------------ 1 files changed, 8 insertions(+), 12 deletions(-) diff --git a/PAMapp/pages/agentInfo/edit/_agentNo.vue b/PAMapp/pages/agentInfo/edit/_agentNo.vue index c1e9801..67235be 100644 --- a/PAMapp/pages/agentInfo/edit/_agentNo.vue +++ b/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(" "); -- Gitblit v1.8.0