查询条件

This commit is contained in:
2026-06-16 14:45:40 +08:00
parent 855d7ec353
commit 630d01599f
6 changed files with 58 additions and 43 deletions

View File

@ -12,23 +12,23 @@ export const search = [
valueFormat: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD',
}, },
// 状态 // 状态
// { {
// prop: 'status', prop: 'status',
// label: '状态', label: '状态',
// type: 'select' as const, type: 'select' as const,
// options: [ options: [
// { {
// label: '正常', label: '正常',
// value: '1' value: '1'
// }, },
// { {
// label: '封禁', label: '封禁',
// value: '2' value: '2'
// }, },
// ], ],
// placeholder: '请选择状态', placeholder: '请选择状态',
// width: '100px' width: '100px'
// }, },
] ]
export const tableColumns = [ export const tableColumns = [

View File

@ -168,7 +168,7 @@ const getRiskList = async () => {
// //
withdrawalTimeSetting: item.withdraw_time, withdrawalTimeSetting: item.withdraw_time,
// //
isWithdrawalAuditRequired: item.withdraw_is_check === 1 ? '是' : '否', // isWithdrawalAuditRequired: item.withdraw_is_check === 1 ? '' : '',
// //
buildCloseTime: item.open_close_time, buildCloseTime: item.open_close_time,
// //
@ -283,7 +283,7 @@ const handleRowClick = (row: any) => {
{ text: '每次出金最大金额' + targetItem.maxWithdrawalAmount }, { text: '每次出金最大金额' + targetItem.maxWithdrawalAmount },
{ text: '是否允许出金' + targetItem.isWithdrawalAllowed }, { text: '是否允许出金' + targetItem.isWithdrawalAllowed },
{ text: '出金时间设置' + targetItem.withdrawalTimeSetting }, { text: '出金时间设置' + targetItem.withdrawalTimeSetting },
{ text: '是否需要出金审核' + targetItem.isWithdrawalAuditRequired }, // { text: '' + targetItem.isWithdrawalAuditRequired },
{ text: '建仓多少秒不能平仓' + targetItem.buildCloseTime }, { text: '建仓多少秒不能平仓' + targetItem.buildCloseTime },
{ text: '每次出金最小金额' + targetItem.minWithdrawalAmount }, { text: '每次出金最小金额' + targetItem.minWithdrawalAmount },
{ text: '滑点' + targetItem.slippage }, { text: '滑点' + targetItem.slippage },
@ -324,7 +324,7 @@ const handleSubmit = async () => {
// //
withdraw_time: Array.from(dialogForm.value.withdrawalTimeSetting || []).join('-'), withdraw_time: Array.from(dialogForm.value.withdrawalTimeSetting || []).join('-'),
// //
withdraw_is_check: dialogForm.value.isWithdrawalAuditRequired, // withdraw_is_check: dialogForm.value.isWithdrawalAuditRequired,
// //
open_close_time: dialogForm.value.buildCloseTime, open_close_time: dialogForm.value.buildCloseTime,
// //

View File

@ -24,7 +24,7 @@ export const formItem = [
// 是否允许出金 // 是否允许出金
{label: '是否允许出金', prop: 'isWithdrawalAllowed', type: 'radio' as const,labelWidth: '150px'}, {label: '是否允许出金', prop: 'isWithdrawalAllowed', type: 'radio' as const,labelWidth: '150px'},
// 是否需要出金审核 // 是否需要出金审核
{label: '是否需要出金审核', prop: 'isWithdrawalAuditRequired', type: 'radio' as const ,labelWidth: '150px'}, // {label: '是否需要出金审核', prop: 'isWithdrawalAuditRequired', type: 'radio' as const ,labelWidth: '150px'},
// 单笔开仓最大数量 // 单笔开仓最大数量
{label: '单笔开仓最大数量', prop: 'maxOpenPosition', type: 'input' as const, placeholder: '请输入单笔开仓最大数量',labelWidth: '150px'}, {label: '单笔开仓最大数量', prop: 'maxOpenPosition', type: 'input' as const, placeholder: '请输入单笔开仓最大数量',labelWidth: '150px'},
// 单品种最大持仓数量 // 单品种最大持仓数量

View File

@ -330,7 +330,7 @@ const getCustomerList = async () => {
accountName: item.username, accountName: item.username,
amount: item.wallet_capital.amount, amount: item.wallet_capital.amount,
userId: item.id, userId: item.id,
status: item.status === 1 ? '正常' : '禁用', statusName: item.status === 1 ? '正常' : '禁用',
role: item.role.title || '未知', role: item.role.title || '未知',
accountQty: item.son_user[0]?.son_user_count, accountQty: item.son_user[0]?.son_user_count,
commissionRatio: item?.wallet_capital?.fee_handling_percent, commissionRatio: item?.wallet_capital?.fee_handling_percent,
@ -495,7 +495,7 @@ const handleSubmit = async () => {
// //
try { try {
await editCustomerApi({ ...params, point_diffs_json: JSON.stringify(marginRatioJSON) }) await editCustomerApi({ ...params, point_diffs_json: JSON.stringify(marginRatioJSON),base_ts:null })
dialogVisible.value = false dialogVisible.value = false
} catch (err) { } catch (err) {
console.log('提交失败:', err) console.log('提交失败:', err)
@ -507,6 +507,7 @@ const handleSubmit = async () => {
await editCustomerApi({ await editCustomerApi({
...params, ...params,
fee_handling_percent: commissionRatioForm.value.commissionRatio, fee_handling_percent: commissionRatioForm.value.commissionRatio,
base_ts:null
}) })
dialogVisible.value = false dialogVisible.value = false
await getCustomerList() await getCustomerList()

View File

@ -27,30 +27,41 @@ export const search = [
valueFormat: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD',
width: '280px', width: '280px',
}, },
{
prop: 'status',
label: '状态',
type: 'select' as const,
placeholder: '选择状态',
width: '80px',
options: [
{ label: '正常', value: 1 },
{ label: '封禁', value: 2 }
],
}
] ]
export const tableColumns = [ export const tableColumns = [
// 账号名称 // 账号名称
{ label: '账号名称', prop: 'accountName' , width: '160' }, { label: '账号名称', prop: 'accountName', width: '160', align: 'center' as const },
{ 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' },
// 账号id // 账号id
{ prop: 'userId', label: '账号id', width: '220' }, { prop: 'userId', label: '账号id', width: '220', align: 'center' as const },
// 状态 // 状态
{ prop: 'status', label: '状态' }, { prop: 'statusName', label: '状态', align: 'center' as const },
// 账号角色 // 账号角色
{ prop: 'role', label: '账号角色' , width: '100' }, { prop: 'role', label: '账号角色', width: '100', align: 'center' as const },
// 账号数量 // 账号数量
{ prop: 'accountQty', label: '账号数量' , width: '120' }, { prop: 'accountQty', label: '账号数量', width: '120', align: 'center' as const },
{ prop: 'amount', label: '资金', align: 'center' as const, isNumber: true }, { prop: 'amount', label: '资金', align: 'center' as const, isNumber: true, width: '120' },
// 点差分配比例 // 点差分配比例
{ prop: 'marginRatio', label: '点差分配比例', slotName: 'marginRatio' , width: '140' }, { prop: 'marginRatio', label: '点差分配比例', slotName: 'marginRatio', width: '140', align: 'center' as const },
// 手续费分成比例 // 手续费分成比例
{ prop: 'commissionRatio', label: '手续费分成比例', slotName: 'commissionRatio' , width: '140' }, { prop: 'commissionRatio', label: '手续费分成比例', slotName: 'commissionRatio', width: '140', align: 'center' as const },
// 注册时间 // 注册时间
{ prop: 'createTime', label: '注册时间', sortable: false, width: '240' }, { prop: 'createTime', label: '注册时间', sortable: false, width: '240', align: 'center' as const },
// 操作 // 操作
{ label: '操作', slotName: 'action', width: '220', fixed: 'right' as const} { label: '操作', slotName: 'action', width: '220', fixed: 'right' as const }
] ]
// 点差表格配置 // 点差表格配置
@ -68,5 +79,5 @@ export const marginRatioTableColumns = [
// 手续费分成比例form配置 // 手续费分成比例form配置
export const commissionRatioFormItem = [ export const commissionRatioFormItem = [
// 手续费分成比例 // 手续费分成比例
{ prop: 'commissionRatio', label: '手续费分成比例', type: 'input' as const, placeholder: '请输入手续费分成比例',labelWidth: '140px'}, { prop: 'commissionRatio', label: '手续费分成比例', type: 'input' as const, placeholder: '请输入手续费分成比例', labelWidth: '140px' },
] ]

View File

@ -960,6 +960,9 @@ onMounted(async () => {
}) })
onUnmounted(()=>{
transactionStore?.disconnect()
})
// logout // logout
/** /**