1
lzhe
2024-11-12 2250cbe6f084faae03d0c590faee7310ec24abc4
1
已修改2个文件
34 ■■■■ 文件已修改
src/views/mdc/components/StationLiveSpeed.vue 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/components/speenBaseInfo.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/components/StationLiveSpeed.vue
@@ -1,7 +1,7 @@
<!--
 * @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>
@@ -13,8 +13,8 @@
    <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>
@@ -114,18 +114,18 @@
    },
    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'));
src/views/mdc/components/speenBaseInfo.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-04-18 21:52:18
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-11-10 18:34:55
 * @LastEditTime: 2024-11-12 17:58:28
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/components/TimeAlarm.vue
-->
<template>
@@ -10,7 +10,7 @@
        <el-col :span="24" class="stationFormData">工位编号: {{stationFormData.code}}</el-col>
        <el-col :span="24" class="stationFormData">机器品牌: {{stationFormData.machineBrand}}</el-col>
        <el-col :span="24" class="stationFormData">机器编号: {{stationFormData.machineCode}}</el-col>
        <el-col :span="24" class="stationFormData">机器名称: {{stationFormData.machineName}}</el-col>
        <el-col :span="24" class="stationFormData">机器名称: {{stationFormData.name}}</el-col>
        <el-col :span="24" class="stationFormData">完工件数:{{stationFormData.Output}}</el-col>
        <el-col :span="24" class="stationFormData">机床状态:{{stationFormData.DeviceStatus}}</el-col>
    </el-row>