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] =?UTF-8?q?v1.9=20=E4=BC=98=E5=8C=96=E8=90=A5=E4=B8=9A?= =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E9=A1=B5=E9=9D=A2=E6=9F=A5=E8=AF=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=20=E6=97=A0=E6=B3=95=E8=BE=93=E5=85=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 e49621b66..d8560fbbf 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) }