| | |
| | | import { getAction } from '@/api/manage' |
| | | // import {mapActions} from 'vuex' |
| | | export default { |
| | | components: { |
| | | components: { |
| | | LogList, |
| | | WorkLogList, |
| | | AlarmLogList, |
| | |
| | | }, |
| | | searchQuery() { |
| | | // console.log(this.queryParams.collectTime) |
| | | if (this.queryParams.collectTime != undefined) { |
| | | this.queryParams.collectTimeStr = this.queryParams.collectTime.format('YYYY-MM-DD') |
| | | if (!this.queryParams.equipmentId || !this.queryParams.equipmentName) { |
| | | this.$notification.warning({ |
| | | message: '消息', |
| | | description: '请选择设备' |
| | | }) |
| | | return false |
| | | } |
| | | this.queryChart() |
| | | } else { |
| | | // this.$message.warning("请选择时间") |
| | | console.log('触发提示') |
| | | this.queryParams.collectTimeStr = this.queryParams.collectTime.format('YYYY-MM-DD') |
| | | if (!this.queryParams.equipmentId || !this.queryParams.equipmentName) { |
| | | this.$notification.warning({ |
| | | message: '消息', |
| | | description: '请选择时间' |
| | | description: '请选择设备' |
| | | }) |
| | | return false |
| | | } |
| | | this.queryChart() |
| | | // this.queryList() |
| | | }, |
| | | searchReset() { |
| | | this.queryParams = {} |
| | | this.queryParams = { |
| | | collectTime : moment() |
| | | } |
| | | // this.queryList() |
| | | this.equipment = {} |
| | | this.queryChart() |