diff --git a/src/views/crops/area/index.vue b/src/views/crops/area/index.vue index a6aa321..236b779 100644 --- a/src/views/crops/area/index.vue +++ b/src/views/crops/area/index.vue @@ -5,19 +5,13 @@
种植面积时间统计 -

+

下载   - +

@@ -26,18 +20,12 @@
种植面积统计 -

+

下载   - +

@@ -89,18 +77,12 @@
作物类型统计-高标准农田 -

+

下载   - +

@@ -109,33 +91,17 @@
作物类型统计-行政区划 -

+

下载   - +

- - + +
@@ -635,7 +601,7 @@ function layerClick() { if ( entitys[na]._name && entitys[na]._name === - 'point' + newData.properties.XZDM + 'point' + newData.properties.XZDM ) { let info = entitys[na]._info; // entitys[na].label.show = true @@ -1783,18 +1749,18 @@ function farmland() { }, yAxis: { type: 'category', - data: ["片区七", "片区六", "片区五", "片区四", "片区三",'片区二','片区一'], + data: ["片区七", "片区六", "片区五", "片区四", "片区三", '片区二', '片区一'], axisLabel: { color: 'rgba(255,255,255,0.8)', - + }, axisTick: { - lineStyle: { - color: '#668092', - width: 1, - }, - show: false, + lineStyle: { + color: '#668092', + width: 1, }, + show: false, + }, }, series: [ { @@ -1863,7 +1829,7 @@ function farmland() { emphasis: { focus: 'series', }, - data: [271, 132, 413, 210, 521,232,343], + data: [271, 132, 413, 210, 521, 232, 343], barWidth: 12, itemStyle: { label: { @@ -1891,7 +1857,7 @@ function farmland() { emphasis: { focus: 'series', }, - data: [271, 132, 413, 210, 521,234,321], + data: [271, 132, 413, 210, 521, 234, 321], barWidth: 12, itemStyle: { label: { @@ -2312,7 +2278,7 @@ function getAreaFenlei() { }); }); }) - .catch(err => {}); + .catch(err => { }); } let fenleiRef = ref({}); function mbHandle() { @@ -2336,7 +2302,7 @@ function mbHandle() { fenleiRef.value = town; getAreaFenlei(); }) - .catch(err => {}); + .catch(err => { }); } /*------------------------------------------柱状图--------------------------------------------*/ @@ -2554,9 +2520,25 @@ function infoWindowPostRender() { // 隐藏弹窗 function hiddenOverlayChart() { + + // 移除各种高亮 + XZDM = ''; + XZQDM = ''; + removeWms(['village_CQL']); + removeWms(['aaa']); + + deleteEntityByName('villageLine'); + deleteEntityByName('townLine'); + const pop = document.getElementById('pop'); pop.style.display = 'none'; // 清除监听事件 viewer.scene.postRender.removeEventListener(infoWindowPostRender); + // 重定位 + viewer.camera.flyTo({ + destination: Cesium.Rectangle.fromDegrees(119.5091, 35.5671, 120.3285, 36.1455), + duration: 2, + }); + } //显示弹窗 function showOverlayChart(position) { @@ -2608,11 +2590,9 @@ $height: calc(100vh - 100px); height: 25px; border-radius: 20px; font-size: 14px; - background: linear-gradient( - 180deg, - rgba(16, 111, 111, 1) 0%, - rgba(47, 214, 214, 1) 100% - ); + background: linear-gradient(180deg, + rgba(16, 111, 111, 1) 0%, + rgba(47, 214, 214, 1) 100%); border: 1.5px solid rgba(23, 194, 180, 1); display: flex; justify-content: center; @@ -2689,11 +2669,9 @@ $height: calc(100vh - 100px); align-items: center; justify-content: space-around; opacity: 1; - background: linear-gradient( - 90deg, - rgba(21, 173, 148, 0.1) 0%, - rgba(21, 173, 148, 0) 100% - ); + background: linear-gradient(90deg, + rgba(21, 173, 148, 0.1) 0%, + rgba(21, 173, 148, 0) 100%); div { display: flex; @@ -2873,7 +2851,7 @@ $height: calc(100vh - 100px); // align-items: flex-end; padding: 30px 8px 20px 8px; - & > div:nth-child(1) { + &>div:nth-child(1) { font-weight: 400; letter-spacing: 0px; color: rgba(255, 255, 255, 1); @@ -2881,7 +2859,7 @@ $height: calc(100vh - 100px); line-height: 24px; } - & > div:nth-child(2) { + &>div:nth-child(2) { color: rgba(255, 255, 255, 1); width: 129px; height: 24px; @@ -2920,11 +2898,11 @@ $height: calc(100vh - 100px); cursor: pointer; } - & > div { + &>div { display: flex; margin-bottom: 10px; - & > div:nth-child(1) { + &>div:nth-child(1) { font-weight: 400; letter-spacing: 0px; color: rgba(255, 255, 255, 1); @@ -2933,7 +2911,7 @@ $height: calc(100vh - 100px); margin-right: 10px; } - & > div:nth-child(2) { + &>div:nth-child(2) { color: rgba(255, 255, 255, 1); width: 129px; height: 24px; @@ -2949,8 +2927,7 @@ $height: calc(100vh - 100px); } } -:deep(.el-select__popper.el-popper) { -} +:deep(.el-select__popper.el-popper) {}