| | |
| | | <!-- |
| | | * @Date: 2024-04-18 21:52:18 |
| | | * @LastEditors: 李喆(开发组) lzhe@yxqiche.com |
| | | * @LastEditTime: 2025-03-14 09:31:16 |
| | | * @LastEditTime: 2025-11-18 14:02:28 |
| | | * @FilePath: /cps-web/src/views/mdc/components/StationLiveSpeed.vue |
| | | --> |
| | | <template> |
| | |
| | | }, |
| | | methods: { |
| | | query() { |
| | | // if(this.dmpList.length == 0) return; |
| | | // var a,b,c; |
| | | // this.dmpList.forEach(item=> { |
| | | // if(item.dpName == "SpindleLoad") { |
| | | // a = item.codeName; |
| | | // }else if(item.dpName == "SpindleRate") { |
| | | // b = item.codeName; |
| | | // }else if(item.dpName == "FeedRate") { |
| | | // c = item.codeName; |
| | | // } |
| | | // }) |
| | | // this.showCharts(a,b,c); |
| | | if(this.dmpList.length == 0) return; |
| | | var a,b,c; |
| | | this.dmpList.forEach(item=> { |
| | | if(item.dpName == "SpindleLoad") { |
| | | a = item.codeName; |
| | | }else if(item.dpName == "SpindleRate") { |
| | | b = item.codeName; |
| | | }else if(item.dpName == "FeedRate") { |
| | | c = item.codeName; |
| | | } |
| | | }) |
| | | this.showCharts(a,b,c); |
| | | }, |
| | | showCharts(a, b, c) { |
| | | var myChartA = echarts.init(this.$refs.c); |