|
@ -21,9 +21,11 @@ |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
v-model="customYear" |
|
|
v-model="customYear" |
|
|
type="datetimerange" |
|
|
type="datetimerange" |
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
range-separator="至" |
|
|
range-separator="至" |
|
|
start-placeholder="开始日期" |
|
|
start-placeholder="开始日期" |
|
|
end-placeholder="结束日期" |
|
|
end-placeholder="结束日期" |
|
|
|
|
|
@change="handleCustomYear" |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
<el-table v-if="tableData.length!==0" ref="table" v-loading="tableDataLoading" :data="tableData" border :cell-style="tableCellStyle"> |
|
|
<el-table v-if="tableData.length!==0" ref="table" v-loading="tableDataLoading" :data="tableData" border :cell-style="tableCellStyle"> |
|
@ -135,6 +137,10 @@ export default { |
|
|
this.yearValue = val |
|
|
this.yearValue = val |
|
|
this.getAnnualStatisticsByMonth() |
|
|
this.getAnnualStatisticsByMonth() |
|
|
}, |
|
|
}, |
|
|
|
|
|
handleCustomYear(val) { |
|
|
|
|
|
console.log('this.customYear', this.customYear) |
|
|
|
|
|
console.log('this.val', val) |
|
|
|
|
|
}, |
|
|
getFirstColumnProp() { |
|
|
getFirstColumnProp() { |
|
|
switch (this.activeIndex) { |
|
|
switch (this.activeIndex) { |
|
|
case 0: return 'year' // 年度统计:年份 |
|
|
case 0: return 'year' // 年度统计:年份 |
|
|