From 387523be22e05114d850d2e0fe73c368f471e3d7 Mon Sep 17 00:00:00 2001 From: Jack <jack.su@pollex.com.tw> Date: 星期四, 20 一月 2022 09:26:38 +0800 Subject: [PATCH] [BUG] 沒有結案資訊會導致出錯的問題修復 --- PAMapp/components/Interview/InterviewMsg.vue | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/PAMapp/components/Interview/InterviewMsg.vue b/PAMapp/components/Interview/InterviewMsg.vue index 420a292..eaffa87 100644 --- a/PAMapp/components/Interview/InterviewMsg.vue +++ b/PAMapp/components/Interview/InterviewMsg.vue @@ -14,7 +14,7 @@ <el-input type="textarea" - autosize="true" + :autosize="true" placeholder="蝝赤�" resize="none" v-model="isInterviewTxt"> @@ -41,16 +41,23 @@ </div> </template> <script lang="ts"> -import { Vue, Component, Prop, PropSync, Emit, Action } from 'nuxt-property-decorator'; +import { Vue, Component, Prop, PropSync, Emit, Action, namespace } from 'nuxt-property-decorator'; import appointmentService from '~/shared/services/appointment.service'; import { Appointment, ToInformAppointment } from '~/shared/models/appointment.model'; +import { AgentInfo } from '~/shared/models/agent-info.model'; + +const loginStore = namespace('login.store'); +const appointmentStore = namespace('appointment.store'); @Component export default class InterviewMsg extends Vue { @Action storeMyAppointmentList!: () => Promise<number>; + + @appointmentStore.Action + updateAppointmentDetail!: (id: number) => Appointment; @PropSync('isVisible') dialogVisible!: boolean; @@ -65,6 +72,9 @@ closeDialog() { return; } + + @loginStore.State + loginConsultant!: AgentInfo; isShowSuccessAlert = false; @@ -82,6 +92,7 @@ }; appointmentService.informAppointment(appointmentInformation).then((_) => { this.isShowSuccessAlert = true ; + this.updateAppointmentDetail(this.client.id); }); } @@ -92,7 +103,7 @@ } get isInterviewTxt() : string{ - return this.interviewTxt = "�憟踝��靽���像����憿批��" + "agentName"+"嚗�����������銝膩������蝜�"+"\n"+"隞乩����閰梯�Ⅳ/Email嚗�"+"\n"+"agentPhone"+"\n"+"agentEmail"+"\n"+"�甇斗���靘選����蝜恬�����" + return this.interviewTxt = "�憟踝��靽���像����憿批��" + this.loginConsultant?.name + "嚗�����������銝膩������蝜�"+"\n"+"隞乩����閰梯�Ⅳ/Email嚗�"+"\n" + this.loginConsultant?.phoneNumber + "\n" + this.loginConsultant?.email + "\n"+"�甇斗���靘選����蝜恬�����" } } -- Gitblit v1.8.0