Compare commits
2 Commits
40a4c7fa08
...
51f04d7528
| Author | SHA1 | Date | |
|---|---|---|---|
| 51f04d7528 | |||
| 47a9eaebcd |
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 充值提示:赠送开启时显示充值优惠,关闭时显示 API 商店充值提示 -->
|
||||
<!-- 充值优惠提示(仅在开启赠送时显示) -->
|
||||
<div class="recharge-benefit-alert" v-if="rechargeConfig.recharge_bonus_enabled">
|
||||
<el-alert
|
||||
title="充值优惠"
|
||||
@@ -50,27 +50,22 @@
|
||||
</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>
|
||||
<div class="benefit-content">
|
||||
{{ rechargeConfig.api_store_recharge_tip }}
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="showBusinessConsultation = true"
|
||||
class="consultation-btn"
|
||||
>
|
||||
商务洽谈
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-alert>
|
||||
|
||||
<!-- 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"
|
||||
@click="showBusinessConsultation = true"
|
||||
class="consultation-btn"
|
||||
>
|
||||
商务洽谈
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 余额状态提示 -->
|
||||
|
||||
Reference in New Issue
Block a user