站点首页告警

This commit is contained in:
2025-08-18 13:48:35 +08:00
parent 587094e85e
commit 89cc734595

View File

@ -1,5 +1,5 @@
<template> <template>
<el-card shadow="always" class="common-card-container common-card-container-body-no-padding"> <!-- <el-card shadow="always" class="common-card-container common-card-container-body-no-padding">
<div slot="header"> <div slot="header">
<span class="card-title">当前报警</span> <span class="card-title">当前报警</span>
</div> </div>
@ -39,42 +39,48 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</el-card> </el-card> -->
<el-alert type="error" :closable="false">
<template>
<div style="cursor: pointer" @click="toAlarm">设备告警</div>
</template>
</el-alert>
</template> </template>
<script> <script>
export default{ export default {
props:{ props: {
tableData:{ tableData: {
require:true, require: true,
type:Array, type: Array,
default:()=>{ default: () => {
return [] return [];
} },
}
}, },
data(){ },
return { data() {
return {};
} },
methods: {
toAlarm() {
this.$router.push({ path: "/dzjk/gzgj", query: this.$route.query });
}, },
methods:{ toTicket() {
toTicket(){ this.$router.push({ path: "/ticket" });
this.$router.push({path:'/ticket'}) },
}, },
} };
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
//实时告警 //实时告警
.ssgj-container{ .ssgj-container {
padding:20px; padding: 20px;
height: 250px; height: 250px;
box-sizing: border-box; box-sizing: border-box;
::v-deep{ ::v-deep {
.el-table .el-table__header-wrapper th, .el-table .el-table__fixed-header-wrapper th{ .el-table .el-table__header-wrapper th,
background:#FFF2CB ; .el-table .el-table__fixed-header-wrapper th {
} background: #fff2cb;
} }
} }
</style> }
</style>