From 17c4bad56fd902184f7c037dbdb22fd63289d1e7 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期二, 25 一月 2022 16:21:42 +0800 Subject: [PATCH] fixed: TODO#134613 [顧問管理流程] 搜尋欄位清空 , 未顯示原本的約訪中列表 --- PAMapp/pages/myAppointmentList/closedList.vue | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/PAMapp/pages/myAppointmentList/closedList.vue b/PAMapp/pages/myAppointmentList/closedList.vue index 4802f56..42a54e1 100644 --- a/PAMapp/pages/myAppointmentList/closedList.vue +++ b/PAMapp/pages/myAppointmentList/closedList.vue @@ -5,16 +5,15 @@ placeholder="隢撓���摮�" class="mb-10 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> - <div class="closed-appointment__tag-filter"> + <div class="closed-appointment__tag-filter mb-10"> <el-radio v-model="selectedClosedCategory" :label="'all'" border>��({{ itemSum }})</el-radio> <el-radio v-model="selectedClosedCategory" :label="'done'" border>��漱({{ doneItemSum }})</el-radio> <el-radio v-model="selectedClosedCategory" :label="'closed'" border>���漱({{ closedItemSum }})</el-radio> @@ -109,9 +108,13 @@ } else { this.filterList = this.closedList; } - this.filterList = this.filterList.filter(item => { - return item?.name?.match(this.keyWord) || item?.requirement?.match(this.keyWord) - }) + + if (this.keyWord) { + this.filterList = this.filterList.filter(item => { + return item?.name?.match(this.keyWord) || item?.requirement?.match(this.keyWord) + }) + } + } changePage(pageList: Appointment[]): void { -- Gitblit v1.8.0