From dc548d1d53027bc6f59c47f979f6f64756220650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=9C?= <2970639877@qq.com> Date: Wed, 25 Mar 2026 09:28:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/agent/customCapitalFlow.ts | 6 + src/api/modules/agent/customerList.ts | 5 + src/api/modules/agent/customerTradeOrder.ts | 6 + src/components/common/Table.vue | 3 +- src/views/agent/customerCapitalFlow/index.vue | 111 ++++++++++- .../agent/customerCapitalFlow/options.ts | 35 ++++ src/views/agent/customerDetail/index.vue | 1 + src/views/agent/customerList/index.vue | 183 +++++++++++++++++- src/views/agent/customerList/options.ts | 37 ++++ src/views/agent/customerTradeOrder/index.vue | 132 ++++++++++++- src/views/agent/customerTradeOrder/options.ts | 106 ++++++++++ src/views/personalized/followRecord/index.vue | 5 +- src/views/personalized/leadRecord/index.vue | 13 +- src/views/trade/positionStat/index.vue | 4 +- 14 files changed, 633 insertions(+), 14 deletions(-) create mode 100644 src/api/modules/agent/customCapitalFlow.ts create mode 100644 src/api/modules/agent/customerList.ts create mode 100644 src/api/modules/agent/customerTradeOrder.ts create mode 100644 src/views/agent/customerCapitalFlow/options.ts create mode 100644 src/views/agent/customerDetail/index.vue create mode 100644 src/views/agent/customerList/options.ts create mode 100644 src/views/agent/customerTradeOrder/options.ts diff --git a/src/api/modules/agent/customCapitalFlow.ts b/src/api/modules/agent/customCapitalFlow.ts new file mode 100644 index 0000000..f2f1755 --- /dev/null +++ b/src/api/modules/agent/customCapitalFlow.ts @@ -0,0 +1,6 @@ +import { request } from '@/api'; + +// 获取资金流水列表 +export const getCustomCapitalFlowListApi = (params: any) => { + return request.get('user/FundFlowRecords', {...params}) +} diff --git a/src/api/modules/agent/customerList.ts b/src/api/modules/agent/customerList.ts new file mode 100644 index 0000000..17f2d56 --- /dev/null +++ b/src/api/modules/agent/customerList.ts @@ -0,0 +1,5 @@ +//获取代理客户列表接口 +import { request } from '@/api'; +export const getCustomerListApi = (params: any) => { + return request.get('/agent/getAgentUserList', {...params}) +} diff --git a/src/api/modules/agent/customerTradeOrder.ts b/src/api/modules/agent/customerTradeOrder.ts new file mode 100644 index 0000000..81e9a53 --- /dev/null +++ b/src/api/modules/agent/customerTradeOrder.ts @@ -0,0 +1,6 @@ +import { request } from '@/api'; + +// 获取跟订单列表 +export const getCustomTradeOrderListApi = (params: any) => { + return request.get('/orderRecords/getList', {...params}) +} \ No newline at end of file diff --git a/src/components/common/Table.vue b/src/components/common/Table.vue index fdafda2..474befa 100644 --- a/src/components/common/Table.vue +++ b/src/components/common/Table.vue @@ -5,7 +5,7 @@ @@ -113,7 +113,8 @@ const handleExport = () => { /** * @description: 定义分页方法 */ -const handleChange = (page: { currentPage: number, size: number }) => { +const handlePaginationChange = (page: { currentPage: number, size: number }) => { currentPage.value = page.currentPage + getFollowList() } diff --git a/src/views/personalized/leadRecord/index.vue b/src/views/personalized/leadRecord/index.vue index b02a24f..dc4c876 100644 --- a/src/views/personalized/leadRecord/index.vue +++ b/src/views/personalized/leadRecord/index.vue @@ -14,7 +14,7 @@ + @pagination-change="handlePaginationChange" /> @@ -55,7 +55,7 @@ const total = ref(0) /** * @description: 定义公共请求数据方法 */ -const getFollowList = async () => { +const getLeadList = async () => { const params = { page: currentPage.value, page_size: pageSize.value, @@ -84,14 +84,14 @@ const getFollowList = async () => { * @description: 页面加载完成需要请求的数据 */ onMounted(() => { - getFollowList() + getLeadList() }) /** * @description: 定义搜索方法 */ const handleSearch = async () => { console.log("搜索"); - getFollowList() + getLeadList() } const handleReset = () => { console.log('重置搜索') @@ -100,7 +100,7 @@ const handleReset = () => { startTime: '', endTime: '', } - getFollowList() + getLeadList() } const handleExport = () => { exportToExcel({ @@ -113,7 +113,8 @@ const handleExport = () => { /** * @description: 定义分页方法 */ -const handleChange = (page: { currentPage: number, size: number }) => { +const handlePaginationChange = (page: { currentPage: number, size: number }) => { currentPage.value = page.currentPage + getLeadList() } diff --git a/src/views/trade/positionStat/index.vue b/src/views/trade/positionStat/index.vue index 6c004c7..3ff2c2f 100644 --- a/src/views/trade/positionStat/index.vue +++ b/src/views/trade/positionStat/index.vue @@ -13,7 +13,7 @@ - + @@ -82,7 +82,7 @@ const handleExport = () => { /** * @description: 定义分页方法 */ -const handleChange = (page: {currentPage: number, size: number}) => { +const handlePaginationChange = (page: {currentPage: number, size: number}) => { currentPage.value = page.currentPage }