From d0525a90a3909b6e1e6f7257c5b4a556c12ec0bf Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Tue, 9 Jan 2024 16:32:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Region/components/Compatibility.vue | 480 ++++++++++++++++++ src/views/Event-boot/Region/statistics.vue | 16 +- src/views/govern/log/operate.vue | 39 ++ src/views/govern/log/push.vue | 2 +- 4 files changed, 532 insertions(+), 5 deletions(-) create mode 100644 src/views/Event-boot/Region/components/Compatibility.vue create mode 100644 src/views/govern/log/operate.vue diff --git a/src/views/Event-boot/Region/components/Compatibility.vue b/src/views/Event-boot/Region/components/Compatibility.vue new file mode 100644 index 0000000..646ff25 --- /dev/null +++ b/src/views/Event-boot/Region/components/Compatibility.vue @@ -0,0 +1,480 @@ + + + diff --git a/src/views/Event-boot/Region/statistics.vue b/src/views/Event-boot/Region/statistics.vue index 9133f3f..cd671ba 100644 --- a/src/views/Event-boot/Region/statistics.vue +++ b/src/views/Event-boot/Region/statistics.vue @@ -11,7 +11,9 @@ - + + + @@ -23,13 +25,14 @@ import { useDictData } from '@/stores/dictData' import TableStore from '@/utils/tableStore' import { onMounted, reactive, ref, provide } from 'vue' import TypeStatistics from './components/TypeStatistics.vue' +import Compatibility from './components/Compatibility.vue' import { mainHeight } from '@/utils/layout' defineOptions({ name: 'Region/overview' }) const activeName = ref('1') const Statistics = ref() -const flag = ref(true) +const compatibility = ref() const dictData = useDictData() const tableStore = new TableStore({ @@ -40,6 +43,7 @@ const tableStore = new TableStore({ if (activeName.value == '1') { Statistics.value.info(tableStore.table.data) } else { + compatibility.value.info(tableStore.table.data.voltageToleranceCurveDataList) } } }) @@ -53,10 +57,14 @@ tableStore.table.params.serverName = 'event-boot' onMounted(() => { tableStore.index() }) -const handleClick = async () => { - if (activeName.value == '1') { +const handleClick = async (e: any) => { + if (e.paneName == '1') { + tableStore.table.params.scale = null + tableStore.table.params.loadType = null tableStore.url = '/event-boot/areaAnalysis/getEventReason' } else { + tableStore.table.params.scale = compatibility.value.checkedVoltage + tableStore.table.params.loadType = compatibility.value.checkedSource tableStore.url = '/event-boot/areaAnalysis/getVoltageToleranceCurve' } await tableStore.onTableAction('search', {}) diff --git a/src/views/govern/log/operate.vue b/src/views/govern/log/operate.vue new file mode 100644 index 0000000..1d668c8 --- /dev/null +++ b/src/views/govern/log/operate.vue @@ -0,0 +1,39 @@ + + diff --git a/src/views/govern/log/push.vue b/src/views/govern/log/push.vue index 802c8f0..b7e4972 100644 --- a/src/views/govern/log/push.vue +++ b/src/views/govern/log/push.vue @@ -30,4 +30,4 @@ onMounted(() => { tableStore.index() }) const addMenu = () => {} - + \ No newline at end of file