From b569c2254c1f870e174581c0825436a99c528097 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期一, 24 一月 2022 11:53:46 +0800 Subject: [PATCH] update: [滿意度通知] route query parameter - 清除方式調整 --- PAMapp/components/ReviewRecords/ReviewRecords.vue | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/PAMapp/components/ReviewRecords/ReviewRecords.vue b/PAMapp/components/ReviewRecords/ReviewRecords.vue index cee303e..5258e5e 100644 --- a/PAMapp/components/ReviewRecords/ReviewRecords.vue +++ b/PAMapp/components/ReviewRecords/ReviewRecords.vue @@ -11,11 +11,11 @@ </section> <div class="user-reviews-page"> - <template v-if="myAppointmentReviewLogList.length"> + <template v-if="reviewLogList.length"> <section class="user-reviews-content"> <div class="user-reviews-card" - v-for="(appointmentLog, index) in myAppointmentReviewLogList" + v-for="(appointmentLog, index) in reviewLogList" :key="index"> <div class="user-reviews-card-content" v-if="isUserLogin"> �撠�<span class="mdTxt">{{ ` ${appointmentLog.agentName} ` }}</span>���� <UiReviewScore :score="appointmentLog.score" /> 閰嚗� @@ -54,19 +54,20 @@ </template> <script lang="ts"> -import { Vue, Component, Prop } from 'nuxt-property-decorator'; - -import authService from '~/shared/services/auth.service'; import { AppointmentLog } from '~/shared/models/appointment.model'; +import { Vue, Component, Prop, Watch } from 'nuxt-property-decorator'; +import authService from '~/shared/services/auth.service'; @Component export default class ReviewRecords extends Vue{ @Prop() - myAppointmentReviewLogList!: AppointmentLog[]; + reviewLogList!: AppointmentLog[]; isUserLogin = false; + ////////////////////////////////////////////////////////////////////// + mounted() { this.isUserLogin = authService.isUserLogin(); } -- Gitblit v1.8.0