Browse Source

统计时间选择

master
xuhuajiao 3 weeks ago
parent
commit
87d9f686cc
  1. 6
      src/views/archivesMIOD/miodStatistics/miodTable.vue

6
src/views/archivesMIOD/miodStatistics/miodTable.vue

@ -21,9 +21,11 @@
<el-date-picker
v-model="customYear"
type="datetimerange"
value-format="yyyy-MM-dd HH:mm:ss"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
@change="handleCustomYear"
/>
</div>
<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.getAnnualStatisticsByMonth()
},
handleCustomYear(val) {
console.log('this.customYear', this.customYear)
console.log('this.val', val)
},
getFirstColumnProp() {
switch (this.activeIndex) {
case 0: return 'year' //

Loading…
Cancel
Save