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

80 lines
1.9 KiB
Vue
Raw Normal View History

2025-04-15 14:38:12 +08:00
<template>
<div class="comom-title">
2025-11-28 22:25: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">
2025-11-28 22:25:58 +08:00
<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";
2025-11-28 22:25:58 +08:00
import { onMounted, reactive } from "vue";
2025-11-22 21:59:58 +08:00
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 = () => {
2025-11-28 22:25:58 +08:00
list.YjczDate.loading = true;
2025-11-22 21:59:58 +08:00
qcckGet({}, '/mosty-gsxt/tbYjxx/getYjCzztTj').then(res => {
list.YjczDate.loading = false;
list.YjczDate.xDate = res.map(item => item.zdmc);
2025-11-28 22:25:58 +08:00
list.YjczDate.list = [
{
name: '总数',
value: res.map(item => item.count),
color: ['rgba(0,244,255,1)', 'rgba(0,77,167,1)'],
hatColor: '#087df9'
}]
2025-11-22 21:59:58 +08:00
})
};
2025-04-15 14:38:12 +08:00
onMounted(() => {
2025-11-28 22:25: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";
2025-11-28 22:25:58 +08:00
::v-deeep .comom-title {
2025-04-15 14:38:12 +08:00
background: url("~@/assets/images/bg18.png") no-repeat center center;
background-size: 100% 100%;
}
2025-11-28 22:25:58 +08:00
::v-deeep .comom-cnt {
2025-04-15 14:38:12 +08:00
background: url("~@/assets/images/bg18.png") no-repeat center center;
background-size: 100% 100%;
}
2025-11-28 22:25:58 +08:00
::v-deep .el-table td.el-table__cell {
2025-04-15 14:38:12 +08:00
color: #ffffff;
}
2025-11-28 22:25:58 +08:00
::v-deep .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
background: rgba(0, 61, 130, 0.75);
2025-04-15 14:38:12 +08:00
}
</style>
<style lang="scss">
.zdy_bkcz_table td.el-table__cell {
2025-11-28 22:25:58 +08:00
color: #ffffff !important;
2025-04-15 14:38:12 +08:00
}
2025-11-28 22:25:58 +08:00
2025-04-15 14:38:12 +08:00
.zdy_bkcz_table th.el-table__cell {
2025-11-28 22:25:58 +08:00
color: #ffffff !important;
font-size: 15px;
2025-04-15 14:38:12 +08:00
}
2025-10-26 12:25:50 +08:00
</style>