1
李喆(开发组)
2025-11-18 09d12c733279d45253d2d04f8835cc6771a1f1fa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!--
 * @Date: 2024-04-18 21:52:18
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-11-13 20:04:22
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/components/TimeAlarm.vue
-->
<template>
    <el-row>
        <el-col :span="24" class="stationFormDataImg"><img :src="stationFormData.avatar" alt=""></el-col>
        <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.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>
</template>
 
<script>
import station from "../station.png";
export default {
    props: {
        stationFormData: {
            default: {},
            type: Object,
        },
        dmpList: {
            default: [],
            type: Array,
        }
    },
    components: {
        
    },
    watch: {
        stationFormData() {
            this.query();
        },
        dmpList() {
            this.setDmpList();
        }
    },
    data() {
        return {
        }
    },
    methods: {
        setDmpList() {
            if(this.dmpList.length == 0) return;
            this.dmpList.forEach(item=> {
                if(item.dpName == "DeviceStatus") {
                    this.stationFormData.DeviceStatus = item.codeName;
                }
                if(item.dpName == "Output") {
                    this.stationFormData.Output = item.codeName;
                }
            })
        },
        query() {
            //console.log(this.stationFormData,1)
        }
    },
    mounted() {
        
    }
}
</script>
 
<style scoped>
.stationFormData {
    padding-left: 12px;
    line-height: 24px;
    border-bottom: 1px solid #eee;
}
.stationFormDataImg {
    margin-bottom: 12px;
}
.stationFormDataImg img{
    width: 100%;
    height: 150px;
}
</style>