ke_junjie
2025-06-04 84620534eb627e95811b971a4b552b6a177829bf
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
<template>
    <el-dialog
        custom-class="sy-modal"
        
        title="故障详情"
        :close-on-click-modal="false"
        width="500px"
        :before-close="onClose"
    >
        <div class="home-page-e-detail-modal" v-loading="loading">
            <el-descriptions :column="1">
                <el-descriptions-item label="设备名称:">{{row.DeviceName}}</el-descriptions-item>
                <el-descriptions-item label="报警代码:">{{row.WarningCode}}</el-descriptions-item>
                <el-descriptions-item label="报警内容:">{{row.WarningContent}}</el-descriptions-item>
                <el-descriptions-item label="报警时间:">{{row.WarningTime}}</el-descriptions-item>
                <el-descriptions-item label="创建人:">{{row.CreateBy}}</el-descriptions-item>
                <el-descriptions-item label="创建时间:">{{row.CreateTime}}</el-descriptions-item>
                <el-descriptions-item label="修改人:">{{row.ModifyBy}}</el-descriptions-item>
                <el-descriptions-item label="修改时间:">{{row.ModifyTime}}</el-descriptions-item>
            </el-descriptions>
        </div>
        <template #footer>
            <span class="dialog-footer">
                <el-button @click="onClose">关&nbsp;闭</el-button>
            </span>
        </template>
    </el-dialog>
</template>
 
<script>
export default {
    name:'homePageEDetailModal',
    emits:['update:visible'],
    props:{
        visible:{
            type:Boolean,
            default:false
        },
        row:{
            type:Object,
            default:function(){
                return {}
            }
        }
    },
    data(){
        return {
            loading:false
        }
    },
    watch:{
        visible(newVal,oldVal){
            if (newVal!==oldVal) {
                if (newVal) {
                    
                } else {
                    
                }
            }
        }
    },
    methods:{
        close(){
            this.$emit('update:visible',false)
        },
        onClose(){
            this.close();
        }
    }
}
</script>
 
<style scoped lang="scss">
.home-page-e-detail-modal{
    padding: 8px 16px 0 16px;
}
</style>