| | |
| | | return current && current > moment().endOf("day"); |
| | | }, |
| | | initPlainOptions(param) { |
| | | console.log(param) |
| | | let that = this |
| | | let equipment = param.equipmentId |
| | | console.log(equipment) |
| | | getAction(this.url.initPlainOptions,{equipmentId:equipment}).then((res) => { |
| | | if (res.success) { |
| | | |
| | |
| | | if (e.length <= 3) { |
| | | this.option = e |
| | | } else { |
| | | this.$message.warn('最多只能选择3个') |
| | | // this.$message.warn('最多只能选择3个') |
| | | this.$notification.warning({ |
| | | message:'消息', |
| | | description:'最多只能选择三个' |
| | | }); |
| | | return false |
| | | } |
| | | }, |
| | |
| | | } |
| | | getAction(this.url.workChart, param).then((res) => { |
| | | if(JSON.stringify(res.result) == '[]' || res.result == null){ |
| | | this.$message.warning('无数据!') |
| | | // this.$message.warning('无数据!') |
| | | this.$notification.warning({ |
| | | message:'消息', |
| | | description:'无数据!' |
| | | }); |
| | | this.spinning = false; |
| | | _this.workChart.setOption(option,true) |
| | | }else{ |