li.shaoyi 2 anni fa
parent
commit
e16a171b4b

+ 6 - 2
src/packages/pc/components/base/table/index.less

@@ -92,8 +92,12 @@
 
             td.el-table {
 
-                &__cell:not(&__expanded-cell):first-child,
-                &__cell:is(&__expand-column)+td {
+                // &__cell:not(&__expanded-cell):first-child,
+                // &__cell:is(&__expand-column)+td {
+                //     background-color: var(--el-table-header-bg-color);
+                // }
+
+                &__cell:not(&__expanded-cell):first-child {
                     background-color: var(--el-table-header-bg-color);
                 }
 

+ 3 - 3
src/packages/pc/views/market/trade/goods/detail/components/order/index.vue

@@ -69,15 +69,15 @@ const { dataList: sellList, run: getSellList } = useRequest(queryWrTradeOrderDet
 })
 
 const buyColumns = shallowRef<Model.TableColumn[]>([
-    { prop: 'username', label: '销售方' },
-    { prop: 'orderqty', label: '买量' },
     { prop: 'orderprice', label: '买价' },
+    { prop: 'orderqty', label: '买量' },
+    { prop: 'username', label: '购买方' },
 ])
 
 const sellColumns = shallowRef<Model.TableColumn[]>([
     { prop: 'orderprice', label: '卖价' },
     { prop: 'orderqty', label: '卖量' },
-    { prop: 'username', label: '购买方' },
+    { prop: 'username', label: '销售方' },
 ])
 
 const showComponent = (componentName: string, row: Model.WrTradeOrderDetailRsp) => {

+ 3 - 3
src/packages/pc/views/market/trade/spot/order/index.vue

@@ -129,15 +129,15 @@ const { dataList: sellList, run: getSellList } = useRequest(queryOrderQuoteDetai
 })
 
 const buyColumns = shallowRef<Model.TableColumn[]>([
-    { prop: 'username', label: '销售方' },
-    { prop: 'orderqty', label: '买量' },
     { prop: 'fixedprice', label: '买价' },
+    { prop: 'orderqty', label: '买量' },
+    { prop: 'username', label: '购买方' },
 ])
 
 const sellColumns = shallowRef<Model.TableColumn[]>([
     { prop: 'fixedprice', label: '卖价' },
     { prop: 'orderqty', label: '卖量' },
-    { prop: 'username', label: '购买方' },
+    { prop: 'username', label: '销售方' },
 ])
 
 const showComponent = (componentName: string, row: Model.OrderQuoteDetailRsp) => {

+ 5 - 0
src/services/websocket/trade.ts

@@ -28,6 +28,7 @@ export default new (class {
                     break;
                 }
                 case FunCode.MoneyChangedNotify: {
+                    console.log('接收到资金变动通知', funCode)
                     timerInterceptor.debounce(() => {
                         // 资金变动通知
                         eventBus.$emit('MoneyChangedNotify')
@@ -35,6 +36,7 @@ export default new (class {
                     break
                 }
                 case FunCode.OrderDealedNtf: {
+                    console.log('接收到成交通知', funCode)
                     timerInterceptor.debounce(() => {
                         // 成交通知
                         eventBus.$emit('OrderDealedNtf')
@@ -42,6 +44,7 @@ export default new (class {
                     break
                 }
                 case FunCode.MarketStatusChangeNtf: {
+                    console.log('接收到市场状态变更通知', funCode)
                     timerInterceptor.debounce(() => {
                         // 市场状态变更通知
                         eventBus.$emit('MarketStatusChangeNtf')
@@ -49,6 +52,7 @@ export default new (class {
                     break
                 }
                 case FunCode.ListingOrderChangeNtf: {
+                    console.log('接收到挂牌委托变更广播通知', funCode)
                     timerInterceptor.debounce(() => {
                         // 挂牌委托变更广播通知
                         eventBus.$emit('ListingOrderChangeNtf');
@@ -56,6 +60,7 @@ export default new (class {
                     break;
                 }
                 case FunCode.PosChangedNtf: {
+                    console.log('接收到头寸变化通知', funCode)
                     timerInterceptor.debounce(() => {
                         // 头寸变化通知
                         eventBus.$emit('PosChangedNtf');