refactor(card): 重构沃尔玛账号相关功能
- 修改沃尔玛账号导入模板名称 - 更新沃尔玛账号表格列名称,区分金额和次数限制 - 修正沃尔玛账号导入功能相关API调用
This commit is contained in:
@@ -97,7 +97,7 @@ export async function downloadWalmartCardData() {
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
handleDownLoadFile(response.data, '苹果账号批量导入模板.xlsx');
|
||||
handleDownLoadFile(response.data, '沃尔玛账号批量导入模板.xlsx');
|
||||
}
|
||||
|
||||
export function batchAdd(data: {
|
||||
|
||||
@@ -43,8 +43,12 @@ const tableColumns: TableColumnData[] = [
|
||||
dataIndex: 'balance'
|
||||
},
|
||||
{
|
||||
title: '限额',
|
||||
dataIndex: 'limit'
|
||||
title: '限额(金额)',
|
||||
dataIndex: 'maxAmountLimit'
|
||||
},
|
||||
{
|
||||
title: '限额(次数)',
|
||||
dataIndex: 'maxCountLimit'
|
||||
},
|
||||
{
|
||||
title: 'cookie',
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user