From 0606c3d8a6e1990dd53d4ab9651ecef04b4bb859 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Fri, 19 Sep 2025 14:56:11 +0800 Subject: [PATCH] v1.9 优化营业报表页面查询条件 无法输入bug --- src/components/report/commonReportTable.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/report/commonReportTable.vue b/src/components/report/commonReportTable.vue index e49621b..d8560fb 100644 --- a/src/components/report/commonReportTable.vue +++ b/src/components/report/commonReportTable.vue @@ -7,8 +7,12 @@ - +
+ +
@@ -157,6 +161,12 @@ export default { } const { data } = await listReportCustomComponentCondition(params) component.conditions = data + // 确保每个条件项都包含响应式的 value 字段,避免 v-model 绑定后不显示 + component.conditions.forEach(cond => { + if (!Object.prototype.hasOwnProperty.call(cond, 'value')) { + this.$set(cond, 'value', '') + } + }) } catch (error) { console.error('Failed to load conditions:', error) } -- libgit2 0.21.4