From 18b36e7a0c3441b36a9afc26d40192d46fafb5f8 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 22 Nov 2024 10:14:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/index.vue | 17 +++----- src/views/record/components/addRecord.vue | 5 ++- src/views/record/components/addRecordLink.vue | 5 ++- src/views/record/index.vue | 43 ++++++++++++++----- 4 files changed, 45 insertions(+), 25 deletions(-) diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index fd76fa6..5b60019 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -59,24 +59,17 @@ }, methods: { async getList() { - this.nowDate = this.$moment().format("YYYY-MM-DD") - this.startDate = this.$moment('1900-01-01').format("YYYY-MM-DD") - console.log("this.nowDate",this.nowDate,this.startDate) + // this.nowDate = this.$moment().format("YYYY-MM-DD") + // this.nowDate = this.$moment().add(1, 'months').format('YYYY-MM-DD') + // this.startDate = this.$moment('1900-01-01').format("YYYY-MM-DD") + // console.log("this.nowDate",this.nowDate,this.startDate) const res = await index({ page_size: 9999, page: 1, table_name: 'records', is_auth: 1, catalogs_id: '', - filter:[{ - key:'end_date', - op:'range', - value:[this.startDate,this.nowDate] - },{ - key:'status', - op:'eq', - value:0 - }] + records_status:1 }) this.list.dateTotal = res.total }, diff --git a/src/views/record/components/addRecord.vue b/src/views/record/components/addRecord.vue index c093203..d9282d4 100644 --- a/src/views/record/components/addRecord.vue +++ b/src/views/record/components/addRecord.vue @@ -116,7 +116,7 @@ @@ -160,6 +160,9 @@ id: 0, name: '正常' }, { + id: 3, + name: '已结束' + },{ id: 1, name: '已到期' }, { diff --git a/src/views/record/components/addRecordLink.vue b/src/views/record/components/addRecordLink.vue index 291cf36..153b29c 100644 --- a/src/views/record/components/addRecordLink.vue +++ b/src/views/record/components/addRecordLink.vue @@ -148,7 +148,10 @@ statusList: [{ id: 0, name: '正常' - }, { + }, { + id: 3, + name: '已结束' + },{ id: 1, name: '已到期' }, { diff --git a/src/views/record/index.vue b/src/views/record/index.vue index bdf1baf..fa1f1dc 100644 --- a/src/views/record/index.vue +++ b/src/views/record/index.vue @@ -51,6 +51,12 @@ @change="changeEnd" v-model="select.endRange" type="daterange" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="结束日期" end-placeholder=""> + +
+ + + +
查询 @@ -87,7 +93,7 @@