From ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:26:15 +0800 Subject: [PATCH] TODO#139888 嚴選配對 - 文案修改 --- PAMapp/pages/myAppointmentList/contactedList.vue | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/PAMapp/pages/myAppointmentList/contactedList.vue b/PAMapp/pages/myAppointmentList/contactedList.vue index 805b000..5be7e6f 100644 --- a/PAMapp/pages/myAppointmentList/contactedList.vue +++ b/PAMapp/pages/myAppointmentList/contactedList.vue @@ -5,12 +5,11 @@ placeholder="隢撓���摮�" class="mb-30 pam-clientReserved-input" v-model="keyWord" - @keyup.enter.native="search" + @input="search" > <i slot="suffix" class="icon-search search cursor--pointer" - @click="search" ></i> </el-input> @@ -109,9 +108,13 @@ ////////////////////////////////////////////////////////////////////// search(): void { - this.filterList = this.contactedList.filter(item => { - return item?.name?.match(this.keyWord) || item?.requirement?.match(this.keyWord) - }) + if (this.keyWord) { + this.filterList = this.contactedList.filter(item => { + return item?.name?.match(this.keyWord) || item?.requirement?.match(this.keyWord) + }) + } else { + this.filterList = this.contactedList; + } } changePage(pageList: Appointment[]): void { -- Gitblit v1.8.0