From cc72824e89647085f799b490dd5bc660ce9ec18c Mon Sep 17 00:00:00 2001 From: "271556543@qq.com" <271556543@qq.com> Date: Fri, 30 Sep 2022 14:53:00 +0800 Subject: [PATCH] 2022-9-30 --- pages/list/list.vue | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/pages/list/list.vue b/pages/list/list.vue index c5b1838..7399ca9 100644 --- a/pages/list/list.vue +++ b/pages/list/list.vue @@ -99,7 +99,7 @@ - + @@ -181,9 +181,10 @@ datePick(e) { console.log(e); this.select.page = 1 - this.select.start_time = e.startDate + this.select.start_time = `${e.startDate} 00:00:00` this.select.end_time = `${e.endDate} 23:59:59` this.nursingList = [] + console.log(this.select); this.getList() }, @@ -195,18 +196,16 @@ this.$u.debounce(this.getList, 1000) }, async getList() { - this.$u.throttle(async () => { - let res = await this.$u.api.nurseList(this.select) - if (res.data.length > 0 && res.data) { - this.nursingList.push(...res.data) - this.status = 'loadmore' - } else { - this.status = 'nomore' - if (this.select.page > 1) { - this.select.page-- - } + let res = await this.$u.api.nurseList(this.select) + if (res.data.length > 0 && res.data) { + this.nursingList.push(...res.data) + this.status = 'loadmore' + } else { + this.status = 'nomore' + if (this.select.page > 1) { + this.select.page-- } - }) + } }, toThere(item) {