From 0806c3ab46e49711e64e4bc793c12753fb5fb000 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期一, 24 一月 2022 16:24:43 +0800
Subject: [PATCH] add#134746: 客戶收到簡訊通知"有過久無回應的顧問",點擊簡訊/email url 後,進入此流程(belong to TODO#134717: [客戶] 取消預約再改選其他顧問(前端))

---
 PAMapp/store/localStorage.ts |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/PAMapp/store/localStorage.ts b/PAMapp/store/localStorage.ts
index 9ad38e9..a08b69a 100644
--- a/PAMapp/store/localStorage.ts
+++ b/PAMapp/store/localStorage.ts
@@ -1,6 +1,7 @@
 import { Module, Mutation, VuexModule ,Action } from 'vuex-module-decorators';
 import { Role } from '~/shared/models/enum/Role';
 import { Selected } from '~/shared/models/quick-filter.model';
+import { StrictQueryParams } from '~/shared/models/strict-query.model';
 @Module
 export default class LocalStorage extends VuexModule {
   id_token = localStorage.getItem('id_token');
@@ -10,6 +11,7 @@
   recommendConsultantItem = localStorage.getItem('recommendConsultantItem');
   appointmentIdFromMsg = localStorage.getItem('appointmentIdFromMsg');
   satisfactionIdFromMsg = localStorage.getItem('satisfactionIdFromMsg');
+  notContactAppointmentIdFromMsg = localStorage.getItem('notContactAppointmentIdFromMsg');
 
   get idToken(): string|null {
     return this.id_token;
@@ -41,6 +43,10 @@
 
   get currentSatisfactionIdFromMsg(): string|null {
     return this.satisfactionIdFromMsg;
+  }
+
+  get currentNotContactAppointmentIdFromMsg(): string|null {
+    return this.notContactAppointmentIdFromMsg;
   }
 
   @Mutation storageIdToken(token: string): void {
@@ -78,6 +84,11 @@
     this.satisfactionIdFromMsg = localStorage.getItem('satisfactionIdFromMsg');
   }
 
+  @Mutation storageNotContactAppointmentIdFromMsg(id: string) {
+    localStorage.setItem('notContactAppointmentIdFromMsg', id);
+    this.notContactAppointmentIdFromMsg = id;
+  }
+
   @Mutation storageClear(): void {
     localStorage.removeItem('myRequests');
     localStorage.removeItem('userInfo');
@@ -112,6 +123,16 @@
     this.appointmentIdFromMsg = localStorage.getItem('satisfactionIdFromMsg');
   }
 
+  @Mutation storageClearNotContactAppointmentIdFromMsg() {
+    localStorage.removeItem('notContactAppointmentIdFromMsg');
+    this.appointmentIdFromMsg = localStorage.getItem('notContactAppointmentIdFromMsg');
+  }
+
+  @Mutation storageStrickQueryItem(queryItem: StrictQueryParams): void {
+    localStorage.setItem('recommendConsultantItem', JSON.stringify(queryItem));
+    this.recommendConsultantItem = localStorage.getItem('recommendConsultantItem');
+  }
+
   @Action actionStorageClear(): void {
     this.context.commit("storageClear");
   }

--
Gitblit v1.8.0