| | |
| | | <div class="indexs"> |
| | | <el-card> |
| | | <el-row> |
| | | <el-button type="success" plain @click="exportExcel" >导出本页Excel</el-button> |
| | | <el-button type="success" plain @click="exportExcel" >导出Excel</el-button> |
| | | <el-button type="danger" @click="openAlarm">设备异常报警统计</el-button> |
| | | <el-select v-model="selectTypeValue" placeholder="选择设备名称" class="selectTypeValue" @change="selectChang"> |
| | | <el-option |
| | |
| | | <script> |
| | | import { parseTime } from '@/utils' |
| | | import { getDate } from '@/utils/dateTime' |
| | | import { getThisWeekRange} from '@/utils/formatTime.js' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | created() {}, |
| | | mounted() { |
| | | this.initTimeData(); |
| | | this.find() |
| | | }, |
| | | methods: { |
| | | initTimeData(){ |
| | | this.datatime= ''; |
| | | this.datatime= getThisWeekRange(30);//启用了 |
| | | }, |
| | | // 监听 pagesize 改变 |
| | | handleSizeChange(newSizd) { |
| | | this.queryInfo.pagesize = newSizd |
| | |
| | | this.queryInfo.pagenum = 1 |
| | | this.pagesize = 10 |
| | | this.datatime = '' |
| | | this.initTimeData();//重置时间 |
| | | this.find() |
| | | }, |
| | | resetChild() { |