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

View File

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

View File

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

View File

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

View File

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

View File

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