Commit 416f7849 by zhaochengxiang

去掉序号

parent 79130440
...@@ -38,23 +38,34 @@ const FC = (props) => { ...@@ -38,23 +38,34 @@ const FC = (props) => {
setData(newData); setData(newData);
const newCols = []; const newCols = [{
title: '序号',
dataIndex: 'key',
render: (text, record, index) => {
return (index+1).toString();
},
width: 60,
ellipsis: true,
}];
data?.heading?.forEach(item => { data?.heading?.forEach(item => {
const col = { if (item !== '编号') {
title: item, const col = {
dataIndex: item, title: item,
width: 150, dataIndex: item,
ellipsis: true, width: 150,
render: (value, record) => <Tooltip title={value}> ellipsis: true,
<Typography.Text ellipsis={true}>{value}</Typography.Text> render: (value, record) => <Tooltip title={value}>
</Tooltip> <Typography.Text ellipsis={true}>{value}</Typography.Text>
}; </Tooltip>
};
if (item === '代码编码') {
col.render = (value, record) => <StandardCode value={value} /> if (item === '代码编码') {
col.render = (value, record) => <StandardCode value={value} />
}
newCols.push(col);
} }
newCols.push(col);
}); });
setCols(newCols); setCols(newCols);
}, },
......
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