refactor(credit): 调整信用模块表格结构和字段映射

- 为所有信用相关表格组件添加 selection 和 scroll 属性支持
- 将司法文档模型中的 defendantAppellee 字段添加到类型定义
- 更新立案信息导入功能的标题和模板文件名
- 重新映射表格列配置,将 name 字段改为 caseNumber 字段
- 调整表格列宽度设置,优化显示效果
- 移除操作列的显示,注释掉编辑功能入口
- 为导出功能调整列配置,匹配新的字段映射
- 在多个表格中添加主体企业列并调整布局
- 修改文书标题、裁判结果等司法文档相关字段映射
This commit is contained in:
2026-01-18 22:22:59 +08:00
parent 836fd4d8d0
commit 2203b45ddc
14 changed files with 304 additions and 332 deletions

View File

@@ -7,6 +7,7 @@
:columns="columns"
:datasource="datasource"
:customRow="customRow"
v-model:selection="selection"
tool-class="ele-toolbar-form"
class="sys-org-table"
>
@@ -25,12 +26,12 @@
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template>
<template v-if="column.key === 'name'">
<template v-if="column.key === 'caseNumber'">
<template v-if="record.url">
<a :href="record.url" target="_blank">{{ record.name }}</a>
<a :href="record.url" target="_blank">{{ record.caseNumber }}</a>
</template>
<template v-else>
{{ record.name }}
{{ record.caseNumber }}
</template>
</template>
<template v-if="column.key === 'status'">
@@ -139,53 +140,38 @@
key: 'id',
width: 80
},
{
title: '数据类型',
dataIndex: 'dataType',
key: 'dataType',
ellipsis: true
},
{
title: '原告/上诉人',
dataIndex: 'plaintiffAppellant',
key: 'plaintiffAppellant',
ellipsis: true
},
{
title: '发生时间',
dataIndex: 'occurrenceTime',
key: 'occurrenceTime',
width: 120
},
{
title: '案号',
dataIndex: 'caseNumber',
key: 'caseNumber',
ellipsis: true
ellipsis: true,
width: 260
},
{
title: '案由',
dataIndex: 'causeOfAction',
key: 'causeOfAction',
ellipsis: true
ellipsis: true,
width: 220
},
{
title: '涉案金额',
dataIndex: 'involvedAmount',
key: 'involvedAmount',
width: 120
title: '当事人',
dataIndex: 'otherPartiesThirdParty',
key: 'otherPartiesThirdParty',
width: 320
},
{
title: '法院',
dataIndex: 'courtName',
key: 'courtName',
ellipsis: true
ellipsis: true,
width: 180
},
{
title: '数据状态',
dataIndex: 'dataStatus',
key: 'dataStatus',
ellipsis: true
title: '立案日期',
dataIndex: 'occurrenceTime',
key: 'occurrenceTime',
width: 120
},
{
title: '创建时间',
@@ -196,14 +182,14 @@
ellipsis: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
{
title: '操作',
key: 'action',
width: 160,
fixed: 'right',
align: 'center',
hideInSetting: true
}
// {
// title: '操作',
// key: 'action',
// width: 160,
// fixed: 'right',
// align: 'center',
// hideInSetting: true
// }
]);
/* 搜索 */
@@ -238,14 +224,11 @@
filename: '司法大数据',
columns: [
{ title: 'ID', dataIndex: 'id' },
{ title: '数据类型', dataIndex: 'dataType' },
{ title: '原告/上诉人', dataIndex: 'plaintiffAppellant' },
{ title: '发生时间', dataIndex: 'occurrenceTime' },
{ title: '案号', dataIndex: 'caseNumber' },
{ title: '案由', dataIndex: 'causeOfAction' },
{ title: '涉案金额', dataIndex: 'involvedAmount' },
{ title: '当事人', dataIndex: 'otherPartiesThirdParty' },
{ title: '法院', dataIndex: 'courtName' },
{ title: '数据状态', dataIndex: 'dataStatus' },
{ title: '立案日期', dataIndex: 'occurrenceTime' },
{
title: '创建时间',
dataIndex: 'createTime',
@@ -318,7 +301,7 @@
},
// 行双击事件
onDblclick: () => {
openEdit(record);
// openEdit(record);
}
};
};