<template>
  <div class="comom-title">
 <div class="title">四色预警统计</div>
  </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";
import { onMounted,ref } from "vue";
const yjjbRef = ref()
const loadingyj = ref(false)
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{
    background: rgba(0,61,130,0.75);
}
</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;
}
</style>
