Compare commits
4 Commits
2ee5e24e6f
...
2ed62802ce
Author | SHA1 | Date |
---|---|---|
zhangxuelin | 2ed62802ce | |
lyc | cf3129ed66 | |
lyc | 97e035398c | |
lyc | 6e8c96ce2e |
|
@ -263,9 +263,15 @@ export default {
|
|||
getCurrentDate() {
|
||||
const now = new Date();
|
||||
const year = now.getFullYear();
|
||||
const month = now.getMonth() + 1; // 月份是从0开始的,所以需要+1
|
||||
const day = now.getDate()
|
||||
return `${year}-${month.length == 2 ? month : '0' + month}-${day.length == 2 ? day : '0' + day}`;
|
||||
let month = now.getMonth() + 1; // 月份是从0开始的,所以需要+1
|
||||
let day = now.getDate()
|
||||
if(month < 10){
|
||||
month = '0' + month
|
||||
}
|
||||
if(day < 10){
|
||||
day = '0' + day
|
||||
}
|
||||
return `${year}-${month}-${day}`;
|
||||
},
|
||||
validateGrade(rule, value, callback) {
|
||||
if (this.studentList.length == 0) {
|
||||
|
|
Loading…
Reference in New Issue