| | |
| | | <!-- |
| | | * @Date: 2024-04-18 21:52:18 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-11-10 19:30:59 |
| | | * @LastEditTime: 2024-11-12 18:29:09 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/components/TimeAlarm.vue |
| | | --> |
| | | <template> |
| | |
| | | <div class="dataHr">加工数据</div> |
| | | <el-row :gutter="20" style="padding-right: 12px;padding-left: 12px;"> |
| | | <!-- 主轴负载(SpindleLoad),主轴倍率(SpindleRate),进给倍率(FeedRate) 不在这里展示 --> |
| | | <el-col :span="12" v-for="item in dmpList" style="margin-bottom: 12px;"> |
| | | <div v-if="item.dpName != 'SpindleLoad' && item.dpName != 'SpindleRate' && item.dpName != 'FeedRate'"> |
| | | <el-col :span="12" v-for="item in dmpList" style="margin-bottom: 12px;" v-show="item.dpName != 'SpindleLoad' && item.dpName != 'SpindleRate' && item.dpName != 'FeedRate'"> |
| | | <div> |
| | | <div class="inlineDiv">{{item.dpLabel}}</div> |
| | | <el-input v-model="item.codeName" :disabled="true" class="inlineInput" :title="item.codeName"></el-input> |
| | | </div> |
| | |
| | | }, |
| | | 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(document.getElementById('c')); |