Agriculture-front-end/dist/assets/Drought.83a691a6.js
2023-05-28 21:55:59 +08:00

2 lines
28 KiB
JavaScript

import{z as X,_ as st,r as u,A as lt,B as ze,C as it,D as fe,d as S,o as y,c as C,l as s,m as T,e as _,w as x,f as b,g as E,J as pe,K as me,k as ge,Q as nt,x as O,y as dt,p as ct,q as ut}from"./index.770945b1.js";import te from"./downloads.e955445d.js";import{_ as ae}from"./close1.45635d81.js";import{_ as ft,a as pt,b as mt,c as gt,d as vt,e as ht}from"./linesGL.90f708a5.js";import{i as ee,L as V}from"./index.c9f5bd8b.js";import{T as bt}from"./TimeLine.436c6eb2.js";import{u as ve}from"./useEcharts.a6becf8f.js";import{d as $}from"./download.9fd0dee8.js";function Ie(h){return X({url:"equipment/areaStatisticsDrought",method:"get",params:h})}function Pe(h){return X({url:"equipment/proportionOfArea",method:"get",params:h})}function Ne(h){return X({url:"equipment/statisticsOfArea",method:"get",params:h})}function Fe(h){return X({url:"equipment/township",method:"get",params:h})}function Be(h){return X({url:"equipment/administrative",method:"get",params:h})}function yt(){return X({url:"http://121.36.229.60:9080/geoserver/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson",method:"get"})}const D=h=>(ct("data-v-252bfa44"),h=h(),ut(),h),_t={class:"center"},wt=D(()=>s("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),xt={class:"leftWra"},St={class:"leftTop"},Ct={class:"title"},Dt=D(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),kt=D(()=>s("img",{src:te,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Lt={class:"leftbottom"},Mt={class:"title"},Tt=D(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),Wt=D(()=>s("img",{src:te,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),zt={class:"tableDiv"},It={key:0,src:ae,alt:""},Pt={key:0,class:"imgrotate",src:ae,alt:""},Nt={class:"rightWra"},Ft={class:"rightTop"},Bt={class:"title"},Et=D(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),At=D(()=>s("img",{src:te,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Rt={class:"rightbottom"},Ot={class:"title"},Xt=D(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Zt=D(()=>s("img",{src:te,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),qt={key:0,src:ae,alt:""},Qt={key:0,class:"imgrotate",src:ae,alt:""},Gt={class:"bottom_center"},Jt=dt('<div class="tool" data-v-252bfa44><span data-v-252bfa44><img src="'+ft+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+pt+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+mt+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+gt+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+vt+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+ht+'" alt="" data-v-252bfa44></span></div>',1),Vt={class:"mt-4"},$t={id:"popup"},jt={id:"pop"},Ut={key:0},Yt=D(()=>s("div",null,"\u6751\u540D\uFF1A",-1)),Ht={__name:"Drought",setup(h){let n=u(null);const he=u(null),be=u(null),ye=u(null);u(null);const _e=u(null),v=u("370211"),Ee=u(null);let k=lt({arr:[],brr:[],crr:[]});const L=u({}),Ae=u([]),Z=u(!1);let P=u(!1),N=u(!1);const j=u(["false"]);let oe=u([]),U=u([]),re=u([]),se=u(0),we=u([]),xe=["\u9AD8\u6807\u51C6\u519C\u75301.0","\u9AD8\u6807\u51C6\u519C\u75302.0","\u9AD8\u6807\u51C6\u519C\u75303.0","\u9AD8\u6807\u51C6\u519C\u75304.0","\u9AD8\u6807\u51C6\u519C\u75305.0","\u9AD8\u6807\u51C6\u519C\u75306.0","\u9AD8\u6807\u51C6\u519C\u75307.0"],W={\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[],\u9002\u5B9C:[],\u6E7F\u6DA6:[]},le={\u6E7F\u6DA6:{color:"rgba(9, 187, 222, 0.8)",disabled:!1},\u9002\u5B9C:{color:"rgba(255, 235, 59, 0.8)",disabled:!1},\u8F7B\u5EA6\u5E72\u65F1:{color:"rgba(234, 165, 93, 0.8)",disabled:!1},\u4E2D\u5EA6\u5E72\u65F1:{color:"rgba(205, 92, 92, 1)",disabled:!1},\u91CD\u5EA6\u5E72\u65F1:{color:"red",disabled:!1}};ze(()=>k.arr,t=>{console.log("val:",t)});var A={title:[]};let w={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},ie=u([]);it(()=>{Se("370211"),Ce("370211"),je(),De("370211"),Oe(),ce(),Le(),H(),Ze();for(const a in le)le[a].disabled!==!0&&(console.log(a),we.value.push(a));j.value=we.value;let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)");let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"});const Re={url:"http://{s}.tianditu.gov.cn/img_c/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=c&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=31091965e263284a501a723b8909f405",layer:"tdtCva",style:"default",format:"tiles",tileMatrixSetID:"c",subdomains:["t0","t1","t2","t3","t4","t5","t6","t7"],tilingScheme:new Cesium.GeographicTilingScheme,tileMatrixLabels:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],maximumLevel:18};Cesium.Ion.defaultAccessToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiYzcwZmJmNi02MzQ5LTQ1MGEtODgzMy0yZTZiZGExY2MzMGMiLCJpZCI6MTAxOTgsInNjb3BlcyI6WyJhc2wiLCJhc3IiLCJnYyJdLCJpYXQiOjE1ODEzMDgxNTR9.NeJU4yfUi-SnLrNDOBYsQgmiSh3B4axCTi1m84Qw99c";function Oe(){n=new Cesium.Viewer("cesiumContainer",{baseLayerPicker:!1,shouldAnimate:!0,infoBox:!1,animation:!1,timeline:!1,geocoder:!1,homeButton:!1,navigationHelpButton:!1,selectionIndicator:!1,fullscreenButton:!1,terrainProvider:new Cesium.EllipsoidTerrainProvider({}),sceneModePicker:!1,contextOptions:{webgl:{alpha:!0}},imageryProvider:new Cesium.WebMapTileServiceImageryProvider({...Re})}),n.cesiumWidget.creditContainer.style.display="none",Me("shuzisannong:huangdaoqu_town","shuzisannong:huangdaoqu_town"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),qe(),ot()}function ne(t,e,a){t.forEach(o=>{let r=[];o[0].forEach(d=>{r.push(d[0]),r.push(d[1])}),n.entities.add({name:e,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(r),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:a?Cesium.Color.fromCssColorString(a):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function Xe(t){return t>48e6?0:t>24e6?1:t>12e6?2:t>6e6?3:t>3e6?4:t>15e5?5:t>75e4?6:t>375e3?7:t>187500?8:t>93750?9:t>46875?10:t>23437.5?11:t>11718.75?12:t>5859.38?13:t>2929.69?14:t>1464.84?15:t>732.42?16:t>366.21?17:18}function Ze(){fe({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afarmland&maxFeatures=50&outputFormat=application%2Fjson",method:"get"}).then(t=>{console.log("\u519C\u7530\uFF1A",t),Ae.value=t.data.features}).catch(t=>{})}let q=u({label:[]}),Q="";function qe(){var t=new Cesium.ScreenSpaceEventHandler(n.canvas);t.setInputAction(function(e){var a=n.camera.getPickRay(e.position),o=n.scene.globe.pick(a,n.scene);if(o){let r=Cesium.Cartographic.fromCartesian(o);if(r){let d=new Cesium.Cartesian2,i=n.camera.positionCartographic.height,l=Xe(i);const g=n.imageryLayers._layers,f=g.findIndex(p=>p._imageryProvider._layers&&p._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(f>-1){const p=g[f];let m=p._imageryProvider;if(m&&m.ready&&m._layers&&p.show===!0){d=m.tilingScheme.positionToTileXY(r,l,d);let c=m.pickFeatures(d.x,d.y,l,r.longitude,r.latitude);c&&c.then(I=>{if(I.length>0){let M=I[0];if(M.properties&&M.properties.XZDM)if(console.log("XZDM:",Q),console.log("newData.properties.XZDM:",M.properties.XZDM),Q!==M.properties.XZDM){Z.value=!0,Q=M.properties.XZDM,v.value=Q,Y&&Y();let R=M.data;n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(R.bbox[0],R.bbox[1],R.bbox[2],R.bbox[3]),duration:2}),z("townLine"),ne(R.geometry&&R.geometry.coordinates,"townLine","yellow"),F(["village_CQL"]),console.log(M.properties.XZDM),Je(`XZDM=${M.properties.XZDM}`,"village_CQL");let K=n.entities._entities._array;for(var B=K.length-1;B>=0;B--)if(K[B]._name&&K[B]._name==="point"+M.properties.XZDM){let rt=K[B]._info;q.value=rt,We(e.position),n.scene.postRender.addEventListener(ue)}z("villageLine"),de=""}else Qe(g,d,l,r,e);else F(["village_CQL"]),J()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let de="";function Qe(t,e,a,o,r){const d=t.findIndex(i=>i._imageryProvider._layers&&i._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(d>-1){const i=t[d];let l=i._imageryProvider;if(l&&l.ready&&l._layers&&i.show===!0){e=l.tilingScheme.positionToTileXY(o,a,e);let g=l.pickFeatures(e.x,e.y,a,o.longitude,o.latitude);g&&g.then(f=>{if(f.length>0){let p=f[0];if(console.log(p),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(p.data.bbox[0],p.data.bbox[1],p.data.bbox[2],p.data.bbox[3]),duration:2}),p.properties&&p.properties.XZQDM)if(de!==p.properties.XZQDM){de=p.properties.XZQDM;let m=p.data;z("villageLine"),ne(m.geometry&&m.geometry.coordinates,"villageLine","yellow")}else Ge(t,e,a,o,r)}})}}}function Ge(t,e,a,o,r){console.log(o);const d=t.findIndex(i=>i._imageryProvider._layers&&i._imageryProvider._layers==="shuzisannong:TVDI");if(d>-1){const i=t[d];let l=i._imageryProvider;if(l&&l.ready&&l._layers&&i.show===!0){e=l.tilingScheme.positionToTileXY(o,a,e);let g=l.pickFeatures(e.x,e.y,a,o.longitude,o.latitude);g&&g.then(f=>{if(f.length>0){let p=f[0],m="";switch(p.properties.value){case 2:m="\u6E7F\u6DA6";break;case 3:m="\u9002\u5B9C";break;case 4:m="\u8F7B\u5EA6\u5E72\u65F1";break;case 4:m="\u4E2D\u5EA6\u5E72\u65F1";break;case 4:m="\u91CD\u5EA6\u5E72\u65F1";break}let c=Cesium.Math.toDegrees(o.longitude).toFixed(6),I=Cesium.Math.toDegrees(o.latitude).toFixed(6);L.value={lon:c,lat:I,grade:m},console.log(L.value),We(r.position),n.scene.postRender.addEventListener(ue)}})}}}function Je(t,e){let a=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:t}});a.customName=e,n.imageryLayers.addImageryProvider(a)}function G(t,e){let a=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:TVDI",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:`value in (${t})`}});a.customName=e,n.imageryLayers.addImageryProvider(a)}function F(t,e){if(n){const a=n.imageryLayers._layers;for(let o=a.length-1;o>=0;o--)t.forEach(r=>{a[o]._imageryProvider&&a[o]._imageryProvider.customName&&(e?a[o]._imageryProvider.customName.indexOf(r)>-1&&n.imageryLayers.remove(a[o]):a[o]._imageryProvider.customName===r&&n.imageryLayers.remove(a[o]))})}}function z(t){if(n){let a=n.entities._entities._array;for(var e=a.length-1;e>=0;e--)a[e]._name&&a[e]._name===t&&n.entities.remove(a[e])}}function Ve(){if(P.value=!P.value,P.value){let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(0,0)")}else{let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)")}}function $e(){if(N.value=!N.value,N.value){let t=document.querySelector(".rightWra");t.style.transform="translate(0,0)"}else{let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"}}ze(()=>j.value,(t,e)=>{t.length>e.length?t.filter(o=>{if(e.findIndex(d=>d===o)<0)return o}).forEach(o=>{switch(o){case"\u6E7F\u6DA6":G(2,o);break;case"\u9002\u5B9C":G(3,o);break;case"\u8F7B\u5EA6\u5E72\u65F1":G(4,o);break;case"\u4E2D\u5EA6\u5E72\u65F1":G(5,o);break;case"\u91CD\u5EA6\u5E72\u65F1":G(6,o);break}}):t.length<e.length&&e.filter(o=>{if(t.findIndex(d=>d===o)<0)return o}).forEach(o=>{console.log(o),F([o])})});const Se=t=>{oe=u([]),U=u([]),Ie({divisions:t}).then(e=>{e.data.forEach(a=>{oe.value.push(a.level),U.value.push(a.area)}),ke()})},Ce=t=>{re=u([]),ie=u([]),se=u(0),Pe({divisions:t}).then(e=>{e.data.forEach(a=>{se.value+=Number(a.area),re.value.push({name:a.level,value:a.area}),ie.value.push({date:a.level,name:`${Number(a.area).toFixed(2)}\u4EA9`,address:`${(a.percentage*100).toFixed(2)}%`})}),ce()})},je=()=>{Ne().then(t=>{console.log(t.data),xe.forEach((e,a)=>{let o=t.data.map(r=>{if(e===r.region)return r});Object.keys(W).forEach(r=>{let d=0;o.findIndex(l=>(l&&l.level===r&&(d=l.area),l&&l.level===r))>-1?W[r].push(d):W[r].push(0)})}),Le()})},De=t=>{Fe({divisions:t}).then(e=>{k.brr=e.data,k.arr=e.data.sort((i,l)=>i.streetName.length-l.streetName.length),k.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let a=[],o=[];k.arr.forEach(i=>{a.indexOf(i.streetName)==-1&&(a.push(i.streetName),o.push({streetName:i.streetName,streetCode:i.streetCode,area:i.area,type:i.type}))}),k.arr=o;let r=[...e.data],d=[];r.splice(0,1),r.forEach(i=>{d.indexOf(i.streetName)==-1&&d.push(i.streetName)}),A.title=[...Object.values(d)],A.title.forEach((i,l)=>{let g=e.data.map(f=>{if(i===f.streetName)return f});Object.keys(w).forEach(f=>{g.findIndex(m=>m&&m.type===f)>-1?w[f].push(1):w[f].push(null)})}),H()})},Ue=t=>{Be({divisions:t}).then(e=>{k.brr=e.data;let a=[...e.data],o=[];a.forEach(r=>{o.indexOf(r.streetName)==-1&&o.push(r.streetName)}),A.title=[...Object.values(o)],console.log(e),A.title.forEach((r,d)=>{let i=e.data.map(l=>{if(r===l.streetName)return l});Object.keys(w).forEach(l=>{i.findIndex(f=>f&&f.type===l)>-1?w[l].push(1):w[l].push(null)})}),H()})},Y=()=>{if(yt().then(t=>{console.log(t),t.features.forEach(e=>{e.properties.XZDM==v.value&&(z("townLine"),ne(e.geometry.coordinates,"townLine","yellow"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]),duration:0}))})}),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),z("townLine"),Se(v.value),Ce(v.value),v.value=="370211"){F(["village_CQL"]),Q=null,F(["aaa"]),De(),J(),H(),ke(),ce(),z("townLine"),z("villageLine");return}Ue(v.value)},Ye=t=>{Ie({divisions:v.value,whetherToDownload:!0}).then(e=>{$(e.data[e.data.length-1].downloadPath)})},He=t=>{Pe({divisions:v.value,whetherToDownload:!0}).then(e=>{$(e.data[e.data.length-1].downloadPath)})},Ke=t=>{Ne({divisions:v.value,whetherToDownload:!0}).then(e=>{$(e.data[e.data.length-1].downloadPath)})},et=t=>{v.value==="370211"?Fe({divisions:v.value,whetherToDownload:!0}).then(e=>{$(e.data[e.data.length-1].downloadPath)}):Be({divisions:v.value,whetherToDownload:!0}).then(e=>{$(e.data[e.data.length-1].downloadPath)})};function ke(){console.log(U.value);const t=ee(he.value);var e={textStyle:{fontSize:0},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!0,top:"5%",data:["\u9762\u79EF"],right:"5%",icon:"rect",textStyle:{fontSize:14,color:"rgba(255, 255, 255, 0.7)"}},xAxis:{nameTextStyle:{color:"#c0c3cd",padding:[0,0,-10,0],fontSize:14},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14},axisTick:{lineStyle:{color:"#0B1535",width:1},show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#384267",width:1,type:"dashed"},show:!0},data:oe.value,type:"category"},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255,255,255,0.7)"},splitLine:{lineStyle:{type:"dashed"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{data:U.value,name:"\u9762\u79EF",type:"bar",barMaxWidth:"auto",barWidth:35,itemStyle:{color:{x:0,y:0,x2:0,y2:1,type:"linear",global:!1,colorStops:[{offset:0,color:"rgba(45, 204, 177, 1)"},{offset:1,color:"rgba(71, 179, 161, 0)"}]}},label:{normal:{show:!1,fontSize:14,color:"#ffffff",position:"top"}}}]};e&&t.setOption(e),window.addEventListener("resize",function(){t.resize()})}function ce(){const t=ee(be.value);var e=re.value;let a={color:["rgba(255, 235, 59, 0.8)","rgba(9, 187, 222, 0.8)","rgba(234, 165, 93, 0.8)","rgba(205, 92, 92, 1)","red"],title:{text:"\u603B\u9762\u79EF",subtext:`${(se.value/1e4).toFixed(2)}\u4E07\u4EA9`,textStyle:{color:"#f2f2f2",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},legend:{orient:"vertical",top:"middle",right:"2%",textStyle:{color:"#f2f2f2",fontSize:14},icon:"roundRect",data:e},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a} <br/>{b} : {c}\u4EA9 <br/>\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",data:e},{radius:["50%","54%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1},emphasis:{show:!1}},labelLine:{normal:{show:!1},emphasis:{show:!1}},animation:!1,tooltip:{show:!1},data:[{value:1,itemStyle:{color:"rgba(250,250,250,0.3)"}}]},{name:"\u5916\u8FB9\u6846",type:"pie",clockWise:!1,hoverAnimation:!1,center:["50%","50%"],radius:["85%","85%"],tooltip:{show:!1},label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};ve(t,a)}function Le(){const t=ee(ye.value);let e={title:{text:"",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},xAxis:{type:"category",data:xe,axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)",width:1,type:"solid"},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14}}},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255, 255, 255, 0.7)"},splitLine:{lineStyle:{type:"solid",color:"rgba(255, 255, 255, 0.3)"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"\u8F7B\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:W.\u8F7B\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 165, 93, 1)",color:new V(0,0,0,1,[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}])}}},{name:"\u4E2D\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:W.\u4E2D\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(205, 92, 92, 0.8)",color:new V(0,0,0,1,[{offset:0,color:"rgba(205, 92, 92, 1)"},{offset:1,color:"rgba(205, 92, 92, 1)"}])}}},{name:"\u91CD\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:W.\u91CD\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"red",color:new V(0,0,0,1,[{offset:0,color:"red"},{offset:1,color:"red"}])}}},{name:"\u9002\u5B9C",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:W.\u9002\u5B9C,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(9, 187, 222, 1)",color:new V(0,0,0,1,[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}])}}},{name:"\u6E7F\u6DA6",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:W.\u6E7F\u6DA6,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 235, 59, 1)",color:new V(0,0,0,1,[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}])}}}]};t.on("click",function(a){console.log(a.name)}),e&&t.setOption(e,{notMerge:!0,grid:{bottom:20}}),ve(t,e)}function Me(t,e){let a=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:t,parameters:{service:"WMS",format:"image/png",transparent:!0}});a.customName=e;let o=n.imageryLayers.addImageryProvider(a);e.indexOf("gbznt")>-1&&(n.imageryLayers.lowerToBottom(o),n.imageryLayers.raise(o))}function tt(){z("townLine"),delete q.value.XZQMC,F(["gbznt"],!0),F(["aaa"]),v.value="370211",Y(),Z.value==="1"&&(console.log(Z.value),Me("shuzisannong:huangdaoqu_town","tl")),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Z.value=!1,J()}function H(){const t=ee(_e.value);console.log(A.title);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(a){let o=0;return k.brr.forEach(r=>{r.type==a.seriesName&&r.streetName==a.name&&(console.log(r.area),o=r.area)}),a.seriesName+'<span style="font-size: 14px; color: #f00;">'+o+"</span>\u4EA9"}},dataZoom:[{type:"slider",show:!1,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:10,startValue:0,endValue:4,handleIcon:"M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z",handleSize:"100%",handleStyle:{color:"#DBDBDB",height:"100%"},backgroundColor:"transparent",fillerColor:"#DBDBDB",textStyle:{color:"transparent"},dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:"transparent"}},borderColor:"transparent"},{type:"inside",id:"insideY",yAxisIndex:0,start:0,end:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(255, 255, 255, 1)",formatter:"{value}"},data:A.title,inverse:!0}],series:[{type:"bar",name:"\u6E7F\u6DA6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u6E7F\u6DA6",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}]}},data:w.\u6E7F\u6DA6},{type:"bar",name:"\u9002\u5B9C",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u9002\u5B9C",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}]}},data:w.\u9002\u5B9C},{type:"bar",name:"\u8F7B\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F7B\u5EA6\u5E72\u65F1",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}]}},data:w.\u8F7B\u5EA6\u5E72\u65F1},{type:"bar",name:"\u4E2D\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u4E2D\u5EA6\u5E72\u65F1",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(205, 92, 92, 1)"},{offset:1,color:"rgba(205, 92, 92, 1)"}]}},data:w.\u4E2D\u5EA6\u5E72\u65F1},{type:"bar",name:"\u91CD\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u91CD\u5EA6\u5E72\u65F1",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"red"},{offset:1,color:"red"}]}},data:w.\u91CD\u5EA6\u5E72\u65F1}]};ve(t,e)}function at(){let t=Te.value;console.log("fl:",t),fe({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(e=>{console.log("res1111:",e),e.data.features.forEach((o,r)=>{const d=Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),i=Cesium.Rectangle.center(d);Cesium.Math.toDegrees(i.longitude),Cesium.Math.toDegrees(i.latitude),o.properties.XZDM==="370211011"||o.properties.XZDM;const l=t[o.properties.XZMC];l&&l.map((g,f)=>g.properties)})}).catch(e=>{})}let Te=u({});function ot(){fe({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(t=>{let e=t.data.features,a={};e.forEach(o=>{let r=o.properties.town;a[r]?a[r].push(o):a[r]=[o]}),Te.value=a,at()}).catch(t=>{})}function ue(){if(L.value.lon&&L.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(L.value.lon),Number(L.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(n.scene,e);if(Cesium.defined(t)){const a=document.getElementById("popup");a&&(a.style.top=t.y-10+"px",a.style.left=t.x+10+"px")}}}function J(){const t=document.getElementById("popup");t&&(t.style.display="none"),n.scene.postRender.removeEventListener(ue)}function We(t){const e=document.getElementById("popup");e&&(e.style.display="block",e.style.position="absolute",e.style.top=t.y-10+"px",e.style.left=t.x+10+"px",e.style.zIndex=99)}return(t,e)=>{const a=S("el-table-column"),o=S("el-table"),r=S("el-tooltip"),d=S("el-option"),i=S("el-select"),l=S("el-checkbox"),g=S("el-checkbox-group"),f=S("el-collapse-item"),p=S("el-collapse"),m=S("el-button");return y(),C("div",_t,[wt,s("div",xt,[s("div",St,[s("div",Ct,[Dt,s("p",{onClick:e[0]||(e[0]=c=>Ye())},[T(" \u4E0B\u8F7D \xA0 "),kt])]),s("div",{ref_key:"areaDiv",ref:he,class:"areaDiv"},null,512),s("div",{ref_key:"leftProgressBarDiv",ref:Ee,class:"ProgressBar"},null,512)]),s("div",Lt,[s("div",Mt,[Tt,s("p",{onClick:e[1]||(e[1]=c=>He())},[T(" \u4E0B\u8F7D \xA0 "),Wt])]),s("div",{ref_key:"typesofDiv",ref:be,class:"typesofDiv"},null,512),s("div",zt,[_(o,{data:b(ie),style:{width:"100%"}},{default:x(()=>[_(a,{prop:"date",label:"\u7C7B\u578B"}),_(a,{prop:"name",label:"\u9762\u79EF"}),_(a,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),s("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=c=>Ve())},[_(r,{class:"box-item","show-arrow":!1,disabled:b(P),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:x(()=>[b(P)?E("v-if",!0):(y(),C("img",It))]),_:1},8,["disabled"]),_(r,{disabled:!b(P),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:x(()=>[b(P)?(y(),C("img",Pt)):E("v-if",!0)]),_:1},8,["disabled"])])]),s("div",Nt,[s("div",Ft,[s("div",Bt,[Et,s("p",{onClick:e[3]||(e[3]=c=>Ke())},[T(" \u4E0B\u8F7D \xA0 "),At])]),s("div",{ref_key:"farmlandDiv",ref:ye,class:"farmlandDiv"},null,512),E(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),s("div",Rt,[s("div",Ot,[Xt,s("p",{onClick:e[4]||(e[4]=c=>et())},[T(" \u4E0B\u8F7D \xA0 "),Zt])]),_(i,{"popper-class":"select_city",onChange:e[5]||(e[5]=c=>Y(t.item)),modelValue:v.value,"onUpdate:modelValue":e[6]||(e[6]=c=>v.value=c),clearable:"",placeholder:"\u5168\u90E8"},{default:x(()=>[(y(!0),C(pe,null,me(b(k).arr,c=>(y(),ge(d,{key:c.streetCode,label:c.streetName,value:c.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),s("div",{ref_key:"ASdivisionDiv",ref:_e,class:"ASdivision"},null,512)]),s("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=c=>$e())},[_(r,{disabled:!b(N),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:x(()=>[b(N)?(y(),C("img",qt)):E("v-if",!0)]),_:1},8,["disabled"]),_(r,{disabled:b(N),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:x(()=>[b(N)?E("v-if",!0):(y(),C("img",Qt))]),_:1},8,["disabled"])])]),s("div",Gt,[_(bt)]),Jt,_(p,{class:"legend",accordion:""},{default:x(()=>[_(f,{name:"1"},{title:x(()=>[T("\u56FE\u4F8B")]),default:x(()=>[s("div",Vt,[_(g,{modelValue:j.value,"onUpdate:modelValue":e[8]||(e[8]=c=>j.value=c),onChange:t.change},{default:x(()=>[(y(!0),C(pe,null,me(b(le),(c,I,B)=>(y(),ge(l,{key:B,style:nt({backgroundColor:c.color,border:"1px solid value.color",width:"100%"}),"v-model":c.disabled,disabled:c.disabled,label:I},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),s("div",$t,[s("div",null,[T(" \u7B49\u7EA7\uFF1A "),s("p",null,O(L.value.grade),1)]),s("div",null,[T(" \u7ECF\u5EA6\uFF1A "),s("p",null,O(L.value.lon),1)]),s("div",null,[T(" \u7EAC\u5EA6\uFF1A "),s("p",null,O(L.value.lat),1)]),s("div",{class:"cancel",onClick:J},"X")]),s("div",jt,[(y(!0),C(pe,null,me(b(q).label,(c,I)=>(y(),C("div",{key:I},[s("div",null,O(c.crop)+"\uFF1A",1),s("div",null,O(c.Shape_Area)+" \u4EA9",1)]))),128)),b(q).XZQMC?(y(),C("div",Ut,[Yt,s("div",null,O(b(q).XZQMC),1)])):E("v-if",!0),s("div",{class:"cancel",onClick:J},"X")]),Z.value?(y(),ge(m,{key:0,class:"back_button",onClick:e[9]||(e[9]=c=>tt())},{default:x(()=>[T("\u8FD4\u56DE")]),_:1})):E("v-if",!0)])}}},ia=st(Ht,[["__scopeId","data-v-252bfa44"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/drought/Drought.vue"]]);export{ia as default};