From eab320d5072cb29bef39c831970e506ab8d4c309 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期三, 16 二月 2022 15:27:01 +0800 Subject: [PATCH] fix#135491: [ 顧問管理流程 ] 顧問已更改個人資訊的手機號碼後,發送約訪通知給客戶的通知內容中,手機號碼依然沒有更新 --- PAMapp/store/login.store.ts | 5 +++++ PAMapp/pages/agentInfo/edit/_agentNo.vue | 6 +++++- 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/PAMapp/pages/agentInfo/edit/_agentNo.vue b/PAMapp/pages/agentInfo/edit/_agentNo.vue index a79b577..1ed9e6c 100644 --- a/PAMapp/pages/agentInfo/edit/_agentNo.vue +++ b/PAMapp/pages/agentInfo/edit/_agentNo.vue @@ -260,12 +260,15 @@ import { taiwanCities } from '~/shared/const/taiwan-cities'; const localStorageTest = namespace('localStorage'); +const loginStore = namespace('login.store'); @Component export default class AgentInfoComponent extends Vue { @localStorageTest.State('current_role') - currentRole!:string | null; + + @loginStore.Action + updateConsultantDetail!: (agentInfo: AgentInfo) => AgentInfo; _agentInfoSetting!: AgentInfoSetting; agentInfo! : AgentInfo @@ -391,6 +394,7 @@ serveArea: this.editInfoValue.serveArea.join('��'), } accountSettingService.editAgentInfoSetting(editSettingInfo).then((res: AgentInfoSetting) => { + this.updateConsultantDetail(editSettingInfo.agentNo); this.isInfoUpdate = true; }); } diff --git a/PAMapp/store/login.store.ts b/PAMapp/store/login.store.ts index a26fc2f..8ca0fae 100644 --- a/PAMapp/store/login.store.ts +++ b/PAMapp/store/login.store.ts @@ -25,4 +25,9 @@ return await myConsultantService.getConsultantDetail(agentNo).then((res) => res); } + @Action({ commit: 'SET_LOGIN_CONSULTANT' }) + async updateConsultantDetail(agentNo: string): Promise<AgentInfo> { + return await myConsultantService.getConsultantDetail(agentNo).then((res) => res); + } + } -- Gitblit v1.8.0