From a93a2814b8e04b457c880c74a4e767a3d03fc13b Mon Sep 17 00:00:00 2001 From: yujiacong <1016029365@qq.com> Date: Fri, 25 Jul 2025 11:46:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=90=A5=E6=B8=B8=E6=88=8F=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9F=A5=E8=AF=A2=20-=20=E5=A2=9E=E5=8A=A0=E6=AF=94?= =?UTF-8?q?=E5=88=97=E7=99=BE=E5=88=86=E6=AF=94=E4=BB=A5=E5=8F=8A=E5=8D=83?= =?UTF-8?q?=E5=88=86=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/OperationGameDataQuery.vue | 23 +++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/views/system/OperationGameDataQuery.vue b/src/views/system/OperationGameDataQuery.vue index e40e953..fa1ea6c 100644 --- a/src/views/system/OperationGameDataQuery.vue +++ b/src/views/system/OperationGameDataQuery.vue @@ -51,10 +51,18 @@ > - + + + - + + + @@ -140,6 +148,17 @@ const resetFormData = () => { tableData.data = []; gameData.value = {}; }; + // 百分比 + const toPercentage = (value) => { + return (value * 100).toFixed(2) + "%"; + }; + // 千分位 + const formattedNumber = computed(() => { + return (num) => { + if (num === null || num === undefined) return ""; + return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); + }; + }); onMounted(() => { getGameAllList().then((res) => { if (res.code == 200) {