微调
This commit is contained in:
@@ -30,6 +30,14 @@ const tableStore = new TableStore({
|
||||
{
|
||||
title: '典型设备',
|
||||
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: 'voltage', title: '电压等级',minWidth: 100 },
|
||||
{ field: 'capacity', title: '容量',minWidth: 100 }
|
||||
|
||||
@@ -27,6 +27,14 @@ const tableStore = new TableStore({
|
||||
{
|
||||
title: '谐波源',
|
||||
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: 'voltage', title: '电压等级',minWidth: 200 },
|
||||
{ field: 'capacity', title: '容量',minWidth: 200 }
|
||||
|
||||
@@ -366,12 +366,7 @@ const exportEvent = () => {
|
||||
|
||||
onMounted(() => {
|
||||
tableStore.index()
|
||||
TableHeaderRef.value?.setDatePicker([
|
||||
{ label: '年份', value: 1 },
|
||||
{ label: '季度', value: 2 },
|
||||
{ label: '月份', value: 3 },
|
||||
{ label: '周', value: 4 }
|
||||
])
|
||||
|
||||
|
||||
calculateTableHeight()
|
||||
window.addEventListener('resize', debouncedCalculateTableHeight)
|
||||
|
||||
Reference in New Issue
Block a user