diff --git a/src/api/pay/app/index.ts b/src/api/pay/app/index.ts index dcad2272..b68395ee 100644 --- a/src/api/pay/app/index.ts +++ b/src/api/pay/app/index.ts @@ -22,16 +22,6 @@ export interface AppPageReqVO extends PageParam { createTime?: Date[] } -export interface AppExportReqVO { - name?: string - status?: number - remark?: string - payNotifyUrl?: string - refundNotifyUrl?: string - merchantName?: string - createTime?: Date[] -} - export interface AppUpdateStatusReqVO { id: number status: number diff --git a/src/views/pay/app/index.vue b/src/views/pay/app/index.vue index 25a736e8..cfd4ba8f 100644 --- a/src/views/pay/app/index.vue +++ b/src/views/pay/app/index.vue @@ -9,17 +9,16 @@ import { PayChannelEnum, PayType } from '@/enums/systemEnum' import { IconEnum } from '@/enums/appEnum' import { Icon } from '@/components/Icon' import { BasicTable, TableAction, useTable } from '@/components/Table' -import type { AppExportReqVO } from '@/api/pay/app' -import { deleteApp, exportApp, getAppPage } from '@/api/pay/app' +import { deleteApp, getAppPage } from '@/api/pay/app' defineOptions({ name: 'PayApp' }) const { t } = useI18n() -const { createConfirm, createMessage } = useMessage() +const { createMessage } = useMessage() const [registerModal, { openModal }] = useModal() const [registerChannelModal, { openModal: openChannelModal }] = useModal() -const [registerTable, { getForm, reload }] = useTable({ +const [registerTable, { reload }] = useTable({ title: '应用列表', api: getAppPage, columns, @@ -42,18 +41,6 @@ function handleEdit(record: Recordable) { openModal(true, { record, isUpdate: true }) } -async function handleExport() { - createConfirm({ - title: t('common.exportTitle'), - iconType: 'warning', - content: t('common.exportMessage'), - async onOk() { - await exportApp(getForm().getFieldsValue() as AppExportReqVO) - createMessage.success(t('common.exportSuccessText')) - }, - }) -} - async function handleDelete(record: Recordable) { await deleteApp(record.id) createMessage.success(t('common.delSuccessText')) @@ -85,25 +72,17 @@ function isChannelExists(channels, channelCode) { {{ t('action.create') }} - - {{ t('action.export') }} -