2 lines
28 KiB
JavaScript
2 lines
28 KiB
JavaScript
import{z as R,_ as rt,r as u,A as pe,B as st,C as lt,D as me,d as C,o as y,c as k,l as s,m as T,e as _,w,f as b,g as E,J as ge,K as ve,k as he,Q as nt,x as O,y as it,p as dt,q as ct}from"./index.770945b1.js";import re from"./downloads.e955445d.js";import{_ as se}from"./close1.45635d81.js";import{_ as ut,a as ft,b as pt,c as mt,d as gt,e as vt}from"./linesGL.90f708a5.js";import{i as ae,L as oe}from"./index.c9f5bd8b.js";import{T as ht}from"./TimeLine.436c6eb2.js";import{u as be}from"./useEcharts.a6becf8f.js";import{d as V}from"./download.9fd0dee8.js";function We(h){return R({url:"equipment/statisticsOfTheArea",method:"get",params:h})}function Ie(h){return R({url:"equipment/proportionOfTheArea",method:"get",params:h})}function Fe(h){return R({url:"equipment/eachFreezingGradeArea",method:"get",params:h})}function Pe(h){return R({url:"equipment/townshipArea",method:"get",params:h})}function Ae(h){return R({url:"equipment/administrativeArea",method:"get",params:h})}function bt(){return R({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=>(dt("data-v-158b2a96"),h=h(),ct(),h),yt={class:"center"},_t=D(()=>s("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),xt={class:"leftWra"},wt={class:"leftTop"},St={class:"title"},Ct=D(()=>s("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),kt=D(()=>s("img",{src:re,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Dt={class:"leftbottom"},Lt={class:"title"},Tt=D(()=>s("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),zt=D(()=>s("img",{src:re,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Mt={class:"tableDiv"},Wt={key:0,src:se,alt:""},It={key:0,class:"imgrotate",src:se,alt:""},Ft={class:"rightWra"},Pt={class:"rightTop"},At={class:"title"},Nt=D(()=>s("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Et=D(()=>s("img",{src:re,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Bt={class:"rightbottom"},Ot={class:"title"},Rt=D(()=>s("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Xt=D(()=>s("img",{src:re,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Zt={key:0,src:se,alt:""},qt={key:0,class:"imgrotate",src:se,alt:""},Qt={class:"bottom_center"},Gt=it('<div class="tool" data-v-158b2a96><span data-v-158b2a96><img src="'+ut+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+ft+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+pt+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+mt+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+gt+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+vt+'" alt="" data-v-158b2a96></span></div>',1),Jt={class:"mt-4"},$t={id:"popup"},Vt={id:"pop"},jt={key:0},Ut=D(()=>s("div",null,"\u6751\u540D\uFF1A",-1)),Yt={__name:"Freeze",setup(h){let i=u(null);const ye=u(null),_e=u(null),xe=u(null);u(null);const we=u(null),v=u("370211"),Ne=u(null);let S=pe({arr:[],brr:[],crr:[]});const L=u({}),Ee=u([]),X=u(!1);let W=u(!1),I=u(!1);const j=u(["false"]);let Se=u([]),Z=pe({lable:[],value:[]}),U=u([]),le=u(0),Ce=["\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"],F={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},ne={\u65E0\u51BB\u5BB3:{color:"rgba(9, 187, 222, 1)",disabled:!1},\u8F7B\u5EA6\u51BB\u5BB3:{color:"rgba(255, 235, 59, 1)",disabled:!1},\u4E2D\u5EA6\u51BB\u5BB3:{color:"rgba(234, 165, 93, 1)",disabled:!1},\u91CD\u5EA6\u51BB\u5BB3:{color:"rgba(215, 25, 28, 0.8)",disabled:!1}};st(()=>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"\u65E0\u51BB\u5BB3":Y(1,o);break;case"\u8F7B\u5EA6\u51BB\u5BB3":Y(2,o);break;case"\u4E2D\u5EA6\u51BB\u5BB3":Y(3,o);break;case"\u91CD\u5EA6\u51BB\u5BB3":Y(4,o);break}}):t.length<e.length&&e.filter(o=>{if(t.findIndex(d=>d===o)<0)return o}).forEach(o=>{console.log(o),P([o])})});var q={title:[]};let x={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},ie=u([]);lt(()=>{ke("370211"),De("370211"),Ve(),ue("370211"),Oe(),K(),ee(),Le(),J(),Xe();for(const a in ne)ne[a].disabled!==!0&&(console.log(a),Se.value.push(a));j.value=Se.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 Be={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(){i=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({...Be})}),i.cesiumWidget.creditContainer.style.display="none",Te("shuzisannong:huangdaoqu_town","shuzisannong:huangdaoqu_town"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),Ze(),at()}function de(t,e,a){t.forEach(o=>{let r=[];o[0].forEach(d=>{r.push(d[0]),r.push(d[1])}),i.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 Re(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 Xe(){me({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),Ee.value=t.data.features}).catch(t=>{})}let Q=u({label:[]}),G="";function Ze(){var t=new Cesium.ScreenSpaceEventHandler(i.canvas);t.setInputAction(function(e){var a=i.camera.getPickRay(e.position),o=i.scene.globe.pick(a,i.scene);if(o){let r=Cesium.Cartographic.fromCartesian(o);if(r){let d=new Cesium.Cartesian2,n=i.camera.positionCartographic.height,l=Re(n);const g=i.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(z=>{if(z.length>0){let M=z[0];if(M.properties&&M.properties.XZDM)if(console.log("XZDM:",G),console.log("newData.properties.XZDM:",M.properties.XZDM),G!==M.properties.XZDM){X.value=!0,G=M.properties.XZDM,v.value=G,H&&H();let B=M.data;i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(B.bbox[0],B.bbox[1],B.bbox[2],B.bbox[3]),duration:2}),A("townLine"),de(B.geometry&&B.geometry.coordinates,"townLine","yellow"),P(["village_CQL"]),Ge(`XZDM=${M.properties.XZDM}`,"village_CQL");let te=i.entities._entities._array;for(var N=te.length-1;N>=0;N--)if(te[N]._name&&te[N]._name==="point"+M.properties.XZDM){let ot=te[N]._info;Q.value=ot,Me(e.position),i.scene.postRender.addEventListener(fe)}A("villageLine"),ce=""}else qe(g,d,l,r,e);else P(["village_CQL"]),$()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let ce="";function qe(t,e,a,o,r){const d=t.findIndex(n=>n._imageryProvider._layers&&n._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(d>-1){const n=t[d];let l=n._imageryProvider;if(l&&l.ready&&l._layers&&n.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),i.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(ce!==p.properties.XZQDM){ce=p.properties.XZQDM;let m=p.data;A("villageLine"),de(m.geometry&&m.geometry.coordinates,"villageLine","yellow")}else Qe(t,e,a,o,r)}})}}}function Qe(t,e,a,o,r){console.log(o);const d=t.findIndex(n=>n._imageryProvider._layers&&n._imageryProvider._layers==="shuzisannong:LST1");if(d>-1){const n=t[d];let l=n._imageryProvider;if(l&&l.ready&&l._layers&&n.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 1:m="\u65E0\u51BB\u5BB3";break;case 2:m="\u8F7B\u5EA6\u51BB\u5BB3";break;case 3:m="\u4E2D\u5EA6\u51BB\u5BB3";break;case 4:m="\u91CD\u5EA6\u51BB\u5BB3";break}let c=Cesium.Math.toDegrees(o.longitude).toFixed(6),z=Cesium.Math.toDegrees(o.latitude).toFixed(6);L.value={lon:c,lat:z,grade:m},console.log(L.value),Me(r.position),i.scene.postRender.addEventListener(fe)}})}}}function Ge(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,i.imageryLayers.addImageryProvider(a)}function Y(t,e){let a=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:LST1",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:`value in (${t})`}});a.customName=e,i.imageryLayers.addImageryProvider(a)}function P(t,e){if(i){const a=i.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&&i.imageryLayers.remove(a[o]):a[o]._imageryProvider.customName===r&&i.imageryLayers.remove(a[o]))})}}function A(t){if(i){let a=i.entities._entities._array;for(var e=a.length-1;e>=0;e--)a[e]._name&&a[e]._name===t&&i.entities.remove(a[e])}}function Je(){if(W.value=!W.value,W.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(I.value=!I.value,I.value){let t=document.querySelector(".rightWra");t.style.transform="translate(0,0)"}else{let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"}}const ke=t=>{Z=pe({lable:[],value:[]}),We({divisions:t}).then(e=>{e.data.forEach(a=>{Z.lable.push(a.level),Z.value.push(a.area)}),K()})},De=t=>{U=u([]),ie=u([]),le=u(0),Ie({divisions:t}).then(e=>{e.data.forEach(a=>{le.value+=Number(a.area),U.value.push({name:a.level,value:a.area}),ie.value.push({date:a.level,name:`${a.area}\u4EA9`,address:`${(a.percentage*100).toFixed(2)}%`})}),console.log(U.value),ee()})},Ve=()=>{Fe().then(t=>{Ce.forEach((e,a)=>{let o=t.data.map(r=>{if(e===r.region)return r});Object.keys(F).forEach(r=>{let d=0;o.findIndex(l=>(l&&l.level===r&&(d=l.area),l&&l.level===r))>-1?F[r].push(d):F[r].push(0)})}),Le()})},ue=t=>{Pe({divisions:t}).then(e=>{S.brr=e.data,S.arr=e.data.sort((n,l)=>n.streetName.length-l.streetName.length),S.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let a=[],o=[];S.arr.forEach(n=>{a.indexOf(n.streetName)==-1&&(a.push(n.streetName),o.push({streetName:n.streetName,streetCode:n.streetCode}))}),S.arr=o,console.log(S.arr);let r=[...e.data],d=[];r.splice(0,1),r.forEach(n=>{d.indexOf(n.streetName)==-1&&d.push(n.streetName)}),q.title=[...Object.values(d)],q.title.forEach((n,l)=>{let g=e.data.map(f=>{if(n===f.streetName)return f});Object.keys(x).forEach(f=>{g.findIndex(m=>m&&m.type===f)>-1?x[f].push(1):x[f].push(null)})}),J()})},je=t=>{Ae({divisions:t}).then(e=>{S.brr=e.data;let a=[...e.data],o=[];a.splice(0,1),a.forEach(r=>{o.indexOf(r.streetName)==-1&&o.push(r.streetName)}),q.title=[...Object.values(o)],q.title.forEach((r,d)=>{let n=e.data.map(l=>{if(r===l.streetName)return l});Object.keys(x).forEach(l=>{n.findIndex(f=>f&&f.type===l)>-1?x[l].push(1):x[l].push(null)})}),J()})},H=()=>{if(bt().then(t=>{console.log(t),t.features.forEach(e=>{e.properties.XZDM==v.value&&(A("townLine"),de(e.geometry.coordinates,"townLine","yellow"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]),duration:0}))})}),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),A("townLine"),ke(v.value),De(v.value),je(v.value),v.value=="370211"){P(["village_CQL"]),G=null,P(["aaa"]),ue(),$(),J(),K(),ee();return}J(),K(),ee(),[...S.arr]},Ue=t=>{We({divisions:v.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},Ye=t=>{Ie({divisions:v.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},He=t=>{Fe({divisions:v.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},Ke=t=>{v.value==="370211"?Pe({divisions:v.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)}):Ae({divisions:v.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})};function K(){const t=ae(ye.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:Z.lable,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:Z.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 ee(){const t=ae(_e.value);var e=U.value;let a={color:["rgba(9, 187, 222, 0.8)","rgba(255, 235, 59, 0.8)","rgba(234, 165, 93, 0.8)","rgba(215, 25, 28, 0.8)","#585247","#7F6AAD","#009D85","rgba(250,250,250,0.3)"],title:{text:"\u603B\u9762\u79EF",subtext:`${(le.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} <br/>\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u51B7\u51BB\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%"],label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};be(t,a)}function Le(){const t=ae(xe.value);console.log(x);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:Ce,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:"\u65E0\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:F.\u65E0\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(9, 187, 222, 1)",color:new oe(0,0,0,1,[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}])}}},{name:"\u8F7B\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:F.\u8F7B\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 235, 59, 1)",color:new oe(0,0,0,1,[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}])}}},{name:"\u4E2D\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:F.\u4E2D\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 165, 93, 1)",color:new oe(0,0,0,1,[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}])}}},{name:"\u91CD\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:F.\u91CD\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(215, 25, 28, 1)",color:new oe(0,0,0,1,[{offset:0,color:"rgba(215, 25, 28, 0.8)"},{offset:1,color:"rgba(215, 25, 28, 0.8)"}])}}}]};t.on("click",function(a){console.log(a.name)}),e&&t.setOption(e,{notMerge:!0,grid:{bottom:20}}),be(t,e)}function Te(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=i.imageryLayers.addImageryProvider(a);e.indexOf("gbznt")>-1&&(i.imageryLayers.lowerToBottom(o),i.imageryLayers.raise(o))}function et(){ue("370211"),delete Q.value.XZQMC,A("townLine"),A("villageLine"),P(["gbznt"],!0),P(["aaa"]),v.value="370211",H(),X.value==="1"&&(console.log(X.value),Te("shuzisannong:huangdaoqu_town","tl")),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),X.value=!1,$()}function J(){const t=ae(we.value);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(a){let o=0;return S.brr.forEach(r=>{r.type==a.seriesName&&r.streetName==a.name&&(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:q.title,inverse:!0}],series:[{type:"bar",name:"\u65E0\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u65E0\u51BB\u5BB3",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(9, 187, 222, 1)"},{offset:1,color:"rgba(9, 187, 222, 1)"}]}},data:x.\u65E0\u51BB\u5BB3},{type:"bar",name:"\u8F7B\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F7B\u5EA6\u51BB\u5BB3",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(255, 235, 59, 1)"},{offset:1,color:"rgba(255, 235, 59, 1)"}]}},data:x.\u8F7B\u5EA6\u51BB\u5BB3},{type:"bar",name:"\u4E2D\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u4E2D\u5EA6\u51BB\u5BB3",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, 1)"},{offset:1,color:"rgba(234, 165, 93, 1)"}]}},data:x.\u4E2D\u5EA6\u51BB\u5BB3},{type:"bar",name:"\u91CD\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u91CD\u5EA6\u51BB\u5BB3",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(215, 25, 28, 0.8)"},{offset:1,color:"rgba(215, 25, 28, 0.8)"}]}},data:x.\u91CD\u5EA6\u51BB\u5BB3}]};be(t,e)}function tt(){let t=ze.value;console.log("fl:",t),me({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]),n=Cesium.Rectangle.center(d);Cesium.Math.toDegrees(n.longitude),Cesium.Math.toDegrees(n.latitude),o.properties.XZDM==="370211011"||o.properties.XZDM;const l=t[o.properties.XZMC];l&&l.map((g,f)=>g.properties)})}).catch(e=>{})}let ze=u({});function at(){me({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]}),ze.value=a,tt()}).catch(t=>{})}function fe(){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(i.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 $(){const t=document.getElementById("popup");t&&(t.style.display="none"),i.scene.postRender.removeEventListener(fe)}function Me(t){console.log(111);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=C("el-table-column"),o=C("el-table"),r=C("el-tooltip"),d=C("el-option"),n=C("el-select"),l=C("el-checkbox"),g=C("el-checkbox-group"),f=C("el-collapse-item"),p=C("el-collapse"),m=C("el-button");return y(),k("div",yt,[_t,s("div",xt,[s("div",wt,[s("div",St,[Ct,s("p",{onClick:e[0]||(e[0]=c=>Ue())},[T(" \u4E0B\u8F7D \xA0 "),kt])]),s("div",{ref_key:"areaDiv",ref:ye,class:"areaDiv"},null,512),s("div",{ref_key:"leftProgressBarDiv",ref:Ne,class:"ProgressBar"},null,512)]),s("div",Dt,[s("div",Lt,[Tt,s("p",{onClick:e[1]||(e[1]=c=>Ye())},[T(" \u4E0B\u8F7D \xA0 "),zt])]),s("div",{ref_key:"typesofDiv",ref:_e,class:"typesofDiv"},null,512),s("div",Mt,[_(o,{data:b(ie),style:{width:"100%"}},{default:w(()=>[_(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=>Je())},[_(r,{class:"box-item","show-arrow":!1,disabled:b(W),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:w(()=>[b(W)?E("v-if",!0):(y(),k("img",Wt))]),_:1},8,["disabled"]),_(r,{disabled:!b(W),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:w(()=>[b(W)?(y(),k("img",It)):E("v-if",!0)]),_:1},8,["disabled"])])]),s("div",Ft,[s("div",Pt,[s("div",At,[Nt,s("p",{onClick:e[3]||(e[3]=c=>He())},[T(" \u4E0B\u8F7D \xA0 "),Et])]),s("div",{ref_key:"farmlandDiv",ref:xe,class:"farmlandDiv"},null,512),E(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),s("div",Bt,[s("div",Ot,[Rt,s("p",{onClick:e[4]||(e[4]=c=>Ke())},[T(" \u4E0B\u8F7D \xA0 "),Xt])]),_(n,{"popper-class":"select_city",onChange:e[5]||(e[5]=c=>H(t.item)),modelValue:v.value,"onUpdate:modelValue":e[6]||(e[6]=c=>v.value=c),clearable:"",placeholder:"\u5168\u90E8"},{default:w(()=>[(y(!0),k(ge,null,ve(b(S).arr,c=>(y(),he(d,{key:c.streetCode,label:c.streetName,value:c.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),s("div",{ref_key:"ASdivisionDiv",ref:we,class:"ASdivision"},null,512)]),s("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=c=>$e())},[_(r,{disabled:!b(I),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:w(()=>[b(I)?(y(),k("img",Zt)):E("v-if",!0)]),_:1},8,["disabled"]),_(r,{disabled:b(I),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:w(()=>[b(I)?E("v-if",!0):(y(),k("img",qt))]),_:1},8,["disabled"])])]),s("div",Qt,[_(ht)]),Gt,_(p,{class:"legend",accordion:""},{default:w(()=>[_(f,{name:"1"},{title:w(()=>[T("\u56FE\u4F8B")]),default:w(()=>[s("div",Jt,[_(g,{modelValue:j.value,"onUpdate:modelValue":e[8]||(e[8]=c=>j.value=c),onChange:t.change},{default:w(()=>[(y(!0),k(ge,null,ve(b(ne),(c,z,N)=>(y(),he(l,{key:N,style:nt({backgroundColor:c.color,border:"1px solid value.color",width:"100%"}),"v-model":c.disabled,disabled:c.disabled,label:z},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:$},"X")]),s("div",Vt,[(y(!0),k(ge,null,ve(b(Q).label,(c,z)=>(y(),k("div",{key:z},[s("div",null,O(c.crop)+"\uFF1A",1),s("div",null,O(c.Shape_Area)+" \u4EA9",1)]))),128)),b(Q).XZQMC?(y(),k("div",jt,[Ut,s("div",null,O(b(Q).XZQMC),1)])):E("v-if",!0),s("div",{class:"cancel",onClick:$},"X")]),X.value?(y(),he(m,{key:0,class:"back_button",onClick:e[9]||(e[9]=c=>et())},{default:w(()=>[T("\u8FD4\u56DE")]),_:1})):E("v-if",!0)])}}},la=rt(Yt,[["__scopeId","data-v-158b2a96"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/freeze/Freeze.vue"]]);export{la as default};
|