From 834fc6895afda2b92efdd468f5e9cc1b9702c77d Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Mon, 2 Dec 2024 13:33:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=BE=E7=BD=AE=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/form/datePicker/index.vue | 3 +- src/components/table/header/index.vue | 8 +- src/components/tree/index.vue | 83 ++++++------- src/main.ts | 4 +- .../components/photovoltaic.vue | 2 +- .../online/wentaishujufenxi/index.vue | 64 ++++------ .../harmonicSurvey/components/planAdd.vue | 2 +- .../supervise/technology/components/alarm.vue | 7 ++ .../technology/components/alarm.vue | 7 ++ .../analyse/eventCorrelation/index.vue | 4 +- .../voltageSags/analyse/impactscope/index.vue | 44 +++++-- .../monitoringPoint/online/navigation/map.vue | 58 ++++----- src/views/pqs/voltageSags/overview/index.vue | 1 + .../businessUser/event/eventView.vue | 13 +-- .../sagGovern/scheme/schemeCalc/calcParam.vue | 110 ++++-------------- src/views/system/auth/userList/popupEdit.vue | 6 +- 16 files changed, 179 insertions(+), 237 deletions(-) diff --git a/src/components/form/datePicker/index.vue b/src/components/form/datePicker/index.vue index eeab4d15..8b1b21bd 100644 --- a/src/components/form/datePicker/index.vue +++ b/src/components/form/datePicker/index.vue @@ -480,7 +480,7 @@ const NowgetEndTime = () => { const setTimeOptions = (list: any) => { timeOptions.value = list } -const setInterval = (value: any) => { +const setTheDate = (value: any) => { interval.value = value timeChange(value) } @@ -510,6 +510,7 @@ function getMonthOnMonth(startDate: string, endDate: string): [string, string] { return [formatDate(startMonthAgo), formatDate(endMonthAgo)] } + // 格式化日期为 YYYY-MM-DD function formatDate(date: Date): string { const year = date.getFullYear() diff --git a/src/components/table/header/index.vue b/src/components/table/header/index.vue index 927b9c0e..629f03bd 100644 --- a/src/components/table/header/index.vue +++ b/src/components/table/header/index.vue @@ -161,14 +161,14 @@ const setDatePicker = (list: any) => { } const onResetForm = () => { //时间重置成默认值 - datePickerRef.value?.setInterval(3) + datePickerRef.value?.setTheDate(3) tableStore.onTableAction('reset', {}) } -const setInterval = (val: any) => { - datePickerRef.value.setInterval(val) +const setTheDate = (val: any) => { + datePickerRef.value.setTheDate(val) } -defineExpose({ onComSearch, areaRef, setDatePicker, setInterval, datePickerRef, showSelectChange }) +defineExpose({ onComSearch, areaRef, setDatePicker, setTheDate, datePickerRef, showSelectChange }) diff --git a/src/views/pqs/voltageSags/monitoringPoint/online/navigation/map.vue b/src/views/pqs/voltageSags/monitoringPoint/online/navigation/map.vue index 09e3366d..eb2886ad 100644 --- a/src/views/pqs/voltageSags/monitoringPoint/online/navigation/map.vue +++ b/src/views/pqs/voltageSags/monitoringPoint/online/navigation/map.vue @@ -40,40 +40,21 @@ 无暂降 - - + + - + @@ -97,18 +78,14 @@ {{ infoWindowPoint.comFlag == 0 ? '中断' : '正常' }} - + 事件统计 事件分析 运行情况 - + @@ -122,8 +99,18 @@ import { getAreaLineInfo } from '@/api/event-boot/areaInfo' import DatePicker from '@/components/form/datePicker/index.vue' import { useAdminInfo } from '@/stores/adminInfo' import { useMonitoringPoint } from '@/stores/monitoringPoint' - const emit = defineEmits(['changeTab']) + +interface Props { + showBut?: boolean + +} + +const props = withDefaults(defineProps(), { + showBut: true +}) + + const monitoringPoint = useMonitoringPoint() const adminInfo = useAdminInfo() const datePickerRef = ref() @@ -138,6 +125,7 @@ const params = ref({ serverName: 'event-boot', statisticalType: {} }) + const center = ref({ lng: 0, lat: 0 diff --git a/src/views/pqs/voltageSags/overview/index.vue b/src/views/pqs/voltageSags/overview/index.vue index 9886ea75..dd81ef4a 100644 --- a/src/views/pqs/voltageSags/overview/index.vue +++ b/src/views/pqs/voltageSags/overview/index.vue @@ -65,6 +65,7 @@ :scroll-wheel-zoom='true' :center='center' @ready='handler' + :dragging="true" @zoomend='syncCenterAndZoom' > - + @@ -176,7 +172,7 @@ const tableStore = new TableStore({ // 注入到子组件 provide('tableStore', tableStore) onMounted(() => { - tableHeader.value.setInterval(1) + tableHeader.value.setTheDate(1) }) //初始化页面 const initData = async () => { @@ -196,7 +192,7 @@ initData() const switchRadio = () => { if (radio.value == '电压暂降事件统计') { sags3DRef.value?.search(userId.value, tableHeader.value.datePickerRef.timeValue[0], tableHeader.value.datePickerRef.timeValue[1]) - }else if(radio.value == '耐受曲线信息'){ + } else if (radio.value == '耐受曲线信息') { toleranceCurveRef.value?.search(userId.value, tableHeader.value.datePickerRef.timeValue[0], tableHeader.value.datePickerRef.timeValue[1]) } } @@ -252,7 +248,6 @@ const exportExcelTemplate = () => {