refactor(credit): 优化企业信用模块数据结构和界面展示

- 将模型中的 companyName 字段统一重命名为 name
- 更新编辑页面标题为更准确的描述
- 调整多个表格列的宽度配置
- 移除冗余的表格滚动设置
- 为主企业名称字段添加空值显示处理
- 统一表格列配置中的样式属性
- 优化表格列的数据索引和键值配置
- 移除过多的表格列宽度和省略号设置
This commit is contained in:
2026-01-19 15:59:31 +08:00
parent 1031ed9199
commit 6f51efe47b
10 changed files with 80 additions and 120 deletions

View File

@@ -8,7 +8,7 @@
:datasource="datasource"
:customRow="customRow"
v-model:selection="selection"
:scroll="{ x: 2400 }"
:scroll="{ x: 2800 }"
tool-class="ele-toolbar-form"
class="sys-org-table"
>
@@ -27,6 +27,9 @@
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template>
<template v-if="column.key === 'companyName'">
{{ record.companyName || '-' }}
</template>
<template v-if="column.key === 'name'">
<template v-if="record.url">
<a :href="record.url" target="_blank">{{ record.name }}</a>
@@ -144,84 +147,67 @@
{
title: '主体企业',
dataIndex: 'companyName',
key: 'companyName',
width: 280
key: 'companyName'
},
{
title: '被投资企业名称',
dataIndex: 'name',
key: 'name',
ellipsis: true
key: 'name'
},
{
title: '状态',
dataIndex: 'statusTxt',
key: 'statusTxt',
ellipsis: true,
width: 90
key: 'statusTxt'
},
{
title: '法定代表人',
dataIndex: 'legalRepresentative',
key: 'legalRepresentative',
ellipsis: true,
width: 120
key: 'legalRepresentative'
},
{
title: '注册资本',
dataIndex: 'registeredCapital',
key: 'registeredCapital',
width: 120
key: 'registeredCapital'
},
{
title: '成立日期',
dataIndex: 'establishmentDate',
key: 'establishmentDate',
width: 120
key: 'establishmentDate'
},
{
title: '持股比例',
dataIndex: 'shareholdingRatio',
key: 'shareholdingRatio',
width: 120
key: 'shareholdingRatio'
},
{
title: '认缴出资额',
dataIndex: 'subscribedInvestmentAmount',
key: 'subscribedInvestmentAmount',
ellipsis: true
key: 'subscribedInvestmentAmount'
},
{
title: '投资日期',
dataIndex: 'investmentDate',
key: 'investmentDate',
width: 120
key: 'investmentDate'
},
{
title: '所属地区',
dataIndex: 'region',
key: 'region',
ellipsis: true
key: 'region'
},
{
title: '所属行业',
dataIndex: 'industry',
key: 'industry',
ellipsis: true
key: 'industry'
},
{
title: '投资数量',
dataIndex: 'investmentCount',
key: 'investmentCount',
ellipsis: true,
width: 120
key: 'investmentCount'
},
{
title: '关联产品/机构',
dataIndex: 'relatedProductsInstitutions',
key: 'relatedProductsInstitutions',
ellipsis: true,
width: 120
key: 'relatedProductsInstitutions'
},
{
title: '创建时间',