commit
Showing
2 changed files
with
5 additions
and
3 deletions
| ... | @@ -30,7 +30,8 @@ | ... | @@ -30,7 +30,8 @@ |
| 30 | export default { | 30 | export default { |
| 31 | data() { | 31 | data() { |
| 32 | return { | 32 | return { |
| 33 | showdate: this.$route.query.showdate, | 33 | beginDate: this.$route.query.beginDate, |
| 34 | endDate: this.$route.query.endDate, | ||
| 34 | methodCounts: [] | 35 | methodCounts: [] |
| 35 | } | 36 | } |
| 36 | }, | 37 | }, |
| ... | @@ -51,7 +52,8 @@ | ... | @@ -51,7 +52,8 @@ |
| 51 | } | 52 | } |
| 52 | } | 53 | } |
| 53 | this.$http.get('/bigdata/methodCount?'+this.$qs.stringify({ | 54 | this.$http.get('/bigdata/methodCount?'+this.$qs.stringify({ |
| 54 | showdate: this.showdate | 55 | beginDate: this.beginDate, |
| 56 | endDate: this.endDate | ||
| 55 | }),config).then((res)=>{ | 57 | }),config).then((res)=>{ |
| 56 | console.log(res.data) | 58 | console.log(res.data) |
| 57 | this.methodCounts=res.data.methodCounts | 59 | this.methodCounts=res.data.methodCounts | ... | ... |
| ... | @@ -129,7 +129,7 @@ | ... | @@ -129,7 +129,7 @@ |
| 129 | methodCountSubmit() { | 129 | methodCountSubmit() { |
| 130 | console.log(this.methodCount.showdate); | 130 | console.log(this.methodCount.showdate); |
| 131 | const {href} = this.$router.resolve({ name:'methodCount', query: | 131 | const {href} = this.$router.resolve({ name:'methodCount', query: |
| 132 | {showdate: this.methodCount.showdate[0]}}) | 132 | {beginDate: this.methodCount.showdate[0], endDate: this.methodCount.showdate[1]}}) |
| 133 | window.open(href, '_blank') | 133 | window.open(href, '_blank') |
| 134 | } | 134 | } |
| 135 | } | 135 | } | ... | ... |
-
Please register or sign in to post a comment