refactor(creditMpCustomer): 移除不必要的表单项并优化列表配置
- 移除了链接、状态、企业ID、所在省份、所在辖区、是否有数据、是否推荐等表单项 - 将文件上传字段从image重命名为files以保持一致性 - 更新了表格列配置,移除了对应的显示列 - 修改了删除功能中的主键引用从creditMpCustomerId改为id - 调整了默认显示的核心列配置 - 移除了修改时间字段的显示与相关逻辑
This commit is contained in:
@@ -108,105 +108,84 @@
|
||||
{
|
||||
title: '拖欠方',
|
||||
dataIndex: 'toUser',
|
||||
key: 'toUser',
|
||||
ellipsis: true
|
||||
key: 'toUser'
|
||||
},
|
||||
{
|
||||
title: '拖欠金额',
|
||||
dataIndex: 'price',
|
||||
key: 'price',
|
||||
ellipsis: true
|
||||
key: 'price'
|
||||
},
|
||||
{
|
||||
title: '拖欠年数',
|
||||
dataIndex: 'years',
|
||||
key: 'years',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: '链接',
|
||||
dataIndex: 'url',
|
||||
key: 'url',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
dataIndex: 'statusTxt',
|
||||
key: 'statusTxt',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: '企业ID',
|
||||
dataIndex: 'companyId',
|
||||
key: 'companyId',
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: '所在省份',
|
||||
dataIndex: 'province',
|
||||
key: 'province',
|
||||
ellipsis: true
|
||||
key: 'years'
|
||||
},
|
||||
// {
|
||||
// title: '链接',
|
||||
// dataIndex: 'url',
|
||||
// key: 'url',
|
||||
// ellipsis: true
|
||||
// },
|
||||
// {
|
||||
// title: '状态',
|
||||
// dataIndex: 'statusTxt',
|
||||
// key: 'statusTxt'
|
||||
// },
|
||||
// {
|
||||
// title: '所在省份',
|
||||
// dataIndex: 'province',
|
||||
// key: 'province',
|
||||
// ellipsis: true
|
||||
// },
|
||||
{
|
||||
title: '所在城市',
|
||||
dataIndex: 'city',
|
||||
key: 'city',
|
||||
ellipsis: true
|
||||
},
|
||||
// {
|
||||
// title: '所在辖区',
|
||||
// dataIndex: 'region',
|
||||
// key: 'region',
|
||||
// ellipsis: true
|
||||
// },
|
||||
{
|
||||
title: '所在辖区',
|
||||
dataIndex: 'region',
|
||||
key: 'region',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: '文件路径',
|
||||
title: '附件',
|
||||
dataIndex: 'files',
|
||||
key: 'files',
|
||||
ellipsis: true
|
||||
},
|
||||
// {
|
||||
// title: '是否有数据',
|
||||
// dataIndex: 'hasData',
|
||||
// key: 'hasData',
|
||||
// width: 120
|
||||
// },
|
||||
// {
|
||||
// title: '备注',
|
||||
// dataIndex: 'comments',
|
||||
// key: 'comments',
|
||||
// ellipsis: true
|
||||
// },
|
||||
// {
|
||||
// title: '是否推荐',
|
||||
// dataIndex: 'recommend',
|
||||
// key: 'recommend',
|
||||
// width: 120
|
||||
// },
|
||||
|
||||
{
|
||||
title: '是否有数据',
|
||||
dataIndex: 'hasData',
|
||||
key: 'hasData',
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: '备注',
|
||||
dataIndex: 'comments',
|
||||
key: 'comments',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: '是否推荐',
|
||||
dataIndex: 'recommend',
|
||||
key: 'recommend',
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: '排序(数字越小越靠前)',
|
||||
title: '排序',
|
||||
dataIndex: 'sortNumber',
|
||||
key: 'sortNumber',
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: '状态, 0正常, 1冻结',
|
||||
title: '状态',
|
||||
dataIndex: 'status',
|
||||
key: 'status',
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: '是否删除, 0否, 1是',
|
||||
dataIndex: 'deleted',
|
||||
key: 'deleted',
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: '用户ID',
|
||||
dataIndex: 'userId',
|
||||
key: 'userId',
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
dataIndex: 'createTime',
|
||||
@@ -217,16 +196,6 @@
|
||||
ellipsis: true,
|
||||
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
|
||||
},
|
||||
{
|
||||
title: '修改时间',
|
||||
dataIndex: 'updateTime',
|
||||
key: 'updateTime',
|
||||
width: 200,
|
||||
align: 'center',
|
||||
sorter: true,
|
||||
ellipsis: true,
|
||||
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
key: 'action',
|
||||
@@ -240,7 +209,11 @@
|
||||
// 默认显示的核心列(最多5个主要字段)
|
||||
const defaultVisibleColumns = [
|
||||
'id',
|
||||
'status',
|
||||
'toUser',
|
||||
'price',
|
||||
'years',
|
||||
'city',
|
||||
// 'status',
|
||||
'createTime',
|
||||
'action'
|
||||
];
|
||||
@@ -272,7 +245,7 @@
|
||||
/* 删除单个 */
|
||||
const remove = (row: CreditMpCustomer) => {
|
||||
const hide = message.loading('请求中..', 0);
|
||||
removeCreditMpCustomer(row.creditMpCustomerId)
|
||||
removeCreditMpCustomer(row.id)
|
||||
.then((msg) => {
|
||||
hide();
|
||||
message.success(msg);
|
||||
@@ -297,7 +270,7 @@
|
||||
maskClosable: true,
|
||||
onOk: () => {
|
||||
const hide = message.loading('请求中..', 0);
|
||||
removeBatchCreditMpCustomer(selection.value.map((d) => d.creditMpCustomerId))
|
||||
removeBatchCreditMpCustomer(selection.value.map((d) => d.id))
|
||||
.then((msg) => {
|
||||
hide();
|
||||
message.success(msg);
|
||||
|
||||
Reference in New Issue
Block a user