choose(){ console.log(111111) console.log(this.value1) console.log(this.value1[0].valueOf()/1000) console.log(this.value1[1].valueOf()) getAction("/task/arrange",{ start_time:this.value1[0].valueOf()/1000, end_time:this.value1[1].valueOf()/1000, }).then(res=>{ this.tableData=res.data.items this.time=res.data.time }) }, getNextDate(date, day) { var dd = new Date(date); dd.setDate(dd.getDate() + day); var y = dd.getFullYear(); var m = dd.getMonth() + 1 < 10 ? "0" + (dd.getMonth() + 1) : dd.getMonth() + 1; var d = dd.getDate() < 10 ? "0" + dd.getDate() : dd.getDate(); return y + "-" + m + "-" + d; }, ListSearch(){ console.log(this.query.search_time) var mydata= new Date(); console.log(mydata.toLocaleDateString()); console.log(this.getNextDate(mydata.toLocaleDateString(),-1)) console.log(this.getNextDate(mydata.toLocaleDateString(),-1).valueOf()) console.log(parseInt((mydata.valueOf()/1000))) getAction("/task/arrange",{ start_time: parseInt((mydata.valueOf()/1000)), end_time: parseInt(((mydata.valueOf()+86400000*this.query.search_time)/1000)) }).then(res=>{ this.tableData=res.data.items this.time=res.data.time }) /* getAction("/task/arrange",{ page: 1, limit: 10, query: {search_time:this.query.search_time} })*/ },