Agriculture-front-end/dist/assets/Freeze.a4659427.js
2023-06-08 09:27:01 +08:00

2 lines
39 KiB
JavaScript

import{H as B,_ as Mt,r as p,A as Me,U as Tt,V as Ft,W as Te,d as D,o as y,c as N,l as n,m as L,e as c,w as b,f,g as W,L as J,N as Y,k as I,F as It,x as Q,G as Ge,C as Qe,D as Ue,y as Et,p as At,q as Pt}from"./index.9ec53a6c.js";import ve from"./downloads.e955445d.js";import{_ as he}from"./close1.45635d81.js";import{_ as Ot,a as Bt,b as Rt,c as Zt,d as Vt,e as qt}from"./linesGL.90f708a5.js";import{_ as Xt}from"./dow.f37c8d82.js";import{i as U,L as ge}from"./index.c9f5bd8b.js";import{T as $t}from"./TimeLine.25f0d6b1.js";import{u as me}from"./useEcharts.ff70d170.js";import{d as He}from"./download.77748578.js";import{u as Fe,w as jt}from"./xlsx.86b9426e.js";function Je(_){return B({url:"equipment/statisticsOfTheArea",method:"get",params:_})}function Ye(_){return B({url:"equipment/proportionOfTheArea",method:"get",params:_})}function Ke(_){return B({url:"equipment/eachFreezingGradeArea",method:"get",params:_})}function et(_){return B({url:"equipment/townshipArea",method:"get",params:_})}function tt(_){return B({url:"equipment/administrativeArea",method:"get",params:_})}function Gt(){return B({url:"http://36.134.44.75:9080/geoserver/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson",method:"get"})}function Qt(_){return B({url:"equipment/freezeWarningYear",method:"get",params:_})}function Ut(_){return B({url:"equipment/freezeWarning",method:"get",params:_})}const M=_=>(At("data-v-158b2a96"),_=_(),Pt(),_),Ht={class:"fatherDiv"},Jt={class:"centerBox"},Yt=M(()=>n("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Kt={class:"leftWra"},ea={class:"leftTop"},ta={class:"title"},aa=M(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),oa=M(()=>n("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ra={class:"leftbottom"},la={class:"title"},na=M(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),ia=M(()=>n("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),sa={class:"tableDiv"},da={key:0,src:he,alt:""},ua={key:0,class:"imgrotate",src:he,alt:""},ca={class:"rightWra"},fa={class:"rightTop"},pa={class:"title"},ga=M(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),ma=M(()=>n("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),va={class:"rightbottom"},ha={class:"title"},ba=M(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),ya=M(()=>n("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),_a={key:0,src:he,alt:""},wa={key:0,class:"imgrotate",src:he,alt:""},xa={class:"bottom_center"},Sa=Et('<div class="tool" data-v-158b2a96><span data-v-158b2a96><img src="'+Ot+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+Bt+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+Rt+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+Zt+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+Vt+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+qt+'" alt="" data-v-158b2a96></span></div>',1),Ca={class:"mt-4"},ka={id:"popup"},Da={id:"pop"},Na={key:0},La=M(()=>n("div",null,"\u6751\u540D\uFF1A",-1)),za={class:"tabulation"},Wa={class:"searchDiv"},Ma=M(()=>n("img",{src:Xt,alt:""},null,-1)),Ta={class:"tableBox"},Fa={class:"tableBorder"},Ia=["onClick"],Ea=["onClick"],Aa={class:"example-pagination-block"},Pa={class:"chartMode"},Oa={__name:"Freeze",setup(_){let m=p(null);const Ie=p(null),Ee=p(null),Ae=p(null);p(null);const Pe=p(null),k=p("370211"),at=p(null);let T=Me({arr:[],brr:[],crr:[]});const E=p({}),ot=p([]),K=p(!1);let R=p(!1),Z=p(!1);const ne=p(["false"]);let Oe=p([]),ee=Me({lable:[],value:[]}),ie=p([]),be=p(0),A=p(1),P=p(12);const V=p([]),ye=p(1);let _e=p([]),we=p([]),H=p(!0),xe=p([]);const se=p(null);let q=p(!0),C=p([{\u65E0\u51BB\u5BB3:0,\u8F7B\u5EA6\u51BB\u5BB3:0,\u4E2D\u5EA6\u51BB\u5BB3:0,\u91CD\u5EA6\u51BB\u5BB3:0}]),S=p({time:"",statistical:"\u9547",droughtRating:"",area:ye.value}),Be=["\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"],X={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Se={\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}};Tt(()=>ne.value,(t,e)=>{t.length>e.length?(t.filter(o=>{if(e.findIndex(r=>r===o)<0)return o}).forEach(o=>{switch(o){case"\u65E0\u51BB\u5BB3":de(1,o);break;case"\u8F7B\u5EA6\u51BB\u5BB3":de(2,o);break;case"\u4E2D\u5EA6\u51BB\u5BB3":de(3,o);break;case"\u91CD\u5EA6\u51BB\u5BB3":de(4,o);break}}),Xe("shuzisannong:huangdaoqu_town","shuzisannong:huangdaoqu_town")):t.length<e.length&&e.filter(o=>{if(t.findIndex(r=>r===o)<0)return o}).forEach(o=>{console.log(o),$([o])})});var te={title:[]};let z={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Ce=p([]);Ft(()=>{Re("370211"),Ze("370211"),yt(),Le("370211"),bt(),lt(),fe(),pe(),Ve(),re(),it();for(const a in Se)Se[a].disabled!==!0&&(console.log(a),Oe.value.push(a));ne.value=Oe.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 rt={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 lt(){m=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({...rt})}),m.cesiumWidget.creditContainer.style.display="none",m.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),st(),Wt()}function ke(t,e,a){t.forEach(o=>{let l=[];o[0].forEach(r=>{l.push(r[0]),l.push(r[1])}),m.entities.add({name:e,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(l),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:a?Cesium.Color.fromCssColorString(a):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function nt(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 it(){Te({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),ot.value=t.data.features}).catch(t=>{})}let ae=p({label:[]}),oe="";function st(){var t=new Cesium.ScreenSpaceEventHandler(m.canvas);t.setInputAction(function(e){var a=m.camera.getPickRay(e.position),o=m.scene.globe.pick(a,m.scene);if(o){let l=Cesium.Cartographic.fromCartesian(o);if(l){let r=new Cesium.Cartesian2,d=m.camera.positionCartographic.height,u=nt(d);const w=m.imageryLayers._layers,i=w.findIndex(v=>v._imageryProvider._layers&&v._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(i>-1){const v=w[i];let h=v._imageryProvider;if(h&&h.ready&&h._layers&&v.show===!0){r=h.tilingScheme.positionToTileXY(l,u,r);let g=h.pickFeatures(r.x,r.y,u,l.longitude,l.latitude);g&&g.then(O=>{if(O.length>0){let F=O[0];if(F.properties&&F.properties.XZDM)if(console.log("XZDM:",oe),console.log("newData.properties.XZDM:",F.properties.XZDM),oe!==F.properties.XZDM){K.value=!0,oe=F.properties.XZDM,k.value=oe,ue&&ue();let s=F.data;m.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(s.bbox[0],s.bbox[1],s.bbox[2],s.bbox[3]),duration:2}),j("townLine"),ke(s.geometry&&s.geometry.coordinates,"townLine","yellow"),$(["village_CQL"]),ct(`XZDM=${F.properties.XZDM}`,"village_CQL");let x=m.entities._entities._array;for(var G=x.length-1;G>=0;G--)if(x[G]._name&&x[G]._name==="point"+F.properties.XZDM){let We=x[G]._info;ae.value=We,je(e.position),m.scene.postRender.addEventListener(ze)}j("villageLine"),De=""}else dt(w,r,u,l,e);else $(["village_CQL"]),le()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let De="";function dt(t,e,a,o,l){const r=t.findIndex(d=>d._imageryProvider._layers&&d._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(r>-1){const d=t[r];let u=d._imageryProvider;if(u&&u.ready&&u._layers&&d.show===!0){e=u.tilingScheme.positionToTileXY(o,a,e);let w=u.pickFeatures(e.x,e.y,a,o.longitude,o.latitude);w&&w.then(i=>{if(i.length>0){let v=i[0];if(console.log(v),m.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(v.data.bbox[0],v.data.bbox[1],v.data.bbox[2],v.data.bbox[3]),duration:2}),v.properties&&v.properties.XZQDM)if(De!==v.properties.XZQDM){De=v.properties.XZQDM;let h=v.data;j("villageLine"),ke(h.geometry&&h.geometry.coordinates,"villageLine","yellow")}else ut(t,e,a,o,l)}})}}}function ut(t,e,a,o,l){const r=t.findIndex(d=>d._imageryProvider._layers&&d._imageryProvider._layers==="shuzisannong:LST1");if(r>-1){const d=t[r];let u=d._imageryProvider;if(u&&u.ready&&u._layers&&d.show===!0){e=u.tilingScheme.positionToTileXY(o,a,e);let w=u.pickFeatures(e.x,e.y,a,o.longitude,o.latitude);w&&w.then(i=>{if(i.length>0){let v=i[0],h="";switch(v.properties.value){case 1:h="\u65E0\u51BB\u5BB3";break;case 2:h="\u8F7B\u5EA6\u51BB\u5BB3";break;case 3:h="\u4E2D\u5EA6\u51BB\u5BB3";break;case 4:h="\u91CD\u5EA6\u51BB\u5BB3";break}let g=Cesium.Math.toDegrees(o.longitude).toFixed(6),O=Cesium.Math.toDegrees(o.latitude).toFixed(6);E.value={lon:g,lat:O,grade:h},console.log(E.value),je(l.position),m.scene.postRender.addEventListener(ze)}})}}}function ct(t,e){let a=new Cesium.WebMapServiceImageryProvider({url:`${serverAPI.geoserverUrl}/shuzisannong/wms`,layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:t}});a.customName=e,m.imageryLayers.addImageryProvider(a)}function de(t,e){let a=new Cesium.WebMapServiceImageryProvider({url:`${serverAPI.geoserverUrl}/shuzisannong/wms`,layers:"shuzisannong:LST1",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:`value in (${t})`}});a.customName=e,m.imageryLayers.addImageryProvider(a)}function $(t,e){if(m){const a=m.imageryLayers._layers;for(let o=a.length-1;o>=0;o--)t.forEach(l=>{a[o]._imageryProvider&&a[o]._imageryProvider.customName&&(e?a[o]._imageryProvider.customName.indexOf(l)>-1&&m.imageryLayers.remove(a[o]):a[o]._imageryProvider.customName===l&&m.imageryLayers.remove(a[o]))})}}function j(t){if(m){let a=m.entities._entities._array;for(var e=a.length-1;e>=0;e--)a[e]._name&&a[e]._name===t&&m.entities.remove(a[e])}}function ft(){if(R.value=!R.value,R.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 pt(){if(Z.value=!Z.value,Z.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 gt=t=>{S.value.area=t},Ne=()=>{let t=[],e=[];A.value=1,Ut({time:S.value.time,statistical:S.value.statistical,droughtRating:S.value.droughtRating,area:S.value.area}).then(a=>{console.log(a.data),we.value=[{lable:"",value:"region"},{lable:"\u65E0\u51BB\u5BB3",value:"\u65E0\u51BB\u5BB3"},{lable:"\u8F7B\u5EA6\u51BB\u5BB3",value:"\u8F7B\u5EA6\u51BB\u5BB3"},{lable:"\u4E2D\u5EA6\u51BB\u5BB3",value:"\u4E2D\u5EA6\u51BB\u5BB3"},{lable:"\u91CD\u5EA6\u51BB\u5BB3",value:"\u91CD\u5EA6\u51BB\u5BB3"}],a.data.forEach(r=>{t.indexOf(r.region)==-1&&t.push(r.region)}),t.forEach(r=>{e.push(Object.create(null,{regio:{value:r}}))}),e.forEach(r=>{a.data.map(d=>{r.regio===d.region&&(r.region=d.region,r[d.level]=Number(d.area).toFixed(2))})}),H.value=!1,V.value=e,xe.value=e.slice((A.value-1)*P.value,(A.value-1)*P.value+P.value),C.value[0].\u65E0\u51BB\u5BB3=0,C.value[0].\u8F7B\u5EA6\u51BB\u5BB3=0,C.value[0].\u4E2D\u5EA6\u51BB\u5BB3=0,C.value[0].\u91CD\u5EA6\u51BB\u5BB3=0,C.value[0].region="\u5408\u8BA1",e.forEach(r=>{r.\u65E0\u51BB\u5BB3&&(C.value[0].\u65E0\u51BB\u5BB3+=Number(r.\u65E0\u51BB\u5BB3)!==NaN?Number(r.\u65E0\u51BB\u5BB3):0),r.\u8F7B\u5EA6\u51BB\u5BB3&&(C.value[0].\u8F7B\u5EA6\u51BB\u5BB3+=Number(r.\u8F7B\u5EA6\u51BB\u5BB3)!==NaN?Number(r.\u8F7B\u5EA6\u51BB\u5BB3):0),r.\u4E2D\u5EA6\u51BB\u5BB3&&(C.value[0].\u4E2D\u5EA6\u51BB\u5BB3+=Number(r.\u4E2D\u5EA6\u51BB\u5BB3)!==NaN?Number(r.\u4E2D\u5EA6\u51BB\u5BB3):0),r.\u91CD\u5EA6\u51BB\u5BB3&&(C.value[0].\u91CD\u5EA6\u51BB\u5BB3+=Number(r.\u91CD\u5EA6\u51BB\u5BB3)!==NaN?Number(r.\u91CD\u5EA6\u51BB\u5BB3):0)});for(const r in C.value[0])console.log(C.value[0][r]),C.value[0][r]!=="\u5408\u8BA1"&&(C.value[0][r]=C.value[0][r].toFixed(2));const o=se.value;o.style.width=window.innerWidth-100+"px",o.style.height=window.innerHeight-100+"px";const l=U(o);window.addEventListener("resize",()=>{o.style.width=window.innerWidth-200+"px",o.style.height=window.innerHeight-200+"px",l.resize()}),qe()})},mt=()=>{q.value=!q.value;const t=se.value;t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px";const e=U(t);window.addEventListener("resize",()=>{t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px",e.resize()}),qe()},vt=()=>{let t=JSON.parse(JSON.stringify(C.value[0]));t.region="\u5408\u8BA1",V.value.push(t),ce(V.value,"\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},ht=()=>{S.value.time=_e.value[0],S.value.statistical="\u9547",S.value.droughtRating="",S.value.area=1,H.value=!0,Ne()},bt=()=>{Qt().then(t=>{_e.value=t.data,S.value.time=t.data[0],Ne()})},Re=t=>{ee=Me({lable:[],value:[]}),Je({divisions:t}).then(e=>{e.data.forEach(a=>{ee.lable.push(a.level),ee.value.push(a.area)}),fe()})},Ze=t=>{ie=p([]),Ce=p([]),be=p(0),Ye({divisions:t}).then(e=>{e.data.forEach(a=>{be.value+=Number(a.area),ie.value.push({name:a.level,value:Number(a.area).toFixed(2)}),Ce.value.push({date:a.level,name:`${Number(a.area).toFixed(2)}`,address:`${(a.percentage*100).toFixed(2)}%`})}),console.log(ie.value),pe()})},yt=()=>{Ke().then(t=>{Be.forEach((e,a)=>{let o=t.data.map(l=>{if(e===l.region)return l});Object.keys(X).forEach(l=>{let r=0;o.findIndex(u=>(u&&u.level===l&&(r=u.area),u&&u.level===l))>-1?X[l].push(r):X[l].push(0)})}),Ve()})},Le=t=>{et({divisions:t}).then(e=>{T.brr=e.data,T.arr=e.data.sort((d,u)=>d.streetName.length-u.streetName.length),T.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let a=[],o=[];T.arr.forEach(d=>{a.indexOf(d.streetName)==-1&&(a.push(d.streetName),o.push({streetName:d.streetName,streetCode:d.streetCode}))}),T.arr=o,console.log(T.arr);let l=[...e.data],r=[];l.splice(0,1),l.forEach(d=>{r.indexOf(d.streetName)==-1&&r.push(d.streetName)}),te.title=[...Object.values(r)],te.title.forEach((d,u)=>{let w=e.data.map(i=>{if(d===i.streetName)return i});Object.keys(z).forEach(i=>{w.findIndex(h=>h&&h.type===i)>-1?z[i].push(1):z[i].push(null)})}),re()})},_t=t=>{tt({divisions:t}).then(e=>{T.brr=e.data;let a=[...e.data],o=[];a.splice(0,1),a.forEach(l=>{o.indexOf(l.streetName)==-1&&o.push(l.streetName)}),te.title=[...Object.values(o)],te.title.forEach((l,r)=>{let d=e.data.map(u=>{if(l===u.streetName)return u});Object.keys(z).forEach(u=>{d.findIndex(i=>i&&i.type===u)>-1?z[u].push(1):z[u].push(null)})}),re()})},ue=()=>{if(Gt().then(t=>{console.log(t),t.features.forEach(e=>{e.properties.XZDM==k.value&&(j("townLine"),ke(e.geometry.coordinates,"townLine","yellow"),m.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]),duration:0}))})}),m.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),j("townLine"),Re(k.value),Ze(k.value),_t(k.value),k.value=="370211"){$(["village_CQL"]),oe=null,$(["aaa"]),Le(),le(),re(),fe(),pe();return}re(),fe(),pe(),[...T.arr]},wt=t=>{Je({divisions:k.value,whetherToDownload:!0}).then(e=>{He(e.data[e.data.length-1].downloadPath)})},xt=t=>{Ye({divisions:k.value,whetherToDownload:!0}).then(e=>{He(e.data[e.data.length-1].downloadPath)})},St=t=>{Ke({divisions:k.value,whetherToDownload:!1}).then(e=>{let a=[],o=[];e.data.forEach(l=>{a.indexOf(l.region)==-1&&a.push(l.region)}),a.forEach(l=>{o.push(Object.create(null,{regio:{value:l}}))}),o.forEach(l=>{e.data.map(r=>{l.regio===r.region&&(l.region=r.region,l[r.level]=Number(r.area).toFixed(2))})}),ce(o,"\u5404\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},Ct=t=>{k.value==="370211"?et({divisions:k.value}).then(e=>{let a=[],o=[];e.data.forEach(l=>{a.indexOf(l.streetName)==-1&&a.push(l.streetName)}),a.forEach(l=>{o.push(Object.create(null,{regio:{value:l}}))}),o.forEach(l=>{e.data.map(r=>{l.regio===r.streetName&&(l.region=r.streetName,l[r.type]=Number(r.area).toFixed(2))})}),o=o.sort((l,r)=>l.region.length-r.region.length),ce(o,"\u5404\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212","\u884C\u653F\u533A\u5212")}):tt({divisions:k.value,whetherToDownload:!1}).then(e=>{let a=[],o=[];e.data.forEach(l=>{a.indexOf(l.streetName)==-1&&a.push(l.streetName)}),a.forEach(l=>{o.push(Object.create(null,{regio:{value:l}}))}),o.forEach(l=>{e.data.map(r=>{l.regio===r.streetName&&(l.region=r.streetName,l[r.type]=Number(r.area).toFixed(2))})}),ce(o,"\u5404\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},kt=(t,e)=>t.map(o=>{const l={};for(const r in o)e[r]&&(l[e[r]]=o[r]);return l}),ce=(t,e="\u7528\u6237\u5217\u8868",a="Sheet1")=>{const l=kt(t,{region:"\u533A\u57DF\u540D\u79F0",\u65E0\u51BB\u5BB3:"\u65E0\u51BB\u5BB3(\u4EA9)",\u8F7B\u5EA6\u51BB\u5BB3:"\u8F7B\u5EA6\u51BB\u5BB3(\u4EA9)",\u4E2D\u5EA6\u51BB\u5BB3:"\u4E2D\u5EA6\u51BB\u5BB3(\u4EA9)",\u91CD\u5EA6\u51BB\u5BB3:"\u91CD\u5EA6\u51BB\u5BB3(\u4EA9)",area:"\u9762\u79EF(\u4EA9)"}),r=Fe.json_to_sheet(l),d=Fe.book_new();Fe.book_append_sheet(d,r,a),jt(d,`${e}.xlsx`)};function fe(){const t=U(Ie.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:ee.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:ee.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 pe(){const t=U(Ee.value);var e=ie.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:`${(be.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"}}}]}]};me(t,a)}function Ve(){const t=U(Ae.value);console.log(z);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:Be,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:X.\u65E0\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(9, 187, 222, 1)",color:new ge(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:X.\u8F7B\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 235, 59, 1)",color:new ge(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:X.\u4E2D\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 165, 93, 1)",color:new ge(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:X.\u91CD\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(215, 25, 28, 1)",color:new ge(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}}),me(t,e)}function qe(){const t=U(se.value);let e=[],a=[],o=[],l=[],r=[];V.value.forEach(i=>{console.log(i.\u8F7B\u5EA6\u51BB\u5BB3),e.push(i.region),i.\u65E0\u51BB\u5BB3!==void 0?a.push(i.\u65E0\u51BB\u5BB3):a.push(0),i.\u4E2D\u5EA6\u51BB\u5BB3!==void 0?l.push(i.\u4E2D\u5EA6\u51BB\u5BB3):l.push(0),i.\u91CD\u5EA6\u51BB\u5BB3!==void 0?r.push(i.\u91CD\u5EA6\u51BB\u5BB3):r.push(0),i.\u8F7B\u5EA6\u51BB\u5BB3!==void 0?o.push(i.\u8F7B\u5EA6\u51BB\u5BB3):o.push(0)});let d={tooltip:{trigger:"axis",formatter:function(i){let v=i[0].axisValueLabel+"</br>",h=0;for(let g=0;g<i.length;g++)h+=i[g].value,i[g].seriesName!=="\u5408\u8BA1"&&(v+=i[g].seriesName+"\uFF1A"+i[g].value+"</br>");for(let g=0;g<i.length;g++)h+=Number(i[g].value),i[g].seriesName==="\u5408\u8BA1"&&(v+="\u5408\u8BA1\uFF1A"+h);return v},axisPointer:{type:"shadow"}},dataZoom:[{type:"slider",show:!1,handleSize:0,startValue:0,endValue:6,height:10,left:"5%",right:"4%",bottom:5,borderColor:"#000",fillerColor:"#269cdb",borderRadius:5,backgroundColor:"#33384b",showDataShadow:!1,showDetail:!1,realtime:!0,filterMode:"filter"},{type:"inside",show:!0,start:1,end:100}],legend:{top:5,left:10,icon:"rect",itemWidth:4,itemHeight:12,data:["\u9910\u8D39","\u6253\u8F66\u8D39","\u96F6\u98DF","\u65E5\u7528\u54C1"]},grid:{left:"3%",right:"10%",bottom:"15%",top:"5%",containLabel:!0},xAxis:{type:"category",name:"\u533A\u57DF",axisLabel:{fontSize:12,interval:0,rotate:40},axisLine:{lineStyle:{}},data:e},yAxis:[{type:"value",name:"\u9762\u79EF\uFF08\u4EA9\uFF09",axisLabel:{},axisLine:{lineStyle:{}},splitLine:{lineStyle:{},show:!0}}],series:[{name:"\u65E0\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 141, 26, 1)"},data:a},{name:"\u8F7B\u5EA6\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 255, 26, 1)"},data:o},{name:"\u4E2D\u5EA6\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 201, 148, 1)"},data:l},{name:"\u91CD\u5EA6\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 84, 84, 1)"},data:r}]};d.series;var u=d.tooltip;function w(i){let v=i[0].axisValueLabel+"</br>",h=0;for(let g=0;g<i.length;g++)if(i[g].seriesName!=="\u5408\u8BA1"){const O=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${i[g].color}"></span>`;h+=i[g].value,v+=O+i[g].seriesName+"\uFF1A"+i[g].value+"</br>"}for(let g=0;g<i.length;g++)i[g].seriesName==="\u5408\u8BA1"&&(v+="\u5408\u8BA1\uFF1A"+h);return v}u.formatter=w,me(t,d)}function Xe(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=m.imageryLayers.addImageryProvider(a);e.indexOf("gbznt")>-1&&(m.imageryLayers.lowerToBottom(o),m.imageryLayers.raise(o))}const Dt=t=>{A.value=t,xe.value=V.value.slice((A.value-1)*P.value,(A.value-1)*P.value+P.value)},Nt=t=>{const e=A.value,a=P.value;return t+1+(e-1)*a};function Lt(){Le("370211"),delete ae.value.XZQMC,j("townLine"),j("villageLine"),$(["gbznt"],!0),$(["aaa"]),k.value="370211",ue(),K.value==="1"&&(console.log(K.value),Xe("shuzisannong:huangdaoqu_town","tl")),m.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),K.value=!1,le()}function re(){const t=U(Pe.value);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(a){let o=0;return T.brr.forEach(l=>{l.type==a.seriesName&&l.streetName==a.name&&(o=Number(l.area).toFixed(2))}),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:te.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:z.\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:z.\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:z.\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:z.\u91CD\u5EA6\u51BB\u5BB3}]};me(t,e)}function zt(){let t=$e.value;console.log("fl:",t),Te({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,l)=>{const r=Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),d=Cesium.Rectangle.center(r);Cesium.Math.toDegrees(d.longitude),Cesium.Math.toDegrees(d.latitude),o.properties.XZDM==="370211011"||o.properties.XZDM;const u=t[o.properties.XZMC];u&&u.map((w,i)=>w.properties)})}).catch(e=>{})}let $e=p({});function Wt(){Te({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 l=o.properties.town;a[l]?a[l].push(o):a[l]=[o]}),$e.value=a,zt()}).catch(t=>{})}function ze(){if(E.value.lon&&E.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(E.value.lon),Number(E.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(m.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 le(){const t=document.getElementById("popup");t&&(t.style.display="none"),m.scene.postRender.removeEventListener(ze)}function je(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=D("el-table-column"),o=D("el-table"),l=D("el-tooltip"),r=D("el-option"),d=D("el-select"),u=D("el-checkbox"),w=D("el-checkbox-group"),i=D("el-collapse-item"),v=D("el-collapse"),h=D("el-button"),g=D("el-form-item"),O=D("el-input-number"),G=D("el-form"),F=D("el-pagination");return y(),N("div",Ht,[n("div",Jt,[Yt,n("div",Kt,[n("div",ea,[n("div",ta,[aa,n("p",{onClick:e[0]||(e[0]=s=>wt())},[L(" \u4E0B\u8F7D \xA0 "),oa])]),n("div",{ref_key:"areaDiv",ref:Ie,class:"areaDiv"},null,512),n("div",{ref_key:"leftProgressBarDiv",ref:at,class:"ProgressBar"},null,512)]),n("div",ra,[n("div",la,[na,n("p",{onClick:e[1]||(e[1]=s=>xt())},[L(" \u4E0B\u8F7D \xA0 "),ia])]),n("div",{ref_key:"typesofDiv",ref:Ee,class:"typesofDiv"},null,512),n("div",sa,[c(o,{data:f(Ce),style:{width:"100%"}},{default:b(()=>[c(a,{prop:"date",label:"\u7C7B\u578B"}),c(a,{prop:"name",label:"\u9762\u79EF(\u4EA9)"}),c(a,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),n("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=s=>ft())},[c(l,{class:"box-item","show-arrow":!1,disabled:f(R),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:b(()=>[f(R)?W("v-if",!0):(y(),N("img",da))]),_:1},8,["disabled"]),c(l,{disabled:!f(R),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:b(()=>[f(R)?(y(),N("img",ua)):W("v-if",!0)]),_:1},8,["disabled"])])]),n("div",ca,[n("div",fa,[n("div",pa,[ga,n("p",{onClick:e[3]||(e[3]=s=>St())},[L(" \u4E0B\u8F7D \xA0 "),ma])]),n("div",{ref_key:"farmlandDiv",ref:Ae,class:"farmlandDiv"},null,512),W(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),n("div",va,[n("div",ha,[ba,n("p",{onClick:e[4]||(e[4]=s=>Ct())},[L(" \u4E0B\u8F7D \xA0 "),ya])]),c(d,{"popper-class":"select_city",onChange:e[5]||(e[5]=s=>ue(t.item)),modelValue:k.value,"onUpdate:modelValue":e[6]||(e[6]=s=>k.value=s),placeholder:"\u5168\u90E8"},{default:b(()=>[(y(!0),N(J,null,Y(f(T).arr,s=>(y(),I(r,{key:s.streetCode,label:s.streetName,value:s.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),n("div",{ref_key:"ASdivisionDiv",ref:Pe,class:"ASdivision"},null,512)]),n("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=s=>pt())},[c(l,{disabled:!f(Z),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:b(()=>[f(Z)?(y(),N("img",_a)):W("v-if",!0)]),_:1},8,["disabled"]),c(l,{disabled:f(Z),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:b(()=>[f(Z)?W("v-if",!0):(y(),N("img",wa))]),_:1},8,["disabled"])])]),n("div",xa,[c($t)]),Sa,c(v,{class:"legend",accordion:""},{default:b(()=>[c(i,{name:"1"},{title:b(()=>[L("\u56FE\u4F8B")]),default:b(()=>[n("div",Ca,[c(w,{modelValue:ne.value,"onUpdate:modelValue":e[8]||(e[8]=s=>ne.value=s),onChange:t.change},{default:b(()=>[(y(!0),N(J,null,Y(f(Se),(s,x,We)=>(y(),I(u,{key:We,style:It({backgroundColor:s.color,border:"1px solid value.color",width:"100%"}),"v-model":s.disabled,disabled:s.disabled,label:x},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),n("div",ka,[n("div",null,[L(" \u7B49\u7EA7\uFF1A "),n("p",null,Q(E.value.grade),1)]),n("div",null,[L(" \u7ECF\u5EA6\uFF1A "),n("p",null,Q(E.value.lon),1)]),n("div",null,[L(" \u7EAC\u5EA6\uFF1A "),n("p",null,Q(E.value.lat),1)]),n("div",{class:"cancel",onClick:le},"X")]),n("div",Da,[(y(!0),N(J,null,Y(f(ae).label,(s,x)=>(y(),N("div",{key:x},[n("div",null,Q(s.crop)+"\uFF1A",1),n("div",null,Q(s.Shape_Area)+" \u4EA9",1)]))),128)),f(ae).XZQMC?(y(),N("div",Na,[La,n("div",null,Q(f(ae).XZQMC),1)])):W("v-if",!0),n("div",{class:"cancel",onClick:le},"X")]),K.value?(y(),I(h,{key:0,class:"back_button",onClick:e[9]||(e[9]=s=>Lt())},{default:b(()=>[L("\u8FD4\u56DE")]),_:1})):W("v-if",!0)]),n("div",za,[n("div",Wa,[c(G,{inline:!0,model:f(S),class:"demo-form-inline"},{default:b(()=>[c(g,{label:"\u65F6\u95F4:"},{default:b(()=>[c(d,{"popper-class":"selectCity",modelValue:f(S).time,"onUpdate:modelValue":e[10]||(e[10]=s=>f(S).time=s),placeholder:"\u8BF7\u9009\u62E9"},{default:b(()=>[(y(!0),N(J,null,Y(f(_e),(s,x)=>(y(),I(r,{key:x,label:t.Zitem,value:s},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),c(g,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:b(()=>[c(d,{"popper-class":"selectCity",modelValue:f(S).statistical,"onUpdate:modelValue":e[11]||(e[11]=s=>f(S).statistical=s),placeholder:"\u8BF7\u9009\u62E9"},{default:b(()=>[c(r,{label:"\u9547\u7EA7",value:"\u9547"}),c(r,{label:"\u6751\u7EA7",value:"\u6751"}),c(r,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})]),_:1},8,["modelValue"])]),_:1}),c(g,{label:"\u51B7\u51BB\u7B49\u7EA7"},{default:b(()=>[c(d,{modelValue:f(S).droughtRating,"onUpdate:modelValue":e[12]||(e[12]=s=>f(S).droughtRating=s),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:b(()=>[c(r,{label:"\u5168\u90E8",value:""}),c(r,{label:"\u65E0\u51BB\u5BB3",value:"\u65E0\u51BB\u5BB3"}),c(r,{label:"\u8F7B\u5EA6\u51BB\u5BB3",value:"\u8F7B\u5EA6\u51BB\u5BB3"}),c(r,{label:"\u4E2D\u5EA6\u51BB\u5BB3",value:"\u4E2D\u5EA6\u51BB\u5BB3"}),c(r,{label:"\u91CD\u5EA6\u51BB\u5BB3",value:"\u91CD\u5EA6\u51BB\u5BB3"})]),_:1},8,["modelValue"])]),_:1}),c(g,{label:"\u9762\u79EF(\u4EA9)>"},{default:b(()=>[c(O,{modelValue:ye.value,"onUpdate:modelValue":e[13]||(e[13]=s=>ye.value=s),min:1,onChange:gt},null,8,["modelValue"])]),_:1}),c(g,null,{default:b(()=>[c(h,{type:"primary",onClick:Ne},{default:b(()=>[L("\u67E5\u8BE2")]),_:1}),c(h,{plain:"",onClick:ht,disabled:!f(q)},{default:b(()=>[L(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),f(H)?W("v-if",!0):(y(),I(h,{key:0,type:"primary",text:"",onClick:vt},{default:b(()=>[Ma,L(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),n("div",{class:"modeDiv",onClick:mt},[n("div",{class:Ge(f(q)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),n("div",{class:Ge(f(q)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),Qe(n("div",Ta,[n("div",Fa,[f(H)?W("v-if",!0):(y(),I(o,{key:0,data:f(C),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:b(()=>[c(a,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(y(!0),N(J,null,Y(f(we),(s,x)=>(y(),I(a,{key:x,prop:s.value,label:x==0?s.lable:s.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),f(H)?(y(),I(a,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:b(s=>[n("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:x=>t.download(s.row)}," \u4E0B\u8F7D ",8,Ia)]),_:1})):W("v-if",!0)]),_:1},8,["data"]))]),c(o,{data:f(xe),"header-cell-style":{"text-align":"center"},height:"70%","highlight-current-row":"","header-row-class-name":"tabth"},{default:b(()=>[c(a,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Nt}),(y(!0),N(J,null,Y(f(we),(s,x)=>(y(),I(a,{key:x,prop:s.value,label:x==0?s.lable:s.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),f(H)?(y(),I(a,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:b(s=>[n("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:x=>t.download(s.row)}," \u4E0B\u8F7D ",8,Ea)]),_:1})):W("v-if",!0)]),_:1},8,["data"]),n("div",Aa,[L(" \u5171"+Q(V.value.length)+"\u6761 ",1),c(F,{background:"",layout:"prev, pager, next",total:V.value.length,"current-page":f(A),"page-size":f(P),onCurrentChange:Dt},null,8,["total","current-page","page-size"])])],512),[[Ue,f(q)]]),Qe(n("div",Pa,[n("div",{ref_key:"chartModeDiv",ref:se,class:"chartModeDiv"},null,512)],512),[[Ue,!f(q)]])])])}}},Ua=Mt(Oa,[["__scopeId","data-v-158b2a96"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/freeze/Freeze.vue"]]);export{Ua as default};