style(credit): 格式化代码并移除未使用的方法

- 移除了 CreditSearchToolbar 组件中的未使用 add 方法
- 格式化了多个信用模块中的组件标签换行
- 格式化了 Ant Design 图标导入语句的换行
- 为表格列添加了排序功能 (sorter: true)
- 格式化了 creditGqdj 模块中的长对象属性换行
- 格式化了 creditNearbyCompany 模块中的注释和表格配置
- 移除了重复的 sorter 属性配置
This commit is contained in:
2026-02-06 18:53:54 +08:00
parent 8d1d9d9de9
commit f01e3359ec
24 changed files with 158 additions and 113 deletions

BIN
dist.zip

Binary file not shown.

View File

@@ -74,11 +74,6 @@
const keywords = ref('');
const selection = computed(() => props.selection || []);
// 新增
const add = () => {
emit('add');
};
// 搜索
const handleSearch = () => {
emit('search', { keywords: keywords.value });

View File

@@ -75,14 +75,20 @@
<!-- 导入弹窗 -->
<CreditBreachOfTrustImport v-model:visible="showImport" @done="reload" />
<!-- 历史导入弹窗 -->
<CreditBreachOfTrustHistoryImport v-model:visible="showImport2" @done="reload" />
<CreditBreachOfTrustHistoryImport
v-model:visible="showImport2"
@done="reload"
/>
</a-page-header>
</template>
<script lang="ts" setup>
import { createVNode, ref } from 'vue';
import { message, Modal } from 'ant-design-vue';
import { ExclamationCircleOutlined, CloudUploadOutlined } from '@ant-design/icons-vue';
import {
ExclamationCircleOutlined,
CloudUploadOutlined
} from '@ant-design/icons-vue';
import type { EleProTable } from 'ele-admin-pro';
import { toDateString } from 'ele-admin-pro';
import type {
@@ -216,9 +222,10 @@
key: 'createTime',
width: 180,
align: 'center',
sorter: true,
ellipsis: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',

View File

@@ -216,8 +216,9 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',

View File

@@ -319,7 +319,7 @@
{
title: '国标行业门类',
dataIndex: 'nationalStandardIndustryCategories',
key: 'nationalStandardIndustryCategories',
key: 'nationalStandardIndustryCategories'
},
{
title: '国标行业大类',
@@ -455,6 +455,7 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}
// {

View File

@@ -194,8 +194,9 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',

View File

@@ -88,7 +88,10 @@
<script lang="ts" setup>
import { createVNode, ref } from 'vue';
import { message, Modal } from 'ant-design-vue';
import { ExclamationCircleOutlined, CloudUploadOutlined } from '@ant-design/icons-vue';
import {
ExclamationCircleOutlined,
CloudUploadOutlined
} from '@ant-design/icons-vue';
import type { EleProTable } from 'ele-admin-pro';
import { toDateString } from 'ele-admin-pro';
import type {
@@ -228,8 +231,9 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',

View File

@@ -67,14 +67,20 @@
<!-- 导入弹窗 -->
<CreditCourtSessionImport v-model:visible="showImport" @done="reload" />
<!-- 历史导入弹窗 -->
<CreditCourtSessionHistoryImport v-model:visible="showImport2" @done="reload" />
<CreditCourtSessionHistoryImport
v-model:visible="showImport2"
@done="reload"
/>
</a-page-header>
</template>
<script lang="ts" setup>
import { createVNode, ref } from 'vue';
import { message, Modal } from 'ant-design-vue';
import { ExclamationCircleOutlined, CloudUploadOutlined } from '@ant-design/icons-vue';
import {
ExclamationCircleOutlined,
CloudUploadOutlined
} from '@ant-design/icons-vue';
import type { EleProTable } from 'ele-admin-pro';
import { toDateString } from 'ele-admin-pro';
import type {
@@ -97,7 +103,7 @@
CreditCourtSession,
CreditCourtSessionParam
} from '@/api/credit/creditCourtSession/model';
import type {CreditMediation} from "@/api/credit/creditMediation/model";
import type { CreditMediation } from '@/api/credit/creditMediation/model';
// 表格实例
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
@@ -214,8 +220,9 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',

View File

@@ -187,8 +187,9 @@
align: 'center',
sorter: true,
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',

View File

@@ -210,8 +210,9 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',

View File

@@ -225,6 +225,7 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}
// {

View File

@@ -67,14 +67,20 @@
<!-- 导入弹窗 -->
<CreditFinalVersionImport v-model:visible="showImport" @done="reload" />
<!-- 历史导入弹窗 -->
<CreditFinalVersionHistoryImport v-model:visible="showImport2" @done="reload" />
<CreditFinalVersionHistoryImport
v-model:visible="showImport2"
@done="reload"
/>
</a-page-header>
</template>
<script lang="ts" setup>
import { createVNode, ref } from 'vue';
import { message, Modal } from 'ant-design-vue';
import { ExclamationCircleOutlined, CloudUploadOutlined } from '@ant-design/icons-vue';
import {
ExclamationCircleOutlined,
CloudUploadOutlined
} from '@ant-design/icons-vue';
import type { EleProTable } from 'ele-admin-pro';
import { toDateString } from 'ele-admin-pro';
import type {
@@ -243,8 +249,9 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',

View File

@@ -74,7 +74,10 @@
<script lang="ts" setup>
import { createVNode, ref } from 'vue';
import { message, Modal } from 'ant-design-vue';
import { ExclamationCircleOutlined, CloudUploadOutlined } from '@ant-design/icons-vue';
import {
ExclamationCircleOutlined,
CloudUploadOutlined
} from '@ant-design/icons-vue';
import type { EleProTable } from 'ele-admin-pro';
import { toDateString } from 'ele-admin-pro';
import type {
@@ -218,8 +221,9 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',
@@ -270,7 +274,10 @@
{ title: '执行通知文书号', dataIndex: '执行通知文书号' },
{ title: '被执行人', dataIndex: 'appellee' },
{ title: '冻结股权标的企业', dataIndex: 'plaintiffAppellant' },
{ title: '被执行人持有股权、其他投资权益数额', dataIndex: 'involvedAmount' },
{
title: '被执行人持有股权、其他投资权益数额',
dataIndex: 'involvedAmount'
},
{ title: '执行法院', dataIndex: 'courtName' },
{ title: '类型', dataIndex: 'dataType' },
{ title: '状态', dataIndex: 'dataStatus' },

View File

@@ -188,8 +188,9 @@
align: 'center',
sorter: true,
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',

View File

@@ -245,6 +245,7 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}
// {

View File

@@ -78,7 +78,10 @@
<script lang="ts" setup>
import { createVNode, ref } from 'vue';
import { message, Modal } from 'ant-design-vue';
import { ExclamationCircleOutlined, CloudUploadOutlined } from '@ant-design/icons-vue';
import {
ExclamationCircleOutlined,
CloudUploadOutlined
} from '@ant-design/icons-vue';
import type { EleProTable } from 'ele-admin-pro';
import { toDateString } from 'ele-admin-pro';
import type {
@@ -230,8 +233,9 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',

View File

@@ -202,8 +202,9 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',

View File

@@ -249,98 +249,82 @@
{
title: '注册号',
dataIndex: 'registrationNumber',
key: 'registrationNumber',
key: 'registrationNumber'
},
{
title: '组织机构代码',
dataIndex: 'organizationalCode',
key: 'organizationalCode',
key: 'organizationalCode'
},
{
title: '参保人数',
dataIndex: 'numberOfInsuredPersons',
key: 'numberOfInsuredPersons',
key: 'numberOfInsuredPersons'
},
{
title: '参保人数所属年报',
dataIndex: 'annualReport',
key: 'annualReport',
key: 'annualReport'
},
{
title: '企业(机构)类型',
dataIndex: 'institutionType',
key: 'institutionType',
key: 'institutionType'
},
{
title: '企业规模',
dataIndex: 'companySize',
key: 'companySize',
key: 'companySize'
},
{
title: '营业期限',
dataIndex: 'businessTerm',
key: 'businessTerm',
key: 'businessTerm'
},
{
title: '国标行业门类',
dataIndex: 'nationalStandardIndustryCategories',
key: 'nationalStandardIndustryCategories',
key: 'nationalStandardIndustryCategories'
},
{
title: '国标行业大类',
dataIndex: 'nationalStandardIndustryCategories2',
key: 'nationalStandardIndustryCategories2',
key: 'nationalStandardIndustryCategories2'
},
{
title: '国标行业中类',
dataIndex: 'nationalStandardIndustryCategories3',
key: 'nationalStandardIndustryCategories3',
key: 'nationalStandardIndustryCategories3'
},
{
title: '国标行业小类',
dataIndex: 'nationalStandardIndustryCategories4',
key: 'nationalStandardIndustryCategories4',
key: 'nationalStandardIndustryCategories4'
},
{
title: '曾用名',
dataIndex: 'formerName',
key: 'formerName',
key: 'formerName'
},
{
title: '英文名',
dataIndex: 'englishName',
key: 'englishName',
key: 'englishName'
},
{
title: '官网网址',
dataIndex: 'domain',
key: 'domain',
key: 'domain'
},
{
title: '通信地址',
dataIndex: 'mailingAddress',
key: 'mailingAddress',
key: 'mailingAddress'
},
{
title: '通信地址邮箱',
dataIndex: 'mailingEmail',
key: 'mailingEmail',
key: 'mailingEmail'
},
{
title: '企业简介',
@@ -357,32 +341,27 @@
{
title: '电话',
dataIndex: 'tel',
key: 'tel',
key: 'tel'
},
{
title: '企查查行业门类',
dataIndex: 'nationalStandardIndustryCategories5',
key: 'nationalStandardIndustryCategories5',
key: 'nationalStandardIndustryCategories5'
},
{
title: '企查查行业大类',
dataIndex: 'nationalStandardIndustryCategories6',
key: 'nationalStandardIndustryCategories6',
key: 'nationalStandardIndustryCategories6'
},
{
title: '企查查行业中类',
dataIndex: 'nationalStandardIndustryCategories7',
key: 'nationalStandardIndustryCategories7',
key: 'nationalStandardIndustryCategories7'
},
{
title: '企查查行业小类',
dataIndex: 'nationalStandardIndustryCategories8',
key: 'nationalStandardIndustryCategories8',
key: 'nationalStandardIndustryCategories8'
},
{
title: '类型',
@@ -393,62 +372,52 @@
{
title: '实缴资本',
dataIndex: 'paidinCapital',
key: 'paidinCapital',
key: 'paidinCapital'
},
{
title: '登记机关',
dataIndex: 'registrationAuthority',
key: 'registrationAuthority',
key: 'registrationAuthority'
},
{
title: '纳税人资质',
dataIndex: 'taxpayerQualification',
key: 'taxpayerQualification',
key: 'taxpayerQualification'
},
{
title: '最新年报年份',
dataIndex: 'latestAnnualReportYear',
key: 'latestAnnualReportYear',
key: 'latestAnnualReportYear'
},
{
title: '最新年报营业收入',
dataIndex: 'latestAnnualReportOnOperatingRevenue',
key: 'latestAnnualReportOnOperatingRevenue',
key: 'latestAnnualReportOnOperatingRevenue'
},
{
title: '企查分',
dataIndex: 'enterpriseScoreCheck',
key: 'enterpriseScoreCheck',
key: 'enterpriseScoreCheck'
},
{
title: '信用等级',
dataIndex: 'creditRating',
key: 'creditRating',
key: 'creditRating'
},
{
title: '科创分',
dataIndex: 'cechnologyScore',
key: 'cechnologyScore',
key: 'cechnologyScore'
},
{
title: '科创等级',
dataIndex: 'cechnologyLevel',
key: 'cechnologyLevel',
key: 'cechnologyLevel'
},
{
title: '是否小微企业',
dataIndex: 'smallEnterprise',
key: 'smallEnterprise',
key: 'smallEnterprise'
},
// {
// title: '备注',
@@ -489,6 +458,7 @@
align: 'center',
sorter: true,
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
{
@@ -559,10 +529,22 @@
{ title: '企业(机构)类型', dataIndex: 'institutionType' },
{ title: '企业规模', dataIndex: 'companySize' },
{ title: '营业期限', dataIndex: 'businessTerm' },
{ title: '国标行业门类', dataIndex: 'nationalStandardIndustryCategories' },
{ title: '国标行业类', dataIndex: 'nationalStandardIndustryCategories2' },
{ title: '国标行业中类', dataIndex: 'nationalStandardIndustryCategories3' },
{ title: '国标行业小类', dataIndex: 'nationalStandardIndustryCategories4' },
{
title: '国标行业类',
dataIndex: 'nationalStandardIndustryCategories'
},
{
title: '国标行业大类',
dataIndex: 'nationalStandardIndustryCategories2'
},
{
title: '国标行业中类',
dataIndex: 'nationalStandardIndustryCategories3'
},
{
title: '国标行业小类',
dataIndex: 'nationalStandardIndustryCategories4'
},
{ title: '曾用名', dataIndex: 'formerName' },
{ title: '英文名', dataIndex: 'englishName' },
{ title: '官网网址', dataIndex: 'domain' },
@@ -571,10 +553,22 @@
{ title: '企业简介', dataIndex: 'companyProfile' },
{ title: '经营范围', dataIndex: 'natureOfBusiness' },
{ title: '电话', dataIndex: 'tel' },
{ title: '企查查行业门类', dataIndex: 'nationalStandardIndustryCategories5' },
{ title: '企查查行业类', dataIndex: 'nationalStandardIndustryCategories6' },
{ title: '企查查行业中类', dataIndex: 'nationalStandardIndustryCategories7' },
{ title: '企查查行业小类', dataIndex: 'nationalStandardIndustryCategories8' },
{
title: '企查查行业类',
dataIndex: 'nationalStandardIndustryCategories5'
},
{
title: '企查查行业大类',
dataIndex: 'nationalStandardIndustryCategories6'
},
{
title: '企查查行业中类',
dataIndex: 'nationalStandardIndustryCategories7'
},
{
title: '企查查行业小类',
dataIndex: 'nationalStandardIndustryCategories8'
},
{ title: '链接', dataIndex: 'url' },
{ title: '类型', dataIndex: 'type' },
{ title: '上级ID', dataIndex: 'parentId' },
@@ -582,7 +576,10 @@
{ title: '登记机关', dataIndex: 'registrationAuthority' },
{ title: '纳税人资质', dataIndex: 'taxpayerQualification' },
{ title: '最新年报年份', dataIndex: 'latestAnnualReportYear' },
{ title: '最新年报营业收入', dataIndex: 'latestAnnualReportOnOperatingRevenue' },
{
title: '最新年报营业收入',
dataIndex: 'latestAnnualReportOnOperatingRevenue'
},
{ title: '企查分', dataIndex: 'enterpriseScoreCheck' },
{ title: '信用等级', dataIndex: 'creditRating' },
{ title: '科创分', dataIndex: 'cechnologyScore' },

View File

@@ -212,8 +212,9 @@
align: 'center',
sorter: true,
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',

View File

@@ -207,6 +207,7 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
{

View File

@@ -186,6 +186,7 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
}
// {

View File

@@ -181,8 +181,9 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',

View File

@@ -214,7 +214,7 @@
sorter: true,
ellipsis: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',

View File

@@ -70,7 +70,10 @@
<script lang="ts" setup>
import { createVNode, ref } from 'vue';
import { message, Modal } from 'ant-design-vue';
import { ExclamationCircleOutlined, CloudUploadOutlined } from '@ant-design/icons-vue';
import {
ExclamationCircleOutlined,
CloudUploadOutlined
} from '@ant-design/icons-vue';
import type { EleProTable } from 'ele-admin-pro';
import { toDateString } from 'ele-admin-pro';
import type {
@@ -231,8 +234,9 @@
width: 180,
align: 'center',
ellipsis: true,
sorter: true,
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
},
}
// {
// title: '操作',
// key: 'action',