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] || {}