From 6d180b94a8ab85bfc9f3de9fce8c03d89fb015d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=9C?= <2970639877@qq.com> Date: Mon, 16 Mar 2026 17:03:22 +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/account/market.ts | 24 +- src/api/types/account/market.d.ts | 2 +- src/components/common/Dialog.vue | 7 +- src/components/common/Pagination.vue | 2 +- src/components/common/Table.vue | 18 +- src/views/account/market-maker/index.vue | 454 ++++++++++++++++++- src/views/account/market-maker/options.ts | 35 +- src/views/account/market-maker/rules.ts | 195 +++++--- src/views/account/market-maker/备份.vue | 523 ---------------------- src/views/system/roleManagement/index.vue | 2 +- 10 files changed, 624 insertions(+), 638 deletions(-) delete mode 100644 src/views/account/market-maker/备份.vue diff --git a/src/api/modules/account/market.ts b/src/api/modules/account/market.ts index cf0e1d0..223b26f 100644 --- a/src/api/modules/account/market.ts +++ b/src/api/modules/account/market.ts @@ -6,12 +6,26 @@ export async function getMarketListApi(params: searchParams): Promise { return request.get('agent/getAgentList', { ...params }) } -//获取代理点差配置 -export async function getPointDiffConfigApi(params: pointDiffConfigParams): Promise { - return request.get('/agent/getSelfVarietyPointDiffConfig',{...params}) -} - //获取所属上级列表 export async function getParAgentListApi(params: pointDiffConfigParams): Promise { return request.get('/agent/getParAgentListByRoleId',{...params}) } + +//获取代理点差列表 +export async function getPointDiffConfigListApi(params: pointDiffConfigParams): Promise { + return request.get('/agent/getSelfVarietyPointDiffConfig',{...params}) +} + +//获取风控模板选列表 +export async function getRiskTemplateListApi(): Promise { + return request.get('/agent/getRiskControlOptions') +} + +//添加做市商 +export async function addMarketApi(params:any): Promise { + return request.post('/agent/createAgent',{...params}) +} +//编辑做市商 +export async function editMarketApi(params:any): Promise { + return request.post('/agent/editAgent',{...params}) +} \ No newline at end of file diff --git a/src/api/types/account/market.d.ts b/src/api/types/account/market.d.ts index 06cdd06..29f915e 100644 --- a/src/api/types/account/market.d.ts +++ b/src/api/types/account/market.d.ts @@ -4,6 +4,6 @@ export interface searchParams { } //获取代理点差配置 export interface pointDiffConfigParams { - user_id?: number | null + user_id?: number | string role_id?: number | string } \ No newline at end of file diff --git a/src/components/common/Dialog.vue b/src/components/common/Dialog.vue index 30eeff6..82dad98 100644 --- a/src/components/common/Dialog.vue +++ b/src/components/common/Dialog.vue @@ -5,7 +5,7 @@ -