import{H as F,_ as ke,r as d,A as Le,V as Ee,W as Ae,U as J,a1 as ze,d as w,o as f,c as L,l as i,m as M,e as q,w as x,L as O,N as Q,f as m,k as N,g as W,F as De,x as qe,y as je,p as Ve,q as Fe}from"./index.afd881ee.js";import Te from"./downloads.4cdbbcc5.js";import{_ as se}from"./close1.45635d81.js";import{_ as Ge,a as Ie,b as Me,c as Ne}from"./position.a021215f.js";import{_ as We,a as Be}from"./TimeLine.vue_vue_type_style_index_0_scoped_26e8a223_lang.891b9335.js";import{_ as Pe}from"./icon.d0cb5387.js";import"./index.6098b0aa.js";import"./linesGL.306b5757.js";import{T as Re}from"./TimeLine.7d9e99e3.js";import{u as ae}from"./useEcharts.a1c5140e.js";import{i as ne,L as Je}from"./install.6cb28b74.js";function re(c){return F({url:"equipment/abandon",method:"get",params:c})}function Oe(c){return F({url:"equipment/abandonChun",method:"get",params:c})}function Qe(c){return F({url:"equipment/abandonHuoChun",method:"get",params:c})}function $e(c){return F({url:"equipment/cityAndCountZb",method:"get",params:c})}function He(c){return F({url:"equipment/lhdyear",method:"get",params:c})}const S=c=>(Ve("data-v-722f0c81"),c=c(),Fe(),c),Ye={class:"center"},Ue=S(()=>i("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Ze={class:"rightWra"},Xe={class:"rightbottom"},Ke={class:"title"},et=S(()=>i("span",null,"\u6482\u8352\u8015\u5730\u9762\u79EF\u7EDF\u8BA1",-1)),tt=S(()=>i("img",{src:Te,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ot={class:"rightbottom"},at=S(()=>i("div",{class:"title"},[i("span",null,"\u6482\u8352\u8015\u5730\u9762\u79EF\u5360\u6BD4")],-1)),nt={key:0,src:se,alt:""},rt={key:0,class:"imgrotate",src:se,alt:""},st={class:"mt-4"},lt={class:"bottom_center"},it=je('
',1),dt={id:"popup",class:"ol-popup"},ct=S(()=>i("div",{class:"pophead",style:{width:"100%"}},[i("div",{id:"popup-title",style:{"font-size":"20px","font-weight":"400","letter-spacing":"1px",color:"rgba(246, 255, 255, 1)","line-height":"42px","padding-left":"45px"}}),i("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),ut={id:"popup-content",style:{padding:"10px"}},pt={class:"perform_children"},ft=S(()=>i("img",{src:Pe},null,-1)),gt=S(()=>i("span",null,"\u6482\u8352\u5730",-1)),ht=S(()=>i("div",{id:"popup-pagination"},null,-1)),mt={__name:"index",setup(c){d(null);const $=d(null),H=d(null);let E=Le({arr:[],brr:[],crr:[]}),v=d([]);const h=d("370211");d({info:[]});const le=d(!1);d(!0);let C=d(!0);const j=d([]);let Y=d([]),B=d([]),P=d([]),k=d("");const ie=e=>{de(e)},de=e=>{let t=document.createElement("a");t.style.display="none",t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)};let R={\u6482\u8352\u5730:{color:"rgba(175, 110, 250, 0.8)",disabled:!1}},A={\u6482\u8352\u5730:{setOf:"2022-06-01-gengdi",name:"T2022_06_01_liaohuang"}},T=d(null);Ee(()=>{ce()});function ce(){ye(),ue(),me(),he(),be();for(const e in R)R[e].disabled!==!0&&Y.value.push(e);j.value=Y.value,console.log(j.value)}Ae(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="block"}),J(()=>k.value,(e,t)=>{h.value="370211",ee(k.value.name)});let l=d(null);d(null),d(null);let U=d(null),G=d(null);function ue(){var e=document.querySelector(".center"),t=document.getElementById("cesiumContainer");l=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.Tianditu({layerType:"img",key:"1d109683f4d84198e37a38c442d68311"})})]}),pe(),fe(),l.on("moveend",function(o){var a=l.getView().getZoom();a>=13?T.setVisible(!0):T.setVisible(!1)}),l.on("singleclick",function(o){var a=o.coordinate,s=a[0],g=a[1],V=l.getView(),y=l.getView().getZoom();console.log(s,g),V.animate({center:[s,g],duration:1e3}),y>=13?Z(o,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):Z(o,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547")});var r=new ResizeObserver(function(o){o.forEach(function(a){var s=a.contentRect.width,g=a.contentRect.height;t.style.width=s+"px",t.style.height=g+"px",l.updateSize()})});r.observe(e)}const pe=()=>{T=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"huangdaoqu_village",projection:"EPSG:4326",zIndex:9999}),l.addLayer(T)},fe=()=>{var e=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),projection:"EPSG:4326",zIndex:9999});l.addLayer(e)},ge=e=>{let t=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+`/map-${e.setOf}/rest/maps/${e.name}@${e.setOf}`,cacheEnabled:!1}),name:e.name,projection:"EPSG:4326"});l.addLayer(t)};function Z(e,t,r,o){let a=[];var s=new ol.geom.Point(e.coordinate),g=new ol.supermap.QueryByGeometryParameters({queryParams:{name:t},geometry:s});let V=document.querySelector("#popup-title"),y=d(null),z=d(null);new ol.supermap.QueryService(r).queryByGeometry(g,function(n){z=l.getLayers().getArray().find(u=>u.get("id")==="zhezhao"),l.removeLayer(z);let _="";if(o=="\u9547"&&n.result.recordsets[0].features.features[0].properties.XJQYDM){let u=n.result.recordsets[0].features.features[0].properties.XJQYDM;h.value=u;let b=[];re({divisions:"370211",yearMonth:k.value.name}).then(D=>{D.data.forEach(p=>{console.log(p.subregionCode,u),p.subregionCode==u&&(_=p.subregionName,b.push(p))}),I(),B.value=b})}else if(o=="\u6751"&&n.result.recordsets[0].features.features[0].properties.CJQYDM){let u=n.result.recordsets[0].features.features[0].properties.CJQYDM,b=[];Qe({divisions:u,yearMonth:k.value.name}).then(D=>{D.data.forEach(p=>{p.subregionCode==u&&(_=p.subregionName,console.log(p),b.push(p))}),B.value=b,I()})}function I(){if(n.result.currentCount>0){console.log(n.result.recordsets[0].features),n.result.recordsets[0].features&&(G.setPosition(s.flatCoordinates),console.log(_),V.innerHTML=_),y=l.getLayers().getArray().find(Ce=>Ce.get("id")==="dianjigaoliang"),l.removeLayer(y);var u=new ol.format.GeoJSON().readFeatures(n.result.recordsets[0].features);a=n.result.recordsets[0].features.features[0].geometry.coordinates,X(n.result.recordsets[0].features.features[0].geometry.coordinates);var b=new ol.source.Vector;b.addFeatures(u);const p=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var D=new ol.layer.Vector({id:"dianjigaoliang",source:b,zIndex:9999});D.setStyle(p),l.addLayer(D)}}}),U.addEventListener("click",function(){z=l.getLayers().getArray().find(n=>n.get("id")==="zhezhao"),l.removeLayer(z),K(a),h.value="370211",y=l.getLayers().getArray().find(n=>n.get("id")==="dianjigaoliang"),l.removeLayer(y),G.setPosition(void 0)})}const he=()=>{document.getElementById("popup"),document.getElementById("popup-content"),U=document.getElementById("popup-closer"),G=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),l.addOverlay(G)};function me(){ze.get("/json/huangdao.json").then(({data:e})=>{const r=new ol.format.GeoJSON().readFeatures(e)[0];X(r.getGeometry().getCoordinates(),"huandao")})}function X(e,t){let r=new ol.source.Vector;var o=new ol.layer.Vector({id:t||"zhezhao",source:r,style:new ol.style.Style({fill:new ol.style.Fill({color:"rgba( 105, 105, 105, 0.9)"})})});const a=K(e),s=new ol.Feature({geometry:a});o.getSource().addFeature(s),l.addLayer(o)}function K(e){console.log(e);const t=[-180,-90,180,90],r=ol.geom.Polygon.fromExtent(t),o=e;return console.log(o),o.forEach(a=>{const s=new ol.geom.LinearRing(a[0]);r.appendLinearRing(s)}),r}J(()=>h.value,()=>{we()}),J(()=>j.value,(e,t)=>{e.length>t.length?e.filter(o=>{if(t.findIndex(s=>s===o)<0)return o}).forEach(o=>{A[o]&&(console.log(A[o]),ge(A[o]))}):e.length{if(e.findIndex(s=>s===o)<0)return o}).forEach(o=>{A[o]&&(l.getLayers().getArray().indexOf(A[o].name),console.log(l.getLayers().getArray()),l.getLayers().getArray().forEach((a,s)=>{a.A.name&&a.A.name==A[o].name&&l.getLayers().removeAt(s)}))})});function ve(){if(C.value=!C.value,C.value){let e=document.querySelector(".rightWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"}}const ye=()=>{He().then(e=>{k.value={name:e.data[0]},e.data.forEach(t=>{P.value.push({name:t})})})},ee=e=>{E.arr=[],v.value=[],re({yearMonth:e}).then(t=>{console.log(t.data),t.data.forEach(a=>{a.wasteland>0&&(E.arr.push(a),v.value.push(a))}),E.arr.unshift({subregionCode:"370211",subregionName:"\u5168\u90E8"}),console.log(E.arr);let r=[...t.data],o=[];r.splice(0,1),r.forEach(a=>{o.push(a.subregionCode)}),[...Object.values(o)],te(E.arr),oe()})},_e=(e,t)=>{v.value=[],Oe({divisions:e,yearMonth:t}).then(r=>{r.data.forEach(o=>{o.wasteland>0&&v.value.push(o)}),te(),oe()})},be=e=>{$e({divisions:e}).then(t=>{console.log(t.data)})},we=()=>{h.value=="370211"?ee():h.value&&_e(h.value,k.value.name)},xe=e=>{k.value=e};function te(){const e=ne($.value);v.value.sort((s,g)=>g.wasteland-s.wasteland);var t=[],r=[];v.value.forEach(s=>{t.push(s.subregionName),r.push(Number(s.wasteland).toFixed(2))}),console.log(r);let o=3/v.value.length*100;var a={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!0,top:"10",right:"5%",textStyle:{color:"rgba(255,255,255,.9)"},itemWidth:20,itemHeight:12.5,icon:"rect",backgroundColor:"transparent"},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"90%",start:0,end:o,show:!1,showDataShadow:!1,showDetail:!1,fillerColor:"rgba(64, 158, 255)",borderRadius:"50%",moveHandleSize:0,moveHandleStyle:{},left:"35%",height:12,handleSize:"80%",handleIcon:"path://M512,512m-448,0a448,448,0,1,0,896,0a448,448,0,1,0,-896,0Z",handleStyle:{borderWidth:0,color:"rgba(64, 158, 255)"}},{type:"inside"}],grid:{left:"5%",right:"5%",bottom:"9%",top:"10%",containLabel:!0},xAxis:{data:t,triggerEvent:!0,axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"#70F5FE"}},axisLabel:{show:!0,rotate:0,interval:0,textStyle:{padding:[8,0,0,0],fontSize:14,color:"rgba(21, 222, 255, 0.8)"}}},yAxis:{name:"",triggerEvent:!0,nameTextStyle:{color:"rgba(255,255,255,1)",fontSize:16,padding:[0,0,10,-20]},splitLine:{show:!0,lineStyle:{color:"#A6D9F6",type:"dashed"}},axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"rgba(24, 255, 255, 0.8)",fontSize:14}}},series:[{name:"\u9762\u79EF(\u4EA9)",barMinHeight:10,type:"pictorialBar",barCategoryGap:"60%",symbolOffset:[1,-5],symbol:"path://M0,10 L10,10 C5.5,10 5.5,5 5,0 C4.5,5 4.5,10 0,10 z",itemStyle:{normal:{color:new Je(0,0,0,1,[{offset:0,color:"rgba(175, 110, 250, 1)"},{offset:1,color:"rgba(175, 110, 250, 0.8)"}])}},label:{show:!0,position:"top",textStyle:{color:"#ffffff"}},data:r,z:0}]};e.on("click",s=>Se(s)),ae(e,a)}function oe(){const e=ne(H.value);let t=v.value,r=0;t.forEach(a=>{a.name=a.subregionName,a.value=Number(a.wasteland).toFixed(2),r+=a.wasteland});let o={color:["rgba(49, 235, 7, 1)","rgba(84, 170, 255, 1)","rgba(255, 251, 0, 1)","rgba(255, 168, 8, 1)","rgba(255, 0, 255, 1)"],title:{text:"\u6482\u8352\u8015\u5730\u603B\u9762\u79EF",subtext:`${r.toFixed(2)}\u4EA9`,textStyle:{color:"#f2f2f2",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a}
{b} : {c}\u4EA9
\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u6482\u8352\u8015\u5730\u9762\u79EF\u5360\u6BD4",data:t},{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"}}}]}]};ae(e,o)}function Se(e){console.log("\u53F3\u4E0B\u70B9\u51FB",e)}return(e,t)=>{const r=w("el-option"),o=w("el-select"),a=w("el-tooltip"),s=w("el-checkbox"),g=w("el-checkbox-group"),V=w("el-collapse-item"),y=w("el-collapse"),z=w("el-button");return f(),L("div",Ye,[Ue,i("div",Ze,[i("div",Xe,[i("div",Ke,[et,i("p",{onClick:t[0]||(t[0]=n=>ie("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[M(" \u4E0B\u8F7D \xA0 "),tt])]),q(o,{"popper-class":"select_city",modelValue:h.value,"onUpdate:modelValue":t[1]||(t[1]=n=>h.value=n),clearable:"",placeholder:"\u5168\u90E8"},{default:x(()=>[(f(!0),L(O,null,Q(m(E).arr,n=>(f(),N(r,{key:n.subregionCode,label:n.subregionName,value:n.subregionCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i("div",{ref_key:"ASdivisionDiv",ref:$,class:"ASdivision"},null,512)]),i("div",ot,[at,i("div",{ref_key:"typesofDiv",ref:H,class:"typesofDiv"},null,512)]),i("div",{class:"rightFoldDiv",onClick:t[2]||(t[2]=n=>ve())},[q(a,{disabled:!m(C),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:x(()=>[m(C)?(f(),L("img",nt)):W("v-if",!0)]),_:1},8,["disabled"]),q(a,{disabled:m(C),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:x(()=>[m(C)?W("v-if",!0):(f(),L("img",rt))]),_:1},8,["disabled"])])]),q(y,{class:"legend",accordion:""},{default:x(()=>[q(V,{name:"1"},{title:x(()=>[M("\u56FE\u4F8B")]),default:x(()=>[i("div",st,[q(g,{modelValue:j.value,"onUpdate:modelValue":t[4]||(t[4]=n=>j.value=n),onChange:e.change},{default:x(()=>[(f(!0),L(O,null,Q(m(R),(n,_,I)=>(f(),N(s,{key:I,style:De({background:n.color,border:`1px solid ${n.color}`,width:"100%"}),modelValue:e.checked3,"onUpdate:modelValue":t[3]||(t[3]=u=>e.checked3=u),disabled:n.disabled,label:_},null,8,["style","modelValue","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),i("div",lt,[m(P).length>0?(f(),N(Re,{key:0,dataSource:m(P),onDataHandle:xe},null,8,["dataSource"])):W("v-if",!0)]),it,i("div",dt,[ct,i("div",ut,[(f(!0),L(O,null,Q(m(B),(n,_)=>(f(),L("div",{class:"perform",key:_},[i("div",pt,[ft,gt,M(" : "),i("span",null,qe(Number(n.wasteland).toFixed(2))+"(\u4EA9)",1)])]))),128))]),ht]),le.value?(f(),N(z,{key:0,class:"back_button",onClick:t[5]||(t[5]=n=>e.back())},{default:x(()=>[M("\u8FD4\u56DE")]),_:1})):W("v-if",!0)])}}},At=ke(mt,[["__scopeId","data-v-722f0c81"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/plough/abandonedLand/index.vue"]]);export{At as default};