From 6d220590f78e6c95ab6dc284019248429564517f Mon Sep 17 00:00:00 2001 From: lilu Date: Thu, 13 Apr 2023 15:23:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B0=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/BookingLedger/list/index.vue | 49 ++++++++++--------- .../BookingLedger/list/modules/formLabel.vue | 7 +-- 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/src/views/main/BookingLedger/list/index.vue b/src/views/main/BookingLedger/list/index.vue index a38b706..a9bd006 100644 --- a/src/views/main/BookingLedger/list/index.vue +++ b/src/views/main/BookingLedger/list/index.vue @@ -12,7 +12,7 @@ :lg="6" :xl="4" :key="findex" - v-if="(findex < 4 && !advanced) || advanced" + v-show="(findex < 4 && !advanced) || advanced" class="from-label" > @@ -58,7 +58,6 @@ {{ advanced ? '收起' : '更多' }} - @@ -66,26 +65,6 @@ - @@ -745,7 +724,7 @@ export default { this.formAllData = JSON.parse(JSON.stringify(initData.condAllData)) this.fromTableAllData = JSON.parse(JSON.stringify(initData.columnsAllData)) this.tableHeight = document.body.clientHeight - 230 - this.getList({}, true) + // this.getList({}, true) this.getConfigUser(true) this.getCarrier() }, @@ -1091,6 +1070,8 @@ export default { this.gridOptions.pagerConfig.pageSize = JSON.parse(data.configJson).pageSize this.getList({}, true, 'add') this.$forceUpdate() + } else { + this.getList({}, true) } }, @@ -1147,8 +1128,9 @@ export default { toggleAdvanced() { this.advanced = !this.advanced + this.$forceUpdate(); let start = new Date().getTime() - console.log('== 点击展开 ==') + console.log('== 点击展开 ==', start) if (!this.advanced) { const len = this.formData.length % 4 if (this.formData.length === 4 || this.formData.length > 4) { @@ -2561,4 +2543,23 @@ export default { width: 100%; text-align: left; } + +// .form-box{ +// .form-main{ +// float: left; +// margin-right: 10px; +// display: flex; +// width: 16%; +// overflow: hidden; +// .form-label{ +// display: inline-block; +// margin-right: 10px; +// } +// .form-content{ +// flex: 1; +// } +// } +// .more-btn{ +// } +// } diff --git a/src/views/main/BookingLedger/list/modules/formLabel.vue b/src/views/main/BookingLedger/list/modules/formLabel.vue index e9845cc..d507578 100644 --- a/src/views/main/BookingLedger/list/modules/formLabel.vue +++ b/src/views/main/BookingLedger/list/modules/formLabel.vue @@ -66,7 +66,7 @@ :dropdown-match-select-width="false" :dropdown-style="{ width: '200px' }" v-model="value" - option-label-prop="value" + option-label-prop="label" @select="completeSelect" @focus="completeChangeFirst" @change="debounce(completeChange, 300, $event)" @@ -80,7 +80,7 @@ -->