|
@@ -107,9 +107,8 @@ import { PatrolVO } from '@/views/inspectionWork/patrolTask.vue';
|
|
|
import { graphic } from 'echarts';
|
|
|
import Map from './Map.vue';
|
|
|
import { PointType } from '@/api/globalMap/type';
|
|
|
-import { fillingTable } from '@/api/dataFilling/fillingManage';
|
|
|
import { download2 } from '@/utils/request';
|
|
|
-import { getExpertList, getExpertProfessionalGroupCount } from '@/api/expert';
|
|
|
+import { getEmergencyExpertCountyCount, getExpertList, getExpertProfessionalGroupCount } from '@/api/expert';
|
|
|
const loading = ref(true);
|
|
|
const showSearch = ref(true);
|
|
|
const ids = ref<Array<number | string>>([]);
|
|
@@ -504,8 +503,19 @@ let option4 = ref({
|
|
|
});
|
|
|
const initData = () => {
|
|
|
// 各区县分布统计
|
|
|
- option1.value.xAxis.data = ['茂南区', '电白区', '高州市', '化州市', '信宜市', '高新区', '滨海新区'];
|
|
|
- option1.value.series[0].data = [569, 251, 264, 187, 663, 649, 247];
|
|
|
+ // option1.value.xAxis.data = ['茂南区', '电白区', '高州市', '化州市', '信宜市', '高新区', '滨海新区'];
|
|
|
+ // let yData = [0, 0, 0, 0, 0, 0, 0];
|
|
|
+ getEmergencyExpertCountyCount().then((res) => {
|
|
|
+ const data = res.data.list;
|
|
|
+ const xData = [];
|
|
|
+ const yData = [];
|
|
|
+ data.forEach((item) => {
|
|
|
+ xData.push(item.name);
|
|
|
+ yData.push(item.value);
|
|
|
+ });
|
|
|
+ option1.value.xAxis.data = xData;
|
|
|
+ option1.value.series[0].data = yData;
|
|
|
+ });
|
|
|
// 类型统计
|
|
|
getExpertProfessionalGroupCount().then((res) => {
|
|
|
option2.value.series[0].data = res.data.list;
|