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