添加搜索
This commit is contained in:
parent
0c291f2870
commit
3986db42f5
|
|
@ -42,6 +42,7 @@ const searchForm = ref({
|
||||||
username: '',
|
username: '',
|
||||||
subAccountId: '',
|
subAccountId: '',
|
||||||
type: '',
|
type: '',
|
||||||
|
orderNo: '',
|
||||||
startTime: initTime.start,
|
startTime: initTime.start,
|
||||||
endTime: initTime.end,
|
endTime: initTime.end,
|
||||||
})
|
})
|
||||||
|
|
@ -92,6 +93,7 @@ const getFundDetailList = async () => {
|
||||||
: '2026-03-15 23:59:59',
|
: '2026-03-15 23:59:59',
|
||||||
user_name: searchForm.value.username,
|
user_name: searchForm.value.username,
|
||||||
account_id: searchForm.value.subAccountId,
|
account_id: searchForm.value.subAccountId,
|
||||||
|
trade_id: searchForm.value.orderNo,
|
||||||
type: searchForm.value.type || '',
|
type: searchForm.value.type || '',
|
||||||
}
|
}
|
||||||
// 调用接口获取数据
|
// 调用接口获取数据
|
||||||
|
|
@ -137,6 +139,7 @@ const handleReset = () => {
|
||||||
username: '',
|
username: '',
|
||||||
subAccountId: '',
|
subAccountId: '',
|
||||||
type: '',
|
type: '',
|
||||||
|
orderNo: '',
|
||||||
startTime: initTime.start,
|
startTime: initTime.start,
|
||||||
endTime: initTime.end,
|
endTime: initTime.end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
*/
|
*/
|
||||||
export const search = [
|
export const search = [
|
||||||
//单号
|
//单号
|
||||||
// { prop: 'orderNo', label: '单号', type: 'input' as const, placeholder: '请输入流水单号', width: '140px' },
|
{ prop: 'orderNo', label: '单号', type: 'input' as const, placeholder: '请输入流水单号', width: '140px' },
|
||||||
//用户名
|
//用户名
|
||||||
{
|
{
|
||||||
prop: 'username',
|
prop: 'username',
|
||||||
|
|
|
||||||
|
|
@ -198,11 +198,11 @@ const fetchWalletData = async () => {
|
||||||
if (res) {
|
if (res) {
|
||||||
cardData.value = [
|
cardData.value = [
|
||||||
{ label: '总金额', value: res.amount ?? 0, icon: markRaw(Money) },
|
{ label: '总金额', value: res.amount ?? 0, icon: markRaw(Money) },
|
||||||
{ label: '盈利', value: res.closing_profit ?? 0, icon: markRaw(Trophy) },
|
// { label: '盈利', value: res.closing_profit ?? 0, icon: markRaw(Trophy) },
|
||||||
{ label: '手续费佣金', value: res.commission_fee_handling ?? 0, icon: markRaw(Coin) },
|
// { label: '手续费佣金', value: res.commission_fee_handling ?? 0, icon: markRaw(Coin) },
|
||||||
{ label: '可提现点差佣金', value: ((res.commission_point_diff || 0) - (res.freeze || 0)) , icon: markRaw(Wallet) },
|
// { label: '可提现点差佣金', value: ((res.commission_point_diff || 0) - (res.freeze || 0)) , icon: markRaw(Wallet) },
|
||||||
{ label: '冻结点差佣金', value: res.freeze ?? 0, icon: markRaw(Lock) },
|
{ label: '冻结点差佣金', value: res.freeze ?? 0, icon: markRaw(Lock) },
|
||||||
{ label: '服务费', value: res.service ?? 0, icon: markRaw(DataAnalysis) },
|
// { label: '服务费', value: res.service ?? 0, icon: markRaw(DataAnalysis) },
|
||||||
{ label: '保证金', value: res.bail ?? 0, icon: markRaw(TrendCharts) }
|
{ label: '保证金', value: res.bail ?? 0, icon: markRaw(TrendCharts) }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -142,9 +142,9 @@
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<!-- {{ userInfo.role_id }} -->
|
||||||
<!-- 个人账户 -->
|
<!-- 个人账户 -->
|
||||||
<section class="section my-accounts">
|
<section class="section my-accounts" v-if="userInfo.type*1 !== 2 && userInfo.role_id * 1 === 5" >
|
||||||
<h2 class="section-title">
|
<h2 class="section-title">
|
||||||
<el-icon><User /></el-icon>
|
<el-icon><User /></el-icon>
|
||||||
个人账户
|
个人账户
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,9 @@
|
||||||
<template #pointSpread="{ row }">
|
<template #pointSpread="{ row }">
|
||||||
<el-button type="primary" size="small" @click="handleViewPointDiff(row)"> 查看 </el-button>
|
<el-button type="primary" size="small" @click="handleViewPointDiff(row)"> 查看 </el-button>
|
||||||
</template>
|
</template>
|
||||||
|
<template #ratio="{ row }">
|
||||||
|
<span :style="getRatioStyle(row.ratio)">{{ row.ratio }}</span>
|
||||||
|
</template>
|
||||||
</MarketTable>
|
</MarketTable>
|
||||||
<!-- 行右键菜单 -->
|
<!-- 行右键菜单 -->
|
||||||
<context-menu v-model:show="menuVisible" :options="menuOptions">
|
<context-menu v-model:show="menuVisible" :options="menuOptions">
|
||||||
|
|
@ -406,6 +409,25 @@ const getMarketFloatProfit = (accountId: string | number): string => {
|
||||||
return parts[0] + '.' + (parts[1] + '00').slice(0, 2)
|
return parts[0] + '.' + (parts[1] + '00').slice(0, 2)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description 获取风险率样式
|
||||||
|
* @param ratio 风险率字符串,如 "100%" 或 "--"
|
||||||
|
* @returns 颜色样式对象
|
||||||
|
*/
|
||||||
|
const getRatioStyle = (ratio: string | number | undefined | null) => {
|
||||||
|
// 空值或 '--' 不着色
|
||||||
|
if (ratio === undefined || ratio === null || ratio === '' || ratio === '--') {
|
||||||
|
return { color: '' }
|
||||||
|
}
|
||||||
|
// 去除百分号并转为数字
|
||||||
|
const num = Number(String(ratio).replace('%', ''))
|
||||||
|
if (isNaN(num)) return { color: '' }
|
||||||
|
// 小于等于 20 红色,20-30 之间黄色,大于 30 绿色
|
||||||
|
if (num <= 20) return { color: '#f56c6c' }
|
||||||
|
if (num > 20 && num <= 30) return { color: '#e6a23c' }
|
||||||
|
return { color: '#67c23a' }
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description 获取做市商的平仓盈亏值
|
* @description 获取做市商的平仓盈亏值
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -21,11 +21,11 @@ export const marketTableColumns = [
|
||||||
{ label: '级别', prop: 'level', align: 'center' as const, width: '120px' },
|
{ label: '级别', prop: 'level', align: 'center' as const, width: '120px' },
|
||||||
{ label: '邮箱', prop: 'email', align: 'center' as const, width: '160px' },
|
{ label: '邮箱', prop: 'email', align: 'center' as const, width: '160px' },
|
||||||
{ label: '手机号', prop: 'mobile', align: 'center' as const, width: '180' },
|
{ label: '手机号', prop: 'mobile', align: 'center' as const, width: '180' },
|
||||||
{ label: '风险率', prop: 'ratio', align: 'center' as const, width: '120px' },
|
{ label: '风险率', prop: 'ratio', align: 'center' as const, width: '120px', slotName: 'ratio' },
|
||||||
{ label: '接单状态', prop: 'market_status', align: 'center' as const, width: '120px' },
|
{ label: '接单状态', prop: 'market_status', align: 'center' as const, width: '120px' },
|
||||||
//基本账户
|
//基本账户
|
||||||
{ label: '基本账户', prop: 'basicAccount', align: 'center' as const, isNumber: true , width: '200px' },
|
{ label: '基本账户', prop: 'basicAccount', align: 'center' as const, isNumber: true , width: '200px' },
|
||||||
// { label: '冻结点差', prop: 'freeze', align: 'center' as const, isNumber: true , width: '200px' },
|
{ label: '冻结点差', prop: 'freeze', align: 'center' as const, isNumber: true , width: '200px' },
|
||||||
//保证金
|
//保证金
|
||||||
{ label: '保证金', prop: 'margin', align: 'center' as const, width: '200px', isNumber: true },
|
{ label: '保证金', prop: 'margin', align: 'center' as const, width: '200px', isNumber: true },
|
||||||
//停止接单保证金
|
//停止接单保证金
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue