From 34b08e1c461f5e08675fcff95525956d7c4bef11 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期四, 17 二月 2022 11:38:48 +0800 Subject: [PATCH] Merge branch 'Phase3' into pollex-dev --- PAMapp/components/Appointment/AppointmentInterviewList.vue | 23 ++++++++++++++--------- 1 files changed, 14 insertions(+), 9 deletions(-) diff --git a/PAMapp/components/Appointment/AppointmentInterviewList.vue b/PAMapp/components/Appointment/AppointmentInterviewList.vue index 8366632..92fe2cc 100644 --- a/PAMapp/components/Appointment/AppointmentInterviewList.vue +++ b/PAMapp/components/Appointment/AppointmentInterviewList.vue @@ -5,28 +5,37 @@ <div class="pam-link-button" @click="addInterview">+�憓�</div> </div> - <InterviewCard :interviewList="displayList.slice(0, 3)"></InterviewCard> + + <InterviewCard :interviewList="displayAppointmentList"></InterviewCard> <section class="text--right mt-30 interview-check-more" v-if="interviewList.length > 3"> - <div class="pam-link-button" @click="readMoreBtn"> - 撅��憭� - <i class="icon-expand"></i> + <div class="pam-link-button" @click="readAllList = !readAllList"> + {{ readAllList ? '憿舐內頛��' : '撅��憭�' }} + <i :class="readAllList ? 'icon-top' : 'icon-down'"></i> </div> </section> </div> </template> <script lang="ts"> -import { Vue, Component, Prop, Watch } from 'nuxt-property-decorator'; +import { Vue, Component, Prop, Watch, namespace } from 'nuxt-property-decorator'; + import { InterviewRecord } from '~/shared/models/appointment.model'; @Component export default class AppointmentInterviewList extends Vue { + @Prop() interviewList!: InterviewRecord[]; appointmentId!: string; displayList: InterviewRecord[] = []; + readAllList = false; + + get displayAppointmentList(): InterviewRecord[] { + return this.readAllList ? this.displayList : this.displayList.slice(0, 3); + } + ////////////////////////////////////////////////////////////////////// @@ -49,10 +58,6 @@ addInterview(): void { this.$router.push(`/appointment/${this.appointmentId}/interview/new`); - } - - readMoreBtn() { - this.$router.push(`/appointment/${this.appointmentId}/interviewList`); } } -- Gitblit v1.8.0