Commit a6bb98f6 by 放生的三文鱼

修复未挂载数据

parent e780a0b6
......@@ -115,16 +115,13 @@ const FC = (props) => {
for (const item of (data?.data??[])) {
let index = 0
let newItem = {}
for (const elementValue of (item.elementValues??[])) {
for (const value of elementValue.values) {
for (const elementValue of (item.elementValuesWithoutTypeAttribute??[])) {
if ((newColumns??[]).length > index) {
const name = newColumns[index].dataIndex
newItem[name] = value
newItem[name] = elementValue
}
index++
}
}
newTableData.push({...item, ...newItem})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment