//做市商搜索配置 export const marketSearch = [ { label: '账户名', prop: 'accountName', type: 'input' as const, placeholder: '请输入账户名', width: '340px', }, ] export const marketTableColumns = [ // id { label: 'ID', prop: 'id', align: 'center' as const }, //代理关系 { label: '代理关系', prop: 'agentRelation', align: 'center' as const, width: '200px' }, //账户名 { label: '账户名', prop: 'accountName', align: 'center' as const }, //级别 { label: '级别', prop: 'level', align: 'center' as const }, //基本账户 { label: '基本账户', prop: 'basicAccount', align: 'center' as const }, //保证金 { label: '保证金', prop: 'margin', align: 'center' as const }, //停止接单保证金 { label: '停止接单保证金', prop: 'stopOrderMargin', align: 'center' as const, width: '160px' }, //持仓转移保证金 { label: '持仓转移保证金', prop: 'positionTransferMargin', align: 'center' as const, width: '160px' }, //头寸比率 { label: '头寸比率', prop: 'positionRatio', align: 'center' as const }, //点差返佣 { label: '点差返佣', prop: 'pointSpreadCommission', align: 'center' as const }, //点差 { label: '点差', slotName: 'pointSpread', align: 'center' as const }, //手续费比例 { label: '手续费比例', prop: 'commissionRatio', align: 'center' as const }, //手续费返佣 { label: '手续费返佣', prop: 'commissionReturn', align: 'center' as const }, //浮动盈亏 { label: '浮动盈亏', prop: 'floatProfitLoss', align: 'center' as const }, //平仓盈亏 { label: '平仓盈亏', prop: 'closeProfitLoss', align: 'center' as const }, //风险金 { label: '风险金', prop: 'riskMargin', align: 'center' as const }, //服务费 { label: '服务费', prop: 'serviceFee', align: 'center' as const }, ] //做市商添加配置 export const marketFormItem = [ //邮箱或手机号 { prop: 'phoneOrEmail', label: '', type: 'slot' as const, slotName: 'phoneOrEmail' }, //账户名称 { label: '账户名称', prop: 'accountName', type: 'input' as const, placeholder: '请输入账户名称', }, //级别 { label: '级别', prop: 'level', type: 'select' as const, placeholder: '请选择级别' }, //所属上级 { label: '所属上级', prop: 'parentAccountName', type: 'select' as const, placeholder: '请选择所属上级账户名称', }, // 风控模板 { label: '风控模板', prop: 'riskControlTemplate', type: 'select' as const, placeholder: '请选择风控模板' }, //头寸 { label: '头寸', prop: 'positionRatio', type: 'input' as const, placeholder: '请输入头寸', }, //手续费 { label: '手续费', prop: 'commissionRatio', type: 'input' as const, placeholder: '请输入手续费', }, ] // 国家码选项 interface CountryItem { name: string code: string } export const countryOptions = ref([ { name: '中国', code: '+86' }, { name: '中国台湾', code: '+886' }, { name: '中国香港', code: '+852' }, { name: '中国澳门', code: '+853' }, { name: '韩国', code: '+82' }, { name: '美国', code: '+1' }, { name: '新加坡', code: '+65' } ]) //编辑点差表格列配置 export const marketPointTableColumns = ([ { prop: 'varietyName', label: '名称', align: 'center' as const }, { prop: 'varietyCode', label: '编号', align: 'center' as const }, { prop: 'pointDifference', label: '可分配点差', align: 'center' as const }, { prop: 'assignedPointDifference', label: '已分配点差', align: 'center' as const, slotName: 'assignedPointDiff' }, ]) // 查看点差表格列配置 export const viewMarketPointTableColumns = ([ { prop: 'varietyName', label: '名称', align: 'center' as const }, { prop: 'varietyCode', label: '编号', align: 'center' as const }, { prop: 'pointDifference', label: '可分配点差', align: 'center' as const }, { prop: 'assignedPointDifference', label: '已分配点差', align: 'center' as const }, ])