更新
This commit is contained in:
@ -12,12 +12,7 @@
|
||||
import pieEcharts from "@/views/home/echarts/pieEcharts.vue";
|
||||
import { qcckPost } from "@/api/qcckApi.js";
|
||||
import { ref, onMounted } from 'vue';
|
||||
const countData = ref([
|
||||
{ label:'实反馈',value:0,color:['#FF6B9A','#FF4B7A']},
|
||||
{ label:'超时反馈',value:0,color:['#FFAA33','#FF8A00']},
|
||||
{ label:'处置下发',value:0,color:['#FFE699','#FFD666']},
|
||||
{ label:'未反馈',value:0,color:['#66B5FF','#3AA1FF']},
|
||||
])
|
||||
const countData = ref([])
|
||||
|
||||
onMounted(() => {
|
||||
getCount();
|
||||
@ -26,8 +21,11 @@ onMounted(() => {
|
||||
const getCount = () =>{
|
||||
// 获取处置状态统计
|
||||
qcckPost({cjLx:0}, '/mosty-gsxt/qbcj/getXscjTjByCzzt').then(res => {
|
||||
console.log(res,'=====');
|
||||
|
||||
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] }
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user