Commit 416f7849 by zhaochengxiang

去掉序号

parent 79130440
......@@ -38,23 +38,34 @@ const FC = (props) => {
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 => {
const col = {
title: item,
dataIndex: item,
width: 150,
ellipsis: true,
render: (value, record) => <Tooltip title={value}>
<Typography.Text ellipsis={true}>{value}</Typography.Text>
</Tooltip>
};
if (item === '代码编码') {
col.render = (value, record) => <StandardCode value={value} />
if (item !== '编号') {
const col = {
title: item,
dataIndex: item,
width: 150,
ellipsis: true,
render: (value, record) => <Tooltip title={value}>
<Typography.Text ellipsis={true}>{value}</Typography.Text>
</Tooltip>
};
if (item === '代码编码') {
col.render = (value, record) => <StandardCode value={value} />
}
newCols.push(col);
}
newCols.push(col);
});
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