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 }