From aa109c6e83f23a3c81ccc4645ce233492364307d Mon Sep 17 00:00:00 2001
From: jack <jack.su@pollex.com.tw>
Date: 星期一, 18 七月 2022 23:06:16 +0800
Subject: [PATCH] [UPDATE] 驗證碼驗證失敗改為回傳401 [BUG] 調整spring security設定

---
 PAMapp/components/Consultant/ConsultantCard.vue |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue
index 9dedd37..6c9bcd2 100644
--- a/PAMapp/components/Consultant/ConsultantCard.vue
+++ b/PAMapp/components/Consultant/ConsultantCard.vue
@@ -1,6 +1,6 @@
 <template>
     <div>
-        <el-row type="flex" class="rowStyle" :class="{'new': !agentInfo.customerViewTime }">
+        <el-row type="flex" class="rowStyle" :class="{'new': !agentInfo.customerViewTime && $route.name !== 'myConsultantList-contactedList' }">
             <el-col class="flex_column pl-5" :xs="5" :sm="3">
                 <UiAvatar
                     :size="50"
@@ -12,12 +12,15 @@
                       class="icon-star pam-icon icon--yellow satisfaction"
                        style="margin-top: 0"></i>
                     <template v-if="isAppointment">
-                      <span v-if="agentInfo.appointmentScore">
-                          {{ agentInfo.appointmentScore }}
-                      </span>
-                      <div class="unfilled text--center "
-                          style="display:flex"
-                          v-else>�憛�<br />皛踵�漲</div>
+                      <template v-if="agentInfo.appointmentStatus === 'closed'
+                                    || agentInfo.appointmentStatus === 'done'">
+                        <span v-if="agentInfo.appointmentScore">
+                            {{ agentInfo.appointmentScore }}
+                        </span>
+                        <div class="unfilled text--center "
+                            style="display:flex"
+                            v-else>�憛�<br />皛踵�漲</div>
+                      </template>
                     </template>
                     <template v-else>
                       <span v-if="agentInfo.avgScore">{{ agentInfo.avgScore }}</span>
@@ -42,7 +45,7 @@
                     @click="isRemoveAgentPopup = true"
                 >蝘駁</div>
                 <div
-                    v-if="notScoreAppointmentYet && (agentInfo.contactStatus !== 'picked' || agentInfo.contactStatus !== 'reserved')"
+                    v-if="notScoreAppointmentYet && (agentInfo.appointmentStatus === 'closed' || agentInfo.appointmentStatus === 'done')"
                     class="text--primary text--underline cursor--pointer xsTxt text--bold"
                     @click="reviewsBtn = true">蝯虫�遛��漲閰��</div>
             </el-col>
@@ -88,7 +91,7 @@
                     </div>
                 </div>
 
-                <div v-if="notScoreAppointmentYet " class="reserved-btn">
+                <div v-if="notScoreAppointmentYet && (agentInfo.appointmentStatus === 'closed' || agentInfo.appointmentStatus === 'done')" class="reserved-btn">
                     <el-button type="primary"
                         @click.native="reviewsBtn = true">蝯虫�遛��漲閰��</el-button>
                 </div>

--
Gitblit v1.8.0