代理列表
This commit is contained in:
parent
db0bfc7fd4
commit
dc9cba09b2
|
|
@ -101,3 +101,9 @@
|
|||
opacity: 0;
|
||||
transform: translateX(-10px) scale(0.98);
|
||||
}
|
||||
|
||||
.table_form-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<div class="pagination-container">
|
||||
<el-pagination
|
||||
style="width: auto;"
|
||||
v-model:current-page="currentPage"
|
||||
v-model:page-size="pageSize"
|
||||
:page-sizes="pageSizes"
|
||||
|
|
@ -112,9 +113,16 @@ const handleCurrentChange = (val: number) => {
|
|||
|
||||
<style scoped lang="scss">
|
||||
.pagination-container {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
z-index: 1000;
|
||||
// position: fixed;
|
||||
// bottom: 20px;
|
||||
// float: right;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
padding: 10px;
|
||||
background-color: #fff;
|
||||
justify-content: flex-end;
|
||||
align-items: flex-end;
|
||||
// right: 20px;
|
||||
// z-index: 1000;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
<div class="table-container">
|
||||
<el-table
|
||||
ref="tableRef"
|
||||
height="100%"
|
||||
style="width: 100%"
|
||||
style="width: 100%; flex: 1"
|
||||
:data="tableData"
|
||||
:row-key="rowKey"
|
||||
:tree-props="treeProps"
|
||||
|
|
@ -142,7 +141,15 @@ defineExpose({
|
|||
<style scoped lang="scss">
|
||||
.table-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
// overflow: hidden;
|
||||
height: 0;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
||||
:deep(.el-table) {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -11,14 +11,17 @@
|
|||
<!-- 右侧内容区:面包屑 + 页签 + 主体内容 -->
|
||||
<section class="content-container">
|
||||
<!-- 面包屑导航 -->
|
||||
<!-- <Breadcrumb />-->
|
||||
<!-- <Breadcrumb />-->
|
||||
|
||||
<!-- 页签标签栏 -->
|
||||
<!-- <Tabs />-->
|
||||
<!-- <Tabs />-->
|
||||
|
||||
<!-- 主体内容区 -->
|
||||
<main class="main-content">
|
||||
<transition name="fade-transform" mode="out-in">
|
||||
<transition name="fade-transform" mode="out-in"
|
||||
style="height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;">
|
||||
<router-view v-slot="{ Component }">
|
||||
<KeepAlive>
|
||||
<component :is="Component" :key="route.path" />
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="risk">
|
||||
<div class="risk table_form-container">
|
||||
<div class="bar">
|
||||
<span>风控管理</span>
|
||||
<el-button type="primary" @click="handleAddRisk" v-auth="'riskControl_createRiskControl'"
|
||||
|
|
@ -380,12 +380,14 @@ const handleClose = () => {
|
|||
}
|
||||
|
||||
.risk-table-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
|
||||
.table-switch {
|
||||
flex-basis: 20%;
|
||||
min-width: 200px;
|
||||
height: 100%;
|
||||
|
||||
:deep(.el-table__row.current-row) {
|
||||
background-color: #ecf5ff !important;
|
||||
|
|
@ -395,6 +397,7 @@ const handleClose = () => {
|
|||
|
||||
.table-content {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
|
||||
.risk-content-group {
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="market">
|
||||
<div class="market table_form-container">
|
||||
<!-- 搜索 -->
|
||||
<MarketSearch :search-form="marketSearchForm" :search-options="marketSearchOptions" @search="handleSearch"
|
||||
@reset="handleReset">
|
||||
|
|
@ -316,7 +316,7 @@ const mapMarketTree = (data: any) => {
|
|||
closeProfitLoss: item.wallet_capital.closing_profit, //平仓盈亏
|
||||
riskMargin: item.wallet_capital.risk, //风险保证金
|
||||
serviceFee: item.wallet_capital.service, //服务费
|
||||
flag: item.role_id * 1 === 5 ? (item.type! === 1 ? 1 : 2) : null,
|
||||
flag: item.role_id * 1 === 5 ? item.type * 1 : null,
|
||||
//使用这个字段来判断是否是做市商
|
||||
mobile: item.mobile || '--',
|
||||
email: item.email || '--',
|
||||
|
|
@ -342,18 +342,10 @@ const handleMarketFormLinkage = async (type: 'level' | 'parentAccountName', valu
|
|||
|
||||
// 调用获取上级账户列表接口
|
||||
let flag = null
|
||||
if (
|
||||
(selectedRow.value?.role_id * 1 === 5 || marketForm.value?.level * 1 === 5) &&
|
||||
selectedRow.value?.type * 1 === 1
|
||||
)
|
||||
flag = 1
|
||||
if (
|
||||
(selectedRow.value?.role_id * 1 === 6 || marketForm.value?.level * 1 === 6) &&
|
||||
selectedRow.value?.type * 1 === 2
|
||||
)
|
||||
flag = 2
|
||||
const data = await getParAgentListApi({ role_id: value, flag: flag })
|
||||
console.log('datasssssssssssss', data)
|
||||
if (marketForm.value?.level * 1 === 5) flag = 1
|
||||
if (marketForm.value?.level * 1 === 6) flag = 2
|
||||
console.log('datasssssssssssss', marketForm.value)
|
||||
const data = await getParAgentListApi({ role_id: +value === 6 ? 5 : value, flag: flag })
|
||||
// 格式化下拉选项
|
||||
marketFormOptionsMap.value.parentAccountName = data.map((item: any) => ({
|
||||
label: item.username,
|
||||
|
|
@ -380,7 +372,7 @@ const handleMarketFormLinkage = async (type: 'level' | 'parentAccountName', valu
|
|||
marketForm.value.maxCommissionRatio = rulesData.row.wallet_capital.fee_handling_percent
|
||||
|
||||
// 调用获取点差列表接口
|
||||
const data = await getPointDiffConfigListApi({ user_id: value })
|
||||
const data = await getPointDiffConfigListApi({ user_id: value, flag: flag })
|
||||
// 格式化点差表格数据(按实际需求调整)
|
||||
marketPointTree.value = data.map((item: any) => ({
|
||||
...item,
|
||||
|
|
@ -741,6 +733,7 @@ const handleCancel = async () => {
|
|||
|
||||
.table-container {
|
||||
max-width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
// 抽屉样式
|
||||
|
|
|
|||
|
|
@ -522,6 +522,11 @@ const handleAdjustAmountClose = () => {
|
|||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.client{
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
:deep(.el-form-item__content) {
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="system">
|
||||
<div class="system table_form-container">
|
||||
<!-- 菜单列表头 -->
|
||||
<div class="header">
|
||||
<h4>菜单列表</h4>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="system">
|
||||
<div class="system table_form-container">
|
||||
<!-- 角色列表头 -->
|
||||
<div class="header">
|
||||
<h4>角色列表</h4>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="system">
|
||||
<div class="system table_form-container">
|
||||
<!-- 菜单列表头 -->
|
||||
<MenuHeader :title="menuTitle" :buttons="menuHeaderButtons" @click="handleAddMenu" />
|
||||
<!-- 菜单列表表格 -->
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="variety">
|
||||
<div class="variety table_form-container">
|
||||
<!-- 搜索 -->
|
||||
<VarietySearch
|
||||
:search-form="searchForm"
|
||||
|
|
|
|||
Loading…
Reference in New Issue