feat(credit): 信用模块历史数据导入功能优化
- 为所有信用模块的导入组件添加companyId参数支持 - 在企业详情页面为各信用分类标签页添加历史数据导入按钮 - 移除独立的历史导入按钮,整合到企业详情页的对应标签页中 - 更新导入功能的API调用以传递关联企业ID - 修复法院公告相关组件的命名一致性问题 - 重构导入完成后的数据刷新逻辑以匹配新的标签页结构
This commit is contained in:
@@ -24,12 +24,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 }">
|
||||
@@ -67,21 +61,13 @@
|
||||
/>
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditJudicialDocumentImport v-model:visible="showImport" @done="reload" />
|
||||
<!-- 历史导入弹窗 -->
|
||||
<CreditJudicialDocumentHistoryImport
|
||||
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 {
|
||||
@@ -93,7 +79,6 @@
|
||||
import { getPageTitle } from '@/utils/common';
|
||||
import CreditJudicialDocumentEdit from './components/creditJudicialDocumentEdit.vue';
|
||||
import CreditJudicialDocumentImport from './components/credit-judicial-document-import.vue';
|
||||
import CreditJudicialDocumentHistoryImport from './components/credit-judicial-document-history-import.vue';
|
||||
import {
|
||||
pageCreditJudicialDocument,
|
||||
listCreditJudicialDocument,
|
||||
@@ -116,8 +101,6 @@
|
||||
const showEdit = ref(false);
|
||||
// 是否显示导入弹窗
|
||||
const showImport = ref(false);
|
||||
// 是否显示历史导入弹窗
|
||||
const showImport2 = ref(false);
|
||||
// 是否显示批量移动弹窗
|
||||
const showMove = ref(false);
|
||||
// 加载状态
|
||||
@@ -272,11 +255,6 @@
|
||||
showImport.value = true;
|
||||
};
|
||||
|
||||
/* 打开历史导入弹窗 */
|
||||
const openImport2 = () => {
|
||||
showImport2.value = true;
|
||||
};
|
||||
|
||||
/* 导出 */
|
||||
const exportData = () => {
|
||||
exportCreditData<CreditJudicialDocument>({
|
||||
|
||||
Reference in New Issue
Block a user