feat(credit): 添加历史数据导入功能和操作人字段
- 在多个信用模块API中新增历史数据导入功能,包括行政许可、破产重整、失信被执行人、开庭公告、终本案件等 - 为信用相关页面表格增加操作人(realName)字段显示 - 新增历史数据导入弹窗组件,支持Excel文件上传和模板下载 - 实现导入历史数据的API接口函数,支持文件和公司ID参数 - 优化信用模块页面UI布局,添加历史导入按钮和相关组件引用
This commit is contained in:
@@ -13,15 +13,23 @@
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
<a-space class="flex">
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@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 }">
|
||||
<template v-if="column.key === 'image'">
|
||||
@@ -55,13 +63,18 @@
|
||||
/>
|
||||
<!-- 导入弹窗 -->
|
||||
<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 } 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 {
|
||||
@@ -73,6 +86,7 @@
|
||||
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,
|
||||
@@ -183,6 +197,13 @@
|
||||
ellipsis: true,
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: '操作人',
|
||||
dataIndex: 'realName',
|
||||
key: 'realName',
|
||||
width: 90,
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
dataIndex: 'createTime',
|
||||
|
||||
Reference in New Issue
Block a user