li.shaoyi vor 2 Jahren
Ursprung
Commit
eed0a43d21

+ 1 - 1
src/packages/pc/views/ratio/components/history/index.vue

@@ -30,7 +30,7 @@ const props = defineProps({
     },
 })
 
-const { dataList, total, pageIndex, pageSize } = useDataTable<Model.THJInvesotrDepositLogRsp>()
+const { dataList, total, pageIndex, pageSize } = useDataTable<Model.THJInvesotrDepositLogRsp>({ pageSize: 10 })
 const show = shallowRef(true)
 const loading = shallowRef(false)
 

+ 13 - 1
src/packages/pc/views/tradedata/index.vue

@@ -10,6 +10,18 @@
             <template #reckondate="{ value }">
                 {{ formatDate(value, 'YYYY-MM-DD') }}
             </template>
+            <!-- 市场 -->
+            <template #marketid="{ value }">
+                {{ getTHJMarketName(value) }}
+            </template>
+            <!-- 吨数 -->
+            <template #tradeqty="{ row }">
+                {{ `${row.buytradeqty}/${row.selltradeqty}` }}
+            </template>
+            <!-- 笔数 -->
+            <template #tradelot="{ row }">
+                {{ `${row.buytradelot}/${row.selltradelot}` }}
+            </template>
             <template #footer>
                 <app-pagination :total="total" v-model:page-size="pageSize" v-model:page-index="pageIndex"
                     @change="onRefresh" />
@@ -22,7 +34,7 @@
 import { shallowRef } from 'vue'
 import { ElMessage } from 'element-plus'
 import { formatDate } from '@/filters'
-import { Market, getTHJMarketList } from '@/constants/market'
+import { Market, getTHJMarketList, getTHJMarketName } from '@/constants/market'
 import { useDataFilter } from '@/hooks/datatable'
 import { useQueryTHJTradeDataList } from '@/business/goods'
 import AppTable from '@pc/components/base/table/index.vue'