修复编辑、删除无法操作的问题
This commit is contained in:
@@ -212,10 +212,19 @@
|
|||||||
>
|
>
|
||||||
<div class="flex justify-start items-center">
|
<div class="flex justify-start items-center">
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button type="primary">编辑</a-button>
|
<a-button type="primary" @click.native="editRow(record, index)"
|
||||||
<a-button type="primary" danger>删除</a-button>
|
>编辑</a-button
|
||||||
|
>
|
||||||
|
<a-button
|
||||||
|
type="primary"
|
||||||
|
danger
|
||||||
|
@click.native="deleteRow(record, index)"
|
||||||
|
>删除</a-button
|
||||||
|
>
|
||||||
<a-button>导出</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">
|
<template v-if="item.tableOptions.length > 0">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<span class="mr-2">切换表格:</span>
|
<span class="mr-2">切换表格:</span>
|
||||||
@@ -387,7 +396,9 @@
|
|||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</a-table>
|
</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
|
<a-table
|
||||||
v-if="item.extraColumns && item.extraColumns.length"
|
v-if="item.extraColumns && item.extraColumns.length"
|
||||||
:columns="item.extraColumns"
|
:columns="item.extraColumns"
|
||||||
@@ -598,7 +609,9 @@
|
|||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
|
|
||||||
const getRowSelection = (sectionIndex: number): TableProps['rowSelection'] => {
|
const getRowSelection = (
|
||||||
|
sectionIndex: number
|
||||||
|
): TableProps['rowSelection'] => {
|
||||||
if (!rowSelections[sectionIndex]) {
|
if (!rowSelections[sectionIndex]) {
|
||||||
rowSelections[sectionIndex] = {
|
rowSelections[sectionIndex] = {
|
||||||
onChange: (selectedRowKeys: string[], selectedRows: any[]) => {
|
onChange: (selectedRowKeys: string[], selectedRows: any[]) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user