From 952a082752a3cb81ed88e39b15a5770531c25b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Thu, 12 Feb 2026 15:48:47 +0800 Subject: [PATCH] =?UTF-8?q?style(table):=20=E8=B0=83=E6=95=B4=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E5=88=97=E5=AE=BD=E5=92=8C=E5=AF=B9=E9=BD=90=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整信用公司页面表格列宽:原文件导入名称和系统匹配企业名称从240调整为280 - 调整信用公司页面表格列宽:登记状态从120调整为180 - 调整信用公司页面表格列宽:参保人数所属年报从140调整为180 - 移除信用公司页面更多邮箱、企业类型和纳税人识别号的固定宽度设置 - 为信用公司页面曾用名和英文名添加省略号显示 - 为信用客户页面状态、销售金额、公开日期和数据来源列添加居中对齐和固定宽度 - 修复信用客户页面重复的排序器配置 - 在信用用户页面启用并配置创建时间列的显示和格式化 --- src/views/credit/creditCompany/index.vue | 23 +++++++++++------------ src/views/credit/creditCustomer/index.vue | 17 ++++++++++++----- src/views/credit/creditUser/index.vue | 21 +++++++++++---------- 3 files changed, 34 insertions(+), 27 deletions(-) diff --git a/src/views/credit/creditCompany/index.vue b/src/views/credit/creditCompany/index.vue index 8ac8c50..311fefc 100644 --- a/src/views/credit/creditCompany/index.vue +++ b/src/views/credit/creditCompany/index.vue @@ -178,19 +178,19 @@ title: '原文件导入名称', dataIndex: 'name', key: 'name', - width: 240 + width: 280 }, { title: '系统匹配企业名称', dataIndex: 'matchName', key: 'matchName', - width: 240 + width: 280 }, { title: '登记状态', dataIndex: 'registrationStatus', key: 'registrationStatus', - width: 120 + width: 180 }, { title: '法定代表人', @@ -272,20 +272,17 @@ title: '更多邮箱', dataIndex: 'moreEmail', key: 'moreEmail', - width: 120, ellipsis: true }, { title: '企业(机构)类型', dataIndex: 'institutionType', - key: 'institutionType', - width: 140 + key: 'institutionType' }, { title: '纳税人识别号', dataIndex: 'taxpayerCode', - key: 'taxpayerCode', - width: 120 + key: 'taxpayerCode' }, { title: '注册号', @@ -308,13 +305,13 @@ title: '参保人数所属年报', dataIndex: 'annualReport', key: 'annualReport', - width: 140 + width: 180 }, { title: '营业期限', dataIndex: 'businessTerm', key: 'businessTerm', - width: 120 + ellipsis: true }, { title: '国标行业门类', @@ -364,12 +361,14 @@ { title: '曾用名', dataIndex: 'formerName', - key: 'formerName' + key: 'formerName', + ellipsis: true }, { title: '英文名', dataIndex: 'englishName', - key: 'englishName' + key: 'englishName', + ellipsis: true }, { title: '官网', diff --git a/src/views/credit/creditCustomer/index.vue b/src/views/credit/creditCustomer/index.vue index 240dcfc..7b7d2d2 100644 --- a/src/views/credit/creditCustomer/index.vue +++ b/src/views/credit/creditCustomer/index.vue @@ -155,22 +155,30 @@ { title: '状态', dataIndex: 'statusTxt', - key: 'statusTxt' + key: 'statusTxt', + width: 120, + align: 'center' }, { title: '销售金额(万元)', dataIndex: 'price', - key: 'price' + key: 'price', + width: 180, + align: 'center' }, { title: '公开日期', dataIndex: 'publicDate', - key: 'publicDate' + key: 'publicDate', + align: 'center', + width: 120 }, { title: '数据来源', dataIndex: 'dataSource', - key: 'dataSource' + key: 'dataSource', + align: 'center', + width: 90 }, { title: '操作人', @@ -187,7 +195,6 @@ align: 'center', sorter: true, ellipsis: true, - sorter: true, customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss') } // { diff --git a/src/views/credit/creditUser/index.vue b/src/views/credit/creditUser/index.vue index a09b3ad..aaf82a7 100644 --- a/src/views/credit/creditUser/index.vue +++ b/src/views/credit/creditUser/index.vue @@ -76,6 +76,7 @@ DatasourceFunction, ColumnItem } from 'ele-admin-pro/es/ele-pro-table/types'; + import { toDateString } from 'ele-admin-pro'; import Search from './components/search.vue'; import { getPageTitle } from '@/utils/common'; import CreditUserEdit from './components/creditUserEdit.vue'; @@ -236,16 +237,16 @@ // width: 120, // align: 'center' // }, - // { - // title: '创建时间', - // dataIndex: 'createTime', - // key: 'createTime', - // width: 200, - // align: 'center', - // sorter: true, - // ellipsis: true, - // customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss') - // }, + { + title: '创建时间', + dataIndex: 'createTime', + key: 'createTime', + width: 200, + align: 'center', + sorter: true, + ellipsis: true, + customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss') + }, // { // title: '操作', // key: 'action',