|
@@ -26,7 +26,7 @@
|
|
|
{{ formatDate(value) }}
|
|
{{ formatDate(value) }}
|
|
|
</template>
|
|
</template>
|
|
|
<template #append v-if="pageIndex < pageCount">
|
|
<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>
|
|
</template>
|
|
|
</app-table>
|
|
</app-table>
|
|
|
</template>
|
|
</template>
|
|
@@ -38,6 +38,7 @@ import { useDataFilter } from '@/hooks/datatable'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { queryHisTradeDetail } from '@/services/api/order'
|
|
import { queryHisTradeDetail } from '@/services/api/order'
|
|
|
import { getBuildTypeName, getBuyOrSellName } from '@/constants/order'
|
|
import { getBuildTypeName, getBuyOrSellName } from '@/constants/order'
|
|
|
|
|
+import { i18n } from '@/stores'
|
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
|
import AppFilter from '@pc/components/base/table-filter/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 dataList = ref<Model.HisTradeDetailRsp[]>([])
|
|
|
const dateValue = ref(formatDate(currentDate.toISOString(), 'YYYY-MM-DD'))
|
|
const dateValue = ref(formatDate(currentDate.toISOString(), 'YYYY-MM-DD'))
|
|
|
|
|
|
|
|
|
|
+const { t } = i18n.global
|
|
|
|
|
+
|
|
|
const { loading, run, pageIndex, pageCount } = useRequest(queryHisTradeDetail, {
|
|
const { loading, run, pageIndex, pageCount } = useRequest(queryHisTradeDetail, {
|
|
|
manual: true,
|
|
manual: true,
|
|
|
params: {
|
|
params: {
|
|
@@ -65,16 +68,17 @@ const { loading, run, pageIndex, pageCount } = useRequest(queryHisTradeDetail, {
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const tableColumns = ref<Model.TableColumn[]>([
|
|
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: 'matchaccountid', label: '成交对手' },
|
|
|
- { field: 'tradetime', label: '成交时间' },
|
|
|
|
|
|
|
+ { field: 'tradetime', label: t('order.goodstrade.tradetime') },
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
filterOptons.selectList = [
|
|
filterOptons.selectList = [
|
|
@@ -91,7 +95,7 @@ filterOptons.selectList = [
|
|
|
|
|
|
|
|
filterOptons.buttonList = [
|
|
filterOptons.buttonList = [
|
|
|
{
|
|
{
|
|
|
- lable: '查询',
|
|
|
|
|
|
|
+ lable: t('operation.search'),
|
|
|
className: 'el-button--info',
|
|
className: 'el-button--info',
|
|
|
onClick: () => {
|
|
onClick: () => {
|
|
|
pageIndex.value = 1
|
|
pageIndex.value = 1
|