diff --git a/src/views/oneMap/FloodStuationReview/monitorCalender.vue b/src/views/oneMap/FloodStuationReview/monitorCalender.vue index 0d0633e..09b7e93 100644 --- a/src/views/oneMap/FloodStuationReview/monitorCalender.vue +++ b/src/views/oneMap/FloodStuationReview/monitorCalender.vue @@ -83,9 +83,7 @@ //获取降雨日历数据 const getRainTimeDayData = () => { - hsApi.rainMapDataBack({time:"2024-10-07"}).then(res=>{ - debugger - }) + hsApi.rainMapDataBack({ time: '2024-10-07' }).then(res => {}); // let data = { // fromTime: proxy.moment(datevalue.value).startOf('month').format('YYYY-MM-DD'), // toTime: proxy.moment(datevalue.value).endOf('month').format('YYYY-MM-DD'), diff --git a/src/views/oneMap/FloodStuationReview/monitorCalender.vue b/src/views/oneMap/FloodStuationReview/monitorCalender.vue index 0d0633e..09b7e93 100644 --- a/src/views/oneMap/FloodStuationReview/monitorCalender.vue +++ b/src/views/oneMap/FloodStuationReview/monitorCalender.vue @@ -83,9 +83,7 @@ //获取降雨日历数据 const getRainTimeDayData = () => { - hsApi.rainMapDataBack({time:"2024-10-07"}).then(res=>{ - debugger - }) + hsApi.rainMapDataBack({ time: '2024-10-07' }).then(res => {}); // let data = { // fromTime: proxy.moment(datevalue.value).startOf('month').format('YYYY-MM-DD'), // toTime: proxy.moment(datevalue.value).endOf('month').format('YYYY-MM-DD'), diff --git a/src/views/oneMap/components/FHPL.vue b/src/views/oneMap/components/FHPL.vue index a31ee65..6327831 100644 --- a/src/views/oneMap/components/FHPL.vue +++ b/src/views/oneMap/components/FHPL.vue @@ -29,7 +29,7 @@ import FXHG from '@/views/oneMap/components/FXHG.vue'; import monitorCalender from '@/views/oneMap/FloodStuationReview/monitorCalender.vue'; import bus from '@/bus'; -const emits = defineEmits(['update:ActiveKey', 'closeMonitorCalender']); +const emits = defineEmits(['closeMonitorCalender']); const AllData = reactive({}); const curType = ref(false); const isShowMonitorCalender = ref(false); @@ -46,14 +46,12 @@ isShowMonitorCalender.value = true; } const change = date => { + bus.emit('checkRili', date); + isShowMonitorCalender.value = false; Showtop.value = false; showPanel.value = true; curType.value = true; - emits('update:ActiveKey', { - curType: true, - date, - }); }; const closeMonitorCalender = () => { isShowMonitorCalender.value = false; diff --git a/src/views/oneMap/FloodStuationReview/monitorCalender.vue b/src/views/oneMap/FloodStuationReview/monitorCalender.vue index 0d0633e..09b7e93 100644 --- a/src/views/oneMap/FloodStuationReview/monitorCalender.vue +++ b/src/views/oneMap/FloodStuationReview/monitorCalender.vue @@ -83,9 +83,7 @@ //获取降雨日历数据 const getRainTimeDayData = () => { - hsApi.rainMapDataBack({time:"2024-10-07"}).then(res=>{ - debugger - }) + hsApi.rainMapDataBack({ time: '2024-10-07' }).then(res => {}); // let data = { // fromTime: proxy.moment(datevalue.value).startOf('month').format('YYYY-MM-DD'), // toTime: proxy.moment(datevalue.value).endOf('month').format('YYYY-MM-DD'), diff --git a/src/views/oneMap/components/FHPL.vue b/src/views/oneMap/components/FHPL.vue index a31ee65..6327831 100644 --- a/src/views/oneMap/components/FHPL.vue +++ b/src/views/oneMap/components/FHPL.vue @@ -29,7 +29,7 @@ import FXHG from '@/views/oneMap/components/FXHG.vue'; import monitorCalender from '@/views/oneMap/FloodStuationReview/monitorCalender.vue'; import bus from '@/bus'; -const emits = defineEmits(['update:ActiveKey', 'closeMonitorCalender']); +const emits = defineEmits(['closeMonitorCalender']); const AllData = reactive({}); const curType = ref(false); const isShowMonitorCalender = ref(false); @@ -46,14 +46,12 @@ isShowMonitorCalender.value = true; } const change = date => { + bus.emit('checkRili', date); + isShowMonitorCalender.value = false; Showtop.value = false; showPanel.value = true; curType.value = true; - emits('update:ActiveKey', { - curType: true, - date, - }); }; const closeMonitorCalender = () => { isShowMonitorCalender.value = false; diff --git a/src/views/oneMap/components/FXHG.vue b/src/views/oneMap/components/FXHG.vue index da09a21..548afa0 100644 --- a/src/views/oneMap/components/FXHG.vue +++ b/src/views/oneMap/components/FXHG.vue @@ -48,6 +48,12 @@ onMounted(() => { bus.emit('checkBottom', control.value); + + //接受日历 + bus.on('checkRili', params => { + console.log(params, '接收paramsparamsparams'); + }); + let initePSTimer = setInterval(() => { if (!newfiberMapbox) return; bus.emit('setLayerVisible', { layername: 'ysLine1', isCheck: true });