fix:添加row-key

This commit is contained in:
shijing 2025-12-15 11:32:05 +08:00
parent 3ea9da8a7a
commit 92e7084a5a
2 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,7 @@
id="exportDiv1"
:height="tableHeight"
:summary-method="getSummaries" show-summary
row-key="id"
>
<el-table-column type="index" width="50" />
<el-table-column label="年份" prop="年" width="70"/>
@ -152,6 +153,7 @@
hideDo
hidePagination
:summary-method="getSummaries" show-summary
row-key="id"
>
<el-table-column type="index" width="50" />
<el-table-column label="年份" prop="年" width="70"/>

View File

@ -74,6 +74,7 @@
:height="tableHeight"
:summary-method="getSummaries"
show-summary
row-key="id"
>
<el-table-column type="index" width="50" />
<el-table-column label="年份" prop="年" width="80"/>
@ -130,6 +131,7 @@
hidePagination
:summary-method="getSummaries"
show-summary
row-key="id"
>
<el-table-column type="index" width="50" />
<el-table-column label="年份" prop="年" width="80"/>