From ca9e65f0cf87938c9a0b511831b3c1af54734abe Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 27 Feb 2024 17:03:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=99=E6=80=81=E6=95=B0=E6=8D=AE=E5=85=BC?= =?UTF-8?q?=E5=AE=B9key=E5=92=8Cname=E4=BD=9C=E4=B8=BA=E5=88=97=E5=90=8D?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/bigscreen/designer/components/datasourcePicker.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bigscreen/designer/components/datasourcePicker.vue b/packages/bigscreen/designer/components/datasourcePicker.vue index e0ac65ab..0a76bf3d 100644 --- a/packages/bigscreen/designer/components/datasourcePicker.vue +++ b/packages/bigscreen/designer/components/datasourcePicker.vue @@ -79,13 +79,13 @@ export default { const columns = [] this.options.staticData.map((row, i) => { const prop = `c${i || ""}` - this.colConfigs.push({label: row[columnProp], prop}) + this.colConfigs.push({label: row[columnProp] || row.key, prop}) Object.entries(row).map(([k, v]) => { if (/^v/.test(k)) { const item = this.tableData[k.substring(1) || 0] || {} item[prop] = v this.tableData[k.substring(1) || 0] = item - } else if (k != columnProp) { + } else if (![columnProp, 'key'].includes(k)) { const index = columns.findIndex(e => k == e) if (index > -1) { const item = this.tableData[index] || {}