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 = () => {