站点首页告警

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,7 +39,12 @@
</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 {
@ -48,22 +53,22 @@ export default{
require: true, require: true,
type: Array, type: Array,
default: () => { default: () => {
return [] return [];
} },
} },
}, },
data() { data() {
return { return {};
}
}, },
methods: { methods: {
toTicket(){ toAlarm() {
this.$router.push({path:'/ticket'}) this.$router.push({ path: "/dzjk/gzgj", query: this.$route.query });
}, },
} toTicket() {
} this.$router.push({ path: "/ticket" });
},
},
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
//实时告警 //实时告警
@ -72,8 +77,9 @@ export default{
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;
} }
} }
} }