diff --git a/src/views/pictureOnMap/index.vue b/src/views/pictureOnMap/index.vue index b9c1eb3..d50cc38 100644 --- a/src/views/pictureOnMap/index.vue +++ b/src/views/pictureOnMap/index.vue @@ -540,7 +540,7 @@ // switchArr(); }); // 部分公共弹窗需要使用一个查询时间,目前不确定后期有没有人使用同类型的弹窗,在此初始化,增加公共弹窗的兼容性 - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); }); onBeforeUnmount(() => { diff --git a/src/views/pictureOnMap/index.vue b/src/views/pictureOnMap/index.vue index b9c1eb3..d50cc38 100644 --- a/src/views/pictureOnMap/index.vue +++ b/src/views/pictureOnMap/index.vue @@ -540,7 +540,7 @@ // switchArr(); }); // 部分公共弹窗需要使用一个查询时间,目前不确定后期有没有人使用同类型的弹窗,在此初始化,增加公共弹窗的兼容性 - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); }); onBeforeUnmount(() => { diff --git a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue index 704aff2..330184f 100644 --- a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue +++ b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue @@ -141,7 +141,7 @@ _bus.emit("panelDataToMap", { ...item, name: item.stName, id: undefined }); _bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); } onMounted(() => { gitDataFun(); diff --git a/src/views/pictureOnMap/index.vue b/src/views/pictureOnMap/index.vue index b9c1eb3..d50cc38 100644 --- a/src/views/pictureOnMap/index.vue +++ b/src/views/pictureOnMap/index.vue @@ -540,7 +540,7 @@ // switchArr(); }); // 部分公共弹窗需要使用一个查询时间,目前不确定后期有没有人使用同类型的弹窗,在此初始化,增加公共弹窗的兼容性 - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); }); onBeforeUnmount(() => { diff --git a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue index 704aff2..330184f 100644 --- a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue +++ b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue @@ -141,7 +141,7 @@ _bus.emit("panelDataToMap", { ...item, name: item.stName, id: undefined }); _bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); } onMounted(() => { gitDataFun(); diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue index a2a1cab..28a1ed0 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue @@ -288,8 +288,9 @@ const rowIgnore = (item) => { item.RefName = "dxssrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/index.vue b/src/views/pictureOnMap/index.vue index b9c1eb3..d50cc38 100644 --- a/src/views/pictureOnMap/index.vue +++ b/src/views/pictureOnMap/index.vue @@ -540,7 +540,7 @@ // switchArr(); }); // 部分公共弹窗需要使用一个查询时间,目前不确定后期有没有人使用同类型的弹窗,在此初始化,增加公共弹窗的兼容性 - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); }); onBeforeUnmount(() => { diff --git a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue index 704aff2..330184f 100644 --- a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue +++ b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue @@ -141,7 +141,7 @@ _bus.emit("panelDataToMap", { ...item, name: item.stName, id: undefined }); _bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); } onMounted(() => { gitDataFun(); diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue index a2a1cab..28a1ed0 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue @@ -288,8 +288,9 @@ const rowIgnore = (item) => { item.RefName = "dxssrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue index 4e737d0..7fb5943 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "ylfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/index.vue b/src/views/pictureOnMap/index.vue index b9c1eb3..d50cc38 100644 --- a/src/views/pictureOnMap/index.vue +++ b/src/views/pictureOnMap/index.vue @@ -540,7 +540,7 @@ // switchArr(); }); // 部分公共弹窗需要使用一个查询时间,目前不确定后期有没有人使用同类型的弹窗,在此初始化,增加公共弹窗的兼容性 - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); }); onBeforeUnmount(() => { diff --git a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue index 704aff2..330184f 100644 --- a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue +++ b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue @@ -141,7 +141,7 @@ _bus.emit("panelDataToMap", { ...item, name: item.stName, id: undefined }); _bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); } onMounted(() => { gitDataFun(); diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue index a2a1cab..28a1ed0 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue @@ -288,8 +288,9 @@ const rowIgnore = (item) => { item.RefName = "dxssrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue index 4e737d0..7fb5943 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "ylfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue index d4588e7..4cd425f 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "szycfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/index.vue b/src/views/pictureOnMap/index.vue index b9c1eb3..d50cc38 100644 --- a/src/views/pictureOnMap/index.vue +++ b/src/views/pictureOnMap/index.vue @@ -540,7 +540,7 @@ // switchArr(); }); // 部分公共弹窗需要使用一个查询时间,目前不确定后期有没有人使用同类型的弹窗,在此初始化,增加公共弹窗的兼容性 - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); }); onBeforeUnmount(() => { diff --git a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue index 704aff2..330184f 100644 --- a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue +++ b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue @@ -141,7 +141,7 @@ _bus.emit("panelDataToMap", { ...item, name: item.stName, id: undefined }); _bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); } onMounted(() => { gitDataFun(); diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue index a2a1cab..28a1ed0 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue @@ -288,8 +288,9 @@ const rowIgnore = (item) => { item.RefName = "dxssrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue index 4e737d0..7fb5943 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "ylfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue index d4588e7..4cd425f 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "szycfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue index 3a5bca3..639d263 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "yszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/index.vue b/src/views/pictureOnMap/index.vue index b9c1eb3..d50cc38 100644 --- a/src/views/pictureOnMap/index.vue +++ b/src/views/pictureOnMap/index.vue @@ -540,7 +540,7 @@ // switchArr(); }); // 部分公共弹窗需要使用一个查询时间,目前不确定后期有没有人使用同类型的弹窗,在此初始化,增加公共弹窗的兼容性 - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); }); onBeforeUnmount(() => { diff --git a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue index 704aff2..330184f 100644 --- a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue +++ b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue @@ -141,7 +141,7 @@ _bus.emit("panelDataToMap", { ...item, name: item.stName, id: undefined }); _bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); } onMounted(() => { gitDataFun(); diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue index a2a1cab..28a1ed0 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue @@ -288,8 +288,9 @@ const rowIgnore = (item) => { item.RefName = "dxssrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue index 4e737d0..7fb5943 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "ylfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue index d4588e7..4cd425f 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "szycfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue index 3a5bca3..639d263 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "yszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue index 8dbcaa2..d877529 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = props.TypeID == "sewage" ? "ydfxfxJCFX" : "wszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/index.vue b/src/views/pictureOnMap/index.vue index b9c1eb3..d50cc38 100644 --- a/src/views/pictureOnMap/index.vue +++ b/src/views/pictureOnMap/index.vue @@ -540,7 +540,7 @@ // switchArr(); }); // 部分公共弹窗需要使用一个查询时间,目前不确定后期有没有人使用同类型的弹窗,在此初始化,增加公共弹窗的兼容性 - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); }); onBeforeUnmount(() => { diff --git a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue index 704aff2..330184f 100644 --- a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue +++ b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue @@ -141,7 +141,7 @@ _bus.emit("panelDataToMap", { ...item, name: item.stName, id: undefined }); _bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); } onMounted(() => { gitDataFun(); diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue index a2a1cab..28a1ed0 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue @@ -288,8 +288,9 @@ const rowIgnore = (item) => { item.RefName = "dxssrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue index 4e737d0..7fb5943 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "ylfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue index d4588e7..4cd425f 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "szycfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue index 3a5bca3..639d263 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "yszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue index 8dbcaa2..d877529 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = props.TypeID == "sewage" ? "ydfxfxJCFX" : "wszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue index 1caba09..33c593b 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue @@ -305,18 +305,13 @@ } }; const getChartsData = () => { + debugger; getEchart({ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -343,15 +338,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "dxssrfxJCFX", @@ -370,7 +358,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -385,9 +373,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); + AllData.WTRQ = props.Getproperties.daterange[0]; rainCalendar({ queryTime: AllData.WTRQ, diff --git a/src/views/pictureOnMap/index.vue b/src/views/pictureOnMap/index.vue index b9c1eb3..d50cc38 100644 --- a/src/views/pictureOnMap/index.vue +++ b/src/views/pictureOnMap/index.vue @@ -540,7 +540,7 @@ // switchArr(); }); // 部分公共弹窗需要使用一个查询时间,目前不确定后期有没有人使用同类型的弹窗,在此初始化,增加公共弹窗的兼容性 - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); }); onBeforeUnmount(() => { diff --git a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue index 704aff2..330184f 100644 --- a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue +++ b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue @@ -141,7 +141,7 @@ _bus.emit("panelDataToMap", { ...item, name: item.stName, id: undefined }); _bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); } onMounted(() => { gitDataFun(); diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue index a2a1cab..28a1ed0 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue @@ -288,8 +288,9 @@ const rowIgnore = (item) => { item.RefName = "dxssrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue index 4e737d0..7fb5943 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "ylfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue index d4588e7..4cd425f 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "szycfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue index 3a5bca3..639d263 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "yszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue index 8dbcaa2..d877529 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = props.TypeID == "sewage" ? "ydfxfxJCFX" : "wszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue index 1caba09..33c593b 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue @@ -305,18 +305,13 @@ } }; const getChartsData = () => { + debugger; getEchart({ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -343,15 +338,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "dxssrfxJCFX", @@ -370,7 +358,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -385,9 +373,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); + AllData.WTRQ = props.Getproperties.daterange[0]; rainCalendar({ queryTime: AllData.WTRQ, diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue index ee1f546..75d8d65 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue @@ -309,14 +309,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -348,15 +342,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "szycfxJCFX", @@ -375,7 +362,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -390,10 +377,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); - + AllData.WTRQ = props.Getproperties.daterange[1]; rainCalendar({ queryTime: AllData.WTRQ, }).then((res) => { diff --git a/src/views/pictureOnMap/index.vue b/src/views/pictureOnMap/index.vue index b9c1eb3..d50cc38 100644 --- a/src/views/pictureOnMap/index.vue +++ b/src/views/pictureOnMap/index.vue @@ -540,7 +540,7 @@ // switchArr(); }); // 部分公共弹窗需要使用一个查询时间,目前不确定后期有没有人使用同类型的弹窗,在此初始化,增加公共弹窗的兼容性 - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); }); onBeforeUnmount(() => { diff --git a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue index 704aff2..330184f 100644 --- a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue +++ b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue @@ -141,7 +141,7 @@ _bus.emit("panelDataToMap", { ...item, name: item.stName, id: undefined }); _bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); } onMounted(() => { gitDataFun(); diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue index a2a1cab..28a1ed0 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue @@ -288,8 +288,9 @@ const rowIgnore = (item) => { item.RefName = "dxssrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue index 4e737d0..7fb5943 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "ylfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue index d4588e7..4cd425f 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "szycfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue index 3a5bca3..639d263 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "yszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue index 8dbcaa2..d877529 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = props.TypeID == "sewage" ? "ydfxfxJCFX" : "wszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue index 1caba09..33c593b 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue @@ -305,18 +305,13 @@ } }; const getChartsData = () => { + debugger; getEchart({ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -343,15 +338,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "dxssrfxJCFX", @@ -370,7 +358,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -385,9 +373,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); + AllData.WTRQ = props.Getproperties.daterange[0]; rainCalendar({ queryTime: AllData.WTRQ, diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue index ee1f546..75d8d65 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue @@ -309,14 +309,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -348,15 +342,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "szycfxJCFX", @@ -375,7 +362,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -390,10 +377,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); - + AllData.WTRQ = props.Getproperties.daterange[1]; rainCalendar({ queryTime: AllData.WTRQ, }).then((res) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue index a166e5c..89c6d37 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue @@ -310,14 +310,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -345,15 +339,8 @@ console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "wszrfxJCFX", @@ -387,10 +374,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); - + AllData.WTRQ = props.Getproperties.daterange[0]; rainCalendar({ queryTime: AllData.WTRQ, }).then((res) => { diff --git a/src/views/pictureOnMap/index.vue b/src/views/pictureOnMap/index.vue index b9c1eb3..d50cc38 100644 --- a/src/views/pictureOnMap/index.vue +++ b/src/views/pictureOnMap/index.vue @@ -540,7 +540,7 @@ // switchArr(); }); // 部分公共弹窗需要使用一个查询时间,目前不确定后期有没有人使用同类型的弹窗,在此初始化,增加公共弹窗的兼容性 - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); }); onBeforeUnmount(() => { diff --git a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue index 704aff2..330184f 100644 --- a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue +++ b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue @@ -141,7 +141,7 @@ _bus.emit("panelDataToMap", { ...item, name: item.stName, id: undefined }); _bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); } onMounted(() => { gitDataFun(); diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue index a2a1cab..28a1ed0 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue @@ -288,8 +288,9 @@ const rowIgnore = (item) => { item.RefName = "dxssrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue index 4e737d0..7fb5943 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "ylfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue index d4588e7..4cd425f 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "szycfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue index 3a5bca3..639d263 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "yszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue index 8dbcaa2..d877529 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = props.TypeID == "sewage" ? "ydfxfxJCFX" : "wszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue index 1caba09..33c593b 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue @@ -305,18 +305,13 @@ } }; const getChartsData = () => { + debugger; getEchart({ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -343,15 +338,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "dxssrfxJCFX", @@ -370,7 +358,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -385,9 +373,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); + AllData.WTRQ = props.Getproperties.daterange[0]; rainCalendar({ queryTime: AllData.WTRQ, diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue index ee1f546..75d8d65 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue @@ -309,14 +309,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -348,15 +342,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "szycfxJCFX", @@ -375,7 +362,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -390,10 +377,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); - + AllData.WTRQ = props.Getproperties.daterange[1]; rainCalendar({ queryTime: AllData.WTRQ, }).then((res) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue index a166e5c..89c6d37 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue @@ -310,14 +310,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -345,15 +339,8 @@ console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "wszrfxJCFX", @@ -387,10 +374,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); - + AllData.WTRQ = props.Getproperties.daterange[0]; rainCalendar({ queryTime: AllData.WTRQ, }).then((res) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/ydfxfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/ydfxfxJCFX.vue index d89373b..9cba41b 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/ydfxfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/ydfxfxJCFX.vue @@ -267,14 +267,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -298,14 +292,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, @@ -325,7 +313,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -340,10 +328,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); - + AllData.WTRQ = props.Getproperties.daterange[0]; rainCalendar({ queryTime: AllData.WTRQ, }).then((res) => { diff --git a/src/views/pictureOnMap/index.vue b/src/views/pictureOnMap/index.vue index b9c1eb3..d50cc38 100644 --- a/src/views/pictureOnMap/index.vue +++ b/src/views/pictureOnMap/index.vue @@ -540,7 +540,7 @@ // switchArr(); }); // 部分公共弹窗需要使用一个查询时间,目前不确定后期有没有人使用同类型的弹窗,在此初始化,增加公共弹窗的兼容性 - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); }); onBeforeUnmount(() => { diff --git a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue index 704aff2..330184f 100644 --- a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue +++ b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue @@ -141,7 +141,7 @@ _bus.emit("panelDataToMap", { ...item, name: item.stName, id: undefined }); _bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); } onMounted(() => { gitDataFun(); diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue index a2a1cab..28a1ed0 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue @@ -288,8 +288,9 @@ const rowIgnore = (item) => { item.RefName = "dxssrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue index 4e737d0..7fb5943 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "ylfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue index d4588e7..4cd425f 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "szycfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue index 3a5bca3..639d263 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "yszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue index 8dbcaa2..d877529 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = props.TypeID == "sewage" ? "ydfxfxJCFX" : "wszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue index 1caba09..33c593b 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue @@ -305,18 +305,13 @@ } }; const getChartsData = () => { + debugger; getEchart({ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -343,15 +338,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "dxssrfxJCFX", @@ -370,7 +358,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -385,9 +373,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); + AllData.WTRQ = props.Getproperties.daterange[0]; rainCalendar({ queryTime: AllData.WTRQ, diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue index ee1f546..75d8d65 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue @@ -309,14 +309,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -348,15 +342,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "szycfxJCFX", @@ -375,7 +362,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -390,10 +377,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); - + AllData.WTRQ = props.Getproperties.daterange[1]; rainCalendar({ queryTime: AllData.WTRQ, }).then((res) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue index a166e5c..89c6d37 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue @@ -310,14 +310,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -345,15 +339,8 @@ console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "wszrfxJCFX", @@ -387,10 +374,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); - + AllData.WTRQ = props.Getproperties.daterange[0]; rainCalendar({ queryTime: AllData.WTRQ, }).then((res) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/ydfxfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/ydfxfxJCFX.vue index d89373b..9cba41b 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/ydfxfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/ydfxfxJCFX.vue @@ -267,14 +267,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -298,14 +292,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, @@ -325,7 +313,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -340,10 +328,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); - + AllData.WTRQ = props.Getproperties.daterange[0]; rainCalendar({ queryTime: AllData.WTRQ, }).then((res) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/ylfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/ylfxJCFX.vue index 2b7e749..4e0c515 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/ylfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/ylfxJCFX.vue @@ -283,10 +283,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: - moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + " 00:00:00", - end: - moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; diff --git a/src/views/pictureOnMap/index.vue b/src/views/pictureOnMap/index.vue index b9c1eb3..d50cc38 100644 --- a/src/views/pictureOnMap/index.vue +++ b/src/views/pictureOnMap/index.vue @@ -540,7 +540,7 @@ // switchArr(); }); // 部分公共弹窗需要使用一个查询时间,目前不确定后期有没有人使用同类型的弹窗,在此初始化,增加公共弹窗的兼容性 - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); }); onBeforeUnmount(() => { diff --git a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue index 704aff2..330184f 100644 --- a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue +++ b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue @@ -141,7 +141,7 @@ _bus.emit("panelDataToMap", { ...item, name: item.stName, id: undefined }); _bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); + // localStorage.setItem("JCFXDialogTimer", moment().format("YYYY-MM-DD")); } onMounted(() => { gitDataFun(); diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue index a2a1cab..28a1ed0 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/dxssr.vue @@ -288,8 +288,9 @@ const rowIgnore = (item) => { item.RefName = "dxssrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue index 4e737d0..7fb5943 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/gwfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "ylfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue index d4588e7..4cd425f 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/szyc.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "szycfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue index 3a5bca3..639d263 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/wszr.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = "yszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue index 8dbcaa2..d877529 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/tab_components/ydfx.vue @@ -287,8 +287,9 @@ const rowIgnore = (item) => { item.RefName = props.TypeID == "sewage" ? "ydfxfxJCFX" : "wszrfxJCFX"; + item.daterange = [item.tt + " 00:00:00", item.tt + " 23:59:59"]; bus.emit("DynamicBus", item); - localStorage.setItem("JCFXDialogTimer", item.tt); + // localStorage.setItem("JCFXDialogTimer", item.tt); }; // 打开周边全景 const ClickZBQJ2 = (item) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue index 1caba09..33c593b 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/dxssrfxJCFX.vue @@ -305,18 +305,13 @@ } }; const getChartsData = () => { + debugger; getEchart({ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -343,15 +338,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "dxssrfxJCFX", @@ -370,7 +358,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -385,9 +373,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); + AllData.WTRQ = props.Getproperties.daterange[0]; rainCalendar({ queryTime: AllData.WTRQ, diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue index ee1f546..75d8d65 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/szycfxJCFX.vue @@ -309,14 +309,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -348,15 +342,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "szycfxJCFX", @@ -375,7 +362,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -390,10 +377,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); - + AllData.WTRQ = props.Getproperties.daterange[1]; rainCalendar({ queryTime: AllData.WTRQ, }).then((res) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue index a166e5c..89c6d37 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/wszrfxJCFX.vue @@ -310,14 +310,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -345,15 +339,8 @@ console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", - + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, menuType: "wszrfxJCFX", @@ -387,10 +374,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); - + AllData.WTRQ = props.Getproperties.daterange[0]; rainCalendar({ queryTime: AllData.WTRQ, }).then((res) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/ydfxfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/ydfxfxJCFX.vue index d89373b..9cba41b 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/ydfxfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/ydfxfxJCFX.vue @@ -267,14 +267,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -298,14 +292,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, @@ -325,7 +313,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -340,10 +328,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); - + AllData.WTRQ = props.Getproperties.daterange[0]; rainCalendar({ queryTime: AllData.WTRQ, }).then((res) => { diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/ylfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/ylfxJCFX.vue index 2b7e749..4e0c515 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/ylfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/ylfxJCFX.vue @@ -283,10 +283,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: - moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + " 00:00:00", - end: - moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/yszrfxJCFX.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/yszrfxJCFX.vue index b4fa3c2..50822b9 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/yszrfxJCFX.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/yszrfxJCFX.vue @@ -310,14 +310,8 @@ stType: props.Getproperties.stType, stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, - start: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - end: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + start: props.Getproperties.daterange[0], + end: props.Getproperties.daterange[1], }).then((res) => { if (res && res.code == 200) { AllData.xAxis = res.data.times; @@ -344,14 +338,8 @@ const getFenXiData = () => { console.log(props); riskAnalysisReason({ - startTime: props.Getproperties.daterange - ? props.Getproperties.daterange[0] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 00:00:00", - endTime: props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD") + - " 23:59:59", + startTime: props.Getproperties.daterange[0], + endTime: props.Getproperties.daterange[1], stCode: props.Getproperties.stCode, dataCode: props.Getproperties.dataCode, @@ -371,7 +359,7 @@ AFont = "无"; } - if (res.data.inferList.length> 0) { + if (res.data.inferList.length > 0) { res.data.inferList.forEach((element) => { BFont += `${B}:${element},`; B++; @@ -386,10 +374,7 @@ }); }; const getWatherData = () => { - AllData.WTRQ = props.Getproperties.daterange - ? props.Getproperties.daterange[1] - : moment(localStorage.getItem("JCFXDialogTimer")).format("YYYY-MM-DD"); - + AllData.WTRQ = props.Getproperties.daterange[0]; rainCalendar({ queryTime: AllData.WTRQ, }).then((res) => {