2 lines
38 KiB
JavaScript
2 lines
38 KiB
JavaScript
import{_ as Ft,a as At,r as i,A as je,U as Ot,V as Vt,W as Zt,X as Ne,d as C,o as g,c as b,l as r,m as M,e as d,w as m,f as u,g as P,L as E,N as z,k as j,x as T,B as $t,F as qt,G as Ue,C as He,D as Ge,y as jt,p as Ut,q as Ht}from"./index.3607d347.js";import fe from"./downloads.e955445d.js";import{_ as pe}from"./close1.45635d81.js";import{_ as Gt,a as Jt,b as Xt,c as Qt,d as Yt,e as Kt}from"./linesGL.90f708a5.js";import{_ as ea}from"./dow.f37c8d82.js";import{i as U,L as X}from"./index.c9f5bd8b.js";import{T as ta}from"./TimeLine.531d10aa.js";import{u as R,w as De}from"./xlsx.86b9426e.js";import{u as ue}from"./useEcharts.f73a23ae.js";import{a as Le,b as aa,c as oa,d as Je,e as Xe,g as la,f as ra,h as Qe}from"./site.1adb24a0.js";const S=K=>(Ut("data-v-1e2a71d9"),K=K(),Ht(),K),sa={class:"fatherDiv"},na={class:"centerBox"},ia=S(()=>r("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),da={class:"leftWra"},ca={class:"leftTop"},ua={class:"title"},fa=S(()=>r("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),pa=S(()=>r("img",{src:fe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ga={class:"leftbottom"},ha={class:"title"},ma=S(()=>r("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),va=S(()=>r("img",{src:fe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ba={class:"tableDiv"},ya={key:0,src:pe,alt:""},_a={key:0,class:"imgrotate",src:pe,alt:""},wa={class:"rightWra"},xa={class:"rightTop"},Sa={class:"title"},ka=S(()=>r("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Ca=S(()=>r("img",{src:fe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Na={class:"rightbottom"},Da={class:"title"},La=S(()=>r("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Wa=S(()=>r("img",{src:fe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ia={key:0,src:pe,alt:""},Ma={key:0,class:"imgrotate",src:pe,alt:""},Ea={class:"bottom_center"},za=jt('<div class="tool" data-v-1e2a71d9><span data-v-1e2a71d9><img src="'+Gt+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+Jt+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+Xt+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+Qt+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+Yt+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+Kt+'" alt="" data-v-1e2a71d9></span></div>',1),Ta={id:"popup"},Pa={class:"rowWra"},Ra=S(()=>r("span",null,"\u5730\u533A\uFF1A",-1)),Ba=S(()=>r("span",null,"\u597D\uFF1A",-1)),Fa=S(()=>r("span",null,"\u8F83\u597D\uFF1A",-1)),Aa=S(()=>r("span",null,"\u9002\u4E2D\uFF1A",-1)),Oa=S(()=>r("span",null,"\u8F83\u5DEE\uFF1A",-1)),Va=S(()=>r("span",null,"\u5DEE\uFF1A",-1)),Za={id:"pop"},$a={key:0},qa=S(()=>r("div",null,"\u6751\u540D\uFF1A",-1)),ja={class:"mt-4"},Ua={class:"tabulation"},Ha={class:"searchDiv"},Ga=S(()=>r("img",{src:ea,alt:""},null,-1)),Ja={class:"tableBox"},Xa={class:"tableBorder"},Qa={class:"example-pagination-block"},Ya={class:"chartMode"},Ka={__name:"Site",setup(K){const We=At();let f=i(null);const Ie=i(null),Me=i(null),Ee=i(null);i(null);const ze=i(null),v=i("370211"),Ye=i(null);let L=je({arr:[],brr:[],crr:[]});je({arr:[]});const W=i({}),Ke=i([]),et=i([]),Te=i(!1);let B=i(!0),Z=i(!0);i("{x:765,y:191}");let Pe=i([]),ge=i([]),he=i(0);i([]);let H=i(["false"]),Re=i([]);const me=i(0);let ve=i([]),$=i(!0);const ee=i(null);let F=i(1),A=i(12),Q=i([]),Be=i([]),te=i(!0),ae=i(null),Fe=i(null),Ae=i(""),w=i([{\u597D:0,\u8F83\u597D:0,\u9002\u4E2D:0,\u8F83\u5DEE:0,\u5DEE:0}]),be=i([]),Oe=["\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"],q={good:[],better:[],moderate:[],poor:[],difference:[]};const G=i([]);let x=i({time:"",statistical:"\u9547",droughtRating:"",area:me.value}),oe=i([]),ye={\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}},le={\u597D:"hao",\u8F83\u597D:"jiaohao",\u9002\u4E2D:"shizhong",\u8F83\u5DEE:"jiaocha",\u5DEE:"cha"};Ot(()=>H.value,(o,e)=>{o.length>e.length?(o.filter(t=>{if(e.findIndex(s=>s===t)<0)return t}).forEach(t=>{le[t]&&Et(le[t],le[t])}),st(),nt()):o.length<e.length&&e.filter(t=>{if(o.findIndex(s=>s===t)<0)return t}).forEach(t=>{se([le[t]])})});var J={title:[]};let y=i({good:[],better:[],difference:[],moderate:[],poor:[]});const tt=()=>{console.log(Ke.value)};let O=i([]);Vt(()=>{at()});function at(){we("370211"),xe("370211"),_t(),ie("370211"),yt(),lt(),ct();for(const o in ye)ye[o].disabled!==!0&&Re.value.push(o);H.value=Re.value,localStorage.setItem(We.currentRoute.value.path,!0)}Zt(()=>{localStorage.getItem(We.currentRoute.value.path)=="false"?document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F":document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F"});const ot={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(){f=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({...ot})}),f.cesiumWidget.creditContainer.style.display="none",f.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),Pt(),f.scene.screenSpaceCameraController.minimumZoomDistance=450,f.scene.screenSpaceCameraController.maximumZoomDistance=72e4,f.scene.screenSpaceCameraController._minimumZoomRate=3e4,f.scene.screenSpaceCameraController._maximumZoomRate=5906376272e3,rt(),it()}const rt=()=>{f.scene.preRender.addEventListener(()=>{f.camera.positionCartographic.height<=13e3?ae.show=!0:(ae.show=!1,Fe.show=!0)})},st=()=>{var o=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"}});ae=f.imageryLayers.addImageryProvider(o),ae.show=!1},nt=()=>{var o=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"}});Fe=f.imageryLayers.addImageryProvider(o)},it=()=>{new Cesium.ScreenSpaceEventHandler(f.scene.canvas).setInputAction(e=>{let a=f.scene.globe.pick(f.camera.getPickRay(e.position),f.scene),l=f.scene.globe.ellipsoid.cartesianToCartographic(a),s=Cesium.Math.toDegrees(l.longitude),p=Cesium.Math.toDegrees(l.latitude);f.selectedEntity=void 0;var k=f.camera.getPickRay(e.position),I=f.imageryLayers.pickImageryLayerFeatures(k,f.scene);(async()=>{if(!Cesium.defined(I))console.log("No features picked.");else try{const N=await I;N[N.length-1].properties.XZQDM||(v.value=N[N.length-1].properties.XZDM,Ae.value=N[N.length-1].properties.XZMC,Le({divisions:v.value}).then(Y=>{W.value={info:Y.data,lon:s,lat:p}}),Se()),Rt(e.position),f.scene.postRender.addEventListener(qe)}catch(N){console.error("Error occurred:",N)}})()},Cesium.ScreenSpaceEventType.LEFT_CLICK)};function dt(o,e,a){o.forEach(t=>{let l=[];t[0].forEach(s=>{l.push(s[0]),l.push(s[1])}),f.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(){Ne({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afarmland&maxFeatures=50&outputFormat=application%2Fjson",method:"get"}).then(o=>{console.log("\u519C\u7530\uFF1A",o),et.value=o.data.features}).catch(o=>{})}let re=i({label:[]});function ut(o,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:o}});a.customName=e,f.imageryLayers.addImageryProvider(a)}function se(o,e){if(f){const a=f.imageryLayers._layers;for(let t=a.length-1;t>=0;t--)o.forEach(l=>{a[t]._imageryProvider&&a[t]._imageryProvider.customName&&(e?a[t]._imageryProvider.customName.indexOf(l)>-1&&f.imageryLayers.remove(a[t]):a[t]._imageryProvider.customName===l&&(console.log(a[t]),f.imageryLayers.remove(a[t])))})}}function ne(o){if(f){let a=f.entities._entities._array;for(var e=a.length-1;e>=0;e--)a[e]._name&&a[e]._name===o&&f.entities.remove(a[e])}}function ft(){if(B.value=!B.value,B.value){let o=document.querySelector(".leftWra");o&&(o.style.transform="translate(0,0)")}else{let o=document.querySelector(".leftWra");o&&(o.style.transform="translate(-107%,0)")}console.log(B.value)}function pt(){if(Z.value=!Z.value,Z.value){let o=document.querySelector(".rightWra");o.style.transform="translate(0,0)"}else{let o=document.querySelector(".rightWra");o.style.transform="translate(107%,0)"}}const gt=()=>{x.value.time=ve.value[0],x.value.statistical="\u9547",x.value.droughtRating="",x.value.area=1,te.value=!0,_e()},ht=()=>{$.value=!$.value;const o=ee.value;o.style.width=window.innerWidth-200+"px",o.style.height=window.innerHeight-200+"px";const e=U(o);window.addEventListener("resize",()=>{o.style.width=window.innerWidth-200+"px",o.style.height=window.innerHeight-200+"px",e.resize()}),Ze()},mt=o=>{x.value.area=o},_e=()=>{F.value=1,ra({time:x.value.time,statistical:x.value.statistical,droughtRating:x.value.droughtRating,area:x.value.area}).then(o=>{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"}],te.value=!1,G.value=o.data,Q.value=o.data.slice((F.value-1)*A.value,(F.value-1)*A.value+A.value),console.log(Q.value),Q.value.forEach(t=>{be.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})}),w.value[0].\u597D=0,w.value[0].\u8F83\u597D=0,w.value[0].\u9002\u4E2D=0,w.value[0].\u8F83\u5DEE=0,w.value[0].\u5DEE=0,w.value[0].\u533A\u57DF\u540D\u79F0="\u5408\u8BA1",o.data.forEach(t=>{t.good&&(w.value[0].\u597D+=Number(t.good)!==NaN?Number(t.good):0),t.better&&(w.value[0].\u8F83\u597D+=Number(t.better)!==NaN?Number(t.better):0),t.moderate&&(w.value[0].\u9002\u4E2D+=Number(t.moderate)!==NaN?Number(t.moderate):0),t.difference&&(w.value[0].\u8F83\u5DEE+=Number(t.difference)!==NaN?Number(t.difference):0),t.poor&&(w.value[0].\u5DEE+=Number(t.poor)!==NaN?Number(t.poor):0)});for(const t in w.value[0])w.value[0][t]!=="\u5408\u8BA1"&&(w.value[0][t]=w.value[0][t].toFixed(2));const e=ee.value;e.style.width=window.innerWidth-100+"px",e.style.height=window.innerHeight-100+"px";const a=U(e);window.addEventListener("resize",()=>{e.style.width=window.innerWidth-200+"px",e.style.height=window.innerHeight-200+"px",a.resize()}),Ze()})},vt=o=>{F.value=o,Q.value=G.value.slice((F.value-1)*A.value,(F.value-1)*A.value+A.value)},bt=o=>{const e=F.value,a=A.value;return o+1+(e-1)*a},yt=()=>{aa().then(o=>{ve.value=o.data,x.value.time=o.data[0],_e()})},we=o=>{Pe=i([]),ge=i([]),Le({divisions:o}).then(e=>{for(const a in e.data[0])e.data[0][a]&&(Pe.value.push(a),ge.value.push(e.data[0][a]));Wt()})},xe=o=>{oe=i([]),O.value=[],he=i(0),oa({divisions:o}).then(e=>{console.log(e.data),e.data.forEach(a=>{he.value=Number(a.sum),console.log(a);for(const t in a){t!=="sum"&&Number.isFinite(a[t])&&(oe.value.push({name:t,value:a[t]}),O.value.push({date:t,name:a[t]})),O.value.forEach(s=>{a[`${s.date}Zb`]!==void 0&&(s.address=(a[`${s.date}Zb`]*100).toFixed(2)+"%")});let l=JSON.parse(JSON.stringify(O.value));l.forEach(s=>{switch(s.date){case"good":s.date="\u597D";break;case"better":s.date="\u8F83\u597D";break;case"moderate":s.date="\u9002\u4E2D";break;case"poor":s.date="\u8F83\u5DEE";break;case"difference":s.date="\u5DEE";break}}),O.value=l}}),It()})},_t=()=>{i([]),Je().then(o=>{Oe.forEach((e,a)=>{o.data.map(t=>{if(e===t.region)for(const l in t)q[l]&&q[l].push(t[l])})}),Mt()})},ie=o=>{y.value.better=[],y.value.difference=[],y.value.good=[],y.value.moderate=[],y.value.poor=[],Xe({divisions:o,yearMonth:"2023-05"}).then(e=>{console.log(e.data),L.brr=e.data,L.arr=e.data.sort((l,s)=>l.subregionName.length-s.subregionName.length),L.arr.unshift({subregion:"370211",subregionName:"\u5168\u90E8"});let a=[...e.data],t=[];a.splice(0,1),a.forEach(l=>{t.indexOf(l.subregionName)==-1&&t.push(l.subregionName)}),J.title=[...Object.values(t)],J.title.forEach((l,s)=>{e.data.map(p=>{if(l===p.subregionName)return y.value.better.push(p.better),y.value.difference.push(p.difference),y.value.good.push(p.good),y.value.moderate.push(p.moderate),y.value.poor.push(p.poor),p})}),console.log(y),Ve()})},wt=o=>{let e={good:[],better:[],difference:[],moderate:[],poor:[]};Qe({divisions:o}).then(a=>{console.log(a.data),L.brr=a.data;let t=[...a.data],l=[];t.forEach(s=>{l.indexOf(s.subregionName)==-1&&l.push(s.subregionName)}),J.title=[...Object.values(l)],J.title.forEach((s,p)=>{a.data.map(k=>{if(s===k.subregionName)return e.better.push(k.better),e.difference.push(k.difference),e.good.push(k.good),e.moderate.push(k.moderate),e.poor.push(k.poor),k})}),y.value=e,Ve()})},Se=()=>{la().then(e=>{e.features.forEach(a=>{a.properties.XZDM==v.value&&(ne("townLine"),dt(a.geometry.coordinates,"townLine","yellow"))})}),we(v.value),xe(v.value),v.value!=="370211"&&wt(v.value),v.value=="370211"&&(se(["village_CQL"]),se(["aaa"]),ie(),ce());let o=[...L.arr];console.log("arr:",o),[...L.arr],se(["aaa"]),ut(`XZDM=${v.value}`,"aaa")},xt=o=>{let e="";L.arr.forEach(a=>{a.subregion==v.value&&(e=a.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":a.subregionName)}),Le({divisions:v.value}).then(a=>{let t=[{region:e=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":e,good:a.data[0].good,better:a.data[0].better,moderate:a.data[0].moderate,poor:a.data[0].poor,difference:a.data[0].difference}];de(t,`${t[0].region}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1`,"Sheet1")})},St=o=>{let e="";L.arr.forEach(a=>{a.subregion==v.value&&(e=a.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":a.subregionName)}),console.log(O),Dt(O.value,`${e}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4`,"Sheet1")},kt=o=>{let e=[];Je().then(a=>{console.log(a.data),a.data.forEach(t=>{e.push({region:t.region,good:t.good,better:t.better,moderate:t.moderate,poor:t.poor,difference:t.difference})}),de(e,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530\u5217\u8868","Sheet1")})},Ct=o=>{let e="",a=[];L.arr.forEach(t=>{t.subregion==v.value&&(e=t.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":t.subregionName)}),v.value==="370211"?Xe({divisions:v.value,whetherToDownload:!1}).then(t=>{t.data.forEach(l=>{console.log(l),a.push({region:l.subregionName,good:l.good,better:l.better,moderate:l.moderate,poor:l.poor,difference:l.difference})}),de(a,`${e}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")}):Qe({divisions:v.value,whetherToDownload:!1}).then(t=>{t.data.forEach(l=>{console.log(l),a.push({region:l.subregionName,good:l.good,better:l.better,moderate:l.moderate,poor:l.poor,difference:l.difference})}),de(a,`${e}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})},Nt=()=>{console.log(G);let o=JSON.parse(JSON.stringify(w.value[0]));o.region="\u5408\u8BA1",be.value.push(o),Lt(be.value,"\u957F\u52BF\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},ke=(o,e)=>o.map(t=>{const l={};for(const s in t)e[s]&&(l[e[s]]=t[s]);return l}),de=(o,e="\u7528\u6237\u5217\u8868",a="Sheet1")=>{const l=ke(o,{region:"\u533A\u57DF\u540D\u79F0",good:"\u597D(\u4EA9)",better:"\u8F83\u597D(\u4EA9)",moderate:"\u9002\u4E2D(\u4EA9)",difference:"\u8F83\u5DEE(\u4EA9)",poor:"\u5DEE(\u4EA9)"}),s=R.json_to_sheet(l),p=R.book_new();R.book_append_sheet(p,s,a),De(p,`${e}.xlsx`)},Dt=(o,e="\u7528\u6237\u5217\u8868",a="Sheet1")=>{const l=ke(o,{date:"\u7C7B\u578B",name:"\u9762\u79EF(\u4EA9)",address:"\u5360\u6BD4"}),s=R.json_to_sheet(l),p=R.book_new();R.book_append_sheet(p,s,a),De(p,`${e}.xlsx`)},Lt=(o,e="\u7528\u6237\u5217\u8868",a="Sheet1")=>{const l=ke(o,{\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)"}),s=R.json_to_sheet(l),p=R.book_new();R.book_append_sheet(p,s,a),De(p,`${e}.xlsx`)};function Wt(){const o=U(Ie.value);let e=["\u597D","\u8F83\u597D","\u9002\u4E2D","\u8F83\u5DEE","\u5DEE"],a=ge.value,t=!1;a.length>14?t=!0:t=!1;var l={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,zoomLock:!0,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:a,barWidth:"15",itemStyle:{normal:{color:new X(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}}}}]};l&&o.setOption(l),window.addEventListener("resize",function(){o.resize()})}function It(){const o=U(Me.value);oe.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=oe.value;let a={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:`${he.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"}}}]}]};ue(o,a)}function Mt(){const o=U(Ee.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:Oe,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:q.good,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(50, 148, 1, 1)",color:new X(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:q.better,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(154, 208, 0, 1)",color:new X(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:q.moderate,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 219, 0, 1)",color:new X(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:q.poor,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(239, 152, 0, 1)",color:new X(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:q.difference,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(247, 85, 0, 1)",color:new X(0,0,0,1,[{offset:0,color:"rgba(247, 85, 0, 1)"},{offset:1,color:"rgba(247, 85, 0, 1)"}])}}}]};e&&o.setOption(e,{notMerge:!0,grid:{bottom:20}}),ue(o,e)}function Et(o,e,a){let t=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+`/map-${o}/wms111/`,layers:o+"@"+o,parameters:{service:"WMS",format:"image/png",srs:"EPSG:4326",VERSION:"1.1.1",transparent:!0,exceptions:"application/vnd.ogc.se_inimage"}});t.customName=e;let l=f.imageryLayers.addImageryProvider(t);a&&(f.imageryLayers.lowerToBottom(l),f.imageryLayers.raise(l))}function zt(){ie("370211"),delete re.value.XZQMC,ne("townLine"),ne("villageLine"),v.value="370211",Se(),Te.value=!1,ce()}function Ve(){const o=U(ze.value);console.log(y),console.log(J);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(a){return a.seriesName+'<span style="font-size: 14px; color: #f00;">'+a.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:J.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:y.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:y.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:y.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:y.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:y.value.poor}]};ue(o,e)}function Ze(){const o=U(ee.value);let e=[],a=[],t=[],l=[],s=[],p=[];G.value.forEach(c=>{e.push(c.subName),c.good!==null?a.push(c.good):a.push(0),c.better!==null?t.push(c.better):t.push(0),c.moderate!==null?l.push(c.moderate):l.push(0),c.difference!==null?s.push(c.difference):s.push(0),c.poor!==null?p.push(c.poor):p.push(0)});let k=10/e.length*100,I={tooltip:{trigger:"axis",formatter:function(c){let D=c[0].axisValueLabel+"</br>",V=0;for(let h=0;h<c.length;h++)V+=c[h].value,c[h].seriesName!=="\u5408\u8BA1"&&(D+=c[h].seriesName+"\uFF1A"+c[h].value+"</br>");for(let h=0;h<c.length;h++)V+=Number(c[h].value),c[h].seriesName==="\u5408\u8BA1"&&(D+="\u5408\u8BA1\uFF1A"+V);return D},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:k,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:a},{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:l},{name:"\u8F83\u5DEE",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 84, 84, 1)"},data:s},{name:"\u5DEE",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 140, 255, 1)"},data:p}]};I.series;var N=I.tooltip;function Y(c){let D=c[0].axisValueLabel+"</br>",V=0;for(let h=0;h<c.length;h++)if(c[h].seriesName!=="\u5408\u8BA1"){const Ce=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${c[h].color}"></span>`;V+=c[h].value,D+=Ce+c[h].seriesName+"\uFF1A"+c[h].value+"</br>"}for(let h=0;h<c.length;h++)c[h].seriesName==="\u5408\u8BA1"&&(D+="\u5408\u8BA1\uFF1A"+V);return D}N.formatter=Y,ue(o,I)}function Tt(){let o=$e.value;console.log("fl:",o),Ne({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,l)=>{const s=Cesium.Rectangle.fromDegrees(t.bbox[0],t.bbox[1],t.bbox[2],t.bbox[3]),p=Cesium.Rectangle.center(s);Cesium.Math.toDegrees(p.longitude),Cesium.Math.toDegrees(p.latitude),t.properties.XZDM==="370211011"||t.properties.XZDM;const k=o[t.properties.XZMC];k&&k.map((I,N)=>I.properties)})}).catch(e=>{})}let $e=i({});function Pt(){Ne({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(o=>{let e=o.data.features,a={};e.forEach(t=>{let l=t.properties.town;a[l]?a[l].push(t):a[l]=[t]}),$e.value=a,Tt()}).catch(o=>{})}function qe(){if(W.value.lon&&W.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(W.value.lon),Number(W.value.lat),0);var o=Cesium.SceneTransforms.wgs84ToWindowCoordinates(f.scene,e);if(Cesium.defined(o)){const a=document.getElementById("popup");a&&(a.style.top=o.y-10+"px",a.style.left=o.x+10+"px")}}}function ce(){const o=document.getElementById("popup");o&&(o.style.display="none"),f.scene.postRender.removeEventListener(qe),v.value="370211",ne("townLine"),we(v.value),xe(v.value),ie(v.value)}function Rt(o){const e=document.getElementById("popup");e&&(e.style.display="block",e.style.position="absolute",e.style.top=o.y-10+"px",e.style.left=o.x+10+"px",e.style.zIndex=99)}return(o,e)=>{const a=C("el-table-column"),t=C("el-table"),l=C("el-tooltip"),s=C("el-option"),p=C("el-select"),k=C("el-checkbox"),I=C("el-checkbox-group"),N=C("el-collapse-item"),Y=C("el-collapse"),c=C("el-button"),D=C("el-form-item"),V=C("el-input-number"),h=C("el-form"),Ce=C("el-pagination");return g(),b("div",sa,[r("div",na,[ia,r("div",da,[r("div",ca,[r("div",ua,[fa,r("p",{onClick:e[0]||(e[0]=n=>xt())},[M(" \u4E0B\u8F7D \xA0 "),pa])]),r("div",{ref_key:"areaDiv",ref:Ie,class:"areaDiv"},null,512),r("div",{ref_key:"leftProgressBarDiv",ref:Ye,class:"ProgressBar"},null,512)]),r("div",ga,[r("div",ha,[ma,r("p",{onClick:e[1]||(e[1]=n=>St())},[M(" \u4E0B\u8F7D \xA0 "),va])]),r("div",{ref_key:"typesofDiv",ref:Me,class:"typesofDiv"},null,512),r("div",ba,[d(t,{data:u(O),style:{width:"100%"}},{default:m(()=>[d(a,{prop:"date",label:"\u7C7B\u578B"}),d(a,{prop:"name",label:"\u9762\u79EF(\u4EA9)"}),d(a,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),r("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=n=>ft())},[d(l,{class:"box-item","show-arrow":!1,disabled:u(B),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:m(()=>[u(B)?P("v-if",!0):(g(),b("img",ya))]),_:1},8,["disabled"]),d(l,{disabled:!u(B),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:m(()=>[u(B)?(g(),b("img",_a)):P("v-if",!0)]),_:1},8,["disabled"])])]),r("div",wa,[r("div",xa,[r("div",Sa,[ka,r("p",{onClick:e[3]||(e[3]=n=>kt())},[M(" \u4E0B\u8F7D \xA0 "),Ca])]),r("div",{ref_key:"farmlandDiv",ref:Ee,class:"farmlandDiv"},null,512),P(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),r("div",Na,[r("div",Da,[La,r("p",{onClick:e[4]||(e[4]=n=>Ct())},[M(" \u4E0B\u8F7D \xA0 "),Wa])]),d(p,{"popper-class":"select_city",onChange:e[5]||(e[5]=n=>Se(o.item)),modelValue:v.value,"onUpdate:modelValue":e[6]||(e[6]=n=>v.value=n),placeholder:"\u5168\u90E8"},{default:m(()=>[(g(!0),b(E,null,z(u(L).arr,n=>(g(),j(s,{key:n.subregion,label:n.subregionName,value:n.subregion},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),r("div",{ref_key:"ASdivisionDiv",ref:ze,class:"ASdivision"},null,512)]),r("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=n=>pt())},[d(l,{disabled:!u(Z),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:m(()=>[u(Z)?(g(),b("img",Ia)):P("v-if",!0)]),_:1},8,["disabled"]),d(l,{disabled:u(Z),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:m(()=>[u(Z)?P("v-if",!0):(g(),b("img",Ma))]),_:1},8,["disabled"])])]),r("div",Ea,[d(ta)]),za,r("div",Ta,[r("div",null,[r("div",Pa,[Ra,r("span",null,T(u(Ae)),1)]),(g(!0),b(E,null,z(W.value.info,(n,_)=>(g(),b("div",{key:_,class:"rowWra"},[Ba,r("span",null,T(n.good)+"\u4EA9",1)]))),128)),(g(!0),b(E,null,z(W.value.info,(n,_)=>(g(),b("div",{key:_,class:"rowWra"},[Fa,r("span",null,T(n.better)+"\u4EA9",1)]))),128)),(g(!0),b(E,null,z(W.value.info,(n,_)=>(g(),b("div",{key:_,class:"rowWra"},[Aa,r("span",null,T(n.moderate)+"\u4EA9",1)]))),128)),(g(!0),b(E,null,z(W.value.info,(n,_)=>(g(),b("div",{key:_,class:"rowWra"},[Oa,r("span",null,T(n.difference)+"\u4EA9",1)]))),128)),(g(!0),b(E,null,z(W.value.info,(n,_)=>(g(),b("div",{key:_,class:"rowWra"},[Va,r("span",null,T(n.poor)+"\u4EA9",1)]))),128))]),r("div",{class:"cancel",onClick:ce},"X")]),r("div",Za,[(g(!0),b(E,null,z(u(re).label,(n,_)=>(g(),b("div",{key:_},[r("div",null,T(n.crop)+"\uFF1A",1),r("div",null,T(n.Shape_Area.toFixed(2))+" \u4EA9",1)]))),128)),u(re).XZQMC?(g(),b("div",$a,[qa,r("div",null,T(u(re).XZQMC),1)])):P("v-if",!0),r("div",{class:"cancel",onClick:ce},"X")]),d(Y,{class:"legend",accordion:""},{default:m(()=>[d(N,{name:"1"},{title:m(()=>[M("\u56FE\u4F8B")]),default:m(()=>[r("div",ja,[d(I,{modelValue:u(H),"onUpdate:modelValue":e[8]||(e[8]=n=>$t(H)?H.value=n:H=n),onChange:tt},{default:m(()=>[(g(!0),b(E,null,z(u(ye),(n,_,Bt)=>(g(),j(k,{key:Bt,style:qt({backgroundColor:n.color,border:"1px solid value.color",width:"100%"}),"v-model":n.disabled,disabled:n.disabled,label:_},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),Te.value?(g(),j(c,{key:0,class:"back_button",onClick:e[9]||(e[9]=n=>zt())},{default:m(()=>[M("\u8FD4\u56DE")]),_:1})):P("v-if",!0)]),r("div",Ua,[r("div",Ha,[d(h,{inline:!0,model:u(x),class:"demo-form-inline"},{default:m(()=>[d(D,{label:"\u65F6\u95F4:"},{default:m(()=>[d(p,{"popper-class":"selectCity",modelValue:u(x).time,"onUpdate:modelValue":e[10]||(e[10]=n=>u(x).time=n),placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[(g(!0),b(E,null,z(u(ve),(n,_)=>(g(),j(s,{key:_,label:o.Zitem,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),d(D,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:m(()=>[d(p,{"popper-class":"selectCity",modelValue:u(x).statistical,"onUpdate:modelValue":e[11]||(e[11]=n=>u(x).statistical=n),placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[d(s,{label:"\u9547\u7EA7",value:"\u9547"}),d(s,{label:"\u6751\u7EA7",value:"\u6751"}),d(s,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})]),_:1},8,["modelValue"])]),_:1}),d(D,{label:"\u957F\u52BF\u7B49\u7EA7"},{default:m(()=>[d(p,{modelValue:u(x).droughtRating,"onUpdate:modelValue":e[12]||(e[12]=n=>u(x).droughtRating=n),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[d(s,{label:"\u5168\u90E8",value:""}),d(s,{label:"\u597D",value:"\u597D"}),d(s,{label:"\u8F83\u597D",value:"\u8F83\u597D"}),d(s,{label:"\u9002\u4E2D",value:"\u9002\u4E2D"}),d(s,{label:"\u8F83\u5DEE",value:"\u8F83\u5DEE"}),d(s,{label:"\u5DEE",value:"\u5DEE"})]),_:1},8,["modelValue"])]),_:1}),d(D,{label:"\u9762\u79EF(\u4EA9)>"},{default:m(()=>[d(V,{modelValue:me.value,"onUpdate:modelValue":e[13]||(e[13]=n=>me.value=n),min:0,onChange:mt},null,8,["modelValue"])]),_:1}),d(D,null,{default:m(()=>[d(c,{type:"primary",onClick:_e},{default:m(()=>[M("\u67E5\u8BE2")]),_:1}),d(c,{plain:"",onClick:gt,disabled:!u($)},{default:m(()=>[M(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),u(te)?P("v-if",!0):(g(),j(c,{key:0,type:"primary",text:"",onClick:Nt},{default:m(()=>[Ga,M(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),r("div",{class:"modeDiv",onClick:ht},[r("div",{class:Ue(u($)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),r("div",{class:Ue(u($)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),He(r("div",Ja,[r("div",Xa,[u(te)?P("v-if",!0):(g(),j(t,{key:0,data:u(w),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:m(()=>[d(a,{prop:"",width:"80"}),(g(!0),b(E,null,z(u(Be),(n,_)=>(g(),j(a,{key:_,prop:n.value,label:_==0?n.lable:n.lable+"(\u4EA9)"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),d(t,{data:u(Q),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:m(()=>[d(a,{type:"index",width:"80",label:"\u5E8F\u53F7",index:bt}),d(a,{prop:"subName",label:"\u533A\u57DF\u540D\u79F0"}),d(a,{prop:"good",label:"\u597D(\u4EA9)"}),d(a,{prop:"better",label:"\u8F83\u597D(\u4EA9)"}),d(a,{prop:"moderate",label:"\u9002\u4E2D(\u4EA9)"}),d(a,{prop:"difference",label:"\u8F83\u5DEE(\u4EA9)"}),d(a,{prop:"poor",label:"\u5DEE(\u4EA9)"})]),_:1},8,["data"]),r("div",Qa,[M(" \u5171"+T(G.value.length)+"\u6761 ",1),d(Ce,{background:"",layout:"prev, pager, next",total:G.value.length,"current-page":u(F),"page-size":u(A),onCurrentChange:vt},null,8,["total","current-page","page-size"])])],512),[[Ge,u($)]]),He(r("div",Ya,[r("div",{ref_key:"chartModeDiv",ref:ee,class:"chartModeDiv"},null,512)],512),[[Ge,!u($)]])])])}}},uo=Ft(Ka,[["__scopeId","data-v-1e2a71d9"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/site/Site.vue"]]);export{uo as default};
|