1
lzhe
2024-06-17 08b7fb912997ec9709bf7931071397a72d4c5dae
1
已修改3个文件
52 ■■■■ 文件已修改
src/utils/tool.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/station-live.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/status-record.vue 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/tool.js
@@ -2,7 +2,7 @@
 * @Descripttion: 工具集
 * @version: 1.2
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-06-17 13:03:38
 * @LastEditTime: 2024-06-17 18:21:44
 */
import CryptoJS from 'crypto-js';
src/views/mdc/station-live.vue
@@ -2,7 +2,7 @@
 * @Author: lzhe lzhe@example.com
 * @Date: 2024-03-26 10:28:33
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-06-17 16:57:30
 * @LastEditTime: 2024-06-17 22:29:43
 * @FilePath: /smart-web/src/views/master/person/main/index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -665,7 +665,7 @@
                                    if(eventData.data[item.name]) {
                                        item.code = eventData.data[item.name].v;
                                    }
                                    that.allwcs.forEach(item1=> {
                                    that.allwcs.forEach((item1)=> {
                                        if(item.code == item1.code) {
                                            item.codeName = item1.name;    //第二步把v的code和运行对应
                                            if(item.code == "2") {
src/views/mdc/status-record.vue
@@ -2,7 +2,7 @@
 * @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:33:57
 * @FilePath: /smart-web/src/views/mdc/status-record.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -305,33 +305,33 @@
        },
        query() {
            alert(3)
            this.getTime({endDate: this.time[1],startDate: this.time[0],statisticalMethod: 'SHIFT'}).then(()=> {
                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();
                })
                //按工位查看
                alert(6)
                if(this.btnGongweiList.length != 0) {  //有选工位才能展示工位
                    alert(123)
                    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();
                    })
                }
            });
        }