From 34b07249c7e7a9f487a6bc08f022db6bcb925d42 Mon Sep 17 00:00:00 2001
From: Jack <jack.su@pollex.com.tw>
Date: 星期四, 20 一月 2022 14:46:35 +0800
Subject: [PATCH] [UPDATE] 調整客戶填寫滿意度的API [UPDATE] 調整產生滿意度調查資料的時機點,改為每次進到結案狀態就新增滿意度資料 [UPDATE] 調整結案API,新增和修改都使用同一支API由後端判斷為新增或修改 [BUG] 當沒有任何一筆滿意度的時候取得顧問平均分數會發生錯誤的問題修正

---
 PAMapp/components/QuickFilter/QuickFilterConsultantList.vue |   28 +++++++++++++++++-----------
 1 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/PAMapp/components/QuickFilter/QuickFilterConsultantList.vue b/PAMapp/components/QuickFilter/QuickFilterConsultantList.vue
index a5c407d..71555ba 100644
--- a/PAMapp/components/QuickFilter/QuickFilterConsultantList.vue
+++ b/PAMapp/components/QuickFilter/QuickFilterConsultantList.vue
@@ -80,14 +80,16 @@
 </template>
 
 <script lang="ts">
-import { ElCarousel } from 'element-ui/types/carousel';
-import { Vue, Component, Prop } from 'vue-property-decorator';
 import { Consultant } from '~/shared/models/consultant.model';
+import { ElCarousel } from 'element-ui/types/carousel';
 import { hideReviews } from '~/shared/const/hide-reviews';
+import { Vue, Component, Prop } from 'vue-property-decorator';
 
 @Component
 export default class QuickFilterConsultantList extends Vue {
-    @Prop() consultantList!: Consultant[];
+    @Prop()
+    consultantList!: Consultant[];
+
     isVisiblePopUp = false;
     popUpTxt = '����憿批��';
     startPosition = 0;
@@ -96,14 +98,7 @@
     endYPosition = 0;
     hideReviews = hideReviews ;
 
-    openPopUp(txt: string) {
-        this.popUpTxt = txt;
-        this.isVisiblePopUp = true;
-    }
-
-    showAgentDetail(agentNo: string): void {
-        this.$router.push(`/agentInfo/${agentNo}`);
-    }
+    //////////////////////////////////////////////////////////////////
 
     moveStart(event: TouchEvent) {
         this.startPosition = event.changedTouches[0].clientX;
@@ -125,6 +120,17 @@
         }
     }
 
+    //////////////////////////////////////////////////////////////////
+
+    openPopUp(txt: string) {
+        this.popUpTxt = txt;
+        this.isVisiblePopUp = true;
+    }
+
+    showAgentDetail(agentNo: string): void {
+        this.$router.push(`/agentInfo/${agentNo}`);
+    }
+
     nextCard() {
         (this.$refs.carouselRef as ElCarousel).next();
     }

--
Gitblit v1.8.0