Commit 51da28f1 authored by 罗超's avatar 罗超

推送响应默认值处理

parent b125b04e
......@@ -427,9 +427,16 @@
created() {},
mounted() {
var myDate = new Date();
this.tYear = myDate.getFullYear();
this.tMonth = myDate.getMonth() + 1;
this.tDay = myDate.getDate();
if(this.$route.query.d){
let d=this.$route.query.d.split('-')
this.tYear = d[0];
this.tMonth = d[1];
this.tDay = d[2];
}else{
this.tYear = myDate.getFullYear();
this.tMonth = myDate.getMonth() + 1;
this.tDay = myDate.getDate();
}
this.ckedIndex = this.tDay;
this.dataNum = this.mGetDate(this.tYear, this.tMonth);
this.msg.StartTime = this.tYear + '-' + this.tMonth + '-' + '01';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment