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) {