Files
sgxt_web/src/views/home/model/warningLevels.vue

78 lines
1.9 KiB
Vue
Raw Normal View History

2025-11-22 21:59:58 +08:00
<template>
<div class="comom-title">
2025-12-19 11:41:05 +08:00
<div class="title">四色预警统计<span class="switchover" @click.stop="reversalPush">切换</span></div>
2025-11-22 21:59:58 +08:00
</div>
<div class="comom-cnt" style="border-right: 1px solid #ebebeb;width: 100%;" v-loading="loadingyj">
<WarningCount ref="yjjbRef"></WarningCount>
</div>
</template>
<script setup>
import { qcckGet, qcckPost } from "@/api/qcckApi.js";
import WarningCount from "@/views/backOfficeSystem/fourColorManage/warningControl/centerHome/components/WarningCount.vue";
2025-12-19 11:41:05 +08:00
import { onMounted,ref,defineEmits } from "vue";
2025-11-22 21:59:58 +08:00
const yjjbRef = ref()
const loadingyj = ref(false)
2025-12-19 11:41:05 +08:00
const emit = defineEmits(["changeModel"])
const reversalPush = () => {
emit('changeModel')
}
2025-11-22 21:59:58 +08:00
const getYjczDate = () => {
loadingyj.value = true;
qcckGet({}, '/mosty-gsxt/tbYjxx/getYjxxTj').then(res => {
loadingyj.value = false;
yjjbRef.value.initCharts(res)
})
};
onMounted(() => {
getYjczDate()
});
// const tabHeightFn = () => {
// pageData.tableHeight = document.getElementById('qcbk').offsetHeight - 12;
// window.onresize = function () {
// tabHeightFn();
// };
// };
</script>
<style lang="scss" scoped>
@import "@/assets/css/homeScreen.scss";
::v-deeep .comom-title{
background: url("~@/assets/images/bg18.png") no-repeat center center;
background-size: 100% 100%;
}
::v-deeep .comom-cnt{
background: url("~@/assets/images/bg18.png") no-repeat center center;
background-size: 100% 100%;
}
::v-deep .el-table td.el-table__cell{
color: #ffffff;
}
::v-deep .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{
2025-12-19 11:41:05 +08:00
background: rgba(0,61,130,0.75);
}
.switchover{
cursor: pointer;
font-size: 14px;
margin-left: 20px;
color: rgb(255, 146, 4);
2025-11-22 21:59:58 +08:00
}
</style>
<style lang="scss">
.zdy_bkcz_table td.el-table__cell {
color: #ffffff !important;
}
.zdy_bkcz_table th.el-table__cell {
color: #ffffff !important;
font-size: 15px;
}
2025-12-19 11:41:05 +08:00
2025-11-22 21:59:58 +08:00
</style>