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 }