| | |
| | | tooltip: { |
| | | trigger: 'item', |
| | | //formatter: '{a} <br/>{b} : {c} ({d}%)' |
| | | formatter: '{a} 0分钟' |
| | | formatter: '{a} {c}分钟' |
| | | }, |
| | | legend: { |
| | | orient: 'vertical', |
| | |
| | | }, |
| | | getlogcart() { //班次状态记录chart |
| | | var obj = { |
| | | //date: this.wcsDate, |
| | | date : "2024-05-15", |
| | | date: this.wcsDate, |
| | | //date : "2024-05-15", |
| | | humanFeedback: true, |
| | | workstationId: this.lastLevelId |
| | | } |
| | |
| | | |
| | | var nowTime = moment().format("HH:mm:ss"); //11:37:54 |
| | | var spaceTime = moment(obj.date + " " + nowTime).diff(moment(obj.date + " 00:00:00"), 'hours'); //离当天00:00:00过了多少小时 |
| | | console.log(spaceTime,obj.date + " " + nowTime,234) |
| | | //console.log(spaceTime,obj.date + " " + nowTime,234) |
| | | return; |
| | | //计算时间 |
| | | var startOfDay = moment().startOf('day'); //00:00:00 |
| | |
| | | interval: 1440/6, //每隔多少分钟显示一个刻度 |
| | | axisLabel: { |
| | | formatter: (value)=> { |
| | | console.log(value,111) |
| | | //console.log(value,111) |
| | | if(value == 0) { |
| | | return "00:00:00"; |
| | | }else if(value == 240) { |
| | |
| | | var wcsOption = JSON.parse(JSON.stringify(this.wcsBeginOption)); |
| | | if(res.data.length == 0) { |
| | | wcsOption.forEach(item=> { |
| | | item.value = 20; |
| | | item.value = 0; |
| | | }) |
| | | }else { |
| | | wcsOption.forEach(item=> { |
| | |
| | | this.$HTTP.get(`/api/blade-cps/workstation/get-dmp-variables?machineId=${machineId}&workstationId=${lastLevelId}`).then(res=> { |
| | | if(res.code == 200) { |
| | | this.dmpList = res.data; |
| | | console.log(this.dmpList,111) |
| | | //console.log(this.dmpList,111) |
| | | } |
| | | }) |
| | | }, |