| | |
| | | this.alarmsearchBtn(); |
| | | }, |
| | | alarmsearchBtn() { |
| | | this.$HTTP.get(`/api/blade-mdc/work-station-analysis/alarm/${this.lastLevelId}?current=${this.alarmsearchData.current}&size=${this.alarmsearchData.size}`).then(res=> { |
| | | this.$HTTP.get(`/api/mdc/work-station-analysis/alarm/${this.lastLevelId}?current=${this.alarmsearchData.current}&size=${this.alarmsearchData.size}`).then(res=> { |
| | | if(res.code == 200) { |
| | | this.alarmtableData = res.data.records; |
| | | this.alarmtotal = res.data.total; |
| | |
| | | humanFeedback: this.humanFeedback, |
| | | workstationId: this.lastLevelId |
| | | } |
| | | this.$HTTP.post(`/api/blade-mdc/status-record/shift-index-status-record-table`,obj).then(res=> { |
| | | this.$HTTP.post(`/api/mdc/status-record/shift-index-status-record-table`,obj).then(res=> { |
| | | if(res.code == 200) { |
| | | var defaultValues = { |
| | | oee: 0, |
| | |
| | | humanFeedback: this.humanFeedback, |
| | | workstationId: this.lastLevelId |
| | | } |
| | | this.$HTTP.post(`/api/blade-mdc/status-record/shift-index-status-record-chart`,obj).then(res=> { |
| | | this.$HTTP.post(`/api/mdc/status-record/shift-index-status-record-chart`,obj).then(res=> { |
| | | if(res.code == 200) { |
| | | var yAxisData = []; |
| | | var newData = []; |
| | |
| | | humanFeedback: this.humanFeedback, |
| | | workstationId: this.lastLevelId |
| | | } |
| | | this.$HTTP.post(`/api/blade-mdc/status-record/time-distribution`,obj).then(res=> { |
| | | this.$HTTP.post(`/api/mdc/status-record/time-distribution`,obj).then(res=> { |
| | | if(res.code == 200) { |
| | | var myChart = echarts.init(document.getElementById('wcs-left')); |
| | | var wcsOption = JSON.parse(JSON.stringify(this.wcsBeginOption)); |
| | |
| | | }) |
| | | }, |
| | | getwcsLcolor() { |
| | | this.$HTTP.get(`/api/blade-cps/global_wcs/list?code=&name=`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/global_wcs/list?code=&name=`).then(res=> { |
| | | if(res.code == 200) { |
| | | res.data.forEach(item=> { |
| | | item.itemStyle = {color: item.color}; |
| | |
| | | humanFeedback: this.humanFeedback, |
| | | workstationId: this.lastLevelId |
| | | } |
| | | this.$HTTP.post(`/api/blade-mdc/status-record/equipment-efficiency`,obj).then(res=> { |
| | | this.$HTTP.post(`/api/mdc/status-record/equipment-efficiency`,obj).then(res=> { |
| | | if(res.code == 200) { |
| | | var myChart = echarts.init(document.getElementById('wcs-right')); |
| | | res.data.forEach(item=> { |
| | |
| | | handleNodeClick(data) { |
| | | if(data.code) { |
| | | this.lastLevelId = data.id; |
| | | this.$HTTP.get(`/api/blade-cps/workstation/get?workstationId=${this.lastLevelId}`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/workstation/get?workstationId=${this.lastLevelId}`).then(res=> { |
| | | if(res.code == 200) { |
| | | if(res.data.avatar == "") { |
| | | res.data.avatar = station; |
| | |
| | | } |
| | | }, |
| | | getdmp(lastLevelId,machineId) { |
| | | this.$HTTP.get(`/api/blade-cps/workstation/listDatapointsByWorkstationId?machineId=${machineId}&workstationId=${lastLevelId}`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/workstation/listDatapointsByWorkstationId?machineId=${machineId}&workstationId=${lastLevelId}`).then(res=> { |
| | | if(res.code == 200) { |
| | | this.dmpList = []; |
| | | var that = this; |
| | |
| | | groupCategory: 1, |
| | | groupType: "group_workstation" |
| | | } |
| | | this.$HTTP.post("/api/blade-cps/group/groupWorkstation/type",obj).then(res=> { |
| | | this.$HTTP.post("/api/smis/group/groupWorkstation/type",obj).then(res=> { |
| | | if(res.code == 200) { |
| | | if (res.code == 200) { |
| | | var treeDisabled = this.addTreeDisable(res.data); |
| | |
| | | }) |
| | | }, |
| | | getachievements() { //班次状态记录采集状态 |
| | | this.$HTTP.get(`/api/blade-cps/global_wcs/wcs-achievements`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/global_wcs/wcs-achievements`).then(res=> { |
| | | if(res.code == 200) { |
| | | var achievements = [];//采集状态 |
| | | var collectionstatus = []; //人工反馈状态 |
| | |
| | | }) |
| | | }, |
| | | getlist() { |
| | | this.$HTTP.get(`/api/blade-cps/workstation/get?workstationId=${this.lastLevelId}`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/workstation/get?workstationId=${this.lastLevelId}`).then(res=> { |
| | | if(res.code == 200) { |
| | | if(res.data.avatar == "") { |
| | | res.data.avatar = station; |