diff --git a/src/api/modules/personalized/followRecord.ts b/src/api/modules/personalized/followRecord.ts new file mode 100644 index 0000000..f8320be --- /dev/null +++ b/src/api/modules/personalized/followRecord.ts @@ -0,0 +1,6 @@ +import { request } from '@/api'; + +// 获取跟单记录列表 +export const getFollowListApi = (params: any) => { + return request.get('/orderRecords/followList', {...params}) +} \ No newline at end of file diff --git a/src/api/modules/personalized/leadRecord.ts b/src/api/modules/personalized/leadRecord.ts new file mode 100644 index 0000000..7a3dc9a --- /dev/null +++ b/src/api/modules/personalized/leadRecord.ts @@ -0,0 +1,6 @@ +import { request } from '@/api'; + +// 获取带单记录列表 +export const getLeadListApi = (params: any) => { + return request.get('/orderRecords/singleList', {...params}) +} diff --git a/src/components/layout/Sidebar.vue b/src/components/layout/Sidebar.vue index 748f146..aab4485 100644 --- a/src/components/layout/Sidebar.vue +++ b/src/components/layout/Sidebar.vue @@ -349,11 +349,27 @@ const staticMenuList = ref( path: 'agent', // index="agent" icon: 'UserFilled', // 对应 图标 children: [ - //客户统计 //客户列表 + { + id: 132, + label: '客户列表', + path: '/agent/customerList', // index="13-2" + icon: '' + }, //客户交易订单 - //返佣流水 + { + id: 133, + label: '客户交易订单', + path: '/agent/customerTradeOrder', // index="13-3" + icon: '' + }, //客户资金流水 + { + id: 135, + label: '客户资金流水', + path: '/agent/customerCapitalFlow', // index="13-5" + icon: '' + }, ] }, // 通知管理(子菜单) diff --git a/src/router/index.ts b/src/router/index.ts index fe44008..82292e6 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -334,6 +334,43 @@ const routes = [ }, ] }, + //代理管理 + { + path: 'agent', + name: 'Agent', + meta: { + title: '代理管理', // 左侧菜单显示的标题 + }, + children: [ + //客户列表 + { + path: 'customerList', + name: 'CustomerList', + component: () => import('@/views/agent/customerList/index.vue'), + meta: { + title: '客户列表', // 左侧菜单显示的标题 + } + }, + //客户交易订单 + { + path: 'customerTradeOrder', + name: 'CustomerTradeOrder', + component: () => import('@/views/agent/customerTradeOrder/index.vue'), + meta: { + title: '客户交易订单', // 左侧菜单显示的标题 + } + }, + //客户资金流水 + { + path: 'customerCapitalFlow', + name: 'CustomerCapitalFlow', + component: () => import('@/views/agent/customerCapitalFlow/index.vue'), + meta: { + title: '客户资金流水', // 左侧菜单显示的标题 + } + }, + ] + }, ] }, { diff --git a/src/views/agent/customerCapitalFlow/index.vue b/src/views/agent/customerCapitalFlow/index.vue new file mode 100644 index 0000000..1cbc27d --- /dev/null +++ b/src/views/agent/customerCapitalFlow/index.vue @@ -0,0 +1,5 @@ + diff --git a/src/views/agent/customerList/index.vue b/src/views/agent/customerList/index.vue new file mode 100644 index 0000000..4228f82 --- /dev/null +++ b/src/views/agent/customerList/index.vue @@ -0,0 +1,5 @@ + diff --git a/src/views/agent/customerTradeOrder/index.vue b/src/views/agent/customerTradeOrder/index.vue new file mode 100644 index 0000000..c8c84d7 --- /dev/null +++ b/src/views/agent/customerTradeOrder/index.vue @@ -0,0 +1,5 @@ + diff --git a/src/views/personalized/followRecord/index.vue b/src/views/personalized/followRecord/index.vue index c3aa100..a27c4c1 100644 --- a/src/views/personalized/followRecord/index.vue +++ b/src/views/personalized/followRecord/index.vue @@ -1,5 +1,119 @@ + + diff --git a/src/views/personalized/followRecord/options.ts b/src/views/personalized/followRecord/options.ts new file mode 100644 index 0000000..1bdbc19 --- /dev/null +++ b/src/views/personalized/followRecord/options.ts @@ -0,0 +1,29 @@ +export const search = [ + // 订单号 + { prop: 'orderNo', label: '订单号', type: 'input' as const, placeholder: '请输入订单号',width: '200px' }, + //开始时间 + { + prop: 'startTime', label: '开始时间', type: 'date' as const, dateType: 'date' as const, // 时间范围选择器 + valueFormat: 'YYYY-MM-DD', placeholder: '请选择开始时间', width: '150px' + }, + //结束时间 + { + prop: 'endTime', label: '结束时间', type: 'date' as const, dateType: 'date' as const, // 时间范围选择器 + valueFormat: 'YYYY-MM-DD', placeholder: '请选择结束时间', width: '150px' + }, +] + +export const tableColumns = [ + // 订单号 + { prop: 'orderNo', label: '订单号' }, + // 跟单账户 + { prop: 'followAccount', label: '跟单账户' }, + // 交易品种 + { prop: 'symbol', label: '交易品种' }, + // 交易数量 + { prop: 'tradeQty', label: '交易数量' }, + // 交易时间 + { prop: 'tradeTime', label: '交易时间' }, + // 平仓盈亏 + { prop: 'closeProfit', label: '平仓盈亏' }, +] \ No newline at end of file diff --git a/src/views/personalized/leadRecord/index.vue b/src/views/personalized/leadRecord/index.vue index c00d6d2..b02a24f 100644 --- a/src/views/personalized/leadRecord/index.vue +++ b/src/views/personalized/leadRecord/index.vue @@ -1,5 +1,119 @@ \ No newline at end of file + + + diff --git a/src/views/personalized/leadRecord/options.ts b/src/views/personalized/leadRecord/options.ts new file mode 100644 index 0000000..1bdbc19 --- /dev/null +++ b/src/views/personalized/leadRecord/options.ts @@ -0,0 +1,29 @@ +export const search = [ + // 订单号 + { prop: 'orderNo', label: '订单号', type: 'input' as const, placeholder: '请输入订单号',width: '200px' }, + //开始时间 + { + prop: 'startTime', label: '开始时间', type: 'date' as const, dateType: 'date' as const, // 时间范围选择器 + valueFormat: 'YYYY-MM-DD', placeholder: '请选择开始时间', width: '150px' + }, + //结束时间 + { + prop: 'endTime', label: '结束时间', type: 'date' as const, dateType: 'date' as const, // 时间范围选择器 + valueFormat: 'YYYY-MM-DD', placeholder: '请选择结束时间', width: '150px' + }, +] + +export const tableColumns = [ + // 订单号 + { prop: 'orderNo', label: '订单号' }, + // 跟单账户 + { prop: 'followAccount', label: '跟单账户' }, + // 交易品种 + { prop: 'symbol', label: '交易品种' }, + // 交易数量 + { prop: 'tradeQty', label: '交易数量' }, + // 交易时间 + { prop: 'tradeTime', label: '交易时间' }, + // 平仓盈亏 + { prop: 'closeProfit', label: '平仓盈亏' }, +] \ No newline at end of file diff --git a/src/views/trade/positionStat/index.vue b/src/views/trade/positionStat/index.vue index ff9fd2c..6c004c7 100644 --- a/src/views/trade/positionStat/index.vue +++ b/src/views/trade/positionStat/index.vue @@ -13,7 +13,7 @@ - +