From 57dc3fc3fcd7c33e2cdd9bb7ba40028dd60faa17 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期四, 09 十二月 2021 17:00:16 +0800
Subject: [PATCH] Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM

---
 PAMapp/pages/myConsultantList.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/PAMapp/pages/myConsultantList.vue b/PAMapp/pages/myConsultantList.vue
index ca2fb20..25fea68 100644
--- a/PAMapp/pages/myConsultantList.vue
+++ b/PAMapp/pages/myConsultantList.vue
@@ -69,10 +69,12 @@
     filterContactedList() {
         this.consultantList = (this.myConsultantList || [])
                 .filter(item => item.contactStatus !== 'contacted')
-                .sort((a, b) => a.updateTime > b.updateTime ? -1 : 1);
+                .map((item) => ({ ...item, formatDate: new Date(item.updateTime)}))
+                .sort((preItem, nextItem) => +nextItem.formatDate - +preItem.formatDate );
         this.contactedList = (this.myConsultantList || [])
                 .filter(item => item.contactStatus === 'contacted')
-                .sort((a, b) => a.updateTime > b.updateTime ? -1 : 1);
+                .map((item) => ({ ...item, formDate: new Date(item.updateTime)}))
+                .sort((preItem, nextItem) => +nextItem.formDate - +preItem.formDate);
     }
 
 }

--
Gitblit v1.8.0