huangbin 4 anni fa
parent
commit
74c7a63513

+ 1 - 1
src/common/setup/table/tableQuote.ts

@@ -127,7 +127,7 @@ function isPrice(price1: number | string, price2: number | string) {
  * @returns
  */
 export function handleQuotePriceColor(value: number, presettle: number) {
-    let result = ''
+    let result = '--'
     if (isPrice(value, presettle)) {
         if (value === presettle) {
             result = ''

+ 14 - 5
src/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_listing_transfer/index.vue

@@ -22,6 +22,10 @@
       <template #askvolume="{ text }">
         <span>{{ handleNoneValue(text) }}</span>
       </template>
+      <!-- 开盘价 -->
+      <template #opened="{ text }">
+        <span>{{ handleNoneValue(text) }}</span>
+      </template>
       <!-- 涨跌 -->
       <template #change="{ record }">
         <span>{{ quoteChange(record, record.decimalplace) }}</span>
@@ -39,23 +43,28 @@
       </template>
       <!-- 买价 -->
       <template #bid="{ text, record }">
-        <span :class="handleQuotePriceColor(text, record.presettle)">{{ text }}</span>
+        <span
+              :class="handleQuotePriceColor(text, record.presettle)">{{ handleNoneValue(text) }}</span>
       </template>
       <!-- 卖价 -->
       <template #ask="{ text, record }">
-        <span :class="handleQuotePriceColor(text, record.presettle)">{{ text }}</span>
+        <span
+              :class="handleQuotePriceColor(text, record.presettle)">{{ handleNoneValue(text) }}</span>
       </template>
       <!-- 最新价 -->
       <template #last="{ text, record }">
-        <span :class="handleQuotePriceColor(text, record.presettle)">{{ text }}</span>
+        <span
+              :class="handleQuotePriceColor(text, record.presettle)">{{ handleNoneValue(text) }}</span>
       </template>
       <!-- 最低价 -->
       <template #lowest="{ text, record }">
-        <span :class="handleQuotePriceColor(text, record.presettle)">{{ text }}</span>
+        <span
+              :class="handleQuotePriceColor(text, record.presettle)">{{ handleNoneValue(text) }}</span>
       </template>
       <!-- 最高价 -->
       <template #highest="{ text, record }">
-        <span :class="handleQuotePriceColor(text, record.presettle)">{{ text }}</span>
+        <span
+              :class="handleQuotePriceColor(text, record.presettle)">{{ handleNoneValue(text) }}</span>
       </template>
     </a-table>
     <!-- 右键 -->