|
@@ -150,10 +150,14 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getCount() {
|
|
getCount() {
|
|
- getCount({
|
|
|
|
- startTime: `${new Date(this.value1).getFullYear()}-01-01 00:00:00`,
|
|
|
|
- endTime: `${new Date(this.value1).getFullYear()}-12-31 23:59:59`
|
|
|
|
- }).then(res => {
|
|
|
|
|
|
+ getCount(
|
|
|
|
+ this.value1
|
|
|
|
+ ? {
|
|
|
|
+ startTime: `${new Date(this.value1).getFullYear()}-01-01 00:00:00`,
|
|
|
|
+ endTime: `${new Date(this.value1).getFullYear()}-12-31 23:59:59`
|
|
|
|
+ }
|
|
|
|
+ : {}
|
|
|
|
+ ).then(res => {
|
|
this.tabs[0].num = res.data.dpg || 0
|
|
this.tabs[0].num = res.data.dpg || 0
|
|
this.tabs[1].num = res.data.dyy || 0
|
|
this.tabs[1].num = res.data.dyy || 0
|
|
this.tabs[2].num = res.data.dqd || 0
|
|
this.tabs[2].num = res.data.dqd || 0
|