Handy_Cao 1 ano atrás
pai
commit
b4bbab4a64

+ 8 - 3
public/locales/en-US.json

@@ -25,6 +25,7 @@
         "orderindex": "Index",
         "startdate": "StartDate",
         "enddate": "EndDate",
+        "choice": "Please choice",
         "requestfailure": "Request failed, click Reload"
     },
     "tabbar": {
@@ -385,6 +386,8 @@
             "title2": "History Goods Trade",
             "subtitle": "Goods Trade Information",
             "goodsname": "Name/Code",
+            "goodsname1":"GoodsName",
+            "goodscode": "GoodsCode",
             "buyorsell": "BuyOrSell",
             "buildtype": "BuildType",
             "buildtypebuyorsell": "BuildType/BuyOrSell",
@@ -1089,9 +1092,11 @@
             "title3": "FundLists",
             "title4": "Settlement",
             "accountid": "AccountID",
-            "createtime": "createtime",
-            "operatetypename": "operatetypename",
-            "amount": "amount",
+            "createtime": "CreateTime",
+            "operatetypename": "OperateTypeName",
+            "amount": "Amount",
+            "totalcharge": "Total Charge:",
+            "totalprofit": "Total Profit:",
             "hisamountlogs": "Historys"
         },
         "wallet": {

+ 6 - 0
public/locales/zh-CN.json

@@ -26,6 +26,7 @@
         "orderindex": "序号",
         "startdate": "开始日期",
         "enddate": "结束日期",
+        "choice": "请选择",
         "requestfailure": "请求失败,点击重新加载"
     },
     "tabbar": {
@@ -388,6 +389,8 @@
             "title2": "历史订单成交",
             "subtitle": "订单成交信息",
             "goodsname": "商品代码/名称",
+            "goodsname1":"商品名称",
+            "goodscode": "订单合约",
             "buyorsell": "方向",
             "buildtype": "类型",
             "buildtypebuyorsell": "类型/方向",
@@ -469,6 +472,7 @@
             "subtitle": "转让委托信息",
             "subtitle1": "历史转让委托",
             "goodsname": "商品代码/名称",
+            "buyorsell" : "方向",
             "orderqty": "转让量",
             "orderprice": "转让价",
             "presaleprice": "订货价",
@@ -1096,6 +1100,8 @@
             "createtime": "时间",
             "operatetypename": "操作类型",
             "amount": "金额",
+            "totalcharge": "手续费汇总:",
+            "totalprofit": "盈亏汇总:",
             "hisamountlogs": "历史资金流水"
         },
         "wallet": {

+ 3 - 1
src/packages/pc/views/account/holddeposit/index.vue

@@ -34,6 +34,7 @@ import { queryGtwithholddepositapply, queryGetGtwithholdsigninfo } from '@/servi
 import { SignStatus } from '@/constants/bank'
 import { getBillResultName } from '@/constants/order'
 import { formatDate } from '@/filters'
+import { i18n } from "@/stores"
 import AppTable from '@pc/components/base/table/index.vue'
 import AppFilter from '@pc/components/base/table-filter/index.vue'
 
@@ -43,10 +44,11 @@ const componentMap = new Map<string, unknown>([
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.GTWithHoldDepositApplyReq>()
 const filterDate = shallowRef<string[]>([])
+const { t } = i18n.global
 
 filterOptons.buttonList = [
     { lable: '重置', className: 'el-button--info', onClick: () => onSearch(true) },
-    { lable: '查询', className: 'el-button--info', onClick: () => onSearch() },
+    { lable: t('operation.search'), className: 'el-button--info', onClick: () => onSearch() },
     { lable: '入金代扣申请', className: 'el-button--primary', onClick: () => showComponent() }
 ]
 

+ 13 - 10
src/packages/pc/views/query/capital/history/index.vue

@@ -12,11 +12,11 @@
         <template #headerRight>
             <ul class="query-capital__total">
                 <li>
-                    <span>手续费汇总:</span>
+                    <span>{{ t('banksign.capital.totalcharge') }}</span>
                     <span>{{ feeTotal.toFixed(2) }}</span>
                 </li>
                 <li>
-                    <span>盈亏汇总:</span>
+                    <span>{{ t('banksign.capital.totalprofit') }}</span>
                     <span>{{ plTotal.toFixed(2) }}</span>
                 </li>
             </ul>
@@ -26,7 +26,7 @@
             {{ formatDate(value) }}
         </template>
         <template #append v-if="pageIndex < pageCount">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore') }}</el-button>
         </template>
     </app-table>
 </template>
@@ -37,15 +37,18 @@ import { formatDate } from '@/filters'
 import { useDataFilter } from '@/hooks/datatable'
 import { useRequest } from '@/hooks/request'
 import { queryHisAmountLog } from '@/services/api/bank'
+import { getOperateTypeSearchList } from '@/constants/order'
+import { i18n } from "@/stores"
 import AppTable from '@pc/components/base/table/index.vue'
 import AppFilter from '@pc/components/base/table-filter/index.vue'
-import { getOperateTypeSearchList } from '@/constants/order'
 
 const { filterOptons, getQueryParams } = useDataFilter<Model.HisAmountLogReq>()
 const currentDate = new Date()
 const dataList = ref<Model.HisAmountLogRsp[]>([])
 const dateValue = ref(formatDate(currentDate.toISOString(), 'YYYY-MM-DD'))
 
+const { t } = i18n.global
+
 const { loading, run, pageIndex, pageCount } = useRequest(queryHisAmountLog, {
     manual: true,
     params: {
@@ -63,15 +66,15 @@ const { loading, run, pageIndex, pageCount } = useRequest(queryHisAmountLog, {
 })
 
 const tableColumns = ref<Model.TableColumn[]>([
-    { field: 'accountid', label: '资金账号' },
-    { field: 'operatetypename', label: '资金类型' },
-    { field: 'amount', label: '金额' },
-    { field: 'createtime', label: '时间' }
+    { field: 'accountid', label: t('banksign.capital.accountid') },
+    { field: 'operatetypename', label: t('banksign.capital.operatetypename') },
+    { field: 'amount', label: t('banksign.capital.amount') },
+    { field: 'createtime', label: t('banksign.capital.createtime') }
 ])
 
 filterOptons.buttonList = [
     {
-        lable: '查询',
+        lable: t('operation.search'),
         className: 'el-button--info',
         onClick: () => {
             pageIndex.value = 1
@@ -79,7 +82,7 @@ filterOptons.buttonList = [
         }
     },
     {
-        lable: '重置',
+        lable:  t('operation.reset'),
         className: 'el-button--info',
         onClick: () => {
             pageIndex.value = 1

+ 14 - 11
src/packages/pc/views/query/capital/list/index.vue

@@ -7,11 +7,11 @@
         <template #headerRight>
             <ul class="query-capital__total">
                 <li>
-                    <span>手续费汇总:</span>
+                    <span>{{ t('banksign.capital.totalcharge') }}</span>
                     <span>{{ feeTotal.toFixed(2) }}</span>
                 </li>
                 <li>
-                    <span>盈亏汇总:</span>
+                    <span>{{ t('banksign.capital.totalprofit') }}</span>
                     <span>{{ plTotal.toFixed(2) }}</span>
                 </li>
             </ul>
@@ -21,7 +21,7 @@
             {{ formatDate(value) }}
         </template>
         <template #append v-if="showLoadMore">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore') }}</el-button>
         </template>
     </app-table>
 </template>
@@ -32,10 +32,11 @@ import { formatDate } from '@/filters'
 import { useLocalPagination } from '@/hooks/pagination'
 import { useRequest } from '@/hooks/request'
 import { queryAmountLog } from '@/services/api/bank'
-import AppTable from '@pc/components/base/table/index.vue'
-import AppFilter from '@pc/components/base/table-filter/index.vue'
+import { i18n } from "@/stores"
 import { useDataFilter } from '@/hooks/datatable'
 import { getOperateTypeSearchList } from '@/constants/order'
+import AppTable from '@pc/components/base/table/index.vue'
+import AppFilter from '@pc/components/base/table-filter/index.vue'
 
 const { tableList, showLoadMore, initTableData, loadMore } = useLocalPagination<Model.AmountLogRsp>(30)
 const { filterOptons, getQueryParams } = useDataFilter<Model.AmountLogReq>()
@@ -44,16 +45,18 @@ const { loading, dataList, run } = useRequest(queryAmountLog, {
     onSuccess: (res) => initTableData(res.data)
 })
 
+const { t } = i18n.global
+
 const tableColumns = shallowRef<Model.TableColumn[]>([
-    { field: 'accountid', label: '资金账号' },
-    { field: 'operatetypename', label: '资金类型' },
-    { field: 'amount', label: '金额' },
-    { field: 'createtime', label: '时间' }
+    { field: 'accountid', label: t('banksign.capital.accountid') },
+    { field: 'operatetypename', label: t('banksign.capital.operatetypename') },
+    { field: 'amount', label: t('banksign.capital.amount') },
+    { field: 'createtime', label: t('banksign.capital.createtime') }
 ])
 
 filterOptons.buttonList = [
-    { lable: '查询', className: 'el-button--info', onClick: () => onSearch() },
-    { lable: '重置', className: 'el-button--info', onClick: () => onSearch(true) }
+    { lable: t('operation.search'), className: 'el-button--info', onClick: () => onSearch() },
+    { lable: t('operation.reset'), className: 'el-button--info', onClick: () => onSearch(true) }
 ]
 
 filterOptons.selectList = [

+ 5 - 3
src/packages/pc/views/query/inoutapply/list/index.vue

@@ -26,7 +26,7 @@ import { useDataFilter } from '@/hooks/datatable'
 import { useRequest } from '@/hooks/request'
 import { queryAccountInOutApply } from '@/services/api/bank'
 import { getInOutApplyStatusName, getInOutExecuteTypeName, getInOutApplyStatusList } from '@/constants/order'
-import { useTableColumnsStore } from '@/stores'
+import { useTableColumnsStore, i18n } from '@/stores'
 import AppTable from '@pc/components/base/table/index.vue'
 import AppFilter from '@pc/components/base/table-filter/index.vue'
 
@@ -36,9 +36,11 @@ const tableColumns = shallowRef<Model.TableColumn[]>([])
 
 const { loading, dataList, run } = useRequest(queryAccountInOutApply)
 
+const { t } = i18n.global
+
 filterOptons.buttonList = [
-    { lable: '查询', className: 'el-button--info', onClick: () => onSearch() },
-    { lable: '重置', className: 'el-button--info', onClick: () => onSearch(true) }
+    { lable: t('operation.search'), className: 'el-button--info', onClick: () => onSearch() },
+    { lable: t('operation.reset'), className: 'el-button--info', onClick: () => onSearch(true) }
 ]
 
 filterOptons.selectList = [

+ 17 - 14
src/packages/pc/views/query/presell/onlinedelivery/index.vue

@@ -4,7 +4,7 @@
         <template #headerLeft>
             <app-filter :options="filterOptons">
                 <template #before>
-                    <el-date-picker type="daterange" effect="dark" start-placeholder="开始日期" end-placeholder="结束日期" value-format="YYYYMMDD"
+                    <el-date-picker type="daterange" effect="dark" :start-placeholder="t('common.startdate')" :end-placeholder="t('common.enddate')" value-format="YYYYMMDD"
                         v-model="filterDate" />
                 </template>
             </app-filter>
@@ -30,6 +30,7 @@ import { formatDate } from '@/filters'
 import { useDataFilter } from '@/hooks/datatable'
 import { useRequest } from '@/hooks/request'
 import { queryWrDeliveryDetail } from '@/services/api/transfer'
+import { i18n } from '@/stores'
 import AppTable from '@pc/components/base/table/index.vue'
 import AppFilter from '@pc/components/base/table-filter/index.vue'
 
@@ -38,23 +39,25 @@ const filterDate = shallowRef<string[]>([])
 
 const { loading, dataList, run } = useRequest(queryWrDeliveryDetail, {})
 
+const { t } = i18n.global
+
 const tableColumns = shallowRef<Model.TableColumn[]>([
-    { field: 'wrtypename', label: '商品名称' },
-    { field: 'deliveryqty', label: '交收数量' },
-    { field: 'xdeliveryprice', label: '订货价' },
-    { field: 'deliverypricemove', label: '升贴水' },
-    { field: 'deliverytotalamount', label: '总金额' },
-    { field: 'remaintotalamount', label: '剩余金额' },
-    { field: 'warehousename', label: '仓库' },
-    { field: 'matchusername', label: '发货方' },
-    { field: 'deliverytime', label: '申请时间' },
-    { field: 'xgoodsname', label: '交收合约' },
-    { field: 'deliveryid', label: '交收单号' }
+    { field: 'wrtypename', label: t('delivery.online.wrtypename')  },
+    { field: 'deliveryqty', label: t('delivery.online.deliveryqty') },
+    { field: 'xdeliveryprice', label: t('delivery.online.xdeliveryprice') },
+    { field: 'deliverypricemove', label: t('delivery.online.deliverypricemove') },
+    { field: 'deliverytotalamount', label: t('delivery.online.deliverytotalamount') },
+    { field: 'remaintotalamount', label: t('delivery.online.remaintotalamount') },
+    { field: 'warehousename', label: t('delivery.online.warehousename') },
+    { field: 'matchusername', label: t('delivery.online.matchusername') },
+    { field: 'deliverytime', label: t('delivery.online.deliverytime') },
+    { field: 'xgoodsname', label: t('delivery.online.xgoodscode') },
+    { field: 'deliveryid', label: t('delivery.online.deliveryid') }
 ])
 
 filterOptons.buttonList = [
-    { lable: '查询', className: 'el-button--info', onClick: () => onSearch() },
-    { lable: '重置', className: 'el-button--info', onClick: () => onSearch(true) }
+    { lable: t('operation.search'), className: 'el-button--info', onClick: () => onSearch() },
+    { lable: t('operation.reset'), className: 'el-button--info', onClick: () => onSearch(true) }
 ]
 
 const onSearch = (clear = false) => {

+ 15 - 11
src/packages/pc/views/query/trade/goods/history/index.vue

@@ -26,7 +26,7 @@
             {{ formatDate(value) }}
         </template>
         <template #append v-if="pageIndex < pageCount">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore') }}</el-button>
         </template>
     </app-table>
 </template>
@@ -38,6 +38,7 @@ import { useDataFilter } from '@/hooks/datatable'
 import { useRequest } from '@/hooks/request'
 import { queryHisTradeDetail } from '@/services/api/order'
 import { getBuildTypeName, getBuyOrSellName } from '@/constants/order'
+import { i18n } from '@/stores'
 import AppTable from '@pc/components/base/table/index.vue'
 import AppFilter from '@pc/components/base/table-filter/index.vue'
 
@@ -46,6 +47,8 @@ const currentDate = new Date()
 const dataList = ref<Model.HisTradeDetailRsp[]>([])
 const dateValue = ref(formatDate(currentDate.toISOString(), 'YYYY-MM-DD'))
 
+const { t } = i18n.global
+
 const { loading, run, pageIndex, pageCount } = useRequest(queryHisTradeDetail, {
     manual: true,
     params: {
@@ -65,16 +68,17 @@ const { loading, run, pageIndex, pageCount } = useRequest(queryHisTradeDetail, {
 })
 
 const tableColumns = ref<Model.TableColumn[]>([
-    { field: 'goodsname', label: '订单合约' },
-    { field: 'buyorsell', label: '类型' },
-    { field: 'buildtype', label: '成交类型' },
-    { field: 'tradeprice', label: '成交价' },
-    { field: 'tradeqty', label: '成交量' },
-    { field: 'charge', label: '手续费' },
-    { field: 'closepl', label: '平仓盈亏' },
-    { field: 'tradeid', label: '成交单号' },
+    { field: 'goodscode', label: t('order.goodstrade.goodscode') },
+    { field: 'goodsname', label: t('order.goodstrade.goodsname') },
+    { field: 'buyorsell', label: t('order.goodstrade.buyorsell') },
+    { field: 'buildtype', label: t('order.goodstrade.buildtype') },
+    { field: 'tradeprice', label: t('order.goodstrade.tradeprice') },
+    { field: 'tradeqty', label: t('order.goodstrade.tradeqty') },
+    { field: 'charge', label: t('order.goodstrade.charge') },
+    { field: 'closepl', label: t('order.goodstrade.closepl') },
+    { field: 'tradeid', label: t('order.goodstrade.tradeid') },
     //{ field: 'matchaccountid', label: '成交对手' },
-    { field: 'tradetime', label: '成交时间' },
+    { field: 'tradetime', label: t('order.goodstrade.tradetime') },
 ])
 
 filterOptons.selectList = [
@@ -91,7 +95,7 @@ filterOptons.selectList = [
 
 filterOptons.buttonList = [
     {
-        lable: '查询',
+        lable: t('operation.search'),
         className: 'el-button--info',
         onClick: () => {
             pageIndex.value = 1

+ 14 - 11
src/packages/pc/views/query/trade/goods/list/index.vue

@@ -18,7 +18,7 @@
             {{ formatDate(value) }}
         </template>
         <template #append v-if="showLoadMore">
-            <el-button size="small" plain @click="loadMore">加载更多</el-button>
+            <el-button size="small" plain @click="loadMore">{{ t('common.loadMore') }}</el-button>
         </template>
     </app-table>
 </template>
@@ -30,6 +30,7 @@ import { useLocalPagination } from '@/hooks/pagination'
 import { useRequest } from '@/hooks/request'
 import { queryTradeDetail } from '@/services/api/order'
 import { getBuildTypeName, getBuyOrSellName } from '@/constants/order'
+import { i18n } from '@/stores'
 import AppTable from '@pc/components/base/table/index.vue'
 
 const { tableList, showLoadMore, initTableData, loadMore } = useLocalPagination<Model.TradeDetailRsp>()
@@ -41,17 +42,19 @@ const { loading } = useRequest(queryTradeDetail, {
     onSuccess: (res) => initTableData(res.data)
 })
 
+const { t } = i18n.global
+
 const tableColumns = shallowRef<Model.TableColumn[]>([
-    { field: 'goodscode', label: '订单合约' },
-    { field: 'goodsname', label: '商品名称' },
-    { field: 'buyorsell', label: '类型' },
-    { field: 'buildtype', label: '成交类型' },
-    { field: 'tradeprice', label: '成交价' },
-    { field: 'tradeqty', label: '成交量' },
-    { field: 'charge', label: '手续费' },
-    { field: 'closepl', label: '平仓盈亏' },
-    { field: 'tradeid', label: '成交单号' },
+    { field: 'goodscode', label: t('order.goodstrade.goodscode') },
+    { field: 'goodsname', label: t('order.goodstrade.goodsname') },
+    { field: 'buyorsell', label: t('order.goodstrade.buyorsell') },
+    { field: 'buildtype', label: t('order.goodstrade.buildtype') },
+    { field: 'tradeprice', label: t('order.goodstrade.tradeprice') },
+    { field: 'tradeqty', label: t('order.goodstrade.tradeqty') },
+    { field: 'charge', label: t('order.goodstrade.charge') },
+    { field: 'closepl', label: t('order.goodstrade.closepl') },
+    { field: 'tradeid', label: t('order.goodstrade.tradeid') },
     //{ field: 'matchaccountid', label: '成交对手' },
-    { field: 'tradetime', label: '成交时间' },
+    { field: 'tradetime', label: t('order.goodstrade.tradetime') },
 ])
 </script>

+ 13 - 10
src/packages/pc/views/query/trade/presell/history/index.vue

@@ -34,6 +34,7 @@ import { useDataFilter } from '@/hooks/datatable'
 import { useRequest } from '@/hooks/request'
 import { queryMineTradeTradeDetails } from '@/services/api/transfer'
 import { getBuyOrSellName } from '@/constants/order'
+import { i18n } from '@/stores'
 import AppTable from '@pc/components/base/table/index.vue'
 import AppFilter from '@pc/components/base/table-filter/index.vue'
 
@@ -58,21 +59,23 @@ const { loading, run, pageIndex, pageCount } = useRequest(queryMineTradeTradeDet
     }
 })
 
+const { t } = i18n.global
+
 const tableColumns = ref<Model.TableColumn[]>([
-    { field: 'goodsname', label: '商品代码/名称' },
-    { field: 'buyorsell', label: '方向' },
-    { field: 'tradeqty', label: '转让量' },
-    { field: 'tradeprice', label: '转让价' },
-    { field: 'presaleprice', label: '订货价' },
-    { field: 'closepl', label: '损益' },
-    { field: 'accountname', label: '对手方' },
-    { field: 'tradedate', label: '成交时间' },
-    { field: 'orderid', label: '成交单号' }
+    { field: 'goodsname', label: t('order.transfertrade.goodsname')  },
+    { field: 'buyorsell', label: t('order.transfertrade.buyorsell') },
+    { field: 'tradeqty', label: t('order.transfertrade.tradeqty') },
+    { field: 'tradeprice', label: t('order.transfertrade.tradeprice') },
+    { field: 'presaleprice', label: t('order.transfertrade.presaleprice') },
+    { field: 'closepl', label: t('order.transfertrade.closepl') },
+    { field: 'accountname', label: t('order.transfertrade.accountname') },
+    { field: 'tradedate', label: t('order.transfertrade.tradetime') },
+    { field: 'orderid', label: t('order.transfertrade.orderid') }
 ])
 
 filterOptons.buttonList = [
     {
-        lable: '查询',
+        lable: t('operation.search'),
         className: 'el-button--info',
         onClick: () => {
             pageIndex.value = 1

+ 12 - 9
src/packages/pc/views/query/trade/presell/list/index.vue

@@ -22,19 +22,22 @@ import { formatDate } from '@/filters'
 import { useRequest } from '@/hooks/request'
 import { queryMineTradeTradeDetails } from '@/services/api/transfer'
 import { getBuyOrSellName } from '@/constants/order'
+import { i18n } from '@/stores'
 import AppTable from '@pc/components/base/table/index.vue'
 
 const { loading, dataList } = useRequest(queryMineTradeTradeDetails)
 
+const { t } = i18n.global
+
 const tableColumns = shallowRef<Model.TableColumn[]>([
-    { field: 'goodsname', label: '商品代码/名称' },
-    { field: 'buyorsell', label: '方向' },
-    { field: 'tradeqty', label: '转让量' },
-    { field: 'tradeprice', label: '转让价' },
-    { field: 'presaleprice', label: '订货价' },
-    { field: 'closepl', label: '损益' },
-    { field: 'accountname', label: '对手方' },
-    { field: 'tradedate', label: '成交时间' },
-    { field: 'orderid', label: '成交单号' }
+    { field: 'goodsname', label: t('order.transfertrade.goodsname') },
+    { field: 'buyorsell', label: t('order.transfertrade.buyorsell') },
+    { field: 'tradeqty', label: t('order.transfertrade.tradeqty') },
+    { field: 'tradeprice', label: t('order.transfertrade.tradeprice') },
+    { field: 'presaleprice', label: t('order.transfertrade.presaleprice') },
+    { field: 'closepl', label: t('order.transfertrade.closepl') },
+    { field: 'accountname', label: t('order.transfertrade.accountname') },
+    { field: 'tradedate', label: t('order.transfertrade.tradetime') },
+    { field: 'orderid', label: t('order.transfertrade.orderid') }
 ])
 </script>

+ 4 - 2
src/packages/pc/views/query/trade/pricing/history/index.vue

@@ -42,7 +42,7 @@ import { useRequest } from '@/hooks/request'
 import { useDataFilter } from '@/hooks/datatable'
 import { queryHisTradeDetail, } from '@/services/api/order'
 import { getBuildTypeName, getBuyOrSellName, getBuildTypeList } from '@/constants/order'
-import { useTableColumnsStore } from '@/stores'
+import { useTableColumnsStore, i18n } from '@/stores'
 import AppTable from '@pc/components/base/table/index.vue'
 import AppFilter from '@pc/components/base/table-filter/index.vue'
 
@@ -80,9 +80,11 @@ filterOptons.selectList = [
     }
 ]
 
+const { t } = i18n.global
+
 filterOptons.buttonList = [
     {
-        lable: '查询',
+        lable: t('operation.search'),
         className: 'el-button--info',
         onClick: () => {
             pageIndex.value = 1

+ 4 - 2
src/packages/pc/views/query/trade/spot/history/index.vue

@@ -30,7 +30,7 @@ import { useRequest } from '@/hooks/request'
 import { useDataFilter } from '@/hooks/datatable'
 import { queryWrTradeDetail } from '@/services/api/order'
 import { getBuildTypeName } from '@/constants/order'
-import { useTableColumnsStore } from '@/stores'
+import { useTableColumnsStore, i18n } from '@/stores'
 import AppTable from '@pc/components/base/table/index.vue'
 import AppFilter from '@pc/components/base/table-filter/index.vue'
 
@@ -58,9 +58,11 @@ const { loading, run, pageIndex, pageCount } = useRequest(queryWrTradeDetail, {
     }
 })
 
+const { t } = i18n.global
+
 filterOptons.buttonList = [
     {
-        lable: '查询',
+        lable: t('operation.search'),
         className: 'el-button--info',
         onClick: () => {
             pageIndex.value = 1

+ 5 - 3
src/packages/pc/views/query/trade/swap/history/index.vue

@@ -4,7 +4,7 @@
         <template #headerLeft>
             <app-filter :options="filterOptons">
                 <template #before>
-                    <el-date-picker effect="dark" :editable="false" :clearable="false" placeholder="请选择"
+                    <el-date-picker effect="dark" :editable="false" :clearable="false" :placeholder="t('common.choice')"
                         value-format="YYYY-MM-DD" v-model="dateValue" />
                 </template>
             </app-filter>
@@ -42,7 +42,7 @@ import { useRequest } from '@/hooks/request'
 import { useDataFilter } from '@/hooks/datatable'
 import { queryHisTradeDetail, } from '@/services/api/order'
 import { getBuildTypeName, getBuyOrSellName, getBuildTypeList } from '@/constants/order'
-import { useTableColumnsStore } from '@/stores'
+import { useTableColumnsStore, i18n } from '@/stores'
 import AppTable from '@pc/components/base/table/index.vue'
 import AppFilter from '@pc/components/base/table-filter/index.vue'
 
@@ -80,9 +80,11 @@ filterOptons.selectList = [
     }
 ]
 
+const { t } = i18n.global
+
 filterOptons.buttonList = [
     {
-        lable: '查询',
+        lable: t('operation.search'),
         className: 'el-button--info',
         onClick: () => {
             pageIndex.value = 1