From 4ce6877033d8a074f0b84b5ed00aa794230be787 Mon Sep 17 00:00:00 2001 From: lilu Date: Fri, 2 Dec 2022 14:19:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/BookingLedger/list/index.vue | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/views/main/BookingLedger/list/index.vue b/src/views/main/BookingLedger/list/index.vue index 77b58a0..6e0f9d6 100644 --- a/src/views/main/BookingLedger/list/index.vue +++ b/src/views/main/BookingLedger/list/index.vue @@ -34,12 +34,8 @@ > 查询 重置 - 多提单号查询 - + 多提单号查询 + {{ advanced ? '收起查询' : '更多查询' }} @@ -260,7 +256,7 @@ export default { } this.gridOptions.data = [] this.getList(queryParam) - if (queryParam == {}) { + if (Object.keys(queryParam).length === 0) { this.getFormData() } this.getTableList() @@ -299,8 +295,9 @@ export default { this.formMoreData = moreData } this.formData.map((item, index) => { - this.$set(this.formRes, item.label, '') + this.$set(this.formRes, item.label, this.formRes[item.label] || '') }) + this.getList(this.formRes) console.log('=== 当前数据 ===', this.formRes, this.formData, this.formMoreData) const len = this.formData.length % 4 if (len > 2) {