Sfoglia il codice sorgente

时间选项调整

Hwf 5 giorni fa
parent
commit
6e1c267106

+ 14 - 4
src/views/comprehensiveGuarantee/emergencySpecialistManagement/index.vue

@@ -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;

+ 1 - 2
src/views/globalMap/RightMenu/RainMonitor/index.vue

@@ -217,8 +217,7 @@ const timeOptions = reactive([
   { name: '3小时', value: '3' },
   { name: '6小时', value: '6' },
   { name: '12小时', value: '12' },
-  { name: '24小时', value: '24' },
-  { name: '242小时', value: '10000' }
+  { name: '24小时', value: '24' }
 ]);
 // 水利站点降雨分布统计
 let timeOption = ref('24');

+ 6 - 4
src/views/routineCommandMap/LeftSection/RiskMonitor.vue

@@ -159,11 +159,13 @@ const getStatusClass3 = (level: string) => {
   }
 };
 // 雨晴
-const durationTime = ref(1);
+const durationTime = ref('1');
 const durationTimeList = ref([
-  { name: '1小时', value: 1 },
-  { name: '1.5小时', value: 1.5 },
-  { name: '2小时', value: 2 }
+  { name: '1小时', value: '1' },
+  { name: '3小时', value: '3' },
+  { name: '6小时', value: '6' },
+  { name: '12小时', value: '12' },
+  { name: '24小时', value: '24' }
 ]);
 const rainList = ref({
   data1: 0,