Agriculture-front-end/dist/assets/Drought.5d2db43b.js
2023-06-22 06:50:23 +08:00

2 lines
39 KiB
JavaScript

import{H as V,_ as Mt,a as Ft,r as d,A as Tt,V as Pt,W as At,X as We,U as Ot,d as k,o as p,c as _,l as n,m as M,e as c,w as g,f,g as B,L as X,N as Y,k as R,F as Bt,x as L,G as Ze,C as $e,D as Je,y as Rt,p as Vt,q as qt}from"./index.9172db1d.js";import ue from"./downloads.e955445d.js";import{_ as ce}from"./close1.45635d81.js";import{_ as Gt,a as Ht,b as jt,c as Ut,d as Zt,e as $t}from"./linesGL.90f708a5.js";import{_ as Jt}from"./dow.f37c8d82.js";import{i as j,L as ee}from"./index.c9f5bd8b.js";import{T as Xt}from"./TimeLine.6ff87a01.js";import{u as de}from"./useEcharts.963c5809.js";import{d as Xe}from"./download.f7ec50f1.js";import{u as Ee,w as Yt}from"./xlsx.86b9426e.js";function Ie(S){return V({url:"equipment/areaStatisticsDrought",method:"get",params:S})}function Ye(S){return V({url:"equipment/proportionOfArea",method:"get",params:S})}function Qe(S){return V({url:"equipment/statisticsOfArea",method:"get",params:S})}function Ke(S){return V({url:"equipment/township",method:"get",params:S})}function et(S){return V({url:"equipment/administrative",method:"get",params:S})}function Qt(){return V({url:"http://139.199.98.175:9080/geoserver/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson",method:"get"})}function Kt(){return V({url:"equipment/listDroughtsYear",method:"get"})}function ea(S){return V({url:"equipment/listDroughts",method:"get",params:S})}const I=S=>(Vt("data-v-252bfa44"),S=S(),qt(),S),ta={class:"fatherDiv"},aa={class:"centerBox"},oa=I(()=>n("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),ra={class:"leftWra"},la={class:"leftTop"},sa={class:"title"},na=I(()=>n("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),ia=I(()=>n("img",{src:ue,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),da={class:"leftbottom"},ua={class:"title"},ca=I(()=>n("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),fa=I(()=>n("img",{src:ue,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ha={class:"tableDiv"},pa={key:0,src:ce,alt:""},ga={key:0,class:"imgrotate",src:ce,alt:""},va={class:"rightWra"},ma={class:"rightTop"},ba={class:"title"},ya=I(()=>n("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),_a=I(()=>n("img",{src:ue,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),wa={class:"rightbottom"},xa={class:"title"},Sa=I(()=>n("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),ka=I(()=>n("img",{src:ue,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ca={key:0,src:ce,alt:""},Na={key:0,class:"imgrotate",src:ce,alt:""},Da={class:"bottom_center"},La=Rt('<div class="tool" data-v-252bfa44><span data-v-252bfa44><img src="'+Gt+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+Ht+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+jt+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+Ut+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+Zt+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+$t+'" alt="" data-v-252bfa44></span></div>',1),Wa={class:"mt-4"},Ea={id:"popup"},Ia={class:"rowWra"},za=I(()=>n("span",null,"\u5730\u533A\uFF1A",-1)),Ma={class:"tabulation"},Fa={class:"searchDiv"},Ta=I(()=>n("img",{src:Jt,alt:""},null,-1)),Pa={class:"tableBox"},Aa={class:"tableBorder"},Oa={key:0,style:{color:"rgba(234, 165, 93, 0.8)","font-weight":"600"}},Ba={key:1,style:{color:"rgba(205, 92, 92, 1)","font-weight":"700"}},Ra={key:2,style:{color:"red","font-weight":"800"}},Va={key:3},qa={key:0,style:{color:"rgba(234, 165, 93, 0.8)","font-weight":"600"}},Ga={key:1,style:{color:"rgba(205, 92, 92, 1)","font-weight":"700"}},Ha={key:2,style:{color:"red","font-weight":"800"}},ja={key:3},Ua={class:"example-pagination-block"},Za={class:"chartMode"},$a={__name:"Drought",setup(S){const ze=Ft();let h=d(null);const Me=d(null),Fe=d(null),Te=d(null);d(null);const Pe=d(null),y=d("370211"),tt=d(null);let z=Tt({arr:[],brr:[],crr:[]});const U=d({}),at=d([]),Ae=d(!1);let q=d(!1),G=d(!1);const te=d(["false"]);let fe=d([]),ae=d([]),he=d([]),pe=d(0),Oe=d([]),H=d(!0),ge=d([]);const ve=d(1);let oe=d(null),Be=d(null),Re=d(""),w=d([{\u6E7F\u6DA6:0,\u9002\u5B9C:0,\u8F7B\u5EA6\u5E72\u65F1:0,\u4E2D\u5EA6\u5E72\u65F1:0,\u91CD\u5EA6\u5E72\u65F1:0}]),me=d([]),F=d(1),T=d(12);const re=d(null);let be=d([]),le=d(!0),x=d({time:"",statistical:"\u9547",droughtRating:"",area:ve.value});const P=d([]);let Ve=["\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"],A={\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[],\u9002\u5B9C:[],\u6E7F\u6DA6:[]},ye={\u6E7F\u6DA6:{color:"rgba(9, 187, 222, 0.8)",disabled:!1},\u9002\u5B9C:{color:"rgba(255, 235, 59, 0.8)",disabled:!1},\u8F7B\u5EA6\u5E72\u65F1:{color:"rgba(234, 165, 93, 0.8)",disabled:!1},\u4E2D\u5EA6\u5E72\u65F1:{color:"rgba(205, 92, 92, 1)",disabled:!1},\u91CD\u5EA6\u5E72\u65F1:{color:"red",disabled:!1}};var Z={title:[]};let D={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},_e=d([]),se={\u6E7F\u6DA6:"shirun",\u9002\u5B9C:"shiyi",\u8F7B\u5EA6\u5E72\u65F1:"qing_ganhan",\u4E2D\u5EA6\u5E72\u65F1:"medium_ganhan",\u91CD\u5EA6\u5E72\u65F1:"zhong_ganhan"};Pt(()=>{ot()});function ot(){xe("370211"),Se("370211"),bt(),ke("370211"),mt(),lt(),ie(),Ge(),K(),ct();for(const a in ye)ye[a].disabled!==!0&&(console.log(a),Oe.value.push(a));te.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)",localStorage.setItem(ze.currentRoute.value.path,!0)}At(()=>{localStorage.getItem(ze.currentRoute.value.path)=="false"?document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F":document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F"});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(){h=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})}),h.cesiumWidget.creditContainer.style.display="none",h.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),Wt(),st(),dt()}const st=()=>{h.scene.preRender.addEventListener(()=>{h.camera.positionCartographic.height<=13e3?oe.show=!0:(oe.show=!1,Be.show=!0)})},nt=()=>{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"}});oe=h.imageryLayers.addImageryProvider(t),oe.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"}});Be=h.imageryLayers.addImageryProvider(t)},dt=()=>{new Cesium.ScreenSpaceEventHandler(h.scene.canvas).setInputAction(e=>{let a=h.scene.globe.pick(h.camera.getPickRay(e.position),h.scene),l=h.scene.globe.ellipsoid.cartesianToCartographic(a),o=Cesium.Math.toDegrees(l.longitude),i=Cesium.Math.toDegrees(l.latitude);h.selectedEntity=void 0;var m=h.camera.getPickRay(e.position),C=h.imageryLayers.pickImageryLayerFeatures(m,h.scene);(async()=>{if(!Cesium.defined(C))console.log("No features picked.");else try{const b=await C;b[b.length-1].properties.XZQDM||(y.value=b[b.length-1].properties.XZDM,Re.value=b[b.length-1].properties.XZMC,Ie({divisions:y.value}).then(J=>{U.value={info:J.data,lon:o,lat:i}}),Ce()),Et(e.position),h.scene.postRender.addEventListener(je)}catch(b){console.error("Error occurred:",b)}})()},Cesium.ScreenSpaceEventType.LEFT_CLICK)};function ut(t,e,a){t.forEach(r=>{let l=[];r[0].forEach(o=>{l.push(o[0]),l.push(o[1])}),h.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 ct(){We({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 ft=d({label:[]});function Q(t,e){if(h){const a=h.imageryLayers._layers;for(let r=a.length-1;r>=0;r--)t.forEach(l=>{a[r]._imageryProvider&&a[r]._imageryProvider.customName&&(e?a[r]._imageryProvider.customName.indexOf(l)>-1&&h.imageryLayers.remove(a[r]):a[r]._imageryProvider.customName===l&&h.imageryLayers.remove(a[r]))})}}function $(t){if(h){let a=h.entities._entities._array;for(var e=a.length-1;e>=0;e--)a[e]._name&&a[e]._name===t&&h.entities.remove(a[e])}}const ht=(t,e)=>t.map(r=>{const l={};for(const o in r)e[o]&&(l[e[o]]=r[o]);return l}),ne=(t,e="\u7528\u6237\u5217\u8868",a="Sheet1")=>{const l=ht(t,{region:"\u533A\u57DF\u540D\u79F0",\u6E7F\u6DA6:"\u6E7F\u6DA6 (\u4EA9)",\u9002\u5B9C:"\u9002\u5B9C(\u4EA9)",\u8F7B\u5EA6\u5E72\u65F1:"\u8F7B\u5EA6\u5E72\u65F1(\u4EA9)",\u4E2D\u5EA6\u5E72\u65F1:"\u4E2D\u5EA6\u5E72\u65F1(\u4EA9)",\u91CD\u5EA6\u5E72\u65F1:"\u91CD\u5EA6\u5E72\u65F1(\u4EA9)",area:"\u9762\u79EF(\u4EA9)"}),o=Ee.json_to_sheet(l),i=Ee.book_new();Ee.book_append_sheet(i,o,a),Yt(i,`${e}.xlsx`)};function pt(){if(q.value=!q.value,q.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 gt(){if(G.value=!G.value,G.value){let t=document.querySelector(".rightWra");t.style.transform="translate(0,0)"}else{let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"}}Ot(()=>te.value,(t,e)=>{t.length>e.length?(t.filter(r=>{if(e.findIndex(o=>o===r)<0)return r}).forEach(r=>{se[r]&&kt(se[r],se[r])}),nt(),it()):t.length<e.length&&e.filter(r=>{if(t.findIndex(o=>o===r)<0)return r}).forEach(r=>{Q([se[r]])})});const we=()=>{let t=[],e=[];F.value=1,ea({time:x.value.time,statistical:x.value.statistical,droughtRating:x.value.droughtRating,area:x.value.area}).then(a=>{be.value=[{lable:"",value:"region"},{lable:"\u9002\u5B9C",value:"\u9002\u5B9C"},{lable:"\u6E7F\u6DA6",value:"\u6E7F\u6DA6"},{lable:"\u8F7B\u5EA6\u5E72\u65F1",value:"\u8F7B\u5EA6\u5E72\u65F1"},{lable:"\u4E2D\u5EA6\u5E72\u65F1",value:"\u4E2D\u5EA6\u5E72\u65F1"},{lable:"\u91CD\u5EA6\u5E72\u65F1",value:"\u91CD\u5EA6\u5E72\u65F1"}],a.data.forEach(o=>{t.indexOf(o.region)==-1&&t.push(o.region)}),t.forEach(o=>{e.push(Object.create(null,{regio:{value:o}}))}),e.forEach(o=>{a.data.map(i=>{o.regio===i.region&&(o.region=i.region,o[i.level]=Number(i.area).toFixed(2))})}),le.value=!1,P.value=e,me.value=e.slice((F.value-1)*T.value,(F.value-1)*T.value+T.value),w.value[0].\u9002\u5B9C=0,w.value[0].\u6E7F\u6DA6=0,w.value[0].\u8F7B\u5EA6\u5E72\u65F1=0,w.value[0].\u4E2D\u5EA6\u5E72\u65F1=0,w.value[0].\u91CD\u5EA6\u5E72\u65F1=0,w.value[0].region="\u5408\u8BA1",e.forEach(o=>{o.\u9002\u5B9C&&(w.value[0].\u9002\u5B9C+=Number(o.\u9002\u5B9C)!==NaN?Number(o.\u9002\u5B9C):0),o.\u6E7F\u6DA6&&(w.value[0].\u6E7F\u6DA6+=Number(o.\u6E7F\u6DA6)!==NaN?Number(o.\u6E7F\u6DA6):0),o.\u8F7B\u5EA6\u5E72\u65F1&&(w.value[0].\u8F7B\u5EA6\u5E72\u65F1+=Number(o.\u8F7B\u5EA6\u5E72\u65F1)!==NaN?Number(o.\u8F7B\u5EA6\u5E72\u65F1):0),o.\u4E2D\u5EA6\u5E72\u65F1&&(w.value[0].\u4E2D\u5EA6\u5E72\u65F1+=Number(o.\u4E2D\u5EA6\u5E72\u65F1)!==NaN?Number(o.\u4E2D\u5EA6\u5E72\u65F1):0),o.\u91CD\u5EA6\u5E72\u65F1&&(w.value[0].\u91CD\u5EA6\u5E72\u65F1+=Number(o.\u91CD\u5EA6\u5E72\u65F1)!==NaN?Number(o.\u91CD\u5EA6\u5E72\u65F1):0)});for(const o in w.value[0])console.log(w.value[0][o]),w.value[0][o]!=="\u5408\u8BA1"&&(w.value[0][o]=w.value[0][o].toFixed(2));const r=re.value;r.style.width=window.innerWidth-100+"px",r.style.height=window.innerHeight-100+"px";const l=j(r);window.addEventListener("resize",()=>{r.style.width=window.innerWidth-200+"px",r.style.height=window.innerHeight-200+"px",l.resize()}),Ue()})},vt=()=>{x.value.time=ge.value[0],x.value.statistical="\u9547",x.value.droughtRating="",x.value.area=1,le.value=!0,we()},mt=()=>{Kt().then(t=>{ge.value=t.data,x.value.time=t.data[0],we()})},xe=t=>{fe=d([]),ae=d([]),Ie({divisions:t}).then(e=>{e.data.forEach(a=>{fe.value.push(a.level),ae.value.push(a.area)}),Ne()})},Se=t=>{he=d([]),_e=d([]),pe=d(0),Ye({divisions:t}).then(e=>{e.data.forEach(a=>{pe.value+=Number(a.area),he.value.push({name:a.level,value:Number(a.area).toFixed(2)}),_e.value.push({date:a.level,name:`${Number(a.area).toFixed(2)}`,address:`${(a.percentage*100).toFixed(2)}%`})}),ie()})};d([{}]);const bt=()=>{Qe().then(t=>{Ve.forEach((e,a)=>{let r=t.data.map(l=>{if(e===l.region)return l});Object.keys(A).forEach(l=>{let o=0;r.findIndex(m=>(m&&m.level===l&&(o=m.area),m&&m.level===l))>-1?A[l].push(o):A[l].push(0)})}),Ge()})},ke=t=>{Ke({divisions:t}).then(e=>{z.brr=e.data,z.arr=e.data.sort((i,m)=>i.streetName.length-m.streetName.length),z.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let a=[],r=[];z.arr.forEach(i=>{a.indexOf(i.streetName)==-1&&(a.push(i.streetName),r.push({streetName:i.streetName,streetCode:i.streetCode,area:i.area,type:i.type}))}),z.arr=r;let l=[...e.data],o=[];l.splice(0,1),l.forEach(i=>{o.indexOf(i.streetName)==-1&&o.push(i.streetName)}),Z.title=[...Object.values(o)],Z.title.forEach((i,m)=>{let C=e.data.map(b=>{if(i===b.streetName)return b});Object.keys(D).forEach(b=>{C.findIndex(u=>u&&u.type===b)>-1?D[b].push(1):D[b].push(null)})}),K()})},qe=t=>{D={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},et({divisions:t}).then(e=>{z.brr=e.data;let a=[...e.data],r=[];a.forEach(l=>{r.indexOf(l.streetName)==-1&&r.push(l.streetName)}),Z.title=[...Object.values(r)],Z.title.forEach((l,o)=>{let i=e.data.map(m=>{if(l===m.streetName)return m});Object.keys(D).forEach(m=>{i.findIndex(b=>b&&b.type===m&&b.area>0)>-1?D[m].push(1):D[m].push(null)})}),K()})},Ce=()=>{if(Qt().then(t=>{t.features.forEach(e=>{e.properties.XZDM==y.value&&($("townLine"),ut(e.geometry.coordinates,"townLine","yellow"))})}),$("townLine"),xe(y.value),Se(y.value),y.value=="370211"){Q(["village_CQL"]),Q(["aaa"]),ke(),De(),K(),Ne(),ie(),$("townLine"),$("villageLine");return}qe(y.value)},yt=t=>{Ie({divisions:y.value,whetherToDownload:!0}).then(e=>{console.log(e),Xe(e.data[e.data.length-1].downloadPath)})},_t=t=>{Ye({divisions:y.value,whetherToDownload:!0}).then(e=>{Xe(e.data[e.data.length-1].downloadPath)})},wt=t=>{Qe({divisions:y.value,whetherToDownload:!1}).then(e=>{let a=[],r=[];e.data.forEach(l=>{a.indexOf(l.region)==-1&&a.push(l.region)}),a.forEach(l=>{r.push(Object.create(null,{regio:{value:l}}))}),r.forEach(l=>{e.data.map(o=>{l.regio===o.region&&(l.region=o.region,l[o.level]=Number(o.area).toFixed(2))})}),ne(r,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},xt=t=>{if(y.value==="370211"){let e="";z.arr.forEach(a=>{a.subregion==y.value&&(e=a.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":a.subregionName)}),Ke({divisions:y.value}).then(a=>{let r=[],l=[];a.data.forEach(o=>{r.indexOf(o.streetName)==-1&&r.push(o.streetName)}),r.forEach(o=>{l.push(Object.create(null,{regio:{value:o}}))}),l.forEach(o=>{a.data.map(i=>{o.regio===i.streetName&&(o.region=i.streetName,o[i.type]=Number(i.area).toFixed(2))})}),l=l.sort((o,i)=>o.region.length-i.region.length),ne(l,`${e}\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF-\u884C\u653F\u533A\u5212`,"Sheet1")})}else{let e="";z.arr.forEach(a=>{a.subregion==y.value&&(e=a.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":a.subregionName)}),et({divisions:y.value,whetherToDownload:!1}).then(a=>{let r=[],l=[];a.data.forEach(o=>{r.indexOf(o.streetName)==-1&&r.push(o.streetName)}),r.forEach(o=>{l.push(Object.create(null,{regio:{value:o}}))}),l.forEach(o=>{a.data.map(i=>{o.regio===i.streetName&&(o.region=i.streetName,o[i.type]=Number(i.area).toFixed(2))})}),ne(l,`${e}\u4F5C\u7269\u5E72\u65F1\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})}},St=()=>{console.log(P);let t=JSON.parse(JSON.stringify(w.value[0]));t.region="\u5408\u8BA1",P.value.push(t),ne(P.value,"\u5E72\u65F1\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")};function Ne(){console.log(ae.value);const t=j(Me.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:fe.value,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:ae.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 ie(){const t=j(Fe.value);var e=he.value;let a={color:["rgba(255, 235, 59, 0.8)","rgba(9, 187, 222, 0.8)","rgba(234, 165, 93, 0.8)","rgba(205, 92, 92, 1)","red"],title:{text:"\u603B\u9762\u79EF",subtext:`${(pe.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}\u4EA9 <br/>\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u5E72\u65F1\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%"],tooltip:{show:!1},label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};de(t,a)}function Ge(){const t=j(Te.value);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:Ve,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:"\u6E7F\u6DA6",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:A.\u6E7F\u6DA6,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(9, 187, 222, 0.8)",color:new ee(0,0,0,1,[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}])}}},{name:"\u9002\u5B9C",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:A.\u9002\u5B9C,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 235, 59, 0.8)",color:new ee(0,0,0,1,[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}])}}},{name:"\u8F7B\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:A.\u8F7B\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 165, 93, 1)",color:new ee(0,0,0,1,[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}])}}},{name:"\u4E2D\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:A.\u4E2D\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(205, 92, 92, 0.8)",color:new ee(0,0,0,1,[{offset:0,color:"rgba(205, 92, 92, 1)"},{offset:1,color:"rgba(205, 92, 92, 1)"}])}}},{name:"\u91CD\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:A.\u91CD\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"red",color:new ee(0,0,0,1,[{offset:0,color:"red"},{offset:1,color:"red"}])}}}]};t.on("click",function(a){console.log(a.name)}),e&&t.setOption(e,{notMerge:!0,grid:{bottom:20}}),de(t,e)}function kt(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 l=h.imageryLayers.addImageryProvider(r);a&&(h.imageryLayers.lowerToBottom(l),h.imageryLayers.raise(l))}const Ct=t=>{F.value=t,me.value=P.value.slice((F.value-1)*T.value,(F.value-1)*T.value+T.value)},Nt=t=>{const e=F.value,a=T.value;return t+1+(e-1)*a};function Dt(){$("townLine"),delete ft.value.XZQMC,Q(["gbznt"],!0),Q(["aaa"]),y.value="370211",Ce(),h.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Ae.value=!1,De()}function K(){const t=j(Pe.value);console.log(Z.title);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(a){let r=0;return z.brr.forEach(l=>{l.type==a.seriesName&&l.streetName==a.name&&(console.log(l.area),r=Number(l.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:Z.title,inverse:!0}],series:[{type:"bar",name:"\u6E7F\u6DA6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u6E7F\u6DA6",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, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}]}},data:D.\u6E7F\u6DA6},{type:"bar",name:"\u9002\u5B9C",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u9002\u5B9C",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, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}]}},data:D.\u9002\u5B9C},{type:"bar",name:"\u8F7B\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F7B\u5EA6\u5E72\u65F1",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, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}]}},data:D.\u8F7B\u5EA6\u5E72\u65F1},{type:"bar",name:"\u4E2D\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u4E2D\u5EA6\u5E72\u65F1",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(205, 92, 92, 1)"},{offset:1,color:"rgba(205, 92, 92, 1)"}]}},data:D.\u4E2D\u5EA6\u5E72\u65F1},{type:"bar",name:"\u91CD\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u91CD\u5EA6\u5E72\u65F1",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:"red"},{offset:1,color:"red"}]}},data:D.\u91CD\u5EA6\u5E72\u65F1}]};de(t,e)}function Lt(){let t=He.value;console.log("fl:",t),We({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,l)=>{const o=Cesium.Rectangle.fromDegrees(r.bbox[0],r.bbox[1],r.bbox[2],r.bbox[3]),i=Cesium.Rectangle.center(o);Cesium.Math.toDegrees(i.longitude),Cesium.Math.toDegrees(i.latitude),r.properties.XZDM==="370211011"||r.properties.XZDM;const m=t[r.properties.XZMC];m&&m.map((C,b)=>C.properties)})}).catch(e=>{})}let He=d({});function Wt(){We({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 l=r.properties.town;a[l]?a[l].push(r):a[l]=[r]}),He.value=a,Lt()}).catch(t=>{})}function je(){if(U.value.lon&&U.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(U.value.lon),Number(U.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(h.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"),h.scene.postRender.removeEventListener(je),y.value="370211",$("townLine"),ke(),qe(y.value),Se(y.value),xe(y.value),K(),Ne(),ie()}function Et(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)}const It=()=>{H.value=!H.value;const t=re.value;t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px";const e=j(t);window.addEventListener("resize",()=>{t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px",e.resize()}),Ue()},zt=t=>{x.value.area=t};function Ue(){const t=j(re.value);let e=[],a=[],r=[],l=[],o=[],i=[];P.value.forEach(u=>{console.log(u.\u91CD\u5EA6\u5E72\u65F1),e.push(u.region),u.\u6E7F\u6DA6!==void 0?a.push(u.\u6E7F\u6DA6):a.push(0),u.\u9002\u5B9C!==void 0?r.push(u.\u9002\u5B9C):r.push(0),u.\u8F7B\u5EA6\u5E72\u65F1!==void 0?l.push(u.\u8F7B\u5EA6\u5E72\u65F1):l.push(0),u.\u4E2D\u5EA6\u5E72\u65F1!==void 0?o.push(u.\u4E2D\u5EA6\u5E72\u65F1):o.push(0),u.\u91CD\u5EA6\u5E72\u65F1!==void 0?i.push(u.\u91CD\u5EA6\u5E72\u65F1):i.push(0)});let m=10/e.length*100,C={tooltip:{trigger:"axis",formatter:function(u){let N=u[0].axisValueLabel+"</br>",O=0;for(let v=0;v<u.length;v++)O+=u[v].value,u[v].seriesName!=="\u5408\u8BA1"&&(N+=u[v].seriesName+"\uFF1A"+u[v].value+"</br>");for(let v=0;v<u.length;v++)O+=Number(u[v].value),u[v].seriesName==="\u5408\u8BA1"&&(N+="\u5408\u8BA1\uFF1A"+O);return N},axisPointer:{type:"shadow"}},legend:{top:5,left:10,icon:"rect",itemWidth:4,itemHeight:12,data:[]},dataZoom:[{type:"slider",width:"40%",top:"90%",zoomLock:!0,start:0,end:m,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"}],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:"\u6E7F\u6DA6",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 141, 26, 1)"},data:a},{name:"\u9002\u5B9C",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 255, 26, 1)"},data:r},{name:"\u8F7B\u5EA6\u5E72\u65F1",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 201, 148, 1)"},data:l},{name:"\u4E2D\u5EA6\u5E72\u65F1",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 84, 84, 1)"},data:o},{name:"\u91CD\u5EA6\u5E72\u65F1",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 140, 255, 1)"},data:i}]};C.series;var b=C.tooltip;function J(u){let N=u[0].axisValueLabel+"</br>",O=0;for(let v=0;v<u.length;v++)if(u[v].seriesName!=="\u5408\u8BA1"){const Le=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${u[v].color}"></span>`;O+=u[v].value,N+=Le+u[v].seriesName+"\uFF1A"+u[v].value+"</br>"}for(let v=0;v<u.length;v++)u[v].seriesName==="\u5408\u8BA1"&&(N+="\u5408\u8BA1\uFF1A"+O);return N}b.formatter=J,de(t,C)}return(t,e)=>{const a=k("el-table-column"),r=k("el-table"),l=k("el-tooltip"),o=k("el-option"),i=k("el-select"),m=k("el-checkbox"),C=k("el-checkbox-group"),b=k("el-collapse-item"),J=k("el-collapse"),u=k("el-button"),N=k("el-form-item"),O=k("el-input-number"),v=k("el-form"),Le=k("el-pagination");return p(),_("div",ta,[n("div",aa,[oa,n("div",ra,[n("div",la,[n("div",sa,[na,n("p",{onClick:e[0]||(e[0]=s=>yt())},[M(" \u4E0B\u8F7D \xA0 "),ia])]),n("div",{ref_key:"areaDiv",ref:Me,class:"areaDiv"},null,512),n("div",{ref_key:"leftProgressBarDiv",ref:tt,class:"ProgressBar"},null,512)]),n("div",da,[n("div",ua,[ca,n("p",{onClick:e[1]||(e[1]=s=>_t())},[M(" \u4E0B\u8F7D \xA0 "),fa])]),n("div",{ref_key:"typesofDiv",ref:Fe,class:"typesofDiv"},null,512),n("div",ha,[c(r,{data:f(_e),style:{width:"100%"}},{default:g(()=>[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(l,{class:"box-item","show-arrow":!1,disabled:f(q),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:g(()=>[f(q)?B("v-if",!0):(p(),_("img",pa))]),_:1},8,["disabled"]),c(l,{disabled:!f(q),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:g(()=>[f(q)?(p(),_("img",ga)):B("v-if",!0)]),_:1},8,["disabled"])])]),n("div",va,[n("div",ma,[n("div",ba,[ya,n("p",{onClick:e[3]||(e[3]=s=>wt())},[M(" \u4E0B\u8F7D \xA0 "),_a])]),n("div",{ref_key:"farmlandDiv",ref:Te,class:"farmlandDiv"},null,512),B(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),n("div",wa,[n("div",xa,[Sa,n("p",{onClick:e[4]||(e[4]=s=>xt())},[M(" \u4E0B\u8F7D \xA0 "),ka])]),c(i,{"popper-class":"select_city",onChange:e[5]||(e[5]=s=>Ce(t.item)),modelValue:y.value,"onUpdate:modelValue":e[6]||(e[6]=s=>y.value=s),placeholder:"\u5168\u90E8"},{default:g(()=>[(p(!0),_(X,null,Y(f(z).arr,s=>(p(),R(o,{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=>gt())},[c(l,{disabled:!f(G),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:g(()=>[f(G)?(p(),_("img",Ca)):B("v-if",!0)]),_:1},8,["disabled"]),c(l,{disabled:f(G),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:g(()=>[f(G)?B("v-if",!0):(p(),_("img",Na))]),_:1},8,["disabled"])])]),n("div",Da,[c(Xt)]),La,c(J,{class:"legend",accordion:""},{default:g(()=>[c(b,{name:"1"},{title:g(()=>[M("\u56FE\u4F8B")]),default:g(()=>[n("div",Wa,[c(C,{modelValue:te.value,"onUpdate:modelValue":e[8]||(e[8]=s=>te.value=s),onChange:t.change},{default:g(()=>[(p(!0),_(X,null,Y(f(ye),(s,W,E)=>(p(),R(m,{key:E,style:Bt({backgroundColor:s.color,border:"1px solid value.color",width:"100%"}),"v-model":s.disabled,disabled:s.disabled,label:W},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),n("div",Ea,[n("div",null,[n("div",Ia,[za,n("span",null,L(f(Re)),1)]),(p(!0),_(X,null,Y(U.value.info,(s,W)=>(p(),_("div",{key:W,class:"rowWra"},[n("span",null,L(s.level)+"\uFF1A",1),n("span",null,L(parseInt(s.area).toFixed(2))+"\u4EA9",1)]))),128))]),n("div",{class:"cancel",onClick:De},"X")]),Ae.value?(p(),R(u,{key:0,class:"back_button",onClick:e[9]||(e[9]=s=>Dt())},{default:g(()=>[M("\u8FD4\u56DE")]),_:1})):B("v-if",!0)]),n("div",Ma,[n("div",Fa,[c(v,{inline:!0,model:f(x),class:"demo-form-inline"},{default:g(()=>[c(N,{label:"\u65F6\u95F4:"},{default:g(()=>[c(i,{"popper-class":"selectCity",modelValue:f(x).time,"onUpdate:modelValue":e[10]||(e[10]=s=>f(x).time=s),placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[(p(!0),_(X,null,Y(f(ge),(s,W)=>(p(),R(o,{key:W,label:t.Zitem,value:s},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),c(N,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:g(()=>[c(i,{"popper-class":"selectCity",modelValue:f(x).statistical,"onUpdate:modelValue":e[11]||(e[11]=s=>f(x).statistical=s),placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[c(o,{label:"\u9547\u7EA7",value:"\u9547"}),c(o,{label:"\u6751\u7EA7",value:"\u6751"}),c(o,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})]),_:1},8,["modelValue"])]),_:1}),c(N,{label:"\u5E72\u65F1\u7B49\u7EA7"},{default:g(()=>[c(i,{modelValue:f(x).droughtRating,"onUpdate:modelValue":e[12]||(e[12]=s=>f(x).droughtRating=s),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[c(o,{label:"\u5168\u90E8",value:""}),c(o,{label:"\u6E7F\u6DA6",value:"\u6E7F\u6DA6"}),c(o,{label:"\u9002\u5B9C",value:"\u9002\u5B9C"}),c(o,{label:"\u8F7B\u5EA6\u5E72\u65F1",value:"\u8F7B\u5EA6\u5E72\u65F1"}),c(o,{label:"\u4E2D\u5EA6\u5E72\u65F1",value:"\u4E2D\u5EA6\u5E72\u65F1"}),c(o,{label:"\u91CD\u5EA6\u5E72\u65F1",value:"\u91CD\u5EA6\u5E72\u65F1"})]),_:1},8,["modelValue"])]),_:1}),c(N,{label:"\u9762\u79EF(\u4EA9)>"},{default:g(()=>[c(O,{modelValue:ve.value,"onUpdate:modelValue":e[13]||(e[13]=s=>ve.value=s),min:1,onChange:zt},null,8,["modelValue"])]),_:1}),c(N,null,{default:g(()=>[c(u,{type:"primary",onClick:we},{default:g(()=>[M("\u67E5\u8BE2")]),_:1}),c(u,{plain:"",onClick:vt,disabled:!f(H)},{default:g(()=>[M(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),f(le)?B("v-if",!0):(p(),R(u,{key:0,type:"primary",text:"",onClick:St},{default:g(()=>[Ta,M(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),n("div",{class:"modeDiv",onClick:It},[n("div",{class:Ze(f(H)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),n("div",{class:Ze(f(H)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),$e(n("div",Pa,[n("div",Aa,[f(le)?B("v-if",!0):(p(),R(r,{key:0,data:f(w),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:g(()=>[c(a,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(p(!0),_(X,null,Y(f(be),(s,W)=>(p(),R(a,{key:W,prop:s.value,label:W==0?s.lable:s.lable+"(\u4EA9)",align:"center"},{default:g(E=>[s.value=="\u8F7B\u5EA6\u5E72\u65F1"?(p(),_("span",Oa,L(E.row[s.value]),1)):s.value=="\u4E2D\u5EA6\u5E72\u65F1"?(p(),_("span",Ba,L(E.row[s.value]),1)):s.value=="\u91CD\u5EA6\u5E72\u65F1"?(p(),_("span",Ra,L(E.row[s.value]),1)):(p(),_("span",Va,L(E.row[s.value]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]))]),c(r,{data:f(me),"header-cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:g(()=>[c(a,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Nt}),(p(!0),_(X,null,Y(f(be),(s,W)=>(p(),R(a,{key:W,prop:s.value,label:W==0?s.lable:s.lable+"(\u4EA9)",align:"center"},{default:g(E=>[s.value=="\u8F7B\u5EA6\u5E72\u65F1"?(p(),_("span",qa,L(E.row[s.value]),1)):s.value=="\u4E2D\u5EA6\u5E72\u65F1"?(p(),_("span",Ga,L(E.row[s.value]),1)):s.value=="\u91CD\u5EA6\u5E72\u65F1"?(p(),_("span",Ha,L(E.row[s.value]),1)):(p(),_("span",ja,L(E.row[s.value]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]),n("div",Ua,[M(" \u5171"+L(P.value.length)+"\u6761 ",1),c(Le,{background:"",layout:"prev, pager, next",total:P.value.length,"current-page":f(F),"page-size":f(T),onCurrentChange:Ct},null,8,["total","current-page","page-size"])])],512),[[Je,f(H)]]),$e(n("div",Za,[n("div",{ref_key:"chartModeDiv",ref:re,class:"chartModeDiv"},null,512)],512),[[Je,!f(H)]])])])}}},lo=Mt($a,[["__scopeId","data-v-252bfa44"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/drought/Drought.vue"]]);export{lo as default};