|
|
|
@ -211,6 +211,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
// import user from '@/api/user.js'; |
|
|
|
import commonApi from '@/api/common.js'; |
|
|
|
import AQTabber from "@/components/AQ/AQTabber.vue" |
|
|
|
|
|
|
|
|
|
|
|
@ -341,18 +342,38 @@ export default { |
|
|
|
console.log([this.startDate,this.endDate]) |
|
|
|
}, |
|
|
|
//设置日期打点 |
|
|
|
setCalendarSelected(){ |
|
|
|
this.calendarSelected = [ |
|
|
|
{ |
|
|
|
date: '2025-04-07', |
|
|
|
}, |
|
|
|
{ |
|
|
|
date: '2025-04-08', |
|
|
|
}, |
|
|
|
{ |
|
|
|
date: '2025-04-09', |
|
|
|
} |
|
|
|
] |
|
|
|
async setCalendarSelected(){ |
|
|
|
//获取当前月份 |
|
|
|
let month = new Date().getMonth() + 1; |
|
|
|
|
|
|
|
let res = await commonApi.getMonthDate({month:month}) |
|
|
|
if (res.code != 1){ |
|
|
|
//提示 |
|
|
|
uni.showToast({ |
|
|
|
title: res.msg, |
|
|
|
icon: 'none', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
this.calendarSelected = [] |
|
|
|
res.data.forEach((v,k)=>{ |
|
|
|
this.calendarSelected.push({ |
|
|
|
date: v.date, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
// this.calendarSelected = [ |
|
|
|
// { |
|
|
|
// date: '2025-04-07', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// date: '2025-04-08', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// date: '2025-04-09', |
|
|
|
// } |
|
|
|
// ] |
|
|
|
}, |
|
|
|
//日历选择 |
|
|
|
changeCalendar(e){ |
|
|
|
|