diff --git a/src/views/Financial/exchange/hook.tsx b/src/views/Financial/exchange/hook.tsx index c44f932..c37ebd2 100644 --- a/src/views/Financial/exchange/hook.tsx +++ b/src/views/Financial/exchange/hook.tsx @@ -15,6 +15,7 @@ export function useData() { start_time: "", end_time: "" }); + const totalData = ref(0) const searchLabel = ref([ { label: "用户ID/昵称", prop: "search_uid", type: "input" }, { label: "开始时间", prop: "start_time", type: "date" }, @@ -69,6 +70,7 @@ export function useData() { tableList.value = data.lists; pagination.value.total = data.count; pagination.value.currentPage = data.page; + totalData.value = data.total } loading.value = false; }; @@ -152,6 +154,7 @@ export function useData() { exportExcel, handleSizeChange, handleCurrentChange, - loading + loading, + totalData }; } diff --git a/src/views/Financial/exchange/index.vue b/src/views/Financial/exchange/index.vue index 93f30f2..b24b4d1 100644 --- a/src/views/Financial/exchange/index.vue +++ b/src/views/Financial/exchange/index.vue @@ -15,7 +15,8 @@ const { exportExcel, handleSizeChange, handleCurrentChange, - loading + loading, + totalData } = useData(); defineOptions({ name: "Recharge" @@ -33,9 +34,12 @@ onMounted(() => {