diff --git a/src/api/modules/statistics.ts b/src/api/modules/statistics.ts index 4577c31..cbe8098 100644 --- a/src/api/modules/statistics.ts +++ b/src/api/modules/statistics.ts @@ -61,4 +61,11 @@ export const getLuckyRank = params => { "/adminapi/Lottery/record_list", { params } ); +}; +// 实时状态查询(幸运币) +export const realTimeByluckyList = () => { + return http.request( + "get", + "/adminapi/Lottery/realtime_statistics" + ); }; \ No newline at end of file diff --git a/src/views/Statistical/luckycoinRank/form.vue b/src/views/Statistical/luckycoinRank/form.vue new file mode 100644 index 0000000..9713a57 --- /dev/null +++ b/src/views/Statistical/luckycoinRank/form.vue @@ -0,0 +1,49 @@ + + + \ No newline at end of file diff --git a/src/views/Statistical/luckycoinRank/hook.tsx b/src/views/Statistical/luckycoinRank/hook.tsx index 186f997..60eca66 100644 --- a/src/views/Statistical/luckycoinRank/hook.tsx +++ b/src/views/Statistical/luckycoinRank/hook.tsx @@ -6,6 +6,7 @@ import { utils, writeFile } from "xlsx"; import ExportForm from '@/components/exportDialog/index.vue'; import { addDialog } from "@/components/ReDialog"; import { message } from "@/utils/message"; +import detailView from './form.vue'; export function useData() { const loading = ref(true); const tableList = ref([]); @@ -36,7 +37,7 @@ export function useData() { }, { label: "中奖比例(%)", - prop: "radio" + prop: "ratio" }, { label: "中奖金额", @@ -146,6 +147,16 @@ export function useData() { }); } + // 实时状态查询 + const openDiglog = () => { + addDialog({ + title: `实时状态查询`, + fullscreen: false, + hideFooter: true, + closeOnClickModal: false, + contentRenderer: () => h(detailView) + }); + } return { searchForm, searchLabel, @@ -157,6 +168,7 @@ export function useData() { exportExcel, handleSizeChange, handleCurrentChange, + openDiglog, loading }; } diff --git a/src/views/Statistical/luckycoinRank/index.vue b/src/views/Statistical/luckycoinRank/index.vue index 05d9d7f..44ec770 100644 --- a/src/views/Statistical/luckycoinRank/index.vue +++ b/src/views/Statistical/luckycoinRank/index.vue @@ -8,6 +8,7 @@ const { searchLabel, searchForm, onSearch, + openDiglog, isShow, tableList, pagination, @@ -32,6 +33,7 @@ defineOptions({