From 40f5938230b4da2045eb170f92ba6967be1dac5a Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期三, 23 二月 2022 18:21:37 +0800
Subject: [PATCH] fixed# [加入顧問清單API] 變更傳給後端的時間格式為ISO string

---
 PAMapp/pages/questionnaire/_agentNo.vue  |    2 +-
 PAMapp/components/AddAndReservedBtns.vue |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/PAMapp/components/AddAndReservedBtns.vue b/PAMapp/components/AddAndReservedBtns.vue
index b42bee8..14d3cfb 100644
--- a/PAMapp/components/AddAndReservedBtns.vue
+++ b/PAMapp/components/AddAndReservedBtns.vue
@@ -49,7 +49,7 @@
         if (!this.isUserLogin) {
           item = {
             ...item,
-            updateTime: new Date().toString()
+            updateTime: new Date().toISOString()
           };
         }
         this.addToMyConsultantList(item).then(addOk => {
diff --git a/PAMapp/pages/questionnaire/_agentNo.vue b/PAMapp/pages/questionnaire/_agentNo.vue
index 7134a4d..d81c21e 100644
--- a/PAMapp/pages/questionnaire/_agentNo.vue
+++ b/PAMapp/pages/questionnaire/_agentNo.vue
@@ -433,7 +433,7 @@
       if (this.isEditBtn) {
         this.editAppointmentDemand();
       } else {
-        queryConsultantService.addFavoriteConsultant([{ agentNo: this.$route.params.agentNo, createdTime: new Date().toString()}]).then(res => this.sentAppointmentDemand());
+        queryConsultantService.addFavoriteConsultant([{ agentNo: this.$route.params.agentNo, createdTime: new Date().toISOString()}]).then(res => this.sentAppointmentDemand());
       }
        const editSettingInfo: UserSetting = {
           name: this.myRequest.name,

--
Gitblit v1.8.0