5 lines
32 KiB
JavaScript
5 lines
32 KiB
JavaScript
import{_ as Qe,u as We,r as s,a7 as ze,x as Ye,ag as qe,H as Re,S as je,d as J,o as K,c as ce,l as M,e as S,w,f as D,k as O,m as de,V as Ve,W as Ne,A as $e,K as me,M as ve,J as he,q as Oe,s as Ue}from"./index.9f28707e.js";import{_ as en,a as nn}from"./zhankaiss.6870329f.js";import{_ as an,a as on}from"./face.d3470a20.js";import{g as ge,a as ye,b as tn,S as q,T as R,F as _,R as Me,C as sn,c as pn,V as rn,M as ln,d as un,_ as fn,L as Se,P as be,e as cn,f as dn}from"./Modify.35edce3c.js";import"./index.2809c208.js";import{u as we}from"./useEcharts.342dbaed.js";import"./linesGL.76a64914.js";import{e as mn}from"./element-resize-detector.d4d1cd8d.js";import{b as vn,c as hn,d as gn,g as yn}from"./ssnyygsj.f988d3a3.js";import{ai as Mn,aj as G}from"./linkSeriesData.e74eae00.js";import"./index.030fe210.js";import"./browser-detector.d146ab9e.js";const I=Q=>(Oe("data-v-8771f93f"),Q=Q(),Ue(),Q),Sn={class:"center"},bn=I(()=>M("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),wn={class:"rightWra"},Dn=I(()=>M("img",{src:en},null,-1)),Ln=I(()=>M("img",{src:nn},null,-1)),xn={class:"tool"},_n=I(()=>M("img",{src:an,alt:""},null,-1)),Cn=I(()=>M("img",{src:on,alt:""},null,-1)),Bn=I(()=>M("img",{src:fn,alt:""},null,-1)),Tn={class:"TimeBox"},Pn={style:{color:"white","font-size":"11px"}},Jn={class:"InTimeContrl"},Fn={__name:"index2",setup(Q){const j=We(),U=s([]);let L=s(!1),F=s(!1),B=s(!1);function De(i){console.log(i)}function Le(){if(F.value=!F.value,F.value){let i=document.querySelector(".rightWra");i.style.transform="translate(0,0)"}else{let i=document.querySelector(".rightWra");i.style.transform="translate(101%,0)"}}s(""),s([]),s("");let W=s(!1);const ee=s("null");let z=s(null);s([]),s("2");let xe=s([]),X=s(1);s([]),s(!0);let g=s([]),_e=s([]),Ce=s([]);s("");let Be=s(""),Te=s("");s("\u9AD8\u6807\u51C6\u519C\u7530");let n=s([]),ne=s(!1),ae=s(!1);ze(()=>{vn().then(i=>{console.log(i,"\u83B7\u53D6\u5E74"),i.data.length>0&&(U.value=i.data)}),hn().then(i=>{console.log(i,"\u9AD8\u6807\u51C6\u519C\u7530")}),gn().then(i=>{console.log(i,"\u5360\u6BD4\u60C5\u51B5")}),yn().then(i=>{console.log(i,"\u83B7\u53D6\u5168\u90E8\u9547")})}),Ye(()=>{Pe(),Je(),Ie(),ke(),He("\u9AD8\u6807\u51C6\u519C\u7530");var i=window.location.host,o=/^(([-\u4E00-\u9FA5a-z0-9]{1,63})\.)+([\u4E00-\u9FA5a-z]{2,63})\.?$/;o.test(i)?(alert("\u8BF7\u4F7F\u7528\u91D1\u5B8F\u7F51\u8BBF\u95EE\u672C\u9875\u9762!"),qe().delView(j.currentRoute.value),j.go(-1)):console.log("\u91D1\u5B8F\u7F51");let r=document.querySelector(".rightWra");r.style.transform="translate(101%,0)",localStorage.setItem(j.currentRoute.value.path,!0)}),Re(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="block"});let c=s(null);s(null);let T=s(null),oe=s(null),Y=s(null);function Pe(){console.log(ol,"ol");var i=document.querySelector(".center"),o=document.getElementById("cesiumContainer");c=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.88661841637813,35.85667692242919],zoom:11,maxZoom:16.5,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.XYZ({url:`${serverAPI.tiandituLayers}`,projection:serverAPI.flag?"EPSG:4326":"EPSG:3857"}),preload:20})]}),Fe(),Xe(),c.on("moveend",function(l){var u=c.getView().getZoom();u>=13?z.setVisible(!0):z.setVisible(!1)}),c.on("singleclick",function(l){n=s([]);var u=l.coordinate,d=u[0],t=u[1],a=c.getView();c.getView().getZoom(),a.animate({center:[d,t],duration:1e3}),xe.value.forEach(p=>{layersDic[p]?ie(l,layersDic[p].setOf,`${serverAPI.geoserverUrl2}/${layersDic[p].name}/rest/maps/${layersDic[p].setOf}`,p):layersGbz[p]&&ie(l,layersGbz[p].setOf,`${serverAPI.geoserverUrl2}/${layersGbz[p].name}/rest/maps/${layersGbz[p].setOf}`,p)})});var r=new ResizeObserver(function(l){l.forEach(function(u){var d=u.contentRect.width,t=u.contentRect.height;o.style.width=d+"px",o.style.height=t+"px",c.updateSize()})});r.observe(i)}function ie(i,o,r,l){var u=new ol.geom.Point(i.coordinate),d=new ol.supermap.QueryByGeometryParameters({queryParams:{name:o},geometry:u});let t=document.querySelector("#popup-title"),a=s(null);var p=s(1),b=1;new ol.supermap.QueryService(r).queryByGeometry(d,function(h){if(h.result.currentCount>0){n.value.push({name:l,information:h.result.recordsets[0].features.features[0].properties}),n.value.length>1?ne.value=!0:ne.value=!1,h.result.recordsets[0].features&&(Y.setPosition(u.flatCoordinates),n.value[0].name>=2019?(t.innerHTML="\u9AD8\u6807\u51C6\u519C\u7530",T.innerHTML='<div class="content-children"><p id="P-id">\u9879\u76EE\u540D\u79F0: <span>'+n.value[0].information.XMMC+"</span></p><p>\u9879\u76EE\u7F16\u53F7: <span>"+n.value[0].information.XMBH+"</span></p><p>\u9879\u76EE\u9762\u79EF: <span>"+n.value[0].information.XMMJ+"</span></p><p>\u5730\u5757\u9762\u79EF: <span>"+n.value[0].information.DKMJ+"</span></p><p>\u6807\u8BC6\u7801: <span>"+n.value[0].information.BSM+"</span></p><p>\u5730\u5757\u7F16\u53F7: <span>"+n.value[0].information.DKBH+"</span></p><p>\u9879\u76EE\u5E74\u4EFD: <span>"+n.value[0].information.XMNF+"</span></p></div>"):n.value[0].name>=2011&&n.value[0].name<=2018?(t.innerHTML="\u9AD8\u6807\u51C6\u519C\u7530",T.innerHTML='<div class="content-children"><p id="P-id">\u9879\u76EE\u540D\u79F0:<span>'+n.value[0].information.XMMC+"</span></p><p>\u6807\u8BC6\u7801: <span>"+n.value[0].information.BSM+"</span></p><p>\u5730\u5757\u9762\u79EF: <span>"+n.value[0].information.DIKUAIAREA+"</span></p><p>\u5730\u5757\u7528\u9014/\u7C7B\u578B: <span>"+n.value[0].information.DLBM+"</span></p><p>\u9879\u76EE\u7F16\u53F7: <span>"+n.value[0].information.XMBH+"</span></p></div>"):n.value[0].name=="\u6C38\u4E45\u57FA\u672C\u519C\u7530"?(t.innerHTML="\u6C38\u4E45\u57FA\u672C\u519C\u7530",T.innerHTML='<div class="content-children"><p>\u7C7B\u578B: <span>'+n.value[0].name+"</span></p><p>\u5730\u7C7B\u540D\u79F0: <span>"+n.value[0].information.DLMC+"</span></p><p>\u6743\u5C5E\u6027\u8D28: <span>"+n.value[0].information.QSXZ+"</span></p><p>\u6743\u5C5E\u5355\u4F4D\u540D\u79F0: <span>"+n.value[0].information.QSDWMC+"</span></p><p>\u5750\u843D\u5355\u4F4D\u540D\u79F0: <span>"+n.value[0].information.ZLDWMC+"</span></p><p>\u6263\u9664\u5730\u7C7B\u7F16\u7801: <span>"+n.value[0].information.KCDLBM+"</span></p><p>\u6263\u9664\u7CFB\u6570: <span>"+n.value[0].information.KCXS+"</span></p><p>\u6263\u9664\u9762\u79EF: <span>"+n.value[0].information.KCMJ+"</span></p><p>\u8015\u5730\u7C7B\u578B: <span>"+n.value[0].information.GDLX+"</span></p><p>\u8015\u5730\u5761\u5EA6\u7EA7\u522B: <span>"+n.value[0].information.GDPDJB+"</span></p><p>\u79CD\u690D\u5C5E\u6027\u4EE3\u7801: <span>"+n.value[0].information.ZZSXDM+"</span></p><p>\u79CD\u690D\u5C5E\u6027\u540D\u79F0: <span>"+n.value[0].information.ZZSXMC+"</span></p><p>\u8015\u5730\u7B49\u7EA7: <span>"+n.value[0].information.GDDJ+"</span></p><p>\u6570\u636E\u5E74\u4EFD: <span>"+n.value[0].information.SJNF+"</span></p><p>\u4FDD\u62A4\u5F00\u59CB\u65F6\u95F4: <span>"+n.value[0].information.BHKSSJ+"</span></p><p>\u6C38\u4E45\u57FA\u672C\u519C\u7530\u9762\u79EF: <span>"+(n.value[0].information.YJJBNTMJ_Y/666).toFixed(2)+"(\u4EA9)</span></p></div>"):n.value[0].name=="\u8015\u5730"?(t.innerHTML="\u8015\u5730",T.innerHTML='<div class="content-children"><p>\u5730\u7C7B\u540D\u79F0: <span>'+n.value[0].information.DLMC+"</span></p><p>\u6743\u5C5E\u5355\u4F4D\u540D\u79F0: <span>"+n.value[0].information.QSDWMC+"</span></p><p>\u5750\u843D\u5355\u4F4D\u540D\u79F0: <span>"+n.value[0].information.ZLDWMC+"</span></p><p>\u6263\u9664\u5730\u7C7B\u7F16\u7801: <span>"+n.value[0].information.KCDLBM+"</span></p><p>\u6263\u9664\u7CFB\u6570: <span>"+n.value[0].information.KCXS+"</span></p><p>\u6263\u9664\u9762\u79EF: <span>"+n.value[0].information.KCMJ+"</span></p><p>\u8015\u5730\u7C7B\u578B: <span>"+n.value[0].information.GDLX+"</span></p><p>\u8015\u5730\u5761\u5EA6\u7EA7\u522B: <span>"+n.value[0].information.GDPDJB+"</span></p><p>\u79CD\u690D\u5C5E\u6027\u4EE3\u7801: <span>"+n.value[0].information.ZZSXDM+"</span></p><p>\u79CD\u690D\u5C5E\u6027\u540D\u79F0: <span>"+n.value[0].information.ZZSXMC+"</span></p><p>\u6570\u636E\u5E74\u4EFD: <span>"+n.value[0].information.SJNF+"</span></p><p>\u56FE\u6591\u9762\u79EF: <span>"+(n.value[0].information.TBMJ_YS/666).toFixed(2)+"(\u4EA9)</span></p><p>\u56FE\u6591\u5730\u7C7B\u9762\u79EF: <span>"+(n.value[0].information.TBDLMJ_YS/666).toFixed(2)+"(\u4EA9)</span></p></div>"):n.value[0].name=="\u7247\u5757\u4FE1\u606F"?(t.innerHTML="\u7247\u5757\u4FE1\u606F",T.innerHTML='<div class="content-children"><p>\u6807\u8BC6\u7801: <span>'+n.value[0].information.BSM+"</span></p><p>\u8981\u7D20\u4EE3\u7801: <span>"+n.value[0].information.YSDM+"</span></p><p>\u4E24\u533A\u4EE3\u7801: <span>"+n.value[0].information.LQDM+"</span></p><p>\u4E24\u533A\u7247\u5757\u4EE3\u7801: <span>"+n.value[0].information.LQPKDM+"</span></p><p>\u4E24\u533A\u7247\u5757\u9762\u79EF(\u4EA9): <span>"+n.value[0].information.LQPKMJM+"</span></p><p>\u7247\u5757\u7C7B\u578B: <span>"+n.value[0].information.PKLX+"</span></p></div>"):n.value[0].name=="\u5730\u5757\u4FE1\u606F"?(t.innerHTML="\u5730\u5757\u4FE1\u606F",T.innerHTML='<div class="content-children"><p>\u6807\u8BC6\u7801: <span>'+n.value[0].information.BSM+"</span></p><p>\u8981\u7D20\u4EE3\u7801: <span>"+n.value[0].information.YSDM+"</span></p><p>\u4E24\u533A\u7247\u5757\u4EE3\u7801: <span>"+n.value[0].information.LQPKDM+"</span></p><p>\u4E24\u533A\u7C7B\u578B: <span>"+n.value[0].information.LQLX+"</span></p><p>\u533A\u57DF\u5212\u5206\u7C7B\u578B: <span>"+n.value[0].information.QYHFLX+"</span></p><p>\u4E24\u533A\u5730\u5757\u4EE3\u7801: <span>"+n.value[0].information.LQDKDM+"</span></p><p>\u4E24\u533A\u5730\u5757\u9762\u79EF(\u4EA9): <span>"+n.value[0].information.LQDKMJM+"</span></p><p>\u98DE\u5165\u5730\u6807\u8BC6: <span>"+n.value[0].information.FRDBS+"</span></p><p>\u5761\u5EA6\u7EA7\u522B: <span>"+n.value[0].information.PDJB+"</span></p><p>\u662F\u5426\u9AD8\u6807\u51C6\u519C\u7530: <span>"+n.value[0].information.SFGBZNT+"</span></p><p>\u7ECF\u8425\u4E3B\u4F53\u7C7B\u578B: <span>"+n.value[0].information.JYZTLX+"</span></p></div>"):n.value[0].name=="\u571F\u5730\u786E\u6743"?(t.innerHTML="\u571F\u5730\u786E\u6743",W.value=!0,ge({dkbm:n.value[0].information.DKBM}).then(v=>{let P=[];v.data[0].cbdkxxes.forEach(H=>{P.push(H.cyxm)}),T.innerHTML='<div class="content-children"><p>\u8981\u7D20\u4EE3\u7801: <span>'+n.value[0].information.YSDM+"</span></p><p>\u5730\u5757\u7F16\u7801: <span>"+n.value[0].information.DKBM+"</span></p><p>\u5730\u5757\u540D\u79F0: <span>"+n.value[0].information.DKMC+"</span></p><p>\u6240\u6709\u6743\u6027\u8D28: <span>"+n.value[0].information.SYQXZ+"</span></p><p>\u5730\u5757\u7C7B\u522B:<span>"+n.value[0].information.DKLB+"</span></p><p>\u571F\u5730\u5229\u7528\u7C7B\u578B: <span>"+n.value[0].information.TDLYLX+"</span></p><p>\u5730\u529B\u7B49\u7EA7: <span>"+n.value[0].information.DLDJ+"</span></p><p>\u571F\u5730\u7528\u9014: <span>"+n.value[0].information.TDYT+"</span></p><p>\u662F\u5426\u57FA\u672C\u519C\u7530: <span>"+n.value[0].information.SFJBNT+"</span></p><p>\u5B9E\u6D4B\u9762\u79EF\u4EA9: <span>"+(n.value[0].information.SCMJ/666).toFixed(2)+"</span></p><p>\u627F\u5305\u65B9: <span>"+v.data[0].cbfmc+"</span></p><p>\u627F\u5305\u65B9\u5BB6\u5EAD\u6210\u5458:<span>"+P.join(",")+"</span></p></div>",W.value=!1})):n.value[0].name=="\u571F\u5730\u5229\u7528\u73B0\u72B6"&&(t.innerHTML="\u571F\u5730\u5229\u7528\u73B0\u72B6",T.innerHTML='<div class="content-children"><p>\u6807\u8BC6\u7801: <span>'+n.value[0].information.BSM+"</span></p><p>\u5730\u7C7B\u540D\u79F0: <span>"+n.value[0].information.DLMC+"</span></p><p>\u56FE\u6591\u9762\u79EF: <span>"+(n.value[0].information.TBMJ/666).toFixed(2)+"(\u4EA9)</span></p><p>\u5750\u843D\u5355\u4F4D\u540D\u79F0: <span>"+n.value[0].information.ZLDWMC+"</span></p><p>\u6743\u5C5E\u6027\u8D28: <span>"+n.value[0].information.QSXZ+"</span></p><p>\u6743\u5C5E\u5355\u4F4D\u540D\u79F0: <span>"+n.value[0].information.QSDWMC+"</span></p><p>\u8015\u5730\u5761\u5EA6\u7EA7\u522B: <span>"+n.value[0].information.GDPDJB+"</span></p><p>\u98DE\u5165\u5730\u6807\u8BC6: <span>"+n.value[0].information.FRDBS+"</span></p><p>\u79CD\u690D\u7C7B\u578B: <span>"+n.value[0].information.ZZSXMC+"</span></p></div>"));var C=c.getLayers().getArray().find(v=>v.get("id")==="zhezhao");c.removeLayer(C),a=c.getLayers().getArray().find(v=>v.get("id")==="dianjigaoliang"),c.removeLayer(a);var x=new ol.format.GeoJSON().readFeatures(h.result.recordsets[0].features),f=new ol.source.Vector;f.addFeatures(x);const e=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var m=new ol.layer.Vector({id:"dianjigaoliang",source:f,zIndex:9999});m.setStyle(e),c.addLayer(m)}}),oe.addEventListener("click",function(){a=c.getLayers().getArray().find(h=>h.get("id")==="dianjigaoliang"),c.removeLayer(a),Y.setPosition(void 0)}),document.getElementById("popup-prev").addEventListener("click",function(){p.value>1&&(p.value--,y(),p.value<=1&&(ae.value=!1))}),document.getElementById("popup-next").addEventListener("click",function(h){var C=n.value.length,x=Math.ceil(C/b);p.value<x&&(p.value++,y(),p.value==x&&(ae.value=!0))});function y(){var h=(p.value-1)*b,C=h+b,x=n.value;let f=document.getElementById("popup-content");for(var m=h;m<C&&m<x.length;m++){var e=x[m];e.name>=2019?(t.innerHTML="\u9AD8\u6807\u51C6\u519C\u7530",f.innerHTML='<div class="content-children"><p>\u7C7B\u578B: <span>\u9AD8\u6807\u51C6\u519C\u7530</span></p><p>\u9879\u76EE\u7F16\u53F7: <span>'+e.information.XMBH+"</span></p><p>\u9879\u76EE\u9762\u79EF: <span>"+e.information.XMMJ+"</span></p><p>\u5730\u5757\u9762\u79EF: <span>"+e.information.DKMJ+"</span></p><p>\u6807\u8BC6\u7801: <span>"+e.information.BSM+"</span></p><p>\u5730\u5757\u7F16\u53F7: <span>"+e.information.DKBH+"</span></p><p>\u9879\u76EE\u5E74\u4EFD: <span>"+e.information.XMNF+'</span></p><p id="P-id">\u9879\u76EE\u540D\u79F0: <span>'+e.information.XMMC+"</span></p></div>"):e.name>=2011&&e.name<=2018?(t.innerHTML="\u9AD8\u6807\u51C6\u519C\u7530",f.innerHTML='<div class="content-children"><p>\u6807\u8BC6\u7801: <span>'+e.information.BSM+"</span></p><p>\u5730\u5757\u9762\u79EF: <span>"+e.information.DIKUAIAREA+"</span></p><p>\u5730\u5757\u7528\u9014/\u7C7B\u578B: <span>"+e.information.DLBM+"</span></p><p>\u9879\u76EE\u7F16\u53F7: <span>"+e.information.XMBH+'</span></p><p id="P-id">\u9879\u76EE\u540D\u79F0:<span>'+e.information.XMMC+"</span></p></div>"):e.name=="\u6C38\u4E45\u57FA\u672C\u519C\u7530"?(t.innerHTML="\u6C38\u4E45\u57FA\u672C\u519C\u7530",f.innerHTML='<div class="content-children"><p>\u7C7B\u578B: <span>'+e.name+"</span></p><p>\u5730\u7C7B\u540D\u79F0: <span>"+e.information.DLMC+"</span></p><p>\u6743\u5C5E\u6027\u8D28: <span>"+e.information.QSXZ+"</span></p><p>\u6743\u5C5E\u5355\u4F4D\u540D\u79F0: <span>"+e.information.QSDWMC+"</span></p><p>\u5750\u843D\u5355\u4F4D\u540D\u79F0: <span>"+e.information.ZLDWMC+"</span></p><p>\u6263\u9664\u5730\u7C7B\u7F16\u7801: <span>"+e.information.KCDLBM+"</span></p><p>\u6263\u9664\u7CFB\u6570: <span>"+e.information.KCXS+"</span></p><p>\u6263\u9664\u9762\u79EF: <span>"+e.information.KCMJ+"</span></p><p>\u8015\u5730\u7C7B\u578B: <span>"+e.information.GDLX+"</span></p><p>\u8015\u5730\u5761\u5EA6\u7EA7\u522B: <span>"+e.information.GDPDJB+"</span></p><p>\u79CD\u690D\u5C5E\u6027\u4EE3\u7801: <span>"+e.information.ZZSXDM+"</span></p><p>\u79CD\u690D\u5C5E\u6027\u540D\u79F0: <span>"+e.information.ZZSXMC+"</span></p><p>\u8015\u5730\u7B49\u7EA7: <span>"+e.information.GDDJ+"</span></p><p>\u6570\u636E\u5E74\u4EFD: <span>"+e.information.SJNF+"</span></p><p>\u4FDD\u62A4\u5F00\u59CB\u65F6\u95F4: <span>"+e.information.BHKSSJ+"</span></p><p>\u6C38\u4E45\u57FA\u672C\u519C\u7530\u9762\u79EF: <span>"+(e.information.YJJBNTMJ_Y/666).toFixed(2)+"(\u4EA9)</span></p></div>"):e.name=="\u8015\u5730"?(t.innerHTML="\u8015\u5730",f.innerHTML='<div class="content-children"><p>\u7C7B\u578B: <span>'+e.name+"</span></p><p>\u5730\u7C7B\u540D\u79F0: <span>"+e.information.DLMC+"</span></p><p>\u6743\u5C5E\u5355\u4F4D\u540D\u79F0: <span>"+e.information.QSDWMC+"</span></p><p>\u5750\u843D\u5355\u4F4D\u540D\u79F0: <span>"+e.information.ZLDWMC+"</span></p><p>\u6263\u9664\u5730\u7C7B\u7F16\u7801: <span>"+e.information.KCDLBM+"</span></p><p>\u6263\u9664\u7CFB\u6570: <span>"+e.information.KCXS+"</span></p><p>\u6263\u9664\u9762\u79EF: <span>"+e.information.KCMJ+"</span></p><p>\u8015\u5730\u7C7B\u578B: <span>"+e.information.GDLX+"</span></p><p>\u8015\u5730\u5761\u5EA6\u7EA7\u522B: <span>"+e.information.GDPDJB+"</span></p><p>\u79CD\u690D\u5C5E\u6027\u4EE3\u7801: <span>"+e.information.ZZSXDM+"</span></p><p>\u79CD\u690D\u5C5E\u6027\u540D\u79F0: <span>"+e.information.ZZSXMC+"</span></p><p>\u6570\u636E\u5E74\u4EFD: <span>"+e.information.SJNF+"</span></p><p>\u56FE\u6591\u9762\u79EF: <span>"+(e.information.TBMJ_YS/666).toFixed(2)+"(\u4EA9)</span></p><p>\u56FE\u6591\u5730\u7C7B\u9762\u79EF: <span>"+(e.information.TBDLMJ_YS/666).toFixed(2)+"(\u4EA9)</span></p></div>"):e.name=="\u7247\u5757\u4FE1\u606F"?(t.innerHTML="\u7247\u5757\u4FE1\u606F",f.innerHTML='<div class="content-children"><p>\u7C7B\u578B: <span>'+e.name+"</span></p><p>\u6807\u8BC6\u7801: <span>"+e.information.BSM+"</span></p><p>\u8981\u7D20\u4EE3\u7801: <span>"+e.information.YSDM+"</span></p><p>\u4E24\u533A\u4EE3\u7801: <span>"+e.information.LQDM+"</span></p><p>\u4E24\u533A\u7247\u5757\u4EE3\u7801: <span>"+e.information.LQPKDM+"</span></p><p>\u4E24\u533A\u7247\u5757\u9762\u79EF(\u4EA9): <span>"+e.information.LQPKMJM+"</span></p><p>\u7247\u5757\u7C7B\u578B: <span>"+e.information.PKLX+"</span></p></div>"):e.name=="\u5730\u5757\u4FE1\u606F"?(t.innerHTML="\u5730\u5757\u4FE1\u606F",f.innerHTML='<div class="content-children"><p>\u7C7B\u578B: <span>'+e.name+"</span></p><p>\u6807\u8BC6\u7801: <span>"+e.information.BSM+"</span></p><p>\u8981\u7D20\u4EE3\u7801: <span>"+e.information.YSDM+"</span></p><p>\u4E24\u533A\u7247\u5757\u4EE3\u7801: <span>"+e.information.LQPKDM+"</span></p><p>\u4E24\u533A\u7C7B\u578B: <span>"+e.information.LQLX+"</span></p><p>\u533A\u57DF\u5212\u5206\u7C7B\u578B: <span>"+e.information.QYHFLX+"</span></p><p>\u4E24\u533A\u5730\u5757\u4EE3\u7801: <span>"+e.information.LQDKDM+"</span></p><p>\u4E24\u533A\u5730\u5757\u540D\u79F0: <span>"+e.information.LQDKMC+"</span></p><p>\u4E24\u533A\u5730\u5757\u9762\u79EF(\u4EA9): <span>"+e.information.LQDKMJM+"</span></p><p>\u98DE\u5165\u5730\u6807\u8BC6: <span>"+e.information.FRDBS+"</span></p><p>\u5761\u5EA6\u7EA7\u522B: <span>"+e.information.PDJB+"</span></p><p>\u662F\u5426\u9AD8\u6807\u51C6\u519C\u7530: <span>"+e.information.SFGBZNT+"</span></p><p>\u7ECF\u8425\u4E3B\u4F53\u7C7B\u578B: <span>"+e.information.JYZTLX+"</span></p></div>"):e.name=="\u571F\u5730\u786E\u6743"?(t.innerHTML="\u571F\u5730\u786E\u6743",W.value=!0,ge({dkbm:e.information.DKBM}).then(v=>{let P=[];v.data[0].cbdkxxes.forEach(H=>{P.push(H.cyxm)}),f.innerHTML='<div class="content-children"><p>\u7C7B\u578B: <span>'+e.name+"</span></p><p>\u8981\u7D20\u4EE3\u7801: <span>"+e.information.YSDM+"</span></p><p>\u5730\u5757\u7F16\u7801: <span>"+e.information.DKBM+"</span></p><p>\u5730\u5757\u540D\u79F0: <span>"+e.information.DKMC+"</span></p><p>\u6240\u6709\u6743\u6027\u8D28: <span>"+e.information.SYQXZ+"</span></p><p>\u5730\u5757\u7C7B\u522B:<span>"+e.information.DKLB+"</span></p><p>\u571F\u5730\u5229\u7528\u7C7B\u578B: <span>"+e.information.TDLYLX+"</span></p><p>\u5730\u529B\u7B49\u7EA7: <span>"+e.information.DLDJ+"</span></p><p>\u571F\u5730\u7528\u9014: <span>"+e.information.TDYT+"</span></p><p>\u662F\u5426\u57FA\u672C\u519C\u7530: <span>"+e.information.SFJBNT+"</span></p><p>\u5B9E\u6D4B\u9762\u79EF\u4EA9: <span>"+(e.information.SCMJ/666).toFixed(2)+"</span></p><p>\u627F\u5305\u65B9: <span>"+v.data[0].cbfmc+"</span></p><p>\u627F\u5305\u65B9\u5BB6\u5EAD\u6210\u5458:<span>"+P.join(",")+"</span></p></div>",W.value=!1})):e.name=="\u571F\u5730\u5229\u7528\u73B0\u72B6"&&(t.innerHTML="\u571F\u5730\u5229\u7528\u73B0\u72B6",f.innerHTML='<div class="content-children"><p>\u6807\u8BC6\u7801: <span>'+e.information.BSM+"</span></p><p>\u5730\u7C7B\u540D\u79F0: <span>"+e.information.DLMC+"</span></p><p>\u56FE\u6591\u9762\u79EF: <span>"+(e.information.TBMJ/666).toFixed(2)+"(\u4EA9)</span></p><p>\u5750\u843D\u5355\u4F4D\u540D\u79F0: <span>"+e.information.ZLDWMC+"</span></p><p>\u6743\u5C5E\u6027\u8D28: <span>"+e.information.QSXZ+"</span></p><p>\u6743\u5C5E\u5355\u4F4D\u540D\u79F0: <span>"+e.information.QSDWMC+"</span></p><p>\u8015\u5730\u5761\u5EA6\u7EA7\u522B: <span>"+e.information.GDPDJB+"</span></p><p>\u98DE\u5165\u5730\u6807\u8BC6: <span>"+e.information.FRDBS+"</span></p><p>\u79CD\u690D\u7C7B\u578B: <span>"+e.information.ZZSXMC+"</span></p></div>")}}}const Je=()=>{document.getElementById("popup"),T=document.getElementById("popup-content"),oe=document.getElementById("popup-closer"),Y=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),c.addOverlay(Y)},Fe=()=>{z=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl2+"/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"CJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999}),c.addLayer(z)},Xe=()=>{var i=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl2+"/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"XJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999});c.addLayer(i)};s({label:[]});const ke=()=>{ye().then(i=>{Ce.value=i.data})},He=i=>{tn({flag:i}).then(o=>{Te.value=o.data[o.data.length-1].zSum,Be.value=o.data[o.data.length-1].zQuantity,g.value=o.data,Ge()})},Ie=i=>{ye().then(o=>{_e.value=o.data})},te=new q({text:new R({font:"12px Calibri,sans-serif",fill:new _({color:"rgba(255, 255, 255, 1)"}),backgroundFill:new _({color:"rgba(0, 0, 0, 0.4)"}),padding:[2,2,2,2],textBaseline:"bottom",offsetY:-12}),image:new Me({radius:6,points:3,angle:Math.PI,displacement:[0,8],fill:new _({color:"rgba(0, 0, 0, 0.4)"})})}),V=new q({image:new sn({radius:5,stroke:new pn({color:"rgba(0, 0, 0, 0.7)"}),fill:new _({color:"rgba(0, 0, 0, 0.4)"})}),text:new R({text:"Drag to modify",font:"12px Calibri,sans-serif",fill:new _({color:"rgba(255, 255, 255, 1)"}),backgroundFill:new _({color:"rgba(0, 0, 0, 0.7)"}),padding:[2,2,2,2],textAlign:"left",offsetX:15})}),A=[te];var se,k,E,Z;function N(){Z&&(c.removeLayer(Z),Z=null),k&&(c.removeInteraction(k),k=null),E=null}function Ae(){B.value=!B.value,N(),ue("length")}function Ee(){B.value=!B.value,N(),ue("area")}function Ze(){B.value=!B.value,N()}const pe=new q({text:new R({font:"12px Calibri,sans-serif",fill:new _({color:"red"}),backgroundFill:new _({color:"rgba(0, 0, 0, 0.4)"}),padding:[2,2,2,2],textAlign:"left",offsetX:15})}),$=new q({text:new R({font:"14px Calibri,sans-serif",fill:new _({color:"rgba(255, 255, 255, 1)"}),backgroundFill:new _({color:"rgba(0, 0, 0, 0.4)"}),padding:[3,3,3,3],textBaseline:"bottom",offsetY:-15}),image:new Me({radius:8,points:3,angle:Math.PI,displacement:[0,10],fill:new _({color:"rgba(0, 0, 0, 0.4)"})})});var re=function(i){var o=cn(i,{projection:c.getView().getProjection()}),r;return o>1e3?r=Math.round(o/1e3*100)/100+" km":r=Math.round(o*100)/100+" m",r},Ke=function(i){var o=dn(i,{projection:c.getView().getProjection()}),r;return o>1e4?r=Math.round(o/1e6*100)/100+" km\xB2":r=Math.round(o*100)/100+" m\xB2",r};function le(i,o,r,l){const u=[style],d=i.getGeometry(),t=d.getType();let a,p,b;if((!r||r===t)&&(t==="Polygon"?(a=d.getInteriorPoint(),p=Ke(d),b=new Se(d.getCoordinates()[0])):t==="LineString"&&(a=new be(d.getLastCoordinate()),p=re(d),b=d)),o&&b){let y=0;b.forEachSegment(function(h,C){const x=new Se([h,C]),f=re(x);A.length-1<y&&A.push(te.clone());const m=new be(x.getCoordinateAt(.5));A[y].setGeometry(m),A[y].getText().setText(f),u.push(A[y]),y++})}return p&&($.setGeometry(a),$.getText().setText(p),u.push($)),l&&t==="Point"&&!E.getOverlay().getSource().getFeatures().length&&(se=d,pe.getText().setText(l),u.push(pe)),u}function ue(i){let o=i==="area"?"Polygon":"LineString",r="\u53CC\u51FB\u53F3\u952E\u7ED3\u675F\u7ED8\u5236",l="\u8BF7\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5F00\u59CB\u7ED8\u5236",u=l,d=new rn;E=new ln({source:d,style:V}),Z=new un({source:d,zIndex:9998,style:function(t){return le(t,!0)}}),c.addLayer(Z),k=new ol.interaction.Draw({source:d,type:o,style:function(t){return le(t,!0,o,u)},condition:function(t){return t.originalEvent.buttons===2}}),c.addInteraction(k),k.on("drawstart",function(t){d.clear(),E.setActive(!1),u=r},this),k.on("drawend",function(){V.setGeometry(se),E.setActive(!0),c.once("pointermove",function(){V.setGeometry()}),u=l},this)}function Ge(){const i=Mn(ee.value);let o=[],r=[],l=[],u=[{type:"bar",yAxisIndex:0,name:"\u9762\u79EF(\u4EA9)",barWidth:"15",itemStyle:{normal:{color:new G(0,0,0,1,[{offset:0,color:"rgba(255, 211, 81, 1)"},{offset:1,color:"rgba(255, 211, 81, 0)"}],!1),barBorderRadius:[100,100,0,0]}},renderItem:function(a,p){},data:r}];X.value=="1"?g.value.forEach(a=>{o.indexOf(a.year)==-1&&(o.push(a.name),r.push(a.sum))}):X.value=="2"?g.value.forEach(a=>{o.push(a.name),r.push(a.sum),l.push(a.quantity?a.quantity:0)}):X.value=="3"?(g.value.forEach(a=>{o.push(a.name),r.push(a.sum),l.push(a.quantity?a.quantity:0)}),u.push({type:"bar",yAxisIndex:0,name:"\u6570\u91CF(\u4E2A)",barWidth:"15",itemStyle:{normal:{color:new G(0,0,0,1,[{offset:0,color:"rgba(0, 209, 195, 0.8)"},{offset:1,color:"rgba(0, 209, 195, 0)"}],!1),barBorderRadius:[100,100,0,0]}},renderItem:function(a,p){},data:l})):X.value=="4"?(g.value.forEach(a=>{o.push(a.name),r.push(a.sum),l.push(a.quantity?a.quantity:0)}),u.push({type:"bar",yAxisIndex:0,name:"\u6570\u91CF(\u4E2A)",barWidth:"15",itemStyle:{normal:{color:new G(0,0,0,1,[{offset:0,color:"rgba(0, 209, 195, 0.8)"},{offset:1,color:"rgba(0, 209, 195, 0)"}],!1),barBorderRadius:[100,100,0,0]}},renderItem:function(a,p){},data:l})):X.value=="5"?(g.value.forEach(a=>{o.push(a.name),r.push(a.sum),l.push(a.quantity?a.quantity:0)}),u.push({type:"bar",yAxisIndex:0,name:"\u6570\u91CF(\u4E2A)",barWidth:"15",itemStyle:{normal:{color:new G(0,0,0,1,[{offset:0,color:"rgba(0, 209, 195, 0.8)"},{offset:1,color:"rgba(0, 209, 195, 0)"}],!1),barBorderRadius:[100,100,0,0]}},renderItem:function(a,p){},data:l})):X.value=="6"&&(g.value.forEach(a=>{o.push(a.name),r.push(a.sum),l.push(a.quantity?a.quantity:0)}),u.push({type:"bar",yAxisIndex:0,name:"\u6570\u91CF(\u4E2A)",barWidth:"15",itemStyle:{normal:{color:new G(0,0,0,1,[{offset:0,color:"rgba(0, 209, 195, 0.8)"},{offset:1,color:"rgba(0, 209, 195, 0)"}],!1),barBorderRadius:[100,100,0,0]}},renderItem:function(a,p){},data:l}));let d=10/o.length*100;if(X.value==1){let y=function(f,m){const e=[];return f.forEach((v,P)=>{const H=[];for(let fe=0;fe<P;fe++)H.push("");v&&(H.push(v),e.push({name:m,type:"bar",xAxisIndex:P,barWidth:10,data:H}))}),e},a=[],p=[],b=[];g.value.forEach(f=>{a.indexOf(f.year)==-1&&a.push(f.year)}),g.value.forEach(f=>{let m=[];a.forEach((e,v)=>{e==f.year?m.push(f.sum):m.push(void 0)}),p.push(m)}),p.forEach((f,m)=>{b.push(...y(p[m],`${g.value[m].name}`))});let h={xAxis:a.map((f,m)=>{const e=Array(a.length).fill("");return e[m]=f+"\u5E74",{type:"category",position:"bottom",data:e,axisLine:{lineStyle:{color:"rgba(153, 153, 153, 1)"}}}}),grid:{top:"10%",left:"5%",right:"5%",bottom:"0%",containLabel:!0},yAxis:{type:"value",axisLabel:{interval:0,color:"rgba(153, 153, 153, 1)"}},tooltip:{trigger:"axis",triggerOn:"click",enterable:!0,hideDelay:200,extraCssText:"max-width:200%;max-height:83%; overflow: auto;",axisPointer:{type:"shadow"},textStyle:{color:"#CFE3FC"},borderWidth:1,formatter:function(f){var m='<div class="aaa" style="height: auto;max-height: 240px;overflow-y: auto;">';return f.forEach(e=>{if(e.value>0){for(let v=0;v<g.value.length;v++)g.value[v].name==e.seriesName&&(m+=`<div style='height: auto;color:${e.color};border:1px solid${e.color};margin:5px 0;padding:5px'><div>${g.value[v].name}:</div>
|
|
\u6295\u8D44\u91D1\u989D\uFF1A${g.value[v].quantity} \u4E07\u5143<br/>
|
|
\u9762\u79EF\uFF1A${g.value[v].sum} \u4EA9
|
|
</div>`);m+="</div>"}}),m}},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"78%",start:0,end:d/3,show:!0,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"}],series:b},C=window.document.querySelector(".Farmland_area");C.style.height="350px",h&&i.setOption(h,{notMerge:!0,grid:{bottom:20}}),we(i,h),mn().listenTo(ee.value,()=>{je(()=>{i.resize()})})}else{var t={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:"rgba(9, 24, 48, 0.5)",borderColor:"rgba(75, 253, 238, 0.4)",textStyle:{color:"#CFE3FC"},borderWidth:1},grid:{left:"10px",right:"10px",top:"10px",bottom:"10px",containLabel:!0},toolbox:{show:!0,orient:"vertical",x:"right",y:"center"},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"90%",start:0,end:d/3,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"}],xAxis:[{type:"category",boundaryGap:!0,axisTick:{show:!1},data:o,axisLine:{lineStyle:{color:"rgba(120, 160, 236, 1)"}},axisLabel:{interval:0,color:"rgba(153, 153, 153, 1)",fontSize:14}}],yAxis:[{type:"value",axisTick:{show:!0},axisLine:{show:!0,lineStyle:{color:"rgba(120, 160, 236, 1)"},symbol:["none","arrow"],symbolSize:[5,12],symbolOffset:[0,10]},max:102,axisLabel:{interval:0,color:"rgba(153, 153, 153, 1)"},splitLine:{show:!1,lineStyle:{color:"rgba(39, 57, 75, 1)",width:1,type:"solid"}}}],series:u};let a=window.document.querySelector(".Farmland_area");a.style.height="70%",t&&i.setOption(t,{notMerge:!0,grid:{bottom:20}}),we(i,t)}}return(i,o)=>{const r=J("el-icon"),l=J("el-tooltip"),u=J("el-timeline-item"),d=J("el-timeline"),t=J("ArrowUpBold"),a=J("VideoPause"),p=J("VideoPlay"),b=J("ArrowDownBold");return K(),ce("div",Sn,[bn,M("div",wn,[M("div",{class:"rightFoldDiv",onClick:o[0]||(o[0]=y=>Le())},[S(l,{disabled:!D(F),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:w(()=>[D(F)?(K(),O(r,{key:0},{default:w(()=>[Dn]),_:1})):de("",!0)]),_:1},8,["disabled"]),S(l,{disabled:D(F),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:w(()=>[D(F)?de("",!0):(K(),O(r,{key:0},{default:w(()=>[Ln]),_:1}))]),_:1},8,["disabled"])]),M("div",xn,[M("span",{onClick:Ae},[S(l,{class:"box-item",disabled:D(B),"show-arrow":!1,"hide-after":"0","show-after":"200",effect:"dark",content:"\u6D4B\u91CF\u7EBF",placement:"left",offset:"1"},{default:w(()=>[_n]),_:1},8,["disabled"])]),M("span",{onClick:Ee},[S(l,{class:"box-item",disabled:D(B),"show-arrow":!1,"hide-after":"0","show-after":"200",effect:"dark",content:"\u6D4B\u91CF\u9762",placement:"left",offset:"1"},{default:w(()=>[Cn]),_:1},8,["disabled"])]),M("span",{onClick:Ze},[S(l,{class:"box-item",disabled:D(B),"show-arrow":!1,"hide-after":"0","show-after":"200",effect:"dark",content:"\u6E05\u9664",placement:"left",offset:"1"},{default:w(()=>[Bn]),_:1},8,["disabled"])])])]),M("div",Tn,[S(d,{style:{"max-width":"600px"}},{default:w(()=>[(K(!0),ce(Ve,null,Ne(U.value,(y,h)=>(K(),O(u,{key:h,color:"white",onClick:C=>De(h)},{default:w(()=>[M("p",Pn,$e(y),1)]),_:2},1032,["onClick"]))),128))]),_:1}),M("div",Jn,[S(r,{color:"white"},{default:w(()=>[S(t)]),_:1}),me(S(r,{color:"white",onClick:o[1]||(o[1]=y=>he(L)?L.value=!D(L):L=!D(L))},{default:w(()=>[S(a)]),_:1},512),[[ve,D(L)]]),me(S(r,{color:"white",onClick:o[2]||(o[2]=y=>he(L)?L.value=!D(L):L=!D(L))},{default:w(()=>[S(p)]),_:1},512),[[ve,!D(L)]]),S(r,{color:"white"},{default:w(()=>[S(b)]),_:1})])])])}}},Yn=Qe(Fn,[["__scopeId","data-v-8771f93f"]]);export{Yn as default};
|