Agriculture-front-end/dist/assets/Freeze.c04fde1c.js
2023-06-12 17:02:41 +08:00

2 lines
39 KiB
JavaScript

import{H as R,_ as Mt,r as p,A as Me,U as Tt,V as Ft,W as Te,d as N,o as y,c as L,l as n,m as z,e as c,w as h,f,g as M,L as J,N as Y,k as E,F as It,x as H,G as Ge,C as He,D as Qe,y as Et,p as At,q as Pt}from"./index.48137ccf.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 qt,e as Xt}from"./linesGL.90f708a5.js";import{_ as Vt}from"./dow.f37c8d82.js";import{i as Q,L as ge}from"./index.c9f5bd8b.js";import{T as $t}from"./TimeLine.74a971ad.js";import{u as me}from"./useEcharts.5ac9cbca.js";import{d as Ue}from"./download.b1d8c1b6.js";import{u as Fe,w as jt}from"./xlsx.86b9426e.js";function Je(_){return R({url:"equipment/statisticsOfTheArea",method:"get",params:_})}function Ye(_){return R({url:"equipment/proportionOfTheArea",method:"get",params:_})}function Ke(_){return R({url:"equipment/eachFreezingGradeArea",method:"get",params:_})}function et(_){return R({url:"equipment/townshipArea",method:"get",params:_})}function tt(_){return R({url:"equipment/administrativeArea",method:"get",params:_})}function Gt(){return R({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 Ht(_){return R({url:"equipment/freezeWarningYear",method:"get",params:_})}function Qt(_){return R({url:"equipment/freezeWarning",method:"get",params:_})}const T=_=>(At("data-v-158b2a96"),_=_(),Pt(),_),Ut={class:"fatherDiv"},Jt={class:"centerBox"},Yt=T(()=>n("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Kt={class:"leftWra"},ea={class:"leftTop"},ta={class:"title"},aa=T(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),oa=T(()=>n("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ra={class:"leftbottom"},la={class:"title"},na=T(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),ia=T(()=>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=T(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),ma=T(()=>n("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),va={class:"rightbottom"},ha={class:"title"},ba=T(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),ya=T(()=>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="'+qt+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+Xt+'" alt="" data-v-158b2a96></span></div>',1),Ca={class:"mt-4"},ka={id:"popup"},Da={id:"pop"},Na={key:0},La=T(()=>n("div",null,"\u6751\u540D\uFF1A",-1)),za={class:"tabulation"},Wa={class:"searchDiv"},Ma=T(()=>n("img",{src:Vt,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 g=p(null);const Ie=p(null),Ee=p(null),Ae=p(null);p(null);const Pe=p(null),D=p("370211"),at=p(null);let F=Me({arr:[],brr:[],crr:[]});const A=p({}),ot=p([]),K=p(!1);let Z=p(!1),q=p(!1);const ne=p(["false"]);let Oe=p([]),ee=Me({lable:[],value:[]}),ie=p([]),be=p(0),O=p(1),B=p(12);const X=p([]),ye=p(1);let _e=p([]),we=p([]),U=p(!0),xe=p([]);const se=p(null);let V=p(!0),k=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"],$={\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}}),Ve("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),j([o])})});var te={title:[]};let W={\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(),qe(),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(){g=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})}),g.cesiumWidget.creditContainer.style.display="none",g.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])}),g.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(g.canvas);t.setInputAction(function(e){var a=g.camera.getPickRay(e.position),o=g.scene.globe.pick(a,g.scene);if(o){let l=Cesium.Cartographic.fromCartesian(o);if(l){let r=new Cesium.Cartesian2,d=g.camera.positionCartographic.height,u=nt(d);const w=g.imageryLayers._layers,b=w.findIndex(i=>i._imageryProvider._layers&&i._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(b>-1){const i=w[b];let m=i._imageryProvider;if(m&&m.ready&&m._layers&&i.show===!0){r=m.tilingScheme.positionToTileXY(l,u,r);let C=m.pickFeatures(r.x,r.y,u,l.longitude,l.latitude);C&&C.then(v=>{if(v.length>0){let I=v[0];if(I.properties&&I.properties.XZDM)if(console.log("XZDM:",oe),console.log("newData.properties.XZDM:",I.properties.XZDM),oe!==I.properties.XZDM){K.value=!0,oe=I.properties.XZDM,D.value=oe,ue&&ue();let s=I.data;g.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(s.bbox[0],s.bbox[1],s.bbox[2],s.bbox[3]),duration:2}),G("townLine"),ke(s.geometry&&s.geometry.coordinates,"townLine","yellow"),j(["village_CQL"]),ct(`XZDM=${I.properties.XZDM}`,"village_CQL");let x=g.entities._entities._array;for(var P=x.length-1;P>=0;P--)if(x[P]._name&&x[P]._name==="point"+I.properties.XZDM){let We=x[P]._info;ae.value=We,je(e.position),g.scene.postRender.addEventListener(ze)}G("villageLine"),De=""}else dt(w,r,u,l,e);else j(["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(b=>{if(b.length>0){let i=b[0];if(console.log(i),g.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(i.data.bbox[0],i.data.bbox[1],i.data.bbox[2],i.data.bbox[3]),duration:2}),i.properties&&i.properties.XZQDM)if(De!==i.properties.XZQDM){De=i.properties.XZQDM;let m=i.data;G("villageLine"),ke(m.geometry&&m.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(b=>{if(b.length>0){let i=b[0],m="";switch(i.properties.value){case 1:m="\u65E0\u51BB\u5BB3";break;case 2:m="\u8F7B\u5EA6\u51BB\u5BB3";break;case 3:m="\u4E2D\u5EA6\u51BB\u5BB3";break;case 4:m="\u91CD\u5EA6\u51BB\u5BB3";break}let C=Cesium.Math.toDegrees(o.longitude).toFixed(6),v=Cesium.Math.toDegrees(o.latitude).toFixed(6);A.value={lon:C,lat:v,grade:m},console.log(A.value),je(l.position),g.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,g.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,g.imageryLayers.addImageryProvider(a)}function j(t,e){if(g){const a=g.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&&g.imageryLayers.remove(a[o]):a[o]._imageryProvider.customName===l&&g.imageryLayers.remove(a[o]))})}}function G(t){if(g){let a=g.entities._entities._array;for(var e=a.length-1;e>=0;e--)a[e]._name&&a[e]._name===t&&g.entities.remove(a[e])}}function ft(){if(Z.value=!Z.value,Z.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(q.value=!q.value,q.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=[];O.value=1,Qt({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))})}),U.value=!1,X.value=e,xe.value=e.slice((O.value-1)*B.value,(O.value-1)*B.value+B.value),k.value[0].\u65E0\u51BB\u5BB3=0,k.value[0].\u8F7B\u5EA6\u51BB\u5BB3=0,k.value[0].\u4E2D\u5EA6\u51BB\u5BB3=0,k.value[0].\u91CD\u5EA6\u51BB\u5BB3=0,k.value[0].region="\u5408\u8BA1",e.forEach(r=>{r.\u65E0\u51BB\u5BB3&&(k.value[0].\u65E0\u51BB\u5BB3+=Number(r.\u65E0\u51BB\u5BB3)!==NaN?Number(r.\u65E0\u51BB\u5BB3):0),r.\u8F7B\u5EA6\u51BB\u5BB3&&(k.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&&(k.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&&(k.value[0].\u91CD\u5EA6\u51BB\u5BB3+=Number(r.\u91CD\u5EA6\u51BB\u5BB3)!==NaN?Number(r.\u91CD\u5EA6\u51BB\u5BB3):0)});for(const r in k.value[0])console.log(k.value[0][r]),k.value[0][r]!=="\u5408\u8BA1"&&(k.value[0][r]=k.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=Q(o);window.addEventListener("resize",()=>{o.style.width=window.innerWidth-200+"px",o.style.height=window.innerHeight-200+"px",l.resize()}),Xe()})},mt=()=>{V.value=!V.value;const t=se.value;t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px";const e=Q(t);window.addEventListener("resize",()=>{t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px",e.resize()}),Xe()},vt=()=>{let t=JSON.parse(JSON.stringify(k.value[0]));t.region="\u5408\u8BA1",X.value.push(t),ce(X.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,U.value=!0,Ne()},bt=()=>{Ht().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($).forEach(l=>{let r=0;o.findIndex(u=>(u&&u.level===l&&(r=u.area),u&&u.level===l))>-1?$[l].push(r):$[l].push(0)})}),qe()})},Le=t=>{et({divisions:t}).then(e=>{F.brr=e.data,F.arr=e.data.sort((d,u)=>d.streetName.length-u.streetName.length),F.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let a=[],o=[];F.arr.forEach(d=>{a.indexOf(d.streetName)==-1&&(a.push(d.streetName),o.push({streetName:d.streetName,streetCode:d.streetCode}))}),F.arr=o,console.log(F.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(b=>{if(d===b.streetName)return b});Object.keys(W).forEach(b=>{w.findIndex(m=>m&&m.type===b)>-1?W[b].push(1):W[b].push(null)})}),re()})},_t=t=>{tt({divisions:t}).then(e=>{F.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(W).forEach(u=>{d.findIndex(b=>b&&b.type===u)>-1?W[u].push(1):W[u].push(null)})}),re()})},ue=()=>{if(Gt().then(t=>{console.log(t),t.features.forEach(e=>{e.properties.XZDM==D.value&&(G("townLine"),ke(e.geometry.coordinates,"townLine","yellow"),g.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]),duration:0}))})}),g.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),G("townLine"),Re(D.value),Ze(D.value),_t(D.value),D.value=="370211"){j(["village_CQL"]),oe=null,j(["aaa"]),Le(),le(),re(),fe(),pe();return}re(),fe(),pe(),[...F.arr]},wt=t=>{Je({divisions:D.value,whetherToDownload:!0}).then(e=>{Ue(e.data[e.data.length-1].downloadPath)})},xt=t=>{Ye({divisions:D.value,whetherToDownload:!0}).then(e=>{Ue(e.data[e.data.length-1].downloadPath)})},St=t=>{Ke({divisions:D.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=>{D.value==="370211"?et({divisions:D.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:D.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)"}),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=Q(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=Q(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 qe(){const t=Q(Ae.value);console.log(W);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:$.\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:$.\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:$.\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:$.\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 Xe(){const t=Q(se.value);let e=[],a=[],o=[],l=[],r=[];X.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=10/e.length*100,u={tooltip:{trigger:"axis",formatter:function(i){let m=i[0].axisValueLabel+"</br>",C=0;for(let v=0;v<i.length;v++)C+=i[v].value,i[v].seriesName!=="\u5408\u8BA1"&&(m+=i[v].seriesName+"\uFF1A"+i[v].value+"</br>");for(let v=0;v<i.length;v++)C+=Number(i[v].value),i[v].seriesName==="\u5408\u8BA1"&&(m+="\u5408\u8BA1\uFF1A"+C);return m},axisPointer:{type:"shadow"}},dataZoom:[{type:"slider",width:"40%",top:"90%",start:0,end:d,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: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}]};u.series;var w=u.tooltip;function b(i){let m=i[0].axisValueLabel+"</br>",C=0;for(let v=0;v<i.length;v++)if(i[v].seriesName!=="\u5408\u8BA1"){const P=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${i[v].color}"></span>`;C+=i[v].value,m+=P+i[v].seriesName+"\uFF1A"+i[v].value+"</br>"}for(let v=0;v<i.length;v++)i[v].seriesName==="\u5408\u8BA1"&&(m+="\u5408\u8BA1\uFF1A"+C);return m}w.formatter=b,me(t,u)}function Ve(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=g.imageryLayers.addImageryProvider(a);e.indexOf("gbznt")>-1&&(g.imageryLayers.lowerToBottom(o),g.imageryLayers.raise(o))}const Dt=t=>{O.value=t,xe.value=X.value.slice((O.value-1)*B.value,(O.value-1)*B.value+B.value)},Nt=t=>{const e=O.value,a=B.value;return t+1+(e-1)*a};function Lt(){Le("370211"),delete ae.value.XZQMC,G("townLine"),G("villageLine"),j(["gbznt"],!0),j(["aaa"]),D.value="370211",ue(),K.value==="1"&&(console.log(K.value),Ve("shuzisannong:huangdaoqu_town","tl")),g.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),K.value=!1,le()}function re(){const t=Q(Pe.value);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(a){let o=0;return F.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:W.\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:W.\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:W.\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:W.\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,b)=>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(A.value.lon&&A.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(A.value.lon),Number(A.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(g.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"),g.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=N("el-table-column"),o=N("el-table"),l=N("el-tooltip"),r=N("el-option"),d=N("el-select"),u=N("el-checkbox"),w=N("el-checkbox-group"),b=N("el-collapse-item"),i=N("el-collapse"),m=N("el-button"),C=N("el-form-item"),v=N("el-input-number"),P=N("el-form"),I=N("el-pagination");return y(),L("div",Ut,[n("div",Jt,[Yt,n("div",Kt,[n("div",ea,[n("div",ta,[aa,n("p",{onClick:e[0]||(e[0]=s=>wt())},[z(" \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())},[z(" \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: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=>ft())},[c(l,{class:"box-item","show-arrow":!1,disabled:f(Z),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:h(()=>[f(Z)?M("v-if",!0):(y(),L("img",da))]),_:1},8,["disabled"]),c(l,{disabled:!f(Z),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:h(()=>[f(Z)?(y(),L("img",ua)):M("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())},[z(" \u4E0B\u8F7D \xA0 "),ma])]),n("div",{ref_key:"farmlandDiv",ref:Ae,class:"farmlandDiv"},null,512),M(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),n("div",va,[n("div",ha,[ba,n("p",{onClick:e[4]||(e[4]=s=>Ct())},[z(" \u4E0B\u8F7D \xA0 "),ya])]),c(d,{"popper-class":"select_city",onChange:e[5]||(e[5]=s=>ue(t.item)),modelValue:D.value,"onUpdate:modelValue":e[6]||(e[6]=s=>D.value=s),placeholder:"\u5168\u90E8"},{default:h(()=>[(y(!0),L(J,null,Y(f(F).arr,s=>(y(),E(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(q),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:h(()=>[f(q)?(y(),L("img",_a)):M("v-if",!0)]),_:1},8,["disabled"]),c(l,{disabled:f(q),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:h(()=>[f(q)?M("v-if",!0):(y(),L("img",wa))]),_:1},8,["disabled"])])]),n("div",xa,[c($t)]),Sa,c(i,{class:"legend",accordion:""},{default:h(()=>[c(b,{name:"1"},{title:h(()=>[z("\u56FE\u4F8B")]),default:h(()=>[n("div",Ca,[c(w,{modelValue:ne.value,"onUpdate:modelValue":e[8]||(e[8]=s=>ne.value=s),onChange:t.change},{default:h(()=>[(y(!0),L(J,null,Y(f(Se),(s,x,We)=>(y(),E(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,[z(" \u7B49\u7EA7\uFF1A "),n("p",null,H(A.value.grade),1)]),n("div",null,[z(" \u7ECF\u5EA6\uFF1A "),n("p",null,H(A.value.lon),1)]),n("div",null,[z(" \u7EAC\u5EA6\uFF1A "),n("p",null,H(A.value.lat),1)]),n("div",{class:"cancel",onClick:le},"X")]),n("div",Da,[(y(!0),L(J,null,Y(f(ae).label,(s,x)=>(y(),L("div",{key:x},[n("div",null,H(s.crop)+"\uFF1A",1),n("div",null,H(s.Shape_Area)+" \u4EA9",1)]))),128)),f(ae).XZQMC?(y(),L("div",Na,[La,n("div",null,H(f(ae).XZQMC),1)])):M("v-if",!0),n("div",{class:"cancel",onClick:le},"X")]),K.value?(y(),E(m,{key:0,class:"back_button",onClick:e[9]||(e[9]=s=>Lt())},{default:h(()=>[z("\u8FD4\u56DE")]),_:1})):M("v-if",!0)]),n("div",za,[n("div",Wa,[c(P,{inline:!0,model:f(S),class:"demo-form-inline"},{default:h(()=>[c(C,{label:"\u65F6\u95F4:"},{default:h(()=>[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:h(()=>[(y(!0),L(J,null,Y(f(_e),(s,x)=>(y(),E(r,{key:x,label:t.Zitem,value:s},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),c(C,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:h(()=>[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:h(()=>[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(C,{label:"\u51B7\u51BB\u7B49\u7EA7"},{default:h(()=>[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:h(()=>[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(C,{label:"\u9762\u79EF(\u4EA9)>"},{default:h(()=>[c(v,{modelValue:ye.value,"onUpdate:modelValue":e[13]||(e[13]=s=>ye.value=s),min:1,onChange:gt},null,8,["modelValue"])]),_:1}),c(C,null,{default:h(()=>[c(m,{type:"primary",onClick:Ne},{default:h(()=>[z("\u67E5\u8BE2")]),_:1}),c(m,{plain:"",onClick:ht,disabled:!f(V)},{default:h(()=>[z(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),f(U)?M("v-if",!0):(y(),E(m,{key:0,type:"primary",text:"",onClick:vt},{default:h(()=>[Ma,z(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),n("div",{class:"modeDiv",onClick:mt},[n("div",{class:Ge(f(V)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),n("div",{class:Ge(f(V)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),He(n("div",Ta,[n("div",Fa,[f(U)?M("v-if",!0):(y(),E(o,{key:0,data:f(k),"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"}),(y(!0),L(J,null,Y(f(we),(s,x)=>(y(),E(a,{key:x,prop:s.value,label:x==0?s.lable:s.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),f(U)?(y(),E(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:x=>t.download(s.row)}," \u4E0B\u8F7D ",8,Ia)]),_:1})):M("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:h(()=>[c(a,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Nt}),(y(!0),L(J,null,Y(f(we),(s,x)=>(y(),E(a,{key:x,prop:s.value,label:x==0?s.lable:s.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),f(U)?(y(),E(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:x=>t.download(s.row)}," \u4E0B\u8F7D ",8,Ea)]),_:1})):M("v-if",!0)]),_:1},8,["data"]),n("div",Aa,[z(" \u5171"+H(X.value.length)+"\u6761 ",1),c(I,{background:"",layout:"prev, pager, next",total:X.value.length,"current-page":f(O),"page-size":f(B),onCurrentChange:Dt},null,8,["total","current-page","page-size"])])],512),[[Qe,f(V)]]),He(n("div",Pa,[n("div",{ref_key:"chartModeDiv",ref:se,class:"chartModeDiv"},null,512)],512),[[Qe,!f(V)]])])])}}},Qa=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{Qa as default};