修复编辑、删除无法操作的问题

This commit is contained in:
2026-01-14 09:10:29 +08:00
parent d8b4cba12d
commit 1adf7de021

View File

@@ -212,10 +212,19 @@
>
<div class="flex justify-start items-center">
<a-space>
<a-button type="primary">编辑</a-button>
<a-button type="primary" danger>删除</a-button>
<a-button type="primary" @click.native="editRow(record, index)"
>编辑</a-button
>
<a-button
type="primary"
danger
@click.native="deleteRow(record, index)"
>删除</a-button
>
<a-button>导出</a-button>
<a-button @click="openEvidenceModal(index)">导出取证单</a-button>
<a-button @click="openEvidenceModal(index)"
>导出取证单</a-button
>
<template v-if="item.tableOptions.length > 0">
<div class="flex items-center">
<span class="mr-2">切换表格</span>
@@ -387,7 +396,9 @@
</template>
</template>
</a-table>
<p v-if="item.extraTableTitle" class="font-bold my-2">{{ item.extraTableTitle }}</p>
<p v-if="item.extraTableTitle" class="font-bold my-2">{{
item.extraTableTitle
}}</p>
<a-table
v-if="item.extraColumns && item.extraColumns.length"
:columns="item.extraColumns"
@@ -598,7 +609,9 @@
{}
);
const getRowSelection = (sectionIndex: number): TableProps['rowSelection'] => {
const getRowSelection = (
sectionIndex: number
): TableProps['rowSelection'] => {
if (!rowSelections[sectionIndex]) {
rowSelections[sectionIndex] = {
onChange: (selectedRowKeys: string[], selectedRows: any[]) => {