Compare commits

...

2 Commits

Author SHA1 Message Date
51f04d7528 Merge branch 'main' of http://1.117.67.95:3000/ZhangRongHong/tyapi-frontend 2026-03-21 14:33:11 +08:00
47a9eaebcd f 2026-03-21 14:33:00 +08:00
6 changed files with 24 additions and 29 deletions

View File

@@ -862,7 +862,7 @@ const handleExport = async () => {
const response = await apiCallApi.exportAdminApiCalls(params)
// 创建下载链接
const blob = new Blob([response], {
const blob = new Blob([response.data], {
type: exportOptions.format === 'excel'
? 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
: 'text/csv;charset=utf-8'

View File

@@ -746,8 +746,8 @@ const handleExport = async (options) => {
// 调用导出API需要在后端添加相应的API
const response = await financeApi.exportAdminPurchaseRecords(params)
// 创建下载链接
const blob = new Blob([response], {
// 创建下载链接(二进制在 response.data见 request 响应拦截器包装)
const blob = new Blob([response.data], {
type: options.format === 'excel'
? 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
: 'text/csv;charset=utf-8'

View File

@@ -701,7 +701,7 @@ const handleExport = async (options) => {
const response = await rechargeRecordApi.exportAdminRechargeRecords(params)
// 创建下载链接
const blob = new Blob([response], {
const blob = new Blob([response.data], {
type: options.format === 'excel'
? 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
: 'text/csv;charset=utf-8'

View File

@@ -575,7 +575,7 @@ const handleExport = async (options) => {
const response = await walletTransactionApi.exportAdminWalletTransactions(params)
// 创建下载链接
const blob = new Blob([response], {
const blob = new Blob([response.data], {
type: options.format === 'excel'
? 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
: 'text/csv;charset=utf-8'

View File

@@ -620,8 +620,8 @@ const handleExport = async (options) => {
// 调用导出API
const response = await apiCallApi.exportAdminApiCalls(params)
// 创建下载链接
const blob = new Blob([response], {
// 创建下载链接(二进制在 response.data见 request 响应拦截器包装)
const blob = new Blob([response.data], {
type: options.format === 'excel'
? 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
: 'text/csv;charset=utf-8'

View File

@@ -26,7 +26,7 @@
</div>
</div>
<!-- 充值提示赠送开启时显示充值优惠关闭时显示 API 商店充值提示 -->
<!-- 充值优惠提示仅在开启赠送时显示 -->
<div class="recharge-benefit-alert" v-if="rechargeConfig.recharge_bonus_enabled">
<el-alert
title="充值优惠"
@@ -50,16 +50,13 @@
</template>
</el-alert>
</div>
<div class="recharge-benefit-alert" v-else-if="rechargeConfig.api_store_recharge_tip">
<el-alert
title="API商店充值提示"
type="info"
:closable="false"
show-icon
>
<template #default>
<!-- API商店充值提示只要后端配置了就直接展示在页面中 -->
<div v-if="rechargeConfig.api_store_recharge_tip" class="recharge-benefit-alert api-store-recharge-tip">
<div class="benefit-content">
<span class="api-store-recharge-tip-text">
{{ rechargeConfig.api_store_recharge_tip }}
</span>
<el-button
type="primary"
size="small"
@@ -69,8 +66,6 @@
商务洽谈
</el-button>
</div>
</template>
</el-alert>
</div>
<!-- 余额状态提示 -->