| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-04-19 18:26:26 |
| | | * @LastEditTime: 2024-04-23 17:08:42 |
| | | * @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 |
| | | --> |
| | |
| | | }, |
| | | mounted(){ |
| | | this.newDate(); //获取当前日期 |
| | | this.getTreeList(); |
| | | this.getTreeList(this.$route.query.code); |
| | | }, |
| | | components: { |
| | | saveDialog |
| | |
| | | item.temdata = "00:00:00"; |
| | | item.perdata = "0"; |
| | | }) |
| | | console.log(res.data,980) |
| | | this.recordData = res.data; |
| | | } |
| | | }) |
| | |
| | | } |
| | | this.$HTTP.post(`/api/blade-mdc/status-record/equipment-efficiency`,obj).then(res=> { |
| | | if(res.code == 200) { |
| | | console.log(res.data,98988) |
| | | var myChart = echarts.init(document.getElementById('wcs-right')); |
| | | res.data.forEach(item=> { |
| | | item.value = (Number(item.value)*100).toFixed(2); |
| | | if(item.name == "运行率") item.itemStyle = {color: '#73d13d'}; |
| | | if(item.name == "报警率") item.itemStyle = {color: '#ff4d4f'}; |
| | | if(item.name == "稼动率") item.itemStyle = {color: '#40a9ff'}; |
| | |
| | | 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,1) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | }) |
| | | return tree; |
| | | }, |
| | | getTreeList(flag) { |
| | | getTreeList(id) { |
| | | var obj = { |
| | | groupCategory: 1, |
| | | groupType: "group_workstation" |
| | |
| | | var treeDisabled = this.addTreeDisable(res.data); |
| | | this.tableData = this.buildTree(treeDisabled); //从扁平化变为树状结构 |
| | | this.$nextTick(()=> { |
| | | this.lastLevelId = this.getLastLevelIds(this.tableData).lastLevelId; |
| | | if(id) { |
| | | this.lastLevelId = id; //指定id |
| | | }else { |
| | | this.lastLevelId = this.getLastLevelIds(this.tableData).lastLevelId; |
| | | } |
| | | this.$refs.treeRef.setCurrentKey(this.lastLevelId); //第一个节点的第一个子节点最后一级默认选中 |
| | | //以下是初始化数据 |
| | | this.getlist(); //渲染反馈列表 |
| | | this.getlist(); //渲染详情和(状态list) |
| | | this.getwcsLcolor(); //左侧图表 |
| | | this.getwcsR(); //右侧图标 |
| | | this.getachievements(); //班次状态记录采集状态 |
| | |
| | | position: absolute; |
| | | right: 10px; |
| | | top: -2px; |
| | | color: #3b8e8e; |
| | | color: #409eff; |
| | | cursor: pointer; |
| | | } |
| | | .status-wrap.align-left, .status-wrap:first-child { |
| | |
| | | justify-content: start; |
| | | } |
| | | .collect-status { |
| | | color: #3b8e8e; |
| | | color: #409eff; |
| | | margin-right: 16px; |
| | | font-size: 14px; |
| | | } |
| | |
| | | } |
| | | .status-wrap { |
| | | display: flex; |
| | | -ms-flex-wrap: wrap; |
| | | flex-wrap: wrap; |
| | | -webkit-box-pack: start; |
| | | -ms-flex-pack: start; |
| | | justify-content: start; |
| | | } |
| | | .status-wrap .status-con { |
| | |
| | | flex-wrap: wrap; |
| | | } |
| | | .status-wrap /deep/ .el-checkbox.el-checkbox--large { |
| | | color: #3b8e8e; |
| | | color: #409eff; |
| | | } |
| | | </style> |