Agriculture-front-end/dist/assets/Freeze.df2b18fe.js
2023-06-22 06:50:23 +08:00

2 lines
38 KiB
JavaScript

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