Handy_Cao 1 éve
szülő
commit
7d54911e05

+ 11 - 13
src/packages/pc/components/modules/goods-detail/order/index.vue

@@ -33,7 +33,7 @@ import { BuyOrSell } from '@/constants/order'
 import { useComponent } from '@/hooks/component'
 import { useComposeTable } from '@pc/components/base/table'
 import { queryWrTradeOrderDetail } from '@/services/api/transfer'
-import { useFuturesStore, i18n } from '@/stores'
+import { useFuturesStore } from '@/stores'
 import AppTable from '@pc/components/base/table/index.vue'
 import service from '@/services'
 
@@ -48,11 +48,9 @@ const componentMap = new Map<string, unknown>([
     ['delisting', defineAsyncComponent(() => import('./delisting/index.vue'))], // 摘牌
 ])
 
-// const loginStore = useLoginStore()
 const futuresStore = useFuturesStore()
 const quote = futuresStore.getGoodsQuote(props.goodsId)
 const oem = service.getConfig('oem')
-const { t } = i18n.global
 
 const { rowKey, expandKeys, selectedRow, rowClick } = useComposeTable<Model.WrTradeOrderDetailRsp>({ rowKey: 'orderid' })
 const { componentRef, componentId, closeComponent } = useComponent()
@@ -74,19 +72,19 @@ const { dataList: sellList, run: getSellList } = useRequest(queryWrTradeOrderDet
 })
 
 const buyColumns = shallowRef<Model.TableColumn[]>(
-    oem != 'zrwyt' ? [{ field: 'orderprice', label: t('quote.bid') },
-                      { field: 'orderqty', label: t('quote.bidvolume') },
-                      { field: 'username', label: t('quote.buyusername') }] : 
-                      [{ field: 'orderprice', label: t('quote.bid') },
-                      { field: 'orderqty', label: t('quote.bidvolume') }]
+    oem != 'zrwyt' ? [{ field: 'orderprice', label: 'quote.bid' },
+                      { field: 'orderqty', label: 'quote.bidvolume' },
+                      { field: 'username', label: 'quote.buyusername' }] : 
+                      [{ field: 'orderprice', label: 'quote.bid' },
+                      { field: 'orderqty', label: 'quote.bidvolume' }]
 )
 
 const sellColumns = shallowRef<Model.TableColumn[]>(
-    oem != 'zrwyt' ? [{ field: 'orderprice', label: t('quote.ask') },
-                      { field: 'orderqty', label: t('quote.askvolume') },
-                      { field: 'username', label: t('quote.sellusername') }] : 
-                      [{ field: 'orderprice', label: t('quote.ask') },
-                       { field: 'orderqty', label: t('quote.askvolume') }]
+    oem != 'zrwyt' ? [{ field: 'orderprice', label: 'quote.ask' },
+                      { field: 'orderqty', label: 'quote.askvolume' },
+                      { field: 'username', label: 'quote.sellusername' }] : 
+                      [{ field: 'orderprice', label: 'quote.ask' },
+                       { field: 'orderqty', label: 'quote.askvolume' }]
 )
 
 // const showComponent = (componentName: string, row: Model.WrTradeOrderDetailRsp) => {

+ 8 - 8
src/packages/pc/views/market/trade/swap/detail/order/index.vue

@@ -146,17 +146,17 @@ setTimeout(() => {
 }, 30 * 1000)
 
 const buyColumns = shallowRef<Model.TableColumn[]>([
-    { field: 'orderprice', label: '买价' },
-    { field: 'orderqty', label: '买量' },
-    { field: 'username', label: '购买方' },
-    { field: 'operate', label: '操作' },
+    { field: 'orderprice', label: 'quote.bid' },
+    { field: 'orderqty', label: 'quote.bidvolume' },
+    { field: 'username', label: 'quote.buyusername' },
+    { field: 'operate', label: 'common.operate' },
 ])
 
 const sellColumns = shallowRef<Model.TableColumn[]>([
-    { field: 'orderprice', label: '卖价' },
-    { field: 'orderqty', label: '卖量' },
-    { field: 'username', label: '销售方' },
-    { field: 'operate', label: '操作' },
+    { field: 'orderprice', label: 'quote.ask' },
+    { field: 'orderqty', label: 'quote.askvolume' },
+    { field: 'username', label: 'quote.sellusername' },
+    { field: 'operate', label: 'common.operate' },
 ])
 
 const showComponent = (componentName: string, row: Model.TjmdTradeOrderDetailRsp) => {