From c8e9b79bce5e239953c8f126df4aaccddb83b02a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=9C?= <2970639877@qq.com> Date: Sat, 14 Mar 2026 17:04:54 +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 | 7 +- src/api/types/account/market.d.ts | 3 +- src/components/common/Form.vue | 6 +- src/components/common/Search.vue | 3 - src/views/account/agent/index.vue | 2 +- src/views/account/market-maker/index.vue | 317 ++++--------- src/views/account/market-maker/options.ts | 41 +- src/views/account/market-maker/rules.ts | 95 ++++ src/views/account/market-maker/备份.vue | 523 ++++++++++++++++++++++ 9 files changed, 756 insertions(+), 241 deletions(-) create mode 100644 src/views/account/market-maker/rules.ts create 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 2e753bc..cf0e1d0 100644 --- a/src/api/modules/account/market.ts +++ b/src/api/modules/account/market.ts @@ -9,4 +9,9 @@ export async function getMarketListApi(params: searchParams): Promise { //获取代理点差配置 export async function getPointDiffConfigApi(params: pointDiffConfigParams): Promise { return request.get('/agent/getSelfVarietyPointDiffConfig',{...params}) -} \ No newline at end of file +} + +//获取所属上级列表 +export async function getParAgentListApi(params: pointDiffConfigParams): Promise { + return request.get('/agent/getParAgentListByRoleId',{...params}) +} diff --git a/src/api/types/account/market.d.ts b/src/api/types/account/market.d.ts index b861522..06cdd06 100644 --- a/src/api/types/account/market.d.ts +++ b/src/api/types/account/market.d.ts @@ -4,5 +4,6 @@ export interface searchParams { } //获取代理点差配置 export interface pointDiffConfigParams { - user_id: number | string + user_id?: number | null + role_id?: number | string } \ No newline at end of file diff --git a/src/components/common/Form.vue b/src/components/common/Form.vue index b5ca4b1..e6e2cbb 100644 --- a/src/components/common/Form.vue +++ b/src/components/common/Form.vue @@ -9,7 +9,7 @@ + :placeholder="item.placeholder" :disabled="item.disabled" clearable style="width: 100%" @change="handleItemChange(item.prop, formData[item.prop])">