日期格式修改
This commit is contained in:
@@ -43,21 +43,16 @@ export default {
|
||||
components: {
|
||||
uniCalendar
|
||||
},
|
||||
onLoad() {
|
||||
created() {
|
||||
this.getNowDay()
|
||||
// if(this.month > 9) {
|
||||
// this.yyyyMM = this.year + '-' + this.month
|
||||
// } else {
|
||||
// this.yyyyMM = this.year + '-' + '0' + this.month
|
||||
// }
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
changeMonth(e) {
|
||||
if(e.month<=9) {
|
||||
this.yyyyMM = e.year + '-' + '0' + e.month
|
||||
this.yyyyMM = e.year + '0' + e.month
|
||||
} else if(e.month > 9) {
|
||||
this.yyyyMM = e.year + '-' + e.month
|
||||
this.yyyyMM = e.year + e.month
|
||||
}
|
||||
this.getData()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user