Compare commits

..

No commits in common. "2ed62802ce92c5ae2531c7057c1be8ee22aabee2" and "2ee5e24e6f7870c45baf3cf726d214af082f1ece" have entirely different histories.

1 changed files with 3 additions and 9 deletions

View File

@ -263,15 +263,9 @@ export default {
getCurrentDate() { getCurrentDate() {
const now = new Date(); const now = new Date();
const year = now.getFullYear(); const year = now.getFullYear();
let month = now.getMonth() + 1; // 0+1 const month = now.getMonth() + 1; // 0+1
let day = now.getDate() const day = now.getDate()
if(month < 10){ return `${year}-${month.length == 2 ? month : '0' + month}-${day.length == 2 ? day : '0' + day}`;
month = '0' + month
}
if(day < 10){
day = '0' + day
}
return `${year}-${month}-${day}`;
}, },
validateGrade(rule, value, callback) { validateGrade(rule, value, callback) {
if (this.studentList.length == 0) { if (this.studentList.length == 0) {