保誠-保戶業務員媒合平台
Tomas
2022-01-21 a7b45caf5b3784f65ba82793d87f5ffb202fca1e
PAMapp/components/Client/ClientCard.vue
@@ -257,6 +257,7 @@
    viewAppointmentDetail(): void {
      this.getAppointmentDetail(this.client.id).then((_) => {
        this.readAppointment();
        this.$router.push(`/appointment/${this.client.id}`);
      });
    }
@@ -289,7 +290,13 @@
    }
    closeInformDialog(): void {
      const unread = !this.client.consultantReadTime;
        this.readAppointment();
        this.isEdit = false;
        this.clearAppointmentIdFromMsg();
    }
    private readAppointment(): void {
        const unread = !this.client.consultantReadTime;
        if (unread) {
            appointmentService.recordRead(this.client.id).then((_) => {
                const updatedClient = {...this.client};
@@ -297,8 +304,6 @@
                this.updateMyAppointmentList(updatedClient);
            });
        };
        this.isEdit = false;
        this.clearAppointmentIdFromMsg();
    }
    private clearAppointmentIdFromMsg() {