diff --git a/src/pages/Measure/View.jsx b/src/pages/Measure/View.jsx index e87fd96..5f1b24d 100755 --- a/src/pages/Measure/View.jsx +++ b/src/pages/Measure/View.jsx @@ -10,45 +10,42 @@ export const View = memo(({ columns, item }) => !item || !columns?.length ? ( ) : ( - {columns.map((cols, j) => { - let rowPosition = 0 - let columnPosition = 1 + j * 2 - return cols.map((column) => { - rowPosition++ - return ( - - - {column.title} - + {columns.map((cols, i) => { + const columnPosition = 1 + i * 2 + return cols.map((column, j) => ( + + + {column.title} + - - {column.render ? ( - - {column.render(item[column.dataIndex])} - - ) : ( -

- {item[column.dataIndex]} -

- )} -
-
- )}) + + {column.render ? ( + + {column.render(item[column.dataIndex])} + + ) : ( +

+ {item[column.dataIndex]} +

+ )} +
+
+ )) }).flat()}
))