|
|
@ -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"); |
|
|
|