From 49fc037565637d9eb3e2d8fced453368b5d17d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Thu, 17 Oct 2024 18:06:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E4=B8=BA1=EF=BC=9A00=EF=BC=8C2?= =?UTF-8?q?=EF=BC=9A00?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/volunteer/Venuemanagement/info.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/views/modules/volunteer/Venuemanagement/info.vue b/src/views/modules/volunteer/Venuemanagement/info.vue index c91e4b864..7cdc73cfb 100644 --- a/src/views/modules/volunteer/Venuemanagement/info.vue +++ b/src/views/modules/volunteer/Venuemanagement/info.vue @@ -180,13 +180,14 @@ if (res.code == 0) { this.tableData1 = res.data.list this.tableData1.forEach(item => { - - item.available=dayjs(item.available.split(",")).forEach(item=>{ - console.log(dayjs(item).format(hh-mm)); - - item = dayjs(item).format(hh-mm) - }) - item.time = dayjs(item.time).format('YYYY-MM-DD') + item.time = dayjs(item.time).format('YYYY-MM-DD') + // item.available=dayjs(item.available.split(",")).forEach(item1=>{ + // console.log(dayjs(item1).format(hh-mm)); + // item = dayjs(item1).format(hh-mm1) + // }) + item.available = item.available.split(',').map(time => time + ":00").join(', '); + // console.log(formattedTime); // 输出 "1:00, 2:00" + }) console.log(this.tableData1, "this.tableData1");