diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index 9d74e24..cb37a38 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -668,6 +668,9 @@ const data = result.data; const k = keys[idx]; if (!data) return; + const filteredData = filterGeometryNotEmpty(data); + console.log('filteredData',filteredData); + appStore.SET_MapData(filteredData); bus.emit("changeData"); const groups = data_default_params[k].groupMethod(data); const g_keys = Object.keys(groups); diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index 9d74e24..cb37a38 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -668,6 +668,9 @@ const data = result.data; const k = keys[idx]; if (!data) return; + const filteredData = filterGeometryNotEmpty(data); + console.log('filteredData',filteredData); + appStore.SET_MapData(filteredData); bus.emit("changeData"); const groups = data_default_params[k].groupMethod(data); const g_keys = Object.keys(groups); diff --git a/src/router/index.js b/src/router/index.js index 3ce9afb..4887f7c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -96,7 +96,7 @@ }, { path: '/DrainageSystem', - name: 'PublicOpinionAnalysis', + name: 'DrainageSystem', component: () => import('@/views/pictureOnMap/page/DrainageSystem/index.vue'), }, ], diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index 9d74e24..cb37a38 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -668,6 +668,9 @@ const data = result.data; const k = keys[idx]; if (!data) return; + const filteredData = filterGeometryNotEmpty(data); + console.log('filteredData',filteredData); + appStore.SET_MapData(filteredData); bus.emit("changeData"); const groups = data_default_params[k].groupMethod(data); const g_keys = Object.keys(groups); diff --git a/src/router/index.js b/src/router/index.js index 3ce9afb..4887f7c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -96,7 +96,7 @@ }, { path: '/DrainageSystem', - name: 'PublicOpinionAnalysis', + name: 'DrainageSystem', component: () => import('@/views/pictureOnMap/page/DrainageSystem/index.vue'), }, ], diff --git a/src/views/pictureOnMap/LayerControl.vue b/src/views/pictureOnMap/LayerControl.vue index 8a858a0..797858b 100644 --- a/src/views/pictureOnMap/LayerControl.vue +++ b/src/views/pictureOnMap/LayerControl.vue @@ -219,6 +219,7 @@ changeyangshi(); }); bus.on('YQ_head', val => { + console.log('valvalvalval',val); if (val == false) { Show.value = false; } else { diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index 9d74e24..cb37a38 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -668,6 +668,9 @@ const data = result.data; const k = keys[idx]; if (!data) return; + const filteredData = filterGeometryNotEmpty(data); + console.log('filteredData',filteredData); + appStore.SET_MapData(filteredData); bus.emit("changeData"); const groups = data_default_params[k].groupMethod(data); const g_keys = Object.keys(groups); diff --git a/src/router/index.js b/src/router/index.js index 3ce9afb..4887f7c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -96,7 +96,7 @@ }, { path: '/DrainageSystem', - name: 'PublicOpinionAnalysis', + name: 'DrainageSystem', component: () => import('@/views/pictureOnMap/page/DrainageSystem/index.vue'), }, ], diff --git a/src/views/pictureOnMap/LayerControl.vue b/src/views/pictureOnMap/LayerControl.vue index 8a858a0..797858b 100644 --- a/src/views/pictureOnMap/LayerControl.vue +++ b/src/views/pictureOnMap/LayerControl.vue @@ -219,6 +219,7 @@ changeyangshi(); }); bus.on('YQ_head', val => { + console.log('valvalvalval',val); if (val == false) { Show.value = false; } else { diff --git a/src/views/pictureOnMap/inputSearch.vue b/src/views/pictureOnMap/inputSearch.vue index 282aa28..b30703a 100644 --- a/src/views/pictureOnMap/inputSearch.vue +++ b/src/views/pictureOnMap/inputSearch.vue @@ -61,7 +61,7 @@ appStore.MapData.map(item => { SelectList.value = SelectList.value.concat(item.data); }); - console.log('MapData', appStore.MapData, SelectList.value); + // console.log('MapData', appStore.MapData, SelectList.value); filterList.value = JSON.parse(JSON.stringify(SelectList.value)); } @@ -93,6 +93,7 @@ onMounted(() => { bus.on('YQ_head', val => { + console.log('appStore.MapData',appStore.MapData); if (val == false) { Show.value = false; } else {