This commit is contained in:
sjl
2025-09-11 14:48:34 +08:00
parent 47adb54dee
commit 868463aef9
3 changed files with 17 additions and 6 deletions

View File

@@ -30,6 +30,14 @@ const tableStore = new TableStore({
{ {
title: '典型设备', title: '典型设备',
children: [ children: [
{
field: 'index',
title: '序号',
width: '80',
formatter: (row: any) => {
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}
},
{ field: 'name', title: '名称',minWidth: 200 }, { field: 'name', title: '名称',minWidth: 200 },
{ field: 'voltage', title: '电压等级',minWidth: 100 }, { field: 'voltage', title: '电压等级',minWidth: 100 },
{ field: 'capacity', title: '容量',minWidth: 100 } { field: 'capacity', title: '容量',minWidth: 100 }

View File

@@ -27,6 +27,14 @@ const tableStore = new TableStore({
{ {
title: '谐波源', title: '谐波源',
children: [ children: [
{
field: 'index',
title: '序号',
width: '80',
formatter: (row: any) => {
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}
},
{ field: 'name', title: '名称',minWidth: 200 }, { field: 'name', title: '名称',minWidth: 200 },
{ field: 'voltage', title: '电压等级',minWidth: 200 }, { field: 'voltage', title: '电压等级',minWidth: 200 },
{ field: 'capacity', title: '容量',minWidth: 200 } { field: 'capacity', title: '容量',minWidth: 200 }

View File

@@ -366,12 +366,7 @@ const exportEvent = () => {
onMounted(() => { onMounted(() => {
tableStore.index() tableStore.index()
TableHeaderRef.value?.setDatePicker([
{ label: '年份', value: 1 },
{ label: '季度', value: 2 },
{ label: '月份', value: 3 },
{ label: '周', value: 4 }
])
calculateTableHeight() calculateTableHeight()
window.addEventListener('resize', debouncedCalculateTableHeight) window.addEventListener('resize', debouncedCalculateTableHeight)