From 9c74f31c6e41de2bb2f6175a290f42d91968844e Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期二, 11 一月 2022 14:24:17 +0800 Subject: [PATCH] update: TODO#132493 客戶端收到簡訊/EMAIL後進行滿意度評分 --- PAMapp/store/localStorage.ts | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/PAMapp/store/localStorage.ts b/PAMapp/store/localStorage.ts index 6f1e9b9..a2c1bb9 100644 --- a/PAMapp/store/localStorage.ts +++ b/PAMapp/store/localStorage.ts @@ -9,6 +9,7 @@ quickFilterSelectedItem = localStorage.getItem('quickFilter'); recommendConsultantItem = localStorage.getItem('recommendConsultantItem'); appointmentIdFromMsg = localStorage.getItem('appointmentIdFromMsg'); + satisfactionIdFromMsg = localStorage.getItem('satisfactionIdFromMsg'); get idToken(): string|null { return this.id_token; @@ -36,6 +37,10 @@ get currentAppointmentIdFromMsg(): string|null { return this.appointmentIdFromMsg; + } + + get currentSatisfactionIdFromMsg(): string|null { + return this.satisfactionIdFromMsg; } @Mutation storageIdToken(token: string): void { @@ -68,6 +73,11 @@ this.appointmentIdFromMsg = localStorage.getItem('appointmentIdFromMsg'); } + @Mutation storageSatisfactionIdFromMsg(id: string) { + localStorage.setItem('satisfactionIdFromMsg', id); + this.satisfactionIdFromMsg = localStorage.getItem('satisfactionIdFromMsg'); + } + @Mutation storageClear(): void { localStorage.removeItem('myRequests'); localStorage.removeItem('userInfo'); @@ -95,6 +105,11 @@ this.appointmentIdFromMsg = localStorage.getItem('appointmentIdFromMsg'); } + @Mutation storageClearSatisfactionIdFromMsg() { + localStorage.removeItem('satisfactionIdFromMsg'); + this.appointmentIdFromMsg = localStorage.getItem('satisfactionIdFromMsg'); + } + @Action actionStorageClear(): void { this.context.commit("storageClear"); } -- Gitblit v1.8.0