| | |
| | | <template> |
| | | <div class="container"> |
| | | <div class="filter-container"> |
| | | <div class="filter-container" style="padding: 20px"> |
| | | <el-row> |
| | | 时间:   |
| | | <el-date-picker |
| | |
| | | :clearable="false" |
| | | :default-time="['00:00:00','23:59:59']"> |
| | | </el-date-picker> |
| | | |
| | | </el-row> |
| | | <el-row style="padding-top: 10px"> |
| | | <el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-back" |
| | | <el-button class="filter-item" style="margin-left: 10px;margin-bottom: 0" type="primary" icon="el-icon-back" |
| | | @click="dayForward">前一天</el-button> |
| | | <el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-right" |
| | | <el-button class="filter-item" style="margin-left: 10px;margin-bottom: 0" type="primary" icon="el-icon-right" |
| | | @click="dayBackward">后一天</el-button> |
| | | |
| | | <el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-search" |
| | | @click="queryHandle"/> |
| | | <!-- <el-button class="filter-item" style="margin-left: 10px;margin-bottom: 0" type="primary" icon="el-icon-search"--> |
| | | <!-- @click="queryHandle"/>--> |
| | | </el-row> |
| | | <el-row style="padding-top: 10px"> |
| | | |
| | | </el-row> |
| | | </div> |
| | | <div class="table_content"> |
| | |
| | | this.queryDateHandle(); |
| | | }, |
| | | methods:{ |
| | | queryHandle(){ |
| | | this.getReportList(); |
| | | }, |
| | | // queryHandle(){ |
| | | // this.getReportList(); |
| | | // }, |
| | | getReportList(){ |
| | | const _this = this; |
| | | const params = {}; |
| | |
| | | end.setMinutes(59); |
| | | end.setSeconds(59); |
| | | this.dateRange = [start,end] |
| | | this.getReportList() |
| | | } |
| | | }, |
| | | dayBackward(){ |
| | |
| | | end.setMinutes(59); |
| | | end.setSeconds(59); |
| | | this.dateRange = [start,end] |
| | | this.getReportList() |
| | | } |
| | | }, |
| | | queryDateHandle(){ |
| | |
| | | this.dateRange.push(start,end); |
| | | this.startDate = start; |
| | | this.endDate = end; |
| | | this.getReportList() |
| | | }, |
| | | sortChange(param){ |
| | | this.sort = param.prop; |