获取当前年月日,配合elementUi el-date-picker使用
let date = new Date()
let theYear = date.getFullYear() //获取完整的年份(4位)
let theMonth = date.getMonth() + 1 //获取当前月份(1-12,1代表1月)
theMonth = theMonth >= 10 ? theMonth : "0" + theMonth
let theDay = date.getDate() //获取当前日(1-31)
theDay = theDay >= 10 ? theDay : "0" + theDay
this.searchForm.startTime = theYear+'-'+theMonth+'-'+'theDay'