From 04b25b25c477309298e1d7433ddb14bb8e57778d Mon Sep 17 00:00:00 2001
From: charlie <charlie@lvguanqingdeMacBook-Pro.local>
Date: 星期六, 22 一月 2022 12:17:58 +0800
Subject: [PATCH] Fixed: 修正預約資訊中的性別icon顯示判斷

---
 PAMapp/components/Interview/InterviewMsg.vue |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/PAMapp/components/Interview/InterviewMsg.vue b/PAMapp/components/Interview/InterviewMsg.vue
index 7ed83ca..8d6de8d 100644
--- a/PAMapp/components/Interview/InterviewMsg.vue
+++ b/PAMapp/components/Interview/InterviewMsg.vue
@@ -9,7 +9,6 @@
         <div class="subTitle msg-dialog-title">蝝赤�</div>
       <div class="send-msg-nav">
         <div class="mdTxt">��摰�</div>
-        <div class="mdTxt text--primary text--underline">蝺刻摩</div>
       </div>
 
       <el-input
@@ -24,6 +23,8 @@
         <div class="mdTxt mt-30 mb-10">����赤��挾</div>
         <DateTimePicker
           @changeDateTime="interviewTime = $event"
+          :isPastDateDisabled="true"
+          :defaultValue="defaultValue"
         ></DateTimePicker>
       </div>
 
@@ -50,12 +51,16 @@
 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 +70,9 @@
 
     @Prop()
     client!: Appointment;
+
+    @Prop()
+    defaultValue!: string;
 
     @Emit('closeDialog')
     closeDialog() {
@@ -94,6 +102,7 @@
       };
       appointmentService.informAppointment(appointmentInformation).then((_) => {
         this.isShowSuccessAlert = true ;
+        this.updateAppointmentDetail(this.client.id);
       });
     }
 

--
Gitblit v1.8.0