const columns = [
{
title: "序号",
dataIndex: "Index",
width: 80,
align: "center",
customRender: ({ text, record, index }) => {
return `${(current.value - 1) * pageSize.value + index + 1}`;
},
},
{
title: "名称",
dataIndex: "mc",
width: 140,
key: "mc",
},
{
title: "类型",
dataIndex: "leixing",
key: "leixing",
width: 80,
},
{
title: "操作",
dataIndex: "edit",
key: "edit",
width: 160,
align: "center",
},
];
<a-table :scroll="{ x: 1500, y: 600 }" :pagination="false" :columns="columns"
:data-source="Anomalous_data" size="small" bordered :row-selection="rowSelection">
const obj = {
key: key.value + (current - 1) * pageSize,
}
Anomalous_data.value.push(obj);
const columns = [
{
title: "序号",
dataIndex: "Index",
width: 80,
align: "center",
customRender: ({ text, record, index }) => {
return `${index + 1}`;
},
},
]