refactor(card): 重构沃尔玛账号相关功能

- 修改沃尔玛账号导入模板名称
- 更新沃尔玛账号表格列名称,区分金额和次数限制
- 修正沃尔玛账号导入功能相关API调用
This commit is contained in:
danial
2025-03-03 21:16:00 +08:00
parent b2cd3daabc
commit 54f29b2ba1
3 changed files with 14 additions and 9 deletions

View File

@@ -97,7 +97,7 @@ export async function downloadWalmartCardData() {
responseType: 'blob'
}
);
handleDownLoadFile(response.data, '苹果账号批量导入模板.xlsx');
handleDownLoadFile(response.data, '沃尔玛账号批量导入模板.xlsx');
}
export function batchAdd(data: {

View File

@@ -43,8 +43,12 @@ const tableColumns: TableColumnData[] = [
dataIndex: 'balance'
},
{
title: '限额',
dataIndex: 'limit'
title: '限额(金额)',
dataIndex: 'maxAmountLimit'
},
{
title: '限额(次数)',
dataIndex: 'maxCountLimit'
},
{
title: 'cookie',

View File

@@ -1,4 +1,5 @@
import { batchAdd, downloadJDCardData } from '@/api/card-jd-account';
// import { batchAdd, downloadJDCardData } from '@/api/card-jd-account';
import { batchAdd, downloadDataList } from '@/api/card-walmart-account';
import type { KamiApiCardInfoWalmartV1AccountCookieCheckRes } from '@/api/generated';
import { getAPIBaseUrl } from '@/api/utils';
import useLoading from '@/hooks/loading';
@@ -38,12 +39,12 @@ const tableColumns: TableColumnData[] = [
dataIndex: 'nickname'
},
{
title: '余额',
dataIndex: 'balance'
title: '限额(金额)',
dataIndex: 'maxAmountLimit'
},
{
title: '限额',
dataIndex: 'limit'
title: '限额(次数)',
dataIndex: 'maxCountLimit'
},
{
title: 'cookie',
@@ -186,7 +187,7 @@ export const batchImportModel = defineComponent({
<Button
long
status='warning'
onClick={() => downloadJDCardData()}
onClick={() => downloadDataList()}
>
</Button>