Commit 416f7849 by zhaochengxiang

去掉序号

parent 79130440
...@@ -38,8 +38,18 @@ const FC = (props) => { ...@@ -38,8 +38,18 @@ 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 => {
if (item !== '编号') {
const col = { const col = {
title: item, title: item,
dataIndex: item, dataIndex: item,
...@@ -55,6 +65,7 @@ const FC = (props) => { ...@@ -55,6 +65,7 @@ const FC = (props) => {
} }
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