From 9c079388b3cb63a6638c6bea34fcd02d848ffbc0 Mon Sep 17 00:00:00 2001 From: donghaolin <17667510818@163.com> Date: Tue, 17 Dec 2024 13:22:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=99=E6=98=AF=E4=BF=AE=E6=94=B9=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/gold-system/src/views/managerecharge/rate.vue | 27 +++++++++++++++++----- vue/gold-system/src/views/recharge/addRecharge.vue | 15 ++++++++---- 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/vue/gold-system/src/views/managerecharge/rate.vue b/vue/gold-system/src/views/managerecharge/rate.vue index 35367f8..bc34a75 100644 --- a/vue/gold-system/src/views/managerecharge/rate.vue +++ b/vue/gold-system/src/views/managerecharge/rate.vue @@ -236,6 +236,14 @@ function formatDate(value) { const seconds = date.getSeconds().toString().padStart(2, "0"); return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; } +function formatDateTwe(value) { + if (!value) return ""; + const date = new Date(value); + const year = date.getFullYear(); + const month = (date.getMonth() + 1).toString().padStart(2, "0"); + const day = date.getDate().toString().padStart(2, "0"); + return `${year}-${month}-${day}`; +} //表格高度 const tableHeight = computed(function () { @@ -378,25 +386,32 @@ const checkNumber = function () { :height="tableHeight" style="width: 100%" > - - + + - + - + + + + - - +