| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-04-26 09:36:18 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-06-05 11:49:48 |
| | | * @LastEditTime: 2024-06-17 22:40:51 |
| | | * @FilePath: /smart-web/src/views/mdc/status-record.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | this.workstationInfoList = this.select; |
| | | this.btnGongweiList = this.select; //工位 |
| | | this.date = this.btnList[0].id; |
| | | if(this.activeName == "shift") { |
| | | this.$nextTick(()=> { |
| | | this.$refs.chart01.getCharts(); |
| | | }) |
| | | }else { |
| | | if(this.btnGongweiList.length != 0) { //有选工位才能展示工位 |
| | | this.isshowempty = false; |
| | | console.log(this.btnGongweiList,122) |
| | | this.btnGongweiListActive = this.btnGongweiList[0].id; //工位 |
| | | this.lastLevelId = this.btnGongweiListActive; |
| | | this.setWork = { //工位 |
| | | endDate: this.time[1], |
| | | startDate: this.time[0], |
| | | humanFeedback: true, |
| | | machineFeedback: true, |
| | | workstationId: this.select[0].id, |
| | | workstationName: this.btnGongweiList[0].name |
| | | } |
| | | this.workSelect = this.select; |
| | | this.$nextTick(()=> { |
| | | this.$refs.chart02.getCharts(); |
| | | }) |
| | | this.$nextTick(()=> { //按日期查看 |
| | | this.$refs.chart01.getCharts(); |
| | | }) |
| | | //按工位查看 |
| | | if(this.btnGongweiList.length != 0) { //有选工位才能展示工位 |
| | | this.isshowempty = false; |
| | | this.btnGongweiListActive = this.btnGongweiList[0].id; //工位 |
| | | this.lastLevelId = this.btnGongweiListActive; |
| | | this.setWork = { //工位 |
| | | endDate: this.time[1], |
| | | startDate: this.time[0], |
| | | humanFeedback: true, |
| | | machineFeedback: true, |
| | | workstationId: this.select[0].id, |
| | | workstationName: this.btnGongweiList[0].name |
| | | } |
| | | this.workSelect = this.select; |
| | | this.$nextTick(()=> { |
| | | this.$refs.chart02.getCharts(); |
| | | }) |
| | | } |
| | | }); |
| | | } |