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

76 lines
1.9 KiB
Vue
Raw Normal View History

2025-04-15 14:38:12 +08:00
<template>
<div class="comom-title">
2025-11-22 21:59:58 +08:00
<div class="title">预警处置统计</div>
2025-04-15 14:38:12 +08:00
</div>
2025-11-22 21:59:58 +08:00
<div class="comom-cnt" style="border-right: 1px solid #ebebeb;width: 100%;" v-loading="list.YjczDate.loading">
<BarHatEcharts echartsId="qylxEcharts" :data="list.YjczDate" :autoTooltip="true"></BarHatEcharts>
2025-04-15 14:38:12 +08:00
</div>
</template>
2025-10-26 12:25:50 +08:00
2025-04-15 14:38:12 +08:00
<script setup>
2025-07-14 14:21:12 +08:00
import { qcckGet, qcckPost } from "@/api/qcckApi.js";
2025-11-22 21:59:58 +08:00
import BarHatEcharts from "@/views/home/echarts/barHatEcharts.vue";
import { onMounted,reactive } from "vue";
const list = reactive({
YjczDate: {
2025-04-15 14:38:12 +08:00
loading: false,
2025-11-22 21:59:58 +08:00
xDate: [],
list: [],
2025-04-15 14:38:12 +08:00
},
});
2025-11-22 21:59:58 +08:00
const getYjczDate = () => {
list.YjczDate.loading = true;
qcckGet({}, '/mosty-gsxt/tbYjxx/getYjCzztTj').then(res => {
list.YjczDate.loading = false;
list.YjczDate.xDate = res.map(item => item.zdmc);
list.YjczDate.list = [{ name:'总数',
value: res.map(item => item.count),
color: ['rgba(0,244,255,1)', 'rgba(0,77,167,1)'],
hatColor: '#087df9'
}]
})
};
2025-04-15 14:38:12 +08:00
onMounted(() => {
2025-11-22 21:59:58 +08:00
getYjczDate()
2025-04-15 14:38:12 +08:00
});
2025-11-22 21:59:58 +08:00
// const tabHeightFn = () => {
// pageData.tableHeight = document.getElementById('qcbk').offsetHeight - 12;
// window.onresize = function () {
// tabHeightFn();
// };
// };
2025-04-15 14:38:12 +08:00
</script>
2025-10-26 12:25:50 +08:00
2025-04-15 14:38:12 +08:00
<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;
}
2025-10-26 12:25:50 +08:00
</style>