From 9cb6d5f92ad7aeda45ad1fe6482dcfc63d17be2b Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期一, 06 十二月 2021 12:35:26 +0800 Subject: [PATCH] Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM --- PAMapp/store/index.ts | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/PAMapp/store/index.ts b/PAMapp/store/index.ts index a117eb2..4fe433a 100644 --- a/PAMapp/store/index.ts +++ b/PAMapp/store/index.ts @@ -1,5 +1,5 @@ import { Module, VuexModule, Mutation, Action } from 'vuex-module-decorators' -import { ClientInfo, getMyAppointmentList, getMyReviewLog } from '~/assets/ts/api/appointment'; +import { ClientInfo, getMyAppointmentList, getMyReviewLog, allAppointmentsView } from '~/assets/ts/api/appointment'; // import * as consultant from '~/assets/ts/api/consultant'; import { recommend, AgentOfStrictQuery, getFavoriteConsultant, addFavoriteConsultant, deleteConsultant, strictQuery } from '~/assets/ts/api/consultant'; import { Consultants } from '~/assets/ts/models/consultant.model'; @@ -105,9 +105,10 @@ } @Action - storeMyAppointmentList() { - getMyAppointmentList().then((data) => { - this.context.commit('updateMyAppointmentList', data) + async storeMyAppointmentList() { + return await getMyAppointmentList().then((data) => { + this.context.commit('updateMyAppointmentList', data); + return data.filter(item => !item.consultantViewTime || item.consultantViewTime === null).length }); } -- Gitblit v1.8.0