Agriculture-front-end/dist/assets/Site.85c4da89.js
2023-06-12 17:02:41 +08:00

2 lines
39 KiB
JavaScript

import{H as X,_ as Pt,r as d,A as He,U as Bt,V as At,W as Me,d as D,o as h,c as I,l as s,m as z,e as u,w as b,f,g as P,L as ae,N as oe,k as H,x as J,B as Rt,F as Zt,G as Je,C as Qe,D as Ue,y as Ot,p as Xt,q as Vt}from"./index.48137ccf.js";import pe from"./downloads.e955445d.js";import{_ as ge}from"./close1.45635d81.js";import{_ as $t,a as jt,b as qt,c as Ht,d as Jt,e as Qt}from"./linesGL.90f708a5.js";import{_ as Ut}from"./dow.f37c8d82.js";import{i as Q,L as K}from"./index.c9f5bd8b.js";import{T as Gt}from"./TimeLine.74a971ad.js";import{u as B,w as We}from"./xlsx.86b9426e.js";import{u as fe}from"./useEcharts.5ac9cbca.js";function Ge(y){return X({url:"crops/farmland",method:"get",params:y})}function Yt(y){return X({url:"crops/statistics",method:"get",params:y})}function Ye(y){return X({url:"crops/highStandards",method:"get",params:y})}function Ke(y){return X({url:"crops/gradeStatistics",method:"get",params:y})}function et(y){return X({url:"crops/administrativeDivisions",method:"get",params:y})}function Kt(){return X({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 ea(y){return X({url:"crops/growthTime",method:"get",params:y})}function ta(y){return X({url:"crops/growthList",method:"get",params:y})}const T=y=>(Xt("data-v-1e2a71d9"),y=y(),Vt(),y),aa={class:"fatherDiv"},oa={class:"centerBox"},ra=T(()=>s("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),la={class:"leftWra"},sa={class:"leftTop"},ia={class:"title"},na=T(()=>s("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),da=T(()=>s("img",{src:pe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ua={class:"leftbottom"},ca={class:"title"},fa=T(()=>s("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),pa=T(()=>s("img",{src:pe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ga={class:"tableDiv"},ma={key:0,src:ge,alt:""},ba={key:0,class:"imgrotate",src:ge,alt:""},va={class:"rightWra"},ha={class:"rightTop"},ya={class:"title"},_a=T(()=>s("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),wa=T(()=>s("img",{src:pe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),xa={class:"rightbottom"},Sa={class:"title"},ka=T(()=>s("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Ca=T(()=>s("img",{src:pe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Da={key:0,src:ge,alt:""},Na={key:0,class:"imgrotate",src:ge,alt:""},La={class:"bottom_center"},Ma=Ot('<div class="tool" data-v-1e2a71d9><span data-v-1e2a71d9><img src="'+$t+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+jt+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+qt+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+Ht+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+Jt+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+Qt+'" alt="" data-v-1e2a71d9></span></div>',1),Wa={id:"popup"},za={id:"pop"},Ia={key:0},Ta=T(()=>s("div",null,"\u6751\u540D\uFF1A",-1)),Ea={class:"mt-4"},Fa={class:"tabulation"},Pa={class:"searchDiv"},Ba=T(()=>s("img",{src:Ut,alt:""},null,-1)),Aa={class:"tableBox"},Ra={class:"tableBorder"},Za={class:"example-pagination-block"},Oa={class:"chartMode"},Xa={__name:"Site",setup(y){let p=d(null);const ze=d(null),Ie=d(null),Te=d(null);d(null);const Ee=d(null),x=d("370211"),tt=d(null);let E=He({arr:[],brr:[],crr:[]});He({arr:[]});const F=d({}),at=d([]),ot=d([]),me=d(!1);let A=d(!0),V=d(!0);d("{x:765,y:191}");let Fe=d([]),be=d([]),ve=d(0);d([]);let U=d(["false"]),Pe=d([]);const he=d(0);let ye=d([]),$=d(!0);const re=d(null);let R=d(1),Z=d(12),ee=d([]),Be=d([]),le=d(!0),S=d([{\u597D:0,\u8F83\u597D:0,\u9002\u4E2D:0,\u8F83\u5DEE:0,\u5DEE:0}]),_e=d([]),Ae=["\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"],j={good:[],better:[],moderate:[],poor:[],difference:[]};const G=d([]);let k=d({time:"",statistical:"\u9547",droughtRating:"",area:he.value}),se=d([]),we={\u597D:{color:"rgba(50, 148, 1, 1)",disabled:!1},\u8F83\u597D:{color:"rgba(154, 208, 0, 1)",disabled:!1},\u9002\u4E2D:{color:"rgba(234, 219, 0, 1)",disabled:!1},\u8F83\u5DEE:{color:"rgba(239, 152, 0, 1)",disabled:!1},\u5DEE:{color:"rgba(247, 85, 0, 1)",disabled:!1}};Bt(()=>U.value,(a,e)=>{a.length>e.length?(a.filter(t=>{if(e.findIndex(l=>l===t)<0)return t}).forEach(t=>{switch(t){case"\u597D":te(5,t);break;case"\u8F83\u597D":te(4,t);break;case"\u9002\u4E2D":te(3,t);break;case"\u8F83\u5DEE":te(2,t);break;case"\u5DEE":te(1,t);break}}),It("shuzisannong:huangdaoqu_town","tl")):a.length<e.length&&e.filter(t=>{if(a.findIndex(l=>l===t)<0)return t}).forEach(t=>{console.log(t),q([t])})});var Y={title:[]};let _=d({good:[],better:[],difference:[],moderate:[],poor:[]});const rt=()=>{console.log(at.value)};let O=d([]);At(()=>{Ze("370211"),Oe("370211"),_t(),Xe("370211"),yt(),st(),nt();for(const a in we)we[a].disabled!==!0&&(console.log(a),Pe.value.push(a));U.value=Pe.value});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 st(){p=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})}),p.cesiumWidget.creditContainer.style.display="none",p.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),dt(),Ft()}function xe(a,e,o){a.forEach(t=>{let r=[];t[0].forEach(l=>{r.push(l[0]),r.push(l[1])}),p.entities.add({name:e,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(r),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:o?Cesium.Color.fromCssColorString(o):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function it(a){return a>48e6?0:a>24e6?1:a>12e6?2:a>6e6?3:a>3e6?4:a>15e5?5:a>75e4?6:a>375e3?7:a>187500?8:a>93750?9:a>46875?10:a>23437.5?11:a>11718.75?12:a>5859.38?13:a>2929.69?14:a>1464.84?15:a>732.42?16:a>366.21?17:18}function nt(){Me({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afarmland&maxFeatures=50&outputFormat=application%2Fjson",method:"get"}).then(a=>{console.log("\u519C\u7530\uFF1A",a),ot.value=a.data.features}).catch(a=>{})}let ie=d({label:[]}),ne="";function dt(){var a=new Cesium.ScreenSpaceEventHandler(p.canvas);a.setInputAction(function(e){var o=p.camera.getPickRay(e.position),t=p.scene.globe.pick(o,p.scene);if(t){let r=Cesium.Cartographic.fromCartesian(t);if(r){let l=new Cesium.Cartesian2,c=p.camera.positionCartographic.height,m=it(c);const C=p.imageryLayers._layers,N=C.findIndex(v=>v._imageryProvider._layers&&v._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(N>-1){const v=C[N];let i=v._imageryProvider;if(i&&i.ready&&i._layers&&v.show===!0){l=i.tilingScheme.positionToTileXY(r,m,l);let w=i.pickFeatures(l.x,l.y,m,r.longitude,r.latitude);w&&w.then(L=>{if(L.length>0){let M=L[0];if(M.properties&&M.properties.XZDM)if(console.log("XZDM:",ne),console.log("newData.properties.XZDM:",M.properties.XZDM),ne!==M.properties.XZDM){me.value=!0,ne=M.properties.XZDM,x.value=ne,Ce&&Ce();let n=M.data;p.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(n.bbox[0],n.bbox[1],n.bbox[2],n.bbox[3]),duration:2}),de("townLine"),xe(n.geometry&&n.geometry.coordinates,"townLine","yellow"),q(["village_CQL"]),console.log(M.properties.XZDM),Re(`XZDM=${M.properties.XZDM}`,"village_CQL");let W=p.entities._entities._array;for(var g=W.length-1;g>=0;g--)if(W[g]._name&&W[g]._name==="point"+M.properties.XZDM){let Le=W[g]._info;ie.value=Le,qe(e.position),p.scene.postRender.addEventListener(Ne)}de("villageLine"),Se=""}else ut(C,l,m,r,e);else q(["village_CQL"]),ce()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let Se="";function ut(a,e,o,t,r){const l=a.findIndex(c=>c._imageryProvider._layers&&c._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(l>-1){const c=a[l];let m=c._imageryProvider;if(m&&m.ready&&m._layers&&c.show===!0){e=m.tilingScheme.positionToTileXY(t,o,e);let C=m.pickFeatures(e.x,e.y,o,t.longitude,t.latitude);C&&C.then(N=>{if(N.length>0){let v=N[0];if(console.log(v),p.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(v.data.bbox[0],v.data.bbox[1],v.data.bbox[2],v.data.bbox[3]),duration:2}),v.properties&&v.properties.XZQDM)if(Se!==v.properties.XZQDM){Se=v.properties.XZQDM;let i=v.data;de("villageLine"),xe(i.geometry&&i.geometry.coordinates,"villageLine","yellow")}else ct(a,e,o,t,r)}})}}}function ct(a,e,o,t,r){console.log(a);const l=a.findIndex(c=>c._imageryProvider._layers&&c._imageryProvider._layers==="shuzisannong:growth");if(l>-1){const c=a[l];let m=c._imageryProvider;if(m&&m.ready&&m._layers&&c.show===!0){e=m.tilingScheme.positionToTileXY(t,o,e);let C=m.pickFeatures(e.x,e.y,o,t.longitude,t.latitude);C&&C.then(N=>{if(N.length>0){let v=N[0],i="";switch(v.properties.value){case 1:i="\u5DEE";break;case 2:i="\u8F83\u5DEE";break;case 3:i="\u9002\u4E2D";break;case 4:i="\u8F83\u597D";break;case 5:i="\u597D";break}let w=Cesium.Math.toDegrees(t.longitude).toFixed(6),L=Cesium.Math.toDegrees(t.latitude).toFixed(6);F.value={lon:w,lat:L,grade:i},console.log(F.value),qe(r.position),p.scene.postRender.addEventListener(Ne)}})}}}function te(a,e){let o=new Cesium.WebMapServiceImageryProvider({url:`${serverAPI.geoserverUrl}/shuzisannong/wms`,layers:"shuzisannong:growth",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:`value in (${a})`}});o.customName=e,p.imageryLayers.addImageryProvider(o)}function Re(a,e){let o=new Cesium.WebMapServiceImageryProvider({url:`${serverAPI.geoserverUrl}/shuzisannong/wms`,layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:a}});o.customName=e,p.imageryLayers.addImageryProvider(o)}function q(a,e){if(p){const o=p.imageryLayers._layers;for(let t=o.length-1;t>=0;t--)a.forEach(r=>{o[t]._imageryProvider&&o[t]._imageryProvider.customName&&(e?o[t]._imageryProvider.customName.indexOf(r)>-1&&p.imageryLayers.remove(o[t]):o[t]._imageryProvider.customName===r&&p.imageryLayers.remove(o[t]))})}}function de(a){if(p){let o=p.entities._entities._array;for(var e=o.length-1;e>=0;e--)o[e]._name&&o[e]._name===a&&p.entities.remove(o[e])}}function ft(){if(A.value=!A.value,A.value){let a=document.querySelector(".leftWra");a&&(a.style.transform="translate(0,0)")}else{let a=document.querySelector(".leftWra");a&&(a.style.transform="translate(-107%,0)")}console.log(A.value)}function pt(){if(V.value=!V.value,V.value){let a=document.querySelector(".rightWra");a.style.transform="translate(0,0)"}else{let a=document.querySelector(".rightWra");a.style.transform="translate(107%,0)"}}const gt=()=>{k.value.time=ye.value[0],k.value.statistical="\u9547",k.value.droughtRating="",k.value.area=1,le.value=!0,ke()},mt=()=>{$.value=!$.value;const a=re.value;a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px";const e=Q(a);window.addEventListener("resize",()=>{a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px",e.resize()}),$e()},bt=a=>{k.value.area=a},ke=()=>{R.value=1,ta({time:k.value.time,statistical:k.value.statistical,droughtRating:k.value.droughtRating,area:k.value.area}).then(a=>{Be.value=[{lable:"",value:"\u533A\u57DF\u540D\u79F0"},{lable:"\u597D",value:"\u597D"},{lable:"\u8F83\u597D",value:"\u8F83\u597D"},{lable:"\u9002\u4E2D",value:"\u9002\u4E2D"},{lable:"\u8F83\u5DEE",value:"\u8F83\u5DEE"},{lable:"\u5DEE",value:"\u5DEE"}],le.value=!1,G.value=a.data,ee.value=a.data.slice((R.value-1)*Z.value,(R.value-1)*Z.value+Z.value),console.log(ee.value),ee.value.forEach(t=>{_e.value.push({\u533A\u57DF\u540D\u79F0:t.subName,\u597D:t.good,\u8F83\u597D:t.better,\u9002\u4E2D:t.moderate,\u8F83\u5DEE:t.difference,\u5DEE:t.poor})}),S.value[0].\u597D=0,S.value[0].\u8F83\u597D=0,S.value[0].\u9002\u4E2D=0,S.value[0].\u8F83\u5DEE=0,S.value[0].\u5DEE=0,S.value[0].\u533A\u57DF\u540D\u79F0="\u5408\u8BA1",a.data.forEach(t=>{t.good&&(S.value[0].\u597D+=Number(t.good)!==NaN?Number(t.good):0),t.better&&(S.value[0].\u8F83\u597D+=Number(t.better)!==NaN?Number(t.better):0),t.moderate&&(S.value[0].\u9002\u4E2D+=Number(t.moderate)!==NaN?Number(t.moderate):0),t.difference&&(S.value[0].\u8F83\u5DEE+=Number(t.difference)!==NaN?Number(t.difference):0),t.poor&&(S.value[0].\u5DEE+=Number(t.poor)!==NaN?Number(t.poor):0)});for(const t in S.value[0])S.value[0][t]!=="\u5408\u8BA1"&&(S.value[0][t]=S.value[0][t].toFixed(2));const e=re.value;e.style.width=window.innerWidth-100+"px",e.style.height=window.innerHeight-100+"px";const o=Q(e);window.addEventListener("resize",()=>{e.style.width=window.innerWidth-200+"px",e.style.height=window.innerHeight-200+"px",o.resize()}),$e()})},vt=a=>{R.value=a,ee.value=G.value.slice((R.value-1)*Z.value,(R.value-1)*Z.value+Z.value)},ht=a=>{const e=R.value,o=Z.value;return a+1+(e-1)*o},yt=()=>{ea().then(a=>{ye.value=a.data,k.value.time=a.data[0],ke()})},Ze=a=>{Fe=d([]),be=d([]),Ge({divisions:a}).then(e=>{for(const o in e.data[0])e.data[0][o]&&(Fe.value.push(o),be.value.push(e.data[0][o]));Mt()})},Oe=a=>{se=d([]),O.value=[],ve=d(0),Yt({divisions:a}).then(e=>{console.log(e.data),e.data.forEach(o=>{ve.value=Number(o.sum),console.log(o);for(const t in o){t!=="sum"&&Number.isFinite(o[t])&&(se.value.push({name:t,value:o[t]}),O.value.push({date:t,name:o[t]})),O.value.forEach(l=>{o[`${l.date}Zb`]!==void 0&&(l.address=(o[`${l.date}Zb`]*100).toFixed(2)+"%")});let r=JSON.parse(JSON.stringify(O.value));r.forEach(l=>{switch(l.date){case"good":l.date="\u597D";break;case"better":l.date="\u8F83\u597D";break;case"moderate":l.date="\u9002\u4E2D";break;case"poor":l.date="\u8F83\u5DEE";break;case"difference":l.date="\u5DEE";break}}),O.value=r}}),Wt()})},_t=()=>{d([]),Ye().then(a=>{Ae.forEach((e,o)=>{a.data.map(t=>{if(e===t.region)for(const r in t)j[r]&&j[r].push(t[r])})}),zt()})},Xe=a=>{_.value.better=[],_.value.difference=[],_.value.good=[],_.value.moderate=[],_.value.poor=[],Ke({divisions:a,yearMonth:"2023-05"}).then(e=>{console.log(e.data),E.brr=e.data,E.arr=e.data.sort((r,l)=>r.subregionName.length-l.subregionName.length),E.arr.unshift({subregion:"370211",subregionName:"\u5168\u90E8"});let o=[...e.data],t=[];o.splice(0,1),o.forEach(r=>{t.indexOf(r.subregionName)==-1&&t.push(r.subregionName)}),Y.title=[...Object.values(t)],Y.title.forEach((r,l)=>{e.data.map(c=>{if(r===c.subregionName)return _.value.better.push(c.better),_.value.difference.push(c.difference),_.value.good.push(c.good),_.value.moderate.push(c.moderate),_.value.poor.push(c.poor),c})}),console.log(_),Ve()})},wt=a=>{let e={good:[],better:[],difference:[],moderate:[],poor:[]};et({divisions:a}).then(o=>{console.log(o.data),E.brr=o.data;let t=[...o.data],r=[];t.forEach(l=>{r.indexOf(l.subregionName)==-1&&r.push(l.subregionName)}),Y.title=[...Object.values(r)],Y.title.forEach((l,c)=>{o.data.map(m=>{if(l===m.subregionName)return e.better.push(m.better),e.difference.push(m.difference),e.good.push(m.good),e.moderate.push(m.moderate),e.poor.push(m.poor),m})}),_.value=e,Ve()})},Ce=()=>{Kt().then(e=>{console.log(e),e.features.forEach(o=>{o.properties.XZDM==x.value&&(de("townLine"),xe(o.geometry.coordinates,"townLine","yellow"),p.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),duration:0}))})}),p.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Ze(x.value),Oe(x.value),x.value!=="370211"&&wt(x.value),x.value=="370211"&&(q(["village_CQL"]),q(["aaa"]),Xe(),ce());let a=[...E.arr];console.log("arr:",a),[...E.arr],q(["aaa"]),Re(`XZDM=${x.value}`,"aaa")},xt=a=>{let e="";E.arr.forEach(o=>{o.subregion==x.value&&(e=o.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":o.subregionName)}),Ge({divisions:x.value}).then(o=>{let t=[{region:e=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":e,good:o.data[0].good,better:o.data[0].better,moderate:o.data[0].moderate,poor:o.data[0].poor,difference:o.data[0].difference}];ue(t,`${t[0].region}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1`,"Sheet1")})},St=a=>{let e="";E.arr.forEach(o=>{o.subregion==x.value&&(e=o.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":o.subregionName)}),console.log(O),Nt(O.value,`${e}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4`,"Sheet1")},kt=a=>{let e=[];Ye().then(o=>{console.log(o.data),o.data.forEach(t=>{e.push({region:t.region,good:t.good,better:t.better,moderate:t.moderate,poor:t.poor,difference:t.difference})}),ue(e,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530\u5217\u8868","Sheet1")})},Ct=a=>{let e="",o=[];E.arr.forEach(t=>{t.subregion==x.value&&(e=t.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":t.subregionName)}),x.value==="370211"?Ke({divisions:x.value,whetherToDownload:!1}).then(t=>{t.data.forEach(r=>{console.log(r),o.push({region:r.subregionName,good:r.good,better:r.better,moderate:r.moderate,poor:r.poor,difference:r.difference})}),ue(o,`${e}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")}):et({divisions:x.value,whetherToDownload:!1}).then(t=>{t.data.forEach(r=>{o.push({region:r.subregionName,good:r.good,better:r.better,moderate:r.moderate,poor:r.poor,difference:r.difference})}),ue(o,`${e}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})},Dt=()=>{console.log(G);let a=JSON.parse(JSON.stringify(S.value[0]));a.region="\u5408\u8BA1",_e.value.push(a),Lt(_e.value,"\u957F\u52BF\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},De=(a,e)=>a.map(t=>{const r={};console.log(t);for(const l in t)console.log(l),e[l]&&(r[e[l]]=t[l]);return r}),ue=(a,e="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const r=De(a,{region:"\u533A\u57DF\u540D\u79F0",good:"\u597D(\u4EA9)",better:"\u8F83\u597D(\u4EA9)",moderate:"\u9002\u4E2D(\u4EA9)",difference:"\u8F83\u5DEE(\u4EA9)",poor:"\u5DEE(\u4EA9)"}),l=B.json_to_sheet(r),c=B.book_new();B.book_append_sheet(c,l,o),We(c,`${e}.xlsx`)},Nt=(a,e="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const r=De(a,{date:"\u7C7B\u578B",name:"\u9762\u79EF(\u4EA9)",address:"\u5360\u6BD4"}),l=B.json_to_sheet(r),c=B.book_new();B.book_append_sheet(c,l,o),We(c,`${e}.xlsx`)},Lt=(a,e="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const r=De(a,{\u533A\u57DF\u540D\u79F0:"\u533A\u57DF\u540D\u79F0",\u597D:"\u597D(\u4EA9)",\u8F83\u597D:"\u8F83\u597D(\u4EA9)",\u9002\u4E2D:"\u9002\u4E2D(\u4EA9)",\u8F83\u5DEE:"\u8F83\u5DEE(\u4EA9)",\u5DEE:"\u5DEE(\u4EA9)"}),l=B.json_to_sheet(r),c=B.book_new();B.book_append_sheet(c,l,o),We(c,`${e}.xlsx`)};function Mt(){const a=Q(ze.value);let e=["\u597D","\u8F83\u597D","\u9002\u4E2D","\u8F83\u5DEE","\u5DEE"],o=be.value,t=!1;o.length>14?t=!0:t=!1;var r={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"10%",right:"5%",left:"18%",bottom:"10%"},xAxis:[{type:"category",data:e,axisLine:{lineStyle:{color:"rgba(66, 192, 255, .3)"}},axisLabel:{interval:0,margin:10,color:"rgba(255, 255, 255, 0.7)",textStyle:{fontSize:14},rotate:"0"},axisTick:{show:!1}}],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:{show:!1},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},dataZoom:[{show:t,type:"slider",realtime:!0,startValue:0,endValue:14,xAxisIndex:[0],bottom:"10",left:"30",height:10,borderColor:"rgba(0,0,0,0)",textStyle:{color:"#05D5FF"}}],series:[{type:"bar",data:o,barWidth:"15",itemStyle:{normal:{color:new K(0,0,0,1,[{offset:0,color:"rgba(45, 204, 177, 1)"},{offset:.98,color:"rgba(71, 179, 161, 0)"}],!1),shadowColor:"rgba(5, 213, 255, 1)",shadowBlur:4}},label:{normal:{show:!0,lineHeight:10,formatter:"{c}",position:"top",textStyle:{color:"#fff",fontSize:10}}}}]};r&&a.setOption(r),window.addEventListener("resize",function(){a.resize()})}function Wt(){const a=Q(Ie.value);se.value.forEach(t=>{switch(t.name){case"good":t.name="\u597D";break;case"better":t.name="\u8F83\u597D";break;case"moderate":t.name="\u9002\u4E2D";break;case"poor":t.name="\u8F83\u5DEE";break;case"difference":t.name="\u5DEE";break}});var e=se.value;let o={color:["rgba(50, 148, 1, 1)","rgba(154, 208, 0, 1)","rgba(234, 219, 0, 1)","rgba(239, 152, 0, 1)","rgba(247, 85, 0, 1)"],title:{text:"\u603B\u9762\u79EF",subtext:`${ve.value}\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:"\u4F5C\u7269\u957F\u52BF\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"}}}]}]};fe(a,o)}function zt(){const a=Q(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:Ae,axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.7)",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:"\u597D",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:j.good,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(50, 148, 1, 1)",color:new K(0,0,0,1,[{offset:0,color:"rgba(50, 148, 1, 1)"},{offset:1,color:"rgba(50, 148, 1, 1)"}])}}},{name:"\u8F83\u597D",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:j.better,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(154, 208, 0, 1)",color:new K(0,0,0,1,[{offset:0,color:"rgba(154, 208, 0, 1)"},{offset:1,color:"rgba(154, 208, 0, 1)"}])}}},{name:"\u9002\u4E2D",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:j.moderate,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 219, 0, 1)",color:new K(0,0,0,1,[{offset:0,color:"rgba(234, 219, 0, 1)"},{offset:1,color:"rgba(234, 219, 0, 1)"}])}}},{name:"\u8F83\u5DEE",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:j.poor,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(239, 152, 0, 1)",color:new K(0,0,0,1,[{offset:0,color:"rgba(239, 152, 0, 1)"},{offset:1,color:"rgba(239, 152, 0, 1)"}])}}},{name:"\u5DEE",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:j.difference,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(247, 85, 0, 1)",color:new K(0,0,0,1,[{offset:0,color:"rgba(247, 85, 0, 1)"},{offset:1,color:"rgba(247, 85, 0, 1)"}])}}}]};e&&a.setOption(e,{notMerge:!0,grid:{bottom:20}}),fe(a,e)}function It(a,e){let o=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:a,parameters:{service:"WMS",format:"image/png",transparent:!0}});o.customName=e;let t=p.imageryLayers.addImageryProvider(o);e.indexOf("gbznt")>-1&&(p.imageryLayers.lowerToBottom(t),p.imageryLayers.raise(t))}function Tt(){q(["gbznt"],!0),p.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),me.value=!1}function Ve(){const a=Q(Ee.value);console.log(_),console.log(Y);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(o){return o.seriesName+'<span style="font-size: 14px; color: #f00;">'+o.value.toFixed(2)+"</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:Y.title,inverse:!0}],series:[{type:"bar",name:"\u597D",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u597D",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(50, 148, 1, 1)"},{offset:1,color:"rgba(50, 148, 1, 1)"}]}},data:_.value.good},{type:"bar",name:"\u8F83\u597D",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F83\u597D",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(154, 208, 0, 1)"},{offset:1,color:"rgba(154, 208, 0, 1)"}]}},data:_.value.better},{type:"bar",name:"\u9002\u4E2D",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u9002\u4E2D",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, 219, 0, 1)"},{offset:1,color:"rgba(234, 219, 0, 1)"}]}},data:_.value.moderate},{type:"bar",name:"\u8F83\u5DEE",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F83\u5DEE",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(239, 152, 0, 1)"},{offset:1,color:"rgba(239, 152, 0, 1)"}]}},data:_.value.difference},{type:"bar",name:"\u5DEE",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u5DEE",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(247, 85, 0, 1)"},{offset:1,color:"rgba(247, 85, 0, 1)"}]}},data:_.value.poor}]};fe(a,e)}function $e(){const a=Q(re.value);let e=[],o=[],t=[],r=[],l=[],c=[];G.value.forEach(i=>{e.push(i.subName),i.good!==null?o.push(i.good):o.push(0),i.better!==null?t.push(i.better):t.push(0),i.moderate!==null?r.push(i.moderate):r.push(0),i.difference!==null?l.push(i.difference):l.push(0),i.poor!==null?c.push(i.poor):c.push(0)});let m=10/e.length*100,C={tooltip:{trigger:"axis",formatter:function(i){let w=i[0].axisValueLabel+"</br>",L=0;for(let g=0;g<i.length;g++)L+=i[g].value,i[g].seriesName!=="\u5408\u8BA1"&&(w+=i[g].seriesName+"\uFF1A"+i[g].value+"</br>");for(let g=0;g<i.length;g++)L+=Number(i[g].value),i[g].seriesName==="\u5408\u8BA1"&&(w+="\u5408\u8BA1\uFF1A"+L);return w},axisPointer:{type:"shadow"}},legend:{top:5,left:10,icon:"rect",itemWidth:4,itemHeight:12,data:[]},dataZoom:[{type:"slider",width:"40%",top:"90%",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:"\u597D",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 141, 26, 1)"},data:o},{name:"\u8F83\u597D",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 255, 26, 1)"},data:t},{name:"\u9002\u4E2D",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 201, 148, 1)"},data:r},{name:"\u8F83\u5DEE",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 84, 84, 1)"},data:l},{name:"\u5DEE",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 140, 255, 1)"},data:c}]};C.series;var N=C.tooltip;function v(i){let w=i[0].axisValueLabel+"</br>",L=0;for(let g=0;g<i.length;g++)if(i[g].seriesName!=="\u5408\u8BA1"){const M=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${i[g].color}"></span>`;L+=i[g].value,w+=M+i[g].seriesName+"\uFF1A"+i[g].value+"</br>"}for(let g=0;g<i.length;g++)i[g].seriesName==="\u5408\u8BA1"&&(w+="\u5408\u8BA1\uFF1A"+L);return w}N.formatter=v,fe(a,C)}function Et(){let a=je.value;console.log("fl:",a),Me({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(e=>{console.log("res1111:",e),e.data.features.forEach((t,r)=>{const l=Cesium.Rectangle.fromDegrees(t.bbox[0],t.bbox[1],t.bbox[2],t.bbox[3]),c=Cesium.Rectangle.center(l);Cesium.Math.toDegrees(c.longitude),Cesium.Math.toDegrees(c.latitude),t.properties.XZDM==="370211011"||t.properties.XZDM;const m=a[t.properties.XZMC];m&&m.map((C,N)=>C.properties)})}).catch(e=>{})}let je=d({});function Ft(){Me({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(a=>{let e=a.data.features,o={};e.forEach(t=>{let r=t.properties.town;o[r]?o[r].push(t):o[r]=[t]}),je.value=o,Et()}).catch(a=>{})}function Ne(){if(F.value.lon&&F.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(F.value.lon),Number(F.value.lat),0);var a=Cesium.SceneTransforms.wgs84ToWindowCoordinates(p.scene,e);if(Cesium.defined(a)){const o=document.getElementById("popup");o&&(o.style.top=a.y-10+"px",o.style.left=a.x+10+"px")}}}function ce(){const a=document.getElementById("popup");a&&(a.style.display="none"),p.scene.postRender.removeEventListener(Ne)}function qe(a){const e=document.getElementById("popup");e&&(e.style.display="block",e.style.position="absolute",e.style.top=a.y-10+"px",e.style.left=a.x+10+"px",e.style.zIndex=99)}return(a,e)=>{const o=D("el-table-column"),t=D("el-table"),r=D("el-tooltip"),l=D("el-option"),c=D("el-select"),m=D("el-checkbox"),C=D("el-checkbox-group"),N=D("el-collapse-item"),v=D("el-collapse"),i=D("el-button"),w=D("el-form-item"),L=D("el-input-number"),g=D("el-form"),M=D("el-pagination");return h(),I("div",aa,[s("div",oa,[ra,s("div",la,[s("div",sa,[s("div",ia,[na,s("p",{onClick:e[0]||(e[0]=n=>xt())},[z(" \u4E0B\u8F7D \xA0 "),da])]),s("div",{ref_key:"areaDiv",ref:ze,class:"areaDiv"},null,512),s("div",{ref_key:"leftProgressBarDiv",ref:tt,class:"ProgressBar"},null,512)]),s("div",ua,[s("div",ca,[fa,s("p",{onClick:e[1]||(e[1]=n=>St())},[z(" \u4E0B\u8F7D \xA0 "),pa])]),s("div",{ref_key:"typesofDiv",ref:Ie,class:"typesofDiv"},null,512),s("div",ga,[u(t,{data:f(O),style:{width:"100%"}},{default:b(()=>[u(o,{prop:"date",label:"\u7C7B\u578B"}),u(o,{prop:"name",label:"\u9762\u79EF(\u4EA9)"}),u(o,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),s("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=n=>ft())},[u(r,{class:"box-item","show-arrow":!1,disabled:f(A),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:b(()=>[f(A)?P("v-if",!0):(h(),I("img",ma))]),_:1},8,["disabled"]),u(r,{disabled:!f(A),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:b(()=>[f(A)?(h(),I("img",ba)):P("v-if",!0)]),_:1},8,["disabled"])])]),s("div",va,[s("div",ha,[s("div",ya,[_a,s("p",{onClick:e[3]||(e[3]=n=>kt())},[z(" \u4E0B\u8F7D \xA0 "),wa])]),s("div",{ref_key:"farmlandDiv",ref:Te,class:"farmlandDiv"},null,512),P(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),s("div",xa,[s("div",Sa,[ka,s("p",{onClick:e[4]||(e[4]=n=>Ct())},[z(" \u4E0B\u8F7D \xA0 "),Ca])]),u(c,{"popper-class":"select_city",onChange:e[5]||(e[5]=n=>Ce(a.item)),modelValue:x.value,"onUpdate:modelValue":e[6]||(e[6]=n=>x.value=n),placeholder:"\u5168\u90E8"},{default:b(()=>[(h(!0),I(ae,null,oe(f(E).arr,n=>(h(),H(l,{key:n.subregion,label:n.subregionName,value:n.subregion},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),s("div",{ref_key:"ASdivisionDiv",ref:Ee,class:"ASdivision"},null,512)]),s("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=n=>pt())},[u(r,{disabled:!f(V),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:b(()=>[f(V)?(h(),I("img",Da)):P("v-if",!0)]),_:1},8,["disabled"]),u(r,{disabled:f(V),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:b(()=>[f(V)?P("v-if",!0):(h(),I("img",Na))]),_:1},8,["disabled"])])]),s("div",La,[u(Gt)]),Ma,s("div",Wa,[s("div",null,[z(" \u7B49\u7EA7\uFF1A "),s("p",null,J(F.value.grade),1)]),s("div",null,[z(" \u7ECF\u5EA6\uFF1A "),s("p",null,J(F.value.lon),1)]),s("div",null,[z(" \u7EAC\u5EA6\uFF1A "),s("p",null,J(F.value.lat),1)]),s("div",{class:"cancel",onClick:ce},"X")]),s("div",za,[(h(!0),I(ae,null,oe(f(ie).label,(n,W)=>(h(),I("div",{key:W},[s("div",null,J(n.crop)+"\uFF1A",1),s("div",null,J(n.Shape_Area.toFixed(2))+" \u4EA9",1)]))),128)),f(ie).XZQMC?(h(),I("div",Ia,[Ta,s("div",null,J(f(ie).XZQMC),1)])):P("v-if",!0),s("div",{class:"cancel",onClick:ce},"X")]),u(v,{class:"legend",accordion:""},{default:b(()=>[u(N,{name:"1"},{title:b(()=>[z("\u56FE\u4F8B")]),default:b(()=>[s("div",Ea,[u(C,{modelValue:f(U),"onUpdate:modelValue":e[8]||(e[8]=n=>Rt(U)?U.value=n:U=n),onChange:rt},{default:b(()=>[(h(!0),I(ae,null,oe(f(we),(n,W,Le)=>(h(),H(m,{key:Le,style:Zt({backgroundColor:n.color,border:"1px solid value.color",width:"100%"}),"v-model":n.disabled,disabled:n.disabled,label:W},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),me.value?(h(),H(i,{key:0,class:"back_button",onClick:e[9]||(e[9]=n=>Tt())},{default:b(()=>[z("\u8FD4\u56DE")]),_:1})):P("v-if",!0)]),s("div",Fa,[s("div",Pa,[u(g,{inline:!0,model:f(k),class:"demo-form-inline"},{default:b(()=>[u(w,{label:"\u65F6\u95F4:"},{default:b(()=>[u(c,{"popper-class":"selectCity",modelValue:f(k).time,"onUpdate:modelValue":e[10]||(e[10]=n=>f(k).time=n),placeholder:"\u8BF7\u9009\u62E9"},{default:b(()=>[(h(!0),I(ae,null,oe(f(ye),(n,W)=>(h(),H(l,{key:W,label:a.Zitem,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),u(w,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:b(()=>[u(c,{"popper-class":"selectCity",modelValue:f(k).statistical,"onUpdate:modelValue":e[11]||(e[11]=n=>f(k).statistical=n),placeholder:"\u8BF7\u9009\u62E9"},{default:b(()=>[u(l,{label:"\u9547\u7EA7",value:"\u9547"}),u(l,{label:"\u6751\u7EA7",value:"\u6751"}),u(l,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})]),_:1},8,["modelValue"])]),_:1}),u(w,{label:"\u957F\u52BF\u7B49\u7EA7"},{default:b(()=>[u(c,{modelValue:f(k).droughtRating,"onUpdate:modelValue":e[12]||(e[12]=n=>f(k).droughtRating=n),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:b(()=>[u(l,{label:"\u5168\u90E8",value:""}),u(l,{label:"\u597D",value:"\u597D"}),u(l,{label:"\u8F83\u597D",value:"\u8F83\u597D"}),u(l,{label:"\u9002\u4E2D",value:"\u9002\u4E2D"}),u(l,{label:"\u8F83\u5DEE",value:"\u8F83\u5DEE"}),u(l,{label:"\u5DEE",value:"\u5DEE"})]),_:1},8,["modelValue"])]),_:1}),u(w,{label:"\u9762\u79EF(\u4EA9)>"},{default:b(()=>[u(L,{modelValue:he.value,"onUpdate:modelValue":e[13]||(e[13]=n=>he.value=n),min:0,onChange:bt},null,8,["modelValue"])]),_:1}),u(w,null,{default:b(()=>[u(i,{type:"primary",onClick:ke},{default:b(()=>[z("\u67E5\u8BE2")]),_:1}),u(i,{plain:"",onClick:gt,disabled:!f($)},{default:b(()=>[z(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),f(le)?P("v-if",!0):(h(),H(i,{key:0,type:"primary",text:"",onClick:Dt},{default:b(()=>[Ba,z(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),s("div",{class:"modeDiv",onClick:mt},[s("div",{class:Je(f($)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),s("div",{class:Je(f($)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),Qe(s("div",Aa,[s("div",Ra,[f(le)?P("v-if",!0):(h(),H(t,{key:0,data:f(S),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:b(()=>[u(o,{prop:"",width:"80"}),(h(!0),I(ae,null,oe(f(Be),(n,W)=>(h(),H(o,{key:W,prop:n.value,label:W==0?n.lable:n.lable+"(\u4EA9)"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),u(t,{data:f(ee),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},height:"70%","highlight-current-row":"","header-row-class-name":"tabth"},{default:b(()=>[u(o,{type:"index",width:"80",label:"\u5E8F\u53F7",index:ht}),u(o,{prop:"subName",label:"\u533A\u57DF\u540D\u79F0"}),u(o,{prop:"good",label:"\u597D(\u4EA9)"}),u(o,{prop:"better",label:"\u8F83\u597D(\u4EA9)"}),u(o,{prop:"moderate",label:"\u9002\u4E2D(\u4EA9)"}),u(o,{prop:"difference",label:"\u8F83\u5DEE(\u4EA9)"}),u(o,{prop:"poor",label:"\u5DEE(\u4EA9)"})]),_:1},8,["data"]),s("div",Za,[z(" \u5171"+J(G.value.length)+"\u6761 ",1),u(M,{background:"",layout:"prev, pager, next",total:G.value.length,"current-page":f(R),"page-size":f(Z),onCurrentChange:vt},null,8,["total","current-page","page-size"])])],512),[[Ue,f($)]]),Qe(s("div",Oa,[s("div",{ref_key:"chartModeDiv",ref:re,class:"chartModeDiv"},null,512)],512),[[Ue,!f($)]])])])}}},Ya=Pt(Xa,[["__scopeId","data-v-1e2a71d9"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/site/Site.vue"]]);export{Ya as default};