feat(credit): 信用模块历史数据导入功能优化

- 为所有信用模块的导入组件添加companyId参数支持
- 在企业详情页面为各信用分类标签页添加历史数据导入按钮
- 移除独立的历史导入按钮,整合到企业详情页的对应标签页中
- 更新导入功能的API调用以传递关联企业ID
- 修复法院公告相关组件的命名一致性问题
- 重构导入完成后的数据刷新逻辑以匹配新的标签页结构
This commit is contained in:
2026-02-11 17:55:23 +08:00
parent f01e3359ec
commit 9febd8016c
18 changed files with 323 additions and 204 deletions

View File

@@ -23,12 +23,6 @@
@importData="openImport"
@exportData="exportData"
/>
<a-button type="dashed" class="ele-btn-icon" @click="openImport2">
<template #icon>
<CloudUploadOutlined />
</template>
<span class="text-red-500">历史限制高消费</span>
</a-button>
</a-space>
</template>
<template #bodyCell="{ column, record }">
@@ -62,18 +56,13 @@
<CreditXgxfEdit v-model:visible="showEdit" :data="current" @done="reload" />
<!-- 导入弹窗 -->
<CreditXgxfImport v-model:visible="showImport" @done="reload" />
<!-- 历史导入弹窗 -->
<CreditXgxfHistoryImport 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 } from '@ant-design/icons-vue';
import type { EleProTable } from 'ele-admin-pro';
import { toDateString } from 'ele-admin-pro';
import type {
@@ -85,7 +74,6 @@
import { getPageTitle } from '@/utils/common';
import CreditXgxfEdit from './components/creditXgxfEdit.vue';
import CreditXgxfImport from './components/credit-xgxf-import.vue';
import CreditXgxfHistoryImport from './components/credit-xgxf-history-import.vue';
import {
pageCreditXgxf,
listCreditXgxf,
@@ -108,8 +96,6 @@
const showEdit = ref(false);
// 是否显示导入弹窗
const showImport = ref(false);
// 是否显示历史导入弹窗
const showImport2 = ref(false);
// 是否显示批量移动弹窗
const showMove = ref(false);
// 加载状态
@@ -273,11 +259,6 @@
showImport.value = true;
};
/* 打开历史导入弹窗 */
const openImport2 = () => {
showImport2.value = true;
};
/* 导出 */
const exportData = () => {
exportCreditData<CreditXgxf>({