feat: download add title
parent
bb9ef8bd3f
commit
4762132362
|
@ -46,5 +46,5 @@ export const getApiAccessLogPageApi = (params: ApiAccessLogPageReqVO) => {
|
||||||
|
|
||||||
// 导出API 访问日志
|
// 导出API 访问日志
|
||||||
export const exportApiAccessLogApi = (params: ApiAccessLogExportReqVO) => {
|
export const exportApiAccessLogApi = (params: ApiAccessLogExportReqVO) => {
|
||||||
return defHttp.download({ url: '/infra/api-access-log/export-excel', params })
|
return defHttp.download({ url: '/infra/api-access-log/export-excel', params }, '访问日志.xls')
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,10 +57,13 @@ export const updateApiErrorLogPageApi = (id: number, processStatus: number) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出API 访问日志
|
// 导出API 错误日志
|
||||||
export const exportApiErrorLogApi = (params: ApiErrorLogExportReqVO) => {
|
export const exportApiErrorLogApi = (params: ApiErrorLogExportReqVO) => {
|
||||||
return defHttp.download({
|
return defHttp.download(
|
||||||
url: '/infra/api-error-log/export-excel',
|
{
|
||||||
params
|
url: '/infra/api-error-log/export-excel',
|
||||||
})
|
params
|
||||||
|
},
|
||||||
|
'错误日志.xls'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ export const previewCodegenApi = (id: number) => {
|
||||||
|
|
||||||
// 下载生成代码
|
// 下载生成代码
|
||||||
export const downloadCodegenApi = (id: number) => {
|
export const downloadCodegenApi = (id: number) => {
|
||||||
return defHttp.download({ url: '/infra/codegen/download?tableId=' + id })
|
return defHttp.download({ url: '/infra/codegen/download?tableId=' + id }, '生成代码.zip')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获得表定义
|
// 获得表定义
|
||||||
|
|
|
@ -58,5 +58,5 @@ export const deleteConfigApi = (id: number) => {
|
||||||
|
|
||||||
// 导出参数
|
// 导出参数
|
||||||
export const exportConfigApi = (params: ConfigExportReqVO) => {
|
export const exportConfigApi = (params: ConfigExportReqVO) => {
|
||||||
return defHttp.download({ url: '/infra/config/export', params })
|
return defHttp.download({ url: '/infra/config/export', params }, '参数.xls')
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,15 +2,15 @@ import { defHttp } from '@/utils/http/axios'
|
||||||
|
|
||||||
// 导出Html
|
// 导出Html
|
||||||
export const exportHtmlApi = () => {
|
export const exportHtmlApi = () => {
|
||||||
return defHttp.download({ url: '/infra/db-doc/export-html' })
|
return defHttp.download({ url: '/infra/db-doc/export-html' }, '数据库.html')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出Word
|
// 导出Word
|
||||||
export const exportWordApi = () => {
|
export const exportWordApi = () => {
|
||||||
return defHttp.download({ url: '/infra/db-doc/export-word' })
|
return defHttp.download({ url: '/infra/db-doc/export-word' }, '数据库.doc')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出Markdown
|
// 导出Markdown
|
||||||
export const exportMarkdownApi = () => {
|
export const exportMarkdownApi = () => {
|
||||||
return defHttp.download({ url: '/infra/db-doc/export-markdown' })
|
return defHttp.download({ url: '/infra/db-doc/export-markdown' }, '数据库.md')
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ export const deleteJobApi = (id: number) => {
|
||||||
|
|
||||||
// 导出定时任务调度
|
// 导出定时任务调度
|
||||||
export const exportJobApi = (params: JobExportReqVO) => {
|
export const exportJobApi = (params: JobExportReqVO) => {
|
||||||
return defHttp.download({ url: '/infra/job/export-excel', params })
|
return defHttp.download({ url: '/infra/job/export-excel', params }, '定时任务.xls')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 任务状态修改
|
// 任务状态修改
|
||||||
|
|
|
@ -42,8 +42,11 @@ export const getJobLogApi = (id: number) => {
|
||||||
|
|
||||||
// 导出定时任务日志
|
// 导出定时任务日志
|
||||||
export const exportJobLogApi = (params: JobLogExportReqVO) => {
|
export const exportJobLogApi = (params: JobLogExportReqVO) => {
|
||||||
return defHttp.download({
|
return defHttp.download(
|
||||||
url: '/infra/job-log/export-excel',
|
{
|
||||||
params
|
url: '/infra/job-log/export-excel',
|
||||||
})
|
params
|
||||||
|
},
|
||||||
|
'定时任务日志.xls'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,7 @@ export const deleteAppApi = (id: number) => {
|
||||||
|
|
||||||
// 导出支付应用
|
// 导出支付应用
|
||||||
export const exportAppApi = (params: AppExportReqVO) => {
|
export const exportAppApi = (params: AppExportReqVO) => {
|
||||||
return defHttp.download({ url: '/pay/app/export-excel', params })
|
return defHttp.download({ url: '/pay/app/export-excel', params }, '支付应用.xls')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 根据商ID称搜索应用列表
|
// 根据商ID称搜索应用列表
|
||||||
|
|
|
@ -66,5 +66,5 @@ export const deleteChannelApi = (id: number) => {
|
||||||
|
|
||||||
// 导出支付渠道
|
// 导出支付渠道
|
||||||
export const exportChannelApi = (params: ChannelExportReqVO) => {
|
export const exportChannelApi = (params: ChannelExportReqVO) => {
|
||||||
return defHttp.download({ url: '/pay/channel/export-excel', params })
|
return defHttp.download({ url: '/pay/channel/export-excel', params }, '支付渠道.xls')
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ export const deleteMerchantApi = (id: number) => {
|
||||||
|
|
||||||
// 导出支付商户
|
// 导出支付商户
|
||||||
export const exportMerchantApi = (params: MerchantExportReqVO) => {
|
export const exportMerchantApi = (params: MerchantExportReqVO) => {
|
||||||
return defHttp.download({ url: '/pay/merchant/export-excel', params })
|
return defHttp.download({ url: '/pay/merchant/export-excel', params }, '支付商户.xls')
|
||||||
}
|
}
|
||||||
// 支付商户状态修改
|
// 支付商户状态修改
|
||||||
export const changeMerchantStatusApi = (id: number, status: number) => {
|
export const changeMerchantStatusApi = (id: number, status: number) => {
|
||||||
|
|
|
@ -105,5 +105,5 @@ export const deleteOrderApi = async (id: number) => {
|
||||||
|
|
||||||
// 导出支付订单
|
// 导出支付订单
|
||||||
export const exportOrderApi = async (params: OrderExportReqVO) => {
|
export const exportOrderApi = async (params: OrderExportReqVO) => {
|
||||||
return defHttp.download({ url: '/pay/order/export-excel', params })
|
return defHttp.download({ url: '/pay/order/export-excel', params }, '支付订单.xls')
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,5 +112,5 @@ export const deleteRefundApi = (id: number) => {
|
||||||
|
|
||||||
// 导出退款订单
|
// 导出退款订单
|
||||||
export const exportRefundApi = (params: PayRefundExportReqVO) => {
|
export const exportRefundApi = (params: PayRefundExportReqVO) => {
|
||||||
return defHttp.download({ url: '/pay/refund/export-excel', params })
|
return defHttp.download({ url: '/pay/refund/export-excel', params }, '退款订单.xls')
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,5 +45,5 @@ export const deleteErrorCodeApi = (id: number) => {
|
||||||
|
|
||||||
// 导出错误码
|
// 导出错误码
|
||||||
export const excelErrorCodeApi = (params: ErrorCodePageReqVO) => {
|
export const excelErrorCodeApi = (params: ErrorCodePageReqVO) => {
|
||||||
return defHttp.download({ url: '/system/error-code/export-excel', params })
|
return defHttp.download({ url: '/system/error-code/export-excel', params }, '错误码.xls')
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,5 +26,5 @@ export const getLoginLogPageApi = (params: LoginLogReqVO) => {
|
||||||
}
|
}
|
||||||
// 导出登录日志
|
// 导出登录日志
|
||||||
export const exportLoginLogApi = (params: LoginLogReqVO) => {
|
export const exportLoginLogApi = (params: LoginLogReqVO) => {
|
||||||
return defHttp.download({ url: '/system/login-log/export', params })
|
return defHttp.download({ url: '/system/login-log/export', params }, '登录日志.xls')
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,5 +37,5 @@ export const getOperateLogPageApi = (params: OperateLogPageReqVO) => {
|
||||||
}
|
}
|
||||||
// 导出操作日志
|
// 导出操作日志
|
||||||
export const exportOperateLogApi = (params: OperateLogPageReqVO) => {
|
export const exportOperateLogApi = (params: OperateLogPageReqVO) => {
|
||||||
return defHttp.download({ url: '/system/operate-log/export', params })
|
return defHttp.download({ url: '/system/operate-log/export', params }, '操作日志.xls')
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ export const deleteSensitiveWordApi = (id: number) => {
|
||||||
|
|
||||||
// 导出敏感词
|
// 导出敏感词
|
||||||
export const exportSensitiveWordApi = (params: SensitiveWordExportReqVO) => {
|
export const exportSensitiveWordApi = (params: SensitiveWordExportReqVO) => {
|
||||||
return defHttp.download({ url: '/system/sensitive-word/export-excel', params })
|
return defHttp.download({ url: '/system/sensitive-word/export-excel', params }, '导出敏感词.xls')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取所有敏感词的标签数组
|
// 获取所有敏感词的标签数组
|
||||||
|
|
|
@ -53,5 +53,5 @@ export const getSmsLogPageApi = (params: SmsLogPageReqVO) => {
|
||||||
|
|
||||||
// 导出短信日志
|
// 导出短信日志
|
||||||
export const exportSmsLogApi = (params: SmsLogExportReqVO) => {
|
export const exportSmsLogApi = (params: SmsLogExportReqVO) => {
|
||||||
return defHttp.download({ url: '/system/sms-log/export', params })
|
return defHttp.download({ url: '/system/sms-log/export', params }, '短信日志.xls')
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,5 +73,5 @@ export const sendSmsApi = (data: SendSmsReqVO) => {
|
||||||
|
|
||||||
// 导出短信模板
|
// 导出短信模板
|
||||||
export const exportPostApi = (params: SmsTemplateExportReqVO) => {
|
export const exportPostApi = (params: SmsTemplateExportReqVO) => {
|
||||||
return defHttp.download({ url: '/system/sms-template/export-excel', params })
|
return defHttp.download({ url: '/system/sms-template/export-excel', params }, '短信模板.xls')
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,5 +58,5 @@ export const deleteTenantApi = (id: number) => {
|
||||||
|
|
||||||
// 导出租户
|
// 导出租户
|
||||||
export const exportTenantApi = (params: TenantExportReqVO) => {
|
export const exportTenantApi = (params: TenantExportReqVO) => {
|
||||||
return defHttp.download({ url: '/system/tenant/export-excel', params })
|
return defHttp.download({ url: '/system/tenant/export-excel', params }, '租户.xls')
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,12 +59,12 @@ export const deleteUserApi = (id: number) => {
|
||||||
|
|
||||||
// 导出用户
|
// 导出用户
|
||||||
export const exportUserApi = (params: UserExportReqVO) => {
|
export const exportUserApi = (params: UserExportReqVO) => {
|
||||||
return defHttp.download({ url: '/system/user/export', params })
|
return defHttp.download({ url: '/system/user/export', params }, '用户.xls')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 下载用户导入模板
|
// 下载用户导入模板
|
||||||
export const importUserTemplateApi = () => {
|
export const importUserTemplateApi = () => {
|
||||||
return defHttp.download({ url: '/system/user/get-import-template' })
|
return defHttp.download({ url: '/system/user/get-import-template' }, '用户导入模板.xls')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户密码重置
|
// 用户密码重置
|
||||||
|
|
Loading…
Reference in New Issue