修改
This commit is contained in:
parent
bc78f2d16b
commit
4d932a504f
@ -163,20 +163,20 @@ export default {
|
||||
date: nowDate.getDate() //获取当前日期
|
||||
};
|
||||
//拼接
|
||||
// if (dates.month < 10) {
|
||||
// this.startDate = dates.year + "-0" + dates.month;
|
||||
// this.endDate = dates.year + "-0" + dates.month;
|
||||
// } else {
|
||||
// this.startDate = dates.year + "." + dates.month;
|
||||
// this.endDate = dates.year + "-" + dates.month;
|
||||
// }
|
||||
// if (dates.date < 10) {
|
||||
// this.startDate = this.startDate + "-0" + dates.date;
|
||||
// this.endDate = this.endDate + "-0" + dates.date;
|
||||
// } else {
|
||||
// this.startDate = this.startDate + "-" + dates.date;
|
||||
// this.endDate = this.endDate + "-" + dates.date;
|
||||
// }
|
||||
if (dates.month < 10) {
|
||||
this.startDate = dates.year + "-0" + dates.month;
|
||||
this.endDate = dates.year + "-0" + dates.month;
|
||||
} else {
|
||||
this.startDate = dates.year + "." + dates.month;
|
||||
this.endDate = dates.year + "-" + dates.month;
|
||||
}
|
||||
if (dates.date < 10) {
|
||||
this.startDate = this.startDate + "-0" + dates.date;
|
||||
this.endDate = this.endDate + "-0" + dates.date;
|
||||
} else {
|
||||
this.startDate = this.startDate + "-" + dates.date;
|
||||
this.endDate = this.endDate + "-" + dates.date;
|
||||
}
|
||||
},
|
||||
//名下学生
|
||||
getStudent(e) {
|
||||
|
||||
@ -163,9 +163,7 @@ export default {
|
||||
this.endDate = this.formatDate(new Date(e[1]).getTime());
|
||||
},
|
||||
//幼儿园
|
||||
kinbatlist(e) {
|
||||
console.log(e);
|
||||
},
|
||||
kinbatlist(e) {},
|
||||
//家长
|
||||
parentlist(e) {
|
||||
this.parentInfoId = e;
|
||||
@ -183,20 +181,20 @@ export default {
|
||||
date: nowDate.getDate() //获取当前日期
|
||||
};
|
||||
// //拼接
|
||||
// if (dates.month < 10) {
|
||||
// this.startDate = dates.year + "-0" + dates.month;
|
||||
// this.endDate = dates.year + "-0" + dates.month;
|
||||
// } else {
|
||||
// this.startDate = dates.year + "." + dates.month;
|
||||
// this.endDate = dates.year + "-" + dates.month;
|
||||
// }
|
||||
// if (dates.date < 10) {
|
||||
// this.startDate = this.startDate + "-0" + dates.date;
|
||||
// this.endDate = this.endDate + "-0" + dates.date;
|
||||
// } else {
|
||||
// this.startDate = this.startDate + "-" + dates.date;
|
||||
// this.endDate = this.endDate + "-" + dates.date;
|
||||
// }
|
||||
if (dates.month < 10) {
|
||||
this.startDate = dates.year + "-0" + dates.month;
|
||||
this.endDate = dates.year + "-0" + dates.month;
|
||||
} else {
|
||||
this.startDate = dates.year + "." + dates.month;
|
||||
this.endDate = dates.year + "-" + dates.month;
|
||||
}
|
||||
if (dates.date < 10) {
|
||||
this.startDate = this.startDate + "-0" + dates.date;
|
||||
this.endDate = this.endDate + "-0" + dates.date;
|
||||
} else {
|
||||
this.startDate = this.startDate + "-" + dates.date;
|
||||
this.endDate = this.endDate + "-" + dates.date;
|
||||
}
|
||||
},
|
||||
formatDate(time, timetype) {
|
||||
let date = new Date(time); //13位时间戳
|
||||
|
||||
@ -123,20 +123,20 @@ export default {
|
||||
date: nowDate.getDate() //获取当前日期
|
||||
};
|
||||
// //拼接
|
||||
// if (dates.month < 10) {
|
||||
// this.query.startDate = dates.year + "-0" + dates.month;
|
||||
// this.query.endDate = dates.year + "-0" + dates.month;
|
||||
// } else {
|
||||
// this.query.startDate = dates.year + "." + dates.month;
|
||||
// this.query.endDate = dates.year + "-" + dates.month;
|
||||
// }
|
||||
// if (dates.date < 10) {
|
||||
// this.query.startDate = this.startDate + "-0" + dates.date;
|
||||
// this.query.endDate = this.endDate + "-0" + dates.date;
|
||||
// } else {
|
||||
// this.query.startDate = this.startDate + "-" + dates.date;
|
||||
// this.query.endDate = this.endDate + "-" + dates.date;
|
||||
// }
|
||||
if (dates.month < 10) {
|
||||
this.query.startDate = dates.year + "-0" + dates.month;
|
||||
this.query.endDate = dates.year + "-0" + dates.month;
|
||||
} else {
|
||||
this.query.startDate = dates.year + "." + dates.month;
|
||||
this.query.endDate = dates.year + "-" + dates.month;
|
||||
}
|
||||
if (dates.date < 10) {
|
||||
this.query.startDate = this.query.startDate + "-0" + dates.date;
|
||||
this.query.endDate = this.query.endDate + "-0" + dates.date;
|
||||
} else {
|
||||
this.query.startDate = this.query.startDate + "-" + dates.date;
|
||||
this.query.endDate = this.query.endDate + "-" + dates.date;
|
||||
}
|
||||
},
|
||||
//重置
|
||||
resetQuery() {
|
||||
|
||||
@ -381,20 +381,20 @@ export default {
|
||||
dates.year + "-12"
|
||||
];
|
||||
// //拼接
|
||||
// if (dates.month < 10) {
|
||||
// this.query.startDate = dates.year + "-0" + dates.month;
|
||||
// this.query.endDate = dates.year + "-0" + dates.month;
|
||||
// } else {
|
||||
// this.query.startDate = dates.year + "." + dates.month;
|
||||
// this.query.endDate = dates.year + "-" + dates.month;
|
||||
// }
|
||||
// if (dates.date < 10) {
|
||||
// this.query.startDate = this.startDate + "-0" + dates.date;
|
||||
// this.query.endDate = this.endDate + "-0" + dates.date;
|
||||
// } else {
|
||||
// this.query.startDate = this.startDate + "-" + dates.date;
|
||||
// this.query.endDate = this.endDate + "-" + dates.date;
|
||||
// }
|
||||
if (dates.month < 10) {
|
||||
this.query.startDate = dates.year + "-0" + dates.month;
|
||||
this.query.endDate = dates.year + "-0" + dates.month;
|
||||
} else {
|
||||
this.query.startDate = dates.year + "." + dates.month;
|
||||
this.query.endDate = dates.year + "-" + dates.month;
|
||||
}
|
||||
if (dates.date < 10) {
|
||||
this.query.startDate = this.query.startDate + "-0" + dates.date;
|
||||
this.query.endDate = this.query.endDate + "-0" + dates.date;
|
||||
} else {
|
||||
this.query.startDate = this.query.startDate + "-" + dates.date;
|
||||
this.query.endDate = this.query.endDate + "-" + dates.date;
|
||||
}
|
||||
},
|
||||
look(row) {
|
||||
this.parentInfoId = row.parentInfoId;
|
||||
|
||||
@ -146,20 +146,20 @@ export default {
|
||||
date: nowDate.getDate() //获取当前日期
|
||||
};
|
||||
// //拼接
|
||||
// if (dates.month < 10) {
|
||||
// this.startDate = dates.year + "-0" + dates.month;
|
||||
// this.endDate = dates.year + "-0" + dates.month;
|
||||
// } else {
|
||||
// this.startDate = dates.year + "." + dates.month;
|
||||
// this.endDate = dates.year + "-" + dates.month;
|
||||
// }
|
||||
// if (dates.date < 10) {
|
||||
// this.startDate = this.startDate + "-0" + dates.date;
|
||||
// this.endDate = this.endDate + "-0" + dates.date;
|
||||
// } else {
|
||||
// this.startDate = this.startDate + "-" + dates.date;
|
||||
// this.endDate = this.endDate + "-" + dates.date;
|
||||
// }
|
||||
if (dates.month < 10) {
|
||||
this.startDate = dates.year + "-0" + dates.month;
|
||||
this.endDate = dates.year + "-0" + dates.month;
|
||||
} else {
|
||||
this.startDate = dates.year + "." + dates.month;
|
||||
this.endDate = dates.year + "-" + dates.month;
|
||||
}
|
||||
if (dates.date < 10) {
|
||||
this.startDate = this.startDate + "-0" + dates.date;
|
||||
this.endDate = this.endDate + "-0" + dates.date;
|
||||
} else {
|
||||
this.startDate = this.startDate + "-" + dates.date;
|
||||
this.endDate = this.endDate + "-" + dates.date;
|
||||
}
|
||||
},
|
||||
//重置
|
||||
resetQuery() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user