You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
3.0 KiB
Vue

1 year ago
<template>
<div class="warnmessageBox">
<h3>
<span class="arrows1">&gt;</span><span class="arrows2">&gt;</span>
<span class="arrows3">&gt;</span> {{ pageCardTitle }}
<span class="arrows3">&lt;</span><span class="arrows2">&lt;</span>
<span class="arrows1">&lt;</span>
</h3>
<div class="cardContent">
<el-table
ref="restauranttable"
:data="tableData"
class="tableHi"
1 year ago
height="154px"
1 year ago
>
<el-table-column align="center" prop="warnTime" label="报警时间">
</el-table-column>
<el-table-column align="center" prop="deviceName" label="设备名称">
</el-table-column>
<el-table-column align="center" prop="warnDesc" label="告警信息">
<template slot-scope="scope">
<el-tooltip
class="item"
effect="dark"
:content="scope.row.warnDesc"
placement="top"
>
<span> {{ scope.row.warnDesc }}</span>
</el-tooltip>
</template>
</el-table-column>
<el-table-column align="center" prop="warningCount" label="告警次数">
</el-table-column>
<el-table-column align="center" prop="warningValue" label="当前值">
</el-table-column>
<el-table-column align="center" prop="threadval" label="告警阈值">
</el-table-column>
<el-table-column align="center" label="操作" width="120">
<template slot-scope="scope">
<el-button
@click.native.prevent="particulars(scope.$index, scope.row)"
type="text"
size="small"
>
查看详情
</el-button>
</template>
</el-table-column>
</el-table>
</div>
</div>
</template>
<script>
export default {
name: "warnmessage",
components: {},
data() {
return {
pageCardTitle: "告警/故障信息",
tableData: [],
};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style lang="less">
.warnmessageBox {
padding: 0px 10px;
h3 {
height: 38px;
line-height: 38px;
box-sizing: border-box;
color: #fff;
font-weight: normal;
text-align: left;
//display: flex;
font-size: 16px;
justify-content: space-between;
align-items: center;
border-bottom: 1px dashed #fff;
/* 警告标题箭头 */
.arrows3 {
color: #fff;
}
.arrows2 {
color: rgba(256, 256, 256, 0.5);
}
.arrows1 {
color: rgba(256, 256, 256, 0.15);
}
}
.cardContent {
margin-top: 10px;
.el-table th.el-table__cell {
background-color: transparent;
}
.el-table thead {
color: #fff;
}
.el-table {
background-color: transparent;
color: #fff;
tr {
background: transparent;
}
}
.el-table--small .el-table__cell {
padding: 2px 0;
}
.el-table__empty-text {
color: #fff;
}
.el-table::before {
height: 0;
}
}
}
</style>