2025-04-15 14:38:12 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="comom-title">
|
|
|
|
|
<span class="title">情报反馈统计</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="comom-cnt">
|
2025-07-14 10:09:55 +08:00
|
|
|
<pieEcharts echartsId='qbfk' :data="countData"></pieEcharts>
|
2025-04-15 14:38:12 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2025-07-14 10:09:55 +08:00
|
|
|
import pieEcharts from "@/views/home/echarts/pieEcharts.vue";
|
|
|
|
|
import { qcckPost } from "@/api/qcckApi.js";
|
2025-04-15 14:38:12 +08:00
|
|
|
import { ref, onMounted } from 'vue';
|
2025-07-14 10:34:19 +08:00
|
|
|
const countData = ref([])
|
2025-04-15 14:38:12 +08:00
|
|
|
|
2025-07-14 10:09:55 +08:00
|
|
|
onMounted(() => {
|
|
|
|
|
getCount();
|
|
|
|
|
});
|
2025-04-15 14:38:12 +08:00
|
|
|
|
2025-07-14 10:09:55 +08:00
|
|
|
const getCount = () =>{
|
|
|
|
|
// 获取处置状态统计
|
|
|
|
|
qcckPost({cjLx:0}, '/mosty-gsxt/qbcj/getXscjTjByCzzt').then(res => {
|
2025-07-14 10:34:19 +08:00
|
|
|
let color = [['#FF6B9A','#FF4B7A'],['#FFAA33','#FF8A00'],['#FFE699','#FFD666'],['#66B5FF','#3AA1FF']]
|
|
|
|
|
let arr = res || [];
|
|
|
|
|
countData.value = arr.map((item,idx)=>{
|
|
|
|
|
return { label:item.zdmc, value:item.count,color:color[idx] }
|
|
|
|
|
})
|
2025-04-15 14:38:12 +08:00
|
|
|
});
|
2025-07-14 10:09:55 +08:00
|
|
|
}
|
2025-04-15 14:38:12 +08:00
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@import "@/assets/css/homeScreen.scss";
|
|
|
|
|
.xsBox{
|
|
|
|
|
background: #052249;
|
|
|
|
|
.xs-item{
|
|
|
|
|
width: 31%;
|
|
|
|
|
height: 36px;
|
|
|
|
|
line-height: 36px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
background: url("~@/assets/images/content-item.png") no-repeat center center;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.qbfkBox {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
</style>
|