From cdb92bd919127316dc460d3148593efecbc32a46 Mon Sep 17 00:00:00 2001 From: lilu Date: Fri, 2 Dec 2022 16:16:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=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 | 4 ++++ .../main/BookingLedger/list/modules/formLabel.vue | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/main/BookingLedger/list/index.vue b/src/views/main/BookingLedger/list/index.vue index 0a202b0..b495e24 100644 --- a/src/views/main/BookingLedger/list/index.vue +++ b/src/views/main/BookingLedger/list/index.vue @@ -372,6 +372,10 @@ export default { tableReset() { this.ResetType = false + Object.keys(this.formRes).map((item, index) => { + this.formRes[item] = '' + }) + debugger this.init() }, diff --git a/src/views/main/BookingLedger/list/modules/formLabel.vue b/src/views/main/BookingLedger/list/modules/formLabel.vue index 81b79da..718ab55 100644 --- a/src/views/main/BookingLedger/list/modules/formLabel.vue +++ b/src/views/main/BookingLedger/list/modules/formLabel.vue @@ -29,18 +29,18 @@ export default { required: true }, // eslint-disable-next-line vue/require-default-prop - fromRes: { + formRes: { type: Object, required: false } }, watch: { - fromRes: { + formRes: { handler(nval, oval) { console.log('编辑结果发生变化', nval, oval) - if (Object.keys(nval).length > 0 && nval && oval) { - this.value = nval[this.labelData.type] - } + // if (Object.keys(nval).length > 0 && nval && oval) { + // this.value = nval[this.labelData.type] + // } }, deep: true }