diff --git a/src/utils/dictionary.ts b/src/utils/dictionary.ts index 6dbe8a24..0572169f 100644 --- a/src/utils/dictionary.ts +++ b/src/utils/dictionary.ts @@ -236,7 +236,44 @@ export const inharmonicOptions = [ { label: '12.5次', value: 13 }, { label: '13.5次', value: 14 }, { label: '14.5次', value: 15 }, - { label: '15.5次', value: 16 } + { label: '15.5次', value: 16 }, + { label: '16.5次', value: 17 }, + { label: '17.5次', value: 18 }, + { label: '18.5次', value: 19 }, + { label: '19.5次', value: 20 }, + { label: '20.5次', value: 21 }, + { label: '21.5次', value: 22 }, + { label: '22.5次', value: 23 }, + { label: '23.5次', value: 24 }, + { label: '24.5次', value: 25 }, + { label: '25.5次', value: 26 }, + { label: '26.5次', value: 27 }, + { label: '27.5次', value: 28 }, + { label: '28.5次', value: 29 }, + { label: '29.5次', value: 30 }, + { label: '30.5次', value: 31 }, + { label: '31.5次', value: 32 }, + { label: '32.5次', value: 33 }, + { label: '33.5次', value: 34 }, + { label: '34.5次', value: 35 }, + { label: '35.5次', value: 36 }, + { label: '36.5次', value: 37 }, + { label: '37.5次', value: 38 }, + { label: '38.5次', value: 39 }, + { label: '39.5次', value: 40 }, + { label: '40.5次', value: 41 }, + { label: '41.5次', value: 42 }, + { label: '42.5次', value: 43 }, + { label: '43.5次', value: 44 }, + { label: '44.5次', value: 45 }, + { label: '45.5次', value: 46 }, + { label: '46.5次', value: 47 }, + { label: '47.5次', value: 48 }, + { label: '48.5次', value: 49 }, + { label: '49.5次', value: 50 }, + + + ] //值类型 diff --git a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/gaojingshujutongji/index.vue b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/gaojingshujutongji/index.vue index b695ae93..c11df3d5 100644 --- a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/gaojingshujutongji/index.vue +++ b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/gaojingshujutongji/index.vue @@ -1,5 +1,5 @@ @@ -51,7 +51,7 @@ import MyEchart from '@/components/echarts/MyEchart.vue' import { useMonitoringPoint } from '@/stores/monitoringPoint' import { indexOptions, harmonicOptions, inharmonicOptions } from '@/utils/dictionary' import { getHistoryResult } from '@/api/harmonic-boot/harmonic' - +import { mainHeight } from '@/utils/layout' const datePickerRef = ref() const monitoringPoint = useMonitoringPoint() const checked = ref(monitoringPoint.state.showCheckBox) @@ -75,6 +75,7 @@ const formData = reactive<{ inHarmonic: 1, ptType: 0 }) +const height: any = ref(mainHeight(200, 1)) const options = ref({}) const traceability = ref([]) const list = ref([]) @@ -118,7 +119,8 @@ const init = () => { } list.value = [] shujuchuli(res) - }) + loading.value = false + }).catch(() => { loading.value = false }) } const shujuchuli = (res: any) => { let shujuData = res.data @@ -1091,6 +1093,8 @@ const shujuchuli = (res: any) => { rendering() } const rendering = () => { + height.value = mainHeight(200, list.value.length > 1 ? 2 : 1) + list.value.forEach((item: any) => { let opitonserise: any[] = [] item.legend.forEach((item2: any) => { diff --git a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaizhibiaohegelv/index.vue b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaizhibiaohegelv/index.vue index c3f1d96e..ab833cfd 100644 --- a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaizhibiaohegelv/index.vue +++ b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaizhibiaohegelv/index.vue @@ -14,7 +14,7 @@ 查询 -
+
diff --git a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/xiebopingpu/index.vue b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/xiebopingpu/index.vue index aee2f115..7989bb2a 100644 --- a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/xiebopingpu/index.vue +++ b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/xiebopingpu/index.vue @@ -23,7 +23,7 @@ width="80px" > -
+
@@ -90,6 +90,7 @@ const init = () => { yAxis: { type: 'value' }, + color: ['#2E8B57', '#DAA520'], series: analysisData.value.map((item: any) => { return { name: item.name, @@ -98,7 +99,7 @@ const init = () => { } }), options: { - dataZoom: null + // dataZoom: null } } nextTick(() => { diff --git a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/yunxingzhuangtai/index.vue b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/yunxingzhuangtai/index.vue index 2722b340..7c1b6ea4 100644 --- a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/yunxingzhuangtai/index.vue +++ b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/yunxingzhuangtai/index.vue @@ -18,7 +18,7 @@ 查询 -
+
@@ -84,7 +84,8 @@ const init = () => { Promise.all([getComFlagInfoData(formData), getRunInfoData(formData)]).then((res: any) => { handlerOptions1(res[0].data) handlerOptions2(res[1].data) - }) + loading.value = false + }).catch(() => { loading.value = false }) } const handlerOptions1 = (data: any) => { options1.value = { diff --git a/src/views/pqs/voltageSags/monitoringPoint/online/aaa.vue b/src/views/pqs/voltageSags/monitoringPoint/online/aaa.vue index 5211b930..b35f89f3 100644 --- a/src/views/pqs/voltageSags/monitoringPoint/online/aaa.vue +++ b/src/views/pqs/voltageSags/monitoringPoint/online/aaa.vue @@ -2,8 +2,7 @@
- +