修改表格序号以及分页序号数字问题

This commit is contained in:
GGJ
2024-12-09 09:22:43 +08:00
parent b0d71b41dc
commit 9b952f2016
94 changed files with 336 additions and 261 deletions

View File

@@ -78,7 +78,7 @@ const tableStore = new TableStore({
{
field: 'index',
title: '序号',
width: '60',
width: '80',
formatter: (row: any) => {
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}

View File

@@ -91,7 +91,7 @@ const tableStore: any = new TableStore({
{
field: 'index',
title: '序号',
width: '60',
width: '80',
formatter: (row: any) => {
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}

View File

@@ -55,9 +55,9 @@ const tableStore = new TableStore({
column: [
{
title: '序号',
type: 'seq',
align: 'center',
width: 60,
width: 80,
formatter: (row: any) => {
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}

View File

@@ -117,9 +117,9 @@ const tableStore = new TableStore({
{title: '', type: 'checkbox', width: 40},
{
title: '序号',
type: 'seq',
align: 'center',
width: 60,
width: 80,
formatter: (row: any) => {
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}

View File

@@ -56,9 +56,9 @@ const tableStore = new TableStore({
column: [
{
title: '序号',
type: 'seq',
align: 'center',
width: 60,
width: 80,
formatter: (row: any) => {
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}

View File

@@ -55,6 +55,11 @@ const tableStore = new TableStore({
method: 'POST',
publicHeight: 65,
column: [
{
title: '序号', width: 80, formatter: (row: any) => {
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}
},
{ field: 'lineName', title: '监测点名称', minWidth: 160 },
{ field: 'connectedBus', title: '接入母线', minWidth: 160 },
// { field: 'monitoringTerminalCode', title: '终端编号', minWidth: 140 },