fix(frontend): resolve cross-page selection loss, add destroy-on-close to dialogs, and fix row-key collision in stocktake

This commit is contained in:
DXC
2026-04-02 18:35:11 +08:00
parent 1e2f4953b6
commit edf09508f6
8 changed files with 20 additions and 13 deletions

View File

@ -194,13 +194,14 @@
:data="tableData"
border
stripe
row-key="id"
:size="tableSize"
:row-class-name="tableRowClassName"
@sort-change="handleSortChange"
@selection-change="handleSelectionChange"
style="width: 100%; margin-top: 15px"
>
<el-table-column v-if="isBatchMode" type="selection" width="55" />
<el-table-column v-if="isBatchMode" type="selection" width="55" :reserve-selection="true" />
<el-table-column v-if="columns.id.visible" prop="id" label="ID" min-width="80" align="center" fixed="left" />
<el-table-column v-if="columns.companyName.visible" prop="companyName" label="所属公司" min-width="100" align="center" show-overflow-tooltip sortable="custom">
@ -323,6 +324,7 @@
:title="dialog.title"
width="700px"
append-to-body
destroy-on-close
@close="cancel"
:close-on-click-modal="!isUploading"
:close-on-press-escape="!isUploading"