2024-08-06 15:05:43 +08:00
|
|
|
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});le
|
|
|
|
</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};
|