当日聚焦

This commit is contained in:
luyuan 2020-11-20 15:46:26 +08:00
parent 14dd368dec
commit 6c3b1aa811
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -213,13 +213,21 @@ export default defineComponent({
async function getdates(userid: number){
getdatelist(month.value.start, month.value.end, userid).then((res: any)=>{
console.log(res)
// const day = getDay(res[i].dateline)
for(const j in month.value.date){
for(const k in month.value.date[j]){
if(yue.value == 0 && month.value.date[j][k].day == month.value.day){
month.value.date[j][k].s = 1
}
}
}
for(const i in res){
const day = getDay(res[i].dateline)
for(const j in month.value.date){
for(const k in month.value.date[j]){
if(yue.value == 0 && month.value.date[j][k].day == month.value.day){
month.value.date[j][k].s = 1
}
// if(yue.value == 0 && month.value.date[j][k].day == month.value.day){
// month.value.date[j][k].s = 1
// }
if(month.value.date[j][k].day == day){
if(month.value.date[j][k].list == undefined){
month.value.date[j][k].list = [];