处理做市商列表

This commit is contained in:
2026-05-27 16:56:22 +08:00
parent 5ec2d573b7
commit af1f9e9211
4 changed files with 9 additions and 6 deletions

View File

@ -109,12 +109,12 @@ const responseInterceptor = <T = unknown>(response: AxiosResponse<ApiResponse<T>
removeStorage('userInfo')
removeStorage('menusInfo')
removeStorage('permissionsInfo')
router.push({ name: 'Login' })
router.push('/user/login')
break
case -101:
data.msg = 'token错误'
removeStorage('token')
router.push({ name: 'Login' })
router.push('/user/login')
break
default:
break;

View File

@ -20,9 +20,9 @@ export const tableColumns = [
// 手数
{ prop: 'lots', label: '手数', isNumber: true ,width: '140px'},
// 买入价格
{ prop: 'entryPrice', label: '买入价格', isNumber: true ,width: '140px'},
{ prop: 'entryPrice', label: '买入价格' ,width: '140px'},
// 当前价格
{ prop: 'currentPrice', label: '当前价格', isNumber: true,width: '140px' },
{ prop: 'currentPrice', label: '当前价格' ,width: '140px' },
// 止盈
{ prop: 'takeProfit', label: '止盈', isNumber: true,width: '140px' },
// 止损

View File

@ -260,7 +260,10 @@ const transactionStore = useTransactionStore()
*/
const getMarketFloatProfit = (accountId: string | number): string => {
const profit = transactionStore.marketFloatProfitMap.get(String(accountId))
return profit || '--'
if (!profit) return '--'
const parts = profit.split('.')
if (parts.length === 1) return profit + '.00'
return parts[0] + '.' + (parts[1] + '00').slice(0, 2)
}
/**

View File

@ -23,7 +23,7 @@ export const marketTableColumns = [
{ label: '手机号', prop: 'mobile', align: 'center' as const, width: '140px' },
{ label: '风险率', prop: 'ratio', align: 'center' as const, width: '120px' },
//基本账户
{ label: '基本账户', prop: 'basicAccount', align: 'center' as const, width: '200px' },
{ label: '基本账户', prop: 'basicAccount', align: 'center' as const, isNumber: true , width: '200px' },
//保证金
{ label: '保证金', prop: 'margin', align: 'center' as const, width: '200px', isNumber: true },
//停止接单保证金