This commit is contained in:
曹辉 2023-04-19 10:36:37 +08:00
parent bc78f2d16b
commit 4d932a504f
5 changed files with 71 additions and 73 deletions

View File

@ -163,20 +163,20 @@ export default {
date: nowDate.getDate() // date: nowDate.getDate() //
}; };
// //
// if (dates.month < 10) { if (dates.month < 10) {
// this.startDate = dates.year + "-0" + dates.month; this.startDate = dates.year + "-0" + dates.month;
// this.endDate = dates.year + "-0" + dates.month; this.endDate = dates.year + "-0" + dates.month;
// } else { } else {
// this.startDate = dates.year + "." + dates.month; this.startDate = dates.year + "." + dates.month;
// this.endDate = dates.year + "-" + dates.month; this.endDate = dates.year + "-" + dates.month;
// } }
// if (dates.date < 10) { if (dates.date < 10) {
// this.startDate = this.startDate + "-0" + dates.date; this.startDate = this.startDate + "-0" + dates.date;
// this.endDate = this.endDate + "-0" + dates.date; this.endDate = this.endDate + "-0" + dates.date;
// } else { } else {
// this.startDate = this.startDate + "-" + dates.date; this.startDate = this.startDate + "-" + dates.date;
// this.endDate = this.endDate + "-" + dates.date; this.endDate = this.endDate + "-" + dates.date;
// } }
}, },
// //
getStudent(e) { getStudent(e) {

View File

@ -163,9 +163,7 @@ export default {
this.endDate = this.formatDate(new Date(e[1]).getTime()); this.endDate = this.formatDate(new Date(e[1]).getTime());
}, },
// //
kinbatlist(e) { kinbatlist(e) {},
console.log(e);
},
// //
parentlist(e) { parentlist(e) {
this.parentInfoId = e; this.parentInfoId = e;
@ -183,20 +181,20 @@ export default {
date: nowDate.getDate() // date: nowDate.getDate() //
}; };
// // // //
// if (dates.month < 10) { if (dates.month < 10) {
// this.startDate = dates.year + "-0" + dates.month; this.startDate = dates.year + "-0" + dates.month;
// this.endDate = dates.year + "-0" + dates.month; this.endDate = dates.year + "-0" + dates.month;
// } else { } else {
// this.startDate = dates.year + "." + dates.month; this.startDate = dates.year + "." + dates.month;
// this.endDate = dates.year + "-" + dates.month; this.endDate = dates.year + "-" + dates.month;
// } }
// if (dates.date < 10) { if (dates.date < 10) {
// this.startDate = this.startDate + "-0" + dates.date; this.startDate = this.startDate + "-0" + dates.date;
// this.endDate = this.endDate + "-0" + dates.date; this.endDate = this.endDate + "-0" + dates.date;
// } else { } else {
// this.startDate = this.startDate + "-" + dates.date; this.startDate = this.startDate + "-" + dates.date;
// this.endDate = this.endDate + "-" + dates.date; this.endDate = this.endDate + "-" + dates.date;
// } }
}, },
formatDate(time, timetype) { formatDate(time, timetype) {
let date = new Date(time); //13 let date = new Date(time); //13

View File

@ -123,20 +123,20 @@ export default {
date: nowDate.getDate() // date: nowDate.getDate() //
}; };
// // // //
// if (dates.month < 10) { if (dates.month < 10) {
// this.query.startDate = dates.year + "-0" + dates.month; this.query.startDate = dates.year + "-0" + dates.month;
// this.query.endDate = dates.year + "-0" + dates.month; this.query.endDate = dates.year + "-0" + dates.month;
// } else { } else {
// this.query.startDate = dates.year + "." + dates.month; this.query.startDate = dates.year + "." + dates.month;
// this.query.endDate = dates.year + "-" + dates.month; this.query.endDate = dates.year + "-" + dates.month;
// } }
// if (dates.date < 10) { if (dates.date < 10) {
// this.query.startDate = this.startDate + "-0" + dates.date; this.query.startDate = this.query.startDate + "-0" + dates.date;
// this.query.endDate = this.endDate + "-0" + dates.date; this.query.endDate = this.query.endDate + "-0" + dates.date;
// } else { } else {
// this.query.startDate = this.startDate + "-" + dates.date; this.query.startDate = this.query.startDate + "-" + dates.date;
// this.query.endDate = this.endDate + "-" + dates.date; this.query.endDate = this.query.endDate + "-" + dates.date;
// } }
}, },
// //
resetQuery() { resetQuery() {

View File

@ -381,20 +381,20 @@ export default {
dates.year + "-12" dates.year + "-12"
]; ];
// // // //
// if (dates.month < 10) { if (dates.month < 10) {
// this.query.startDate = dates.year + "-0" + dates.month; this.query.startDate = dates.year + "-0" + dates.month;
// this.query.endDate = dates.year + "-0" + dates.month; this.query.endDate = dates.year + "-0" + dates.month;
// } else { } else {
// this.query.startDate = dates.year + "." + dates.month; this.query.startDate = dates.year + "." + dates.month;
// this.query.endDate = dates.year + "-" + dates.month; this.query.endDate = dates.year + "-" + dates.month;
// } }
// if (dates.date < 10) { if (dates.date < 10) {
// this.query.startDate = this.startDate + "-0" + dates.date; this.query.startDate = this.query.startDate + "-0" + dates.date;
// this.query.endDate = this.endDate + "-0" + dates.date; this.query.endDate = this.query.endDate + "-0" + dates.date;
// } else { } else {
// this.query.startDate = this.startDate + "-" + dates.date; this.query.startDate = this.query.startDate + "-" + dates.date;
// this.query.endDate = this.endDate + "-" + dates.date; this.query.endDate = this.query.endDate + "-" + dates.date;
// } }
}, },
look(row) { look(row) {
this.parentInfoId = row.parentInfoId; this.parentInfoId = row.parentInfoId;

View File

@ -146,20 +146,20 @@ export default {
date: nowDate.getDate() // date: nowDate.getDate() //
}; };
// // // //
// if (dates.month < 10) { if (dates.month < 10) {
// this.startDate = dates.year + "-0" + dates.month; this.startDate = dates.year + "-0" + dates.month;
// this.endDate = dates.year + "-0" + dates.month; this.endDate = dates.year + "-0" + dates.month;
// } else { } else {
// this.startDate = dates.year + "." + dates.month; this.startDate = dates.year + "." + dates.month;
// this.endDate = dates.year + "-" + dates.month; this.endDate = dates.year + "-" + dates.month;
// } }
// if (dates.date < 10) { if (dates.date < 10) {
// this.startDate = this.startDate + "-0" + dates.date; this.startDate = this.startDate + "-0" + dates.date;
// this.endDate = this.endDate + "-0" + dates.date; this.endDate = this.endDate + "-0" + dates.date;
// } else { } else {
// this.startDate = this.startDate + "-" + dates.date; this.startDate = this.startDate + "-" + dates.date;
// this.endDate = this.endDate + "-" + dates.date; this.endDate = this.endDate + "-" + dates.date;
// } }
}, },
// //
resetQuery() { resetQuery() {