lg_frontend/components/peak-coal-monitoring/MonitorData.vue

86 lines
1.8 KiB
Vue
Raw Permalink Normal View History

2024-03-05 12:02:32 +00:00
<template>
<div class="monitor-data">
<peak-secondary-title :title="title"/>
<div class="table-content">
<peak-custom-table :table-title="tableTitle" :data-source="dataSource" :limit-move-num="4"/>
2024-03-05 12:02:32 +00:00
</div>
</div>
</template>
<script>
import PeakSecondaryTitle from "@/components/peak-coal-monitoring/PeakSecondaryTitle";
import PeakCustomTable from "@/components/peak-coal-monitoring/PeakCustomTable";
export default {
name: "MonitorData",
components: {PeakCustomTable, PeakSecondaryTitle},
data(){
return{
title: '厂区环境趋势',
2024-03-05 12:02:32 +00:00
tableTitle: [
{
title: '设备掉线',
dataIndex: 'deviceName',
width: '35%'
2024-03-05 12:02:32 +00:00
},
{
title: '故障异常',
dataIndex: 'errorName',
width: '25%'
2024-03-05 12:02:32 +00:00
},
{
title: '异常报警',
dataIndex: 'errorImg',
width: '40%'
2024-03-05 12:02:32 +00:00
}
],
dataSource: [
{
deviceName: '高炉',
errorName: '异常',
errorImg: '红灯'
2024-03-05 12:02:32 +00:00
},
{
deviceName: '高炉',
errorName: '异常',
errorImg: '红灯'
2024-03-05 12:02:32 +00:00
},
{
deviceName: '高炉',
errorName: '异常',
errorImg: '红灯'
2024-03-05 12:02:32 +00:00
},
{
deviceName: '高炉',
errorName: '异常',
errorImg: '红灯'
2024-03-05 12:02:32 +00:00
},
{
deviceName: '高炉',
errorName: '异常',
errorImg: '红灯'
2024-03-05 12:02:32 +00:00
},
{
deviceName: '高炉',
errorName: '异常',
errorImg: '红灯'
2024-03-05 12:02:32 +00:00
}
]
}
}
}
</script>
<style scoped lang="less">
@import "assets/styles/mixin";
.monitor-data{
height: 100%;
width: 100%;
.flex-column;
.table-content{
padding-top: 20px;
flex: 1;
height: 0;
}
}
</style>