Jelajahi Sumber

修改行情颜色

huangbin 4 tahun lalu
induk
melakukan
621d955e19

TEMPAT SAMPAH
dist.zip


+ 1 - 1
public/config/app.config.json

@@ -1,3 +1,3 @@
 {
-    "apiUrl": "http://192.168.31.176:8080/cfg?key=test_176"
+    "apiUrl": "http://192.168.31.139:8080/cfg?key=test_139"
 }

+ 15 - 14
src/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_basis_difference/index.vue

@@ -35,14 +35,16 @@
         >{{ quoteChange(record, record.decimalplace) }}</span>
       </template>
       <!-- 幅度 -->
-      <template #amplitude="{ record, text }">
+      <template #amplitude="{ record }">
         <span
-          :class="handleQuotePriceColor(text, record.presettle)"
+          :class="handleQuotePriceColor(record.last, record.presettle)"
         >{{ quoteAmplitude(record, record.decimalplace) }}</span>
       </template>
       <!-- 振幅 -->
-      <template #vibration="{ record }">
-        <span>{{ quoteAmplituOfVibration(record, record.decimalplace) }}</span>
+      <template #vibration="{ record, text }">
+        <span
+          :class="handleQuotePriceColor(text, record.presettle)"
+        >{{ quoteAmplituOfVibration(record, record.decimalplace) }}</span>
       </template>
       <template #index="{ index }">
         <span>{{ index + 1 }}</span>
@@ -81,22 +83,21 @@
 </template>
 
 <script lang="ts">
+import { BtnListType } from '@/common/components/btnList/interface';
+import { getShowBottomValue } from '@/common/config/constrolBottom';
 import { EnumRouterName } from '@/common/constants/enumRouterName';
 import { contextMenu, defineAsyncComponent, defineComponent } from '@/common/export/commonTable';
-
-import { handleDeliveryRelation } from '../setup';
-
-import { handleSubcriteOnDemandQuote, handleQuotePriceColor, quoteChange, quoteAmplitude, quoteAmplituOfVibration, handleNoneValue } from '@/common/setup/table/tableQuote';
-import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
-import { columnsList } from '../setup';
-
 import { handleTableEventAndData } from '@/common/setup/table/compose';
 import { TableParam } from '@/common/setup/table/interface';
-import { BtnListType } from '@/common/components/btnList/interface';
+import { handleNoneValue, handleQuotePriceColor, handleSubcriteOnDemandQuote, quoteAmplitude, quoteAmplituOfVibration, quoteChange } from '@/common/setup/table/tableQuote';
+import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
 import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
-import { getShowBottomValue } from '@/common/config/constrolBottom';
-import { ref } from 'vue';
 import { changeUnit } from '@/utils/qt/common';
+import { ref } from 'vue';
+import { columnsList, handleDeliveryRelation } from '../setup';
+
+
+
 
 export default defineComponent({
   name: EnumRouterName.spot_trade_order_transaction_basis_difference,

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

@@ -35,14 +35,16 @@
         >{{ quoteChange(record, record.decimalplace) }}</span>
       </template>
       <!-- 幅度 -->
-      <template #amplitude="{ record, text }">
+      <template #amplitude="{ record }">
         <span
-          :class="handleQuotePriceColor(text, record.presettle)"
+          :class="handleQuotePriceColor(record.last, record.presettle)"
         >{{ quoteAmplitude(record, record.decimalplace) }}</span>
       </template>
       <!-- 振幅 -->
-      <template #vibration="{ record }">
-        <span>{{ quoteAmplituOfVibration(record, record.decimalplace) }}</span>
+      <template #vibration="{ record, text }">
+        <span
+          :class="handleQuotePriceColor(text, record.presettle)"
+        >{{ quoteAmplituOfVibration(record, record.decimalplace) }}</span>
       </template>
       <template #index="{ index }">
         <span>{{ index + 1 }}</span>
@@ -85,23 +87,21 @@
 </template>
 
 <script lang="ts">
+import { BtnListType } from '@/common/components/btnList/interface';
+import { getShowBottomValue } from '@/common/config/constrolBottom';
 import { EnumRouterName } from '@/common/constants/enumRouterName';
 import { contextMenu, defineAsyncComponent, defineComponent } from '@/common/export/commonTable';
-
-import { handleDeliveryRelation } from '../setup';
-
-import { handleSubcriteOnDemandQuote, handleQuotePriceColor, quoteChange, quoteAmplitude, quoteAmplituOfVibration, handleNoneValue } from '@/common/setup/table/tableQuote';
-import { QueryDeliveryRelationReq, QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
-import { columnsList } from '../setup';
-
 import { handleTableEventAndData } from '@/common/setup/table/compose';
 import { TableParam } from '@/common/setup/table/interface';
-import { BtnListType } from '@/common/components/btnList/interface';
-import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
-import { getShowBottomValue } from '@/common/config/constrolBottom';
+import { handleNoneValue, handleQuotePriceColor, handleSubcriteOnDemandQuote, quoteAmplitude, quoteAmplituOfVibration, quoteChange } from '@/common/setup/table/tableQuote';
+import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
+import { changeUnit } from '@/utils/qt/common';
 import { ref } from 'vue';
+import { columnsList, handleDeliveryRelation } from '../setup';
 import { Tradesfer } from './interface';
-import { changeUnit } from '@/utils/qt/common';
+
+
+
 
 export default defineComponent({
   name: EnumRouterName.spot_trade_order_transaction_listing_transfer,

+ 23 - 16
src/views/market/spot_trade/spot_trade_reference_market/index.vue

@@ -29,20 +29,22 @@
         <span :class="handleQuotePriceColor(text, record.presettle)">{{ handleNoneValue(text) }}</span>
       </template>
       <!-- 涨跌 -->
-      <template #change="{ record, text }">
+      <template #change="{ record }">
         <span
-          :class="handleQuotePriceColor(text, record.presettle)"
+          :class="handleQuotePriceColor(record.last, record.presettle)"
         >{{ quoteChange(record, record.decimalplace) }}</span>
       </template>
       <!-- 幅度 -->
-      <template #amplitude="{ record, text }">
+      <template #amplitude="{ record }">
         <span
-          :class="handleQuotePriceColor(text, record.presettle)"
+          :class="handleQuotePriceColor(record.last, record.presettle)"
         >{{ quoteAmplitude(record, record.decimalplace) }}</span>
       </template>
       <!-- 振幅 -->
-      <template #vibration="{ record }">
-        <span>{{ quoteAmplituOfVibration(record, record.decimalplace) }}</span>
+      <template #vibration="{ record, text }">
+        <span
+          :class="handleQuotePriceColor(text, record.presettle)"
+        >{{ quoteAmplituOfVibration(record, record.decimalplace) }}</span>
       </template>
       <template #index="{ index }">
         <span>{{ index + 1 }}</span>
@@ -67,6 +69,10 @@
       <template #highest="{ text, record }">
         <span :class="handleQuotePriceColor(text, record.presettle)">{{ handleNoneValue(text) }}</span>
       </template>
+      <!-- 昨结价 -->
+      <template #preclose="{ text, record }">
+        <span :class="handleQuotePriceColor(text, record.presettle)">{{ handleNoneValue(text) }}</span>
+      </template>
     </a-table>
     <!-- 右键 -->
     <!-- <contextMenu :contextMenu="contextMenu" @cancel="closeContext" :list="firstBtn"></contextMenu> -->
@@ -81,20 +87,20 @@
 </template>
 
 <script lang="ts">
-import { EnumRouterName } from '@/common/constants/enumRouterName';
-import { queryTableList, BtnList, contextMenu, defineAsyncComponent, defineComponent, ModalEnum, ComposeTableParam } from '@/common/export/commonTable';
-import { QueryOrderQuoteReq } from '@/services/go/wrtrade/interface';
-import { queryOrderQuote } from '@/services/go/wrtrade';
-import { handleComposeTable } from '@/views/market/spot_trade/setup';
-import { ref } from 'vue';
-import { handleSubcriteOnDemandQuote, handleQuotePriceColor, quoteChange, quoteAmplitude, quoteAmplituOfVibration, handleNoneValue } from '@/common/setup/table/tableQuote';
-import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
-import { getGoodsListByTrade, getQutoGoodsByTradeMode } from '@/services/bus/goods';
+import { getShowBottomValue } from '@/common/config/constrolBottom';
 import { TradeMode } from '@/common/constants/enumCommon';
+import { EnumRouterName } from '@/common/constants/enumRouterName';
+import { ComposeTableParam, contextMenu, defineAsyncComponent, defineComponent, queryTableList } from '@/common/export/commonTable';
 import { handleTableColums } from '@/common/setup/table/clolumn';
+import { handleNoneValue, handleQuotePriceColor, handleSubcriteOnDemandQuote, quoteAmplitude, quoteAmplituOfVibration, quoteChange } from '@/common/setup/table/tableQuote';
+import { getQutoGoodsByTradeMode } from '@/services/bus/goods';
+import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
 import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
+import { queryOrderQuote } from '@/services/go/wrtrade';
+import { QueryOrderQuoteReq } from '@/services/go/wrtrade/interface';
 import { changeUnit } from '@/utils/qt/common';
-import { getShowBottomValue } from '@/common/config/constrolBottom';
+import { handleComposeTable } from '@/views/market/spot_trade/setup';
+import { ref } from 'vue';
 
 const columnsList = [
   { title: '序号', key: 'index', width: 80 },
@@ -173,6 +179,7 @@ export default defineComponent({
     };
   },
 });
+
 </script>
 <style lang="less">
 </style>