Commit a6bb98f6 by 放生的三文鱼

修复未挂载数据

parent e780a0b6
...@@ -115,16 +115,13 @@ const FC = (props) => { ...@@ -115,16 +115,13 @@ const FC = (props) => {
for (const item of (data?.data??[])) { for (const item of (data?.data??[])) {
let index = 0 let index = 0
let newItem = {} let newItem = {}
for (const elementValue of (item.elementValues??[])) { for (const elementValue of (item.elementValuesWithoutTypeAttribute??[])) {
for (const value of elementValue.values) {
if ((newColumns??[]).length > index) { if ((newColumns??[]).length > index) {
const name = newColumns[index].dataIndex const name = newColumns[index].dataIndex
newItem[name] = value newItem[name] = elementValue
} }
index++ index++
} }
}
newTableData.push({...item, ...newItem}) 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