| | |
| | | this.queryParams.collectTimeStr = this.queryParams.collectTime.format('YYYY-MM-DD') |
| | | this.queryChart() |
| | | }else{ |
| | | this.$message.warning("请选择时间") |
| | | // this.$message.warning("请选择时间") |
| | | this.$notification.warning({ |
| | | message:'消息', |
| | | description:"请选择时间" |
| | | }); |
| | | } |
| | | |
| | | // this.queryList() |
| | |
| | | }, |
| | | openWorkChart() { |
| | | if(!this.equipment.equipmentId){ |
| | | this.$message.warning("请选择设备进行查询") |
| | | // this.$message.warning("请选择设备进行查询") |
| | | this.$notification.warning({ |
| | | message:'消息', |
| | | description:"请选择设备进行查询" |
| | | }); |
| | | }else{ |
| | | this.$refs.workChartModel.add(this.equipment) |
| | | this.$refs.workChartModel.title = '工作曲线' |
| | |
| | | openHistoryChart() { |
| | | // console.log(this.equipment); |
| | | if(!this.equipment.equipmentId){ |
| | | this.$message.warning("请选择设备进行查询") |
| | | // this.$message.warning("请选择设备进行查询") |
| | | this.$notification.warning({ |
| | | message:'消息', |
| | | description:"请选择设备进行查询" |
| | | }); |
| | | // console.log(1111) |
| | | } else{ |
| | | this.$refs.workHistoryModel.add(this.equipment) |
| | |
| | | }, |
| | | dataAfter() { |
| | | if((this.queryParams.collectTime).format('YYYY-MM-DD') == moment().format('YYYY-MM-DD')){ |
| | | this.$message.warning("请选择今天以及今天之前的日期!!") |
| | | // this.$message.warning("请选择今天以及今天之前的日期!!") |
| | | this.$notification.warning({ |
| | | message:'消息', |
| | | description:'请选择今天以及今天之前的日期!!' |
| | | }); |
| | | }else{ |
| | | this.queryParams.collectTime = moment(this.queryParams.collectTime.add(1, 'd'), 'YYYY-MM-DD') |
| | | this.searchQuery() |
| | |
| | | this.queryParams = {} |
| | | // this.queryList() |
| | | this.equipment = {} |
| | | _this.$message.warning('请联系管理员,开放设备权限!') |
| | | // _this.$message.warning('请联系管理员,开放设备权限!') |
| | | _this.$notification.warning({ |
| | | message:'消息', |
| | | description:'请联系管理员,开放设备权限!' |
| | | }); |
| | | } |
| | | }else{ |
| | | this.$message.warning(res.message) |
| | | // this.$message.warning(res.message) |
| | | _this.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }) |
| | | } |