|
@@ -15,14 +15,14 @@
|
|
|
<Cell title="行情价格">
|
|
<Cell title="行情价格">
|
|
|
<template #value>
|
|
<template #value>
|
|
|
<span :class="selectedRow.lastPriceClass">
|
|
<span :class="selectedRow.lastPriceClass">
|
|
|
- {{ round(selectedRow.lastPrice, selectedRow.decimalplace) }}
|
|
|
|
|
|
|
+ {{ selectedRow.lastPrice.toFixed(selectedRow.decimalplace) }}
|
|
|
</span>
|
|
</span>
|
|
|
</template>
|
|
</template>
|
|
|
</Cell>
|
|
</Cell>
|
|
|
<Cell title="浮动盈亏">
|
|
<Cell title="浮动盈亏">
|
|
|
<template #value>
|
|
<template #value>
|
|
|
<span :class="selectedRow.profitLossClass">
|
|
<span :class="selectedRow.profitLossClass">
|
|
|
- {{ round(selectedRow.profitLoss, selectedRow.decimalplace) }}
|
|
|
|
|
|
|
+ {{ selectedRow.profitLoss.toFixed(selectedRow.decimalplace) }}
|
|
|
</span>
|
|
</span>
|
|
|
</template>
|
|
</template>
|
|
|
</Cell>
|
|
</Cell>
|
|
@@ -57,7 +57,6 @@
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef, PropType, onMounted, computed } from 'vue'
|
|
import { shallowRef, PropType, onMounted, computed } from 'vue'
|
|
|
import { CellGroup, Cell, Button, FieldRule, Form, Field, FormInstance } from 'vant'
|
|
import { CellGroup, Cell, Button, FieldRule, Form, Field, FormInstance } from 'vant'
|
|
|
-import { round } from 'lodash'
|
|
|
|
|
import { dialog, fullloading } from '@/utils/vant'
|
|
import { dialog, fullloading } from '@/utils/vant'
|
|
|
import { getBuyOrSellName, BuyOrSell, getPricemode2List } from '@/constants/order'
|
|
import { getBuyOrSellName, BuyOrSell, getPricemode2List } from '@/constants/order'
|
|
|
import { useOrder } from '@/business/trade'
|
|
import { useOrder } from '@/business/trade'
|