2 lines
37 KiB
JavaScript
2 lines
37 KiB
JavaScript
import{_ as Tt,a as It,r as s,A as $e,U as He,V as Vt,W as Rt,a1 as Ot,d as z,o as v,c as E,l as r,m as L,e as i,w as h,f as c,g as A,L as te,N as ae,k as H,x as T,B as jt,F as Mt,G as Ze,C as Ge,D as Ue,y as qt,p as Ft,q as Pt}from"./index.ae0c781d.js";import he from"./downloads.4cdbbcc5.js";import{_ as be}from"./close1.45635d81.js";import{_ as $t,a as Ht,b as Zt,c as Gt,d as Ut,e as Jt}from"./linesGL.97ae14ae.js";import{_ as Qt}from"./dow.f37c8d82.js";import{i as Z,L as Q}from"./index.c9f5bd8b.js";import{T as Xt}from"./TimeLine.64a8bde3.js";import{u as I,w as Ne}from"./xlsx.86b9426e.js";import{u as ge}from"./useEcharts.dbdb546a.js";import{a as Yt,b as Kt,c as Je,d as ea,e as Qe,f as Xe,h as ta,i as Ye}from"./site.4d8277bf.js";const y=oe=>(Ft("data-v-1e2a71d9"),oe=oe(),Pt(),oe),aa={class:"fatherDiv"},oa={class:"centerBox"},la=y(()=>r("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),ra={class:"leftWra"},na={class:"leftTop"},sa={class:"title"},ia=y(()=>r("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),da=y(()=>r("img",{src:he,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ca={class:"leftbottom"},ua={class:"title"},fa=y(()=>r("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),pa=y(()=>r("img",{src:he,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ga={class:"tableDiv"},ha={key:0,src:be,alt:""},ba={key:0,class:"imgrotate",src:be,alt:""},va={class:"rightWra"},ma={class:"rightTop"},ya={class:"title"},_a=y(()=>r("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),wa=y(()=>r("img",{src:he,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),xa={class:"rightbottom"},Sa={class:"title"},ka=y(()=>r("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Na=y(()=>r("img",{src:he,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),La={key:0,src:be,alt:""},Ca={key:0,class:"imgrotate",src:be,alt:""},za={class:"bottom_center"},Da=qt('<div class="tool" data-v-1e2a71d9><span data-v-1e2a71d9><img src="'+$t+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+Ht+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+Zt+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+Gt+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+Ut+'" alt="" data-v-1e2a71d9></span><span data-v-1e2a71d9><img src="'+Jt+'" alt="" data-v-1e2a71d9></span></div>',1),Ea={id:"popup",class:"ol-popup"},Wa=y(()=>r("div",{class:"pophead",style:{width:"100%",height:"20px"}},[r("div",{id:"popup-title",style:{font:"bold 15px sans-serif",align:"left",position:"absolute",left:"17px",color:"#fff"}}),r("a",{href:"#",id:"popup-closer",class:"ol-popup-closer",style:{color:"#8e908c"}})],-1)),Ba={id:"popup-content",style:{padding:"10px"}},Aa=y(()=>r("span",null,"\u597D",-1)),Ta=y(()=>r("span",null,"\u8F83\u597D",-1)),Ia=y(()=>r("span",null,"\u9002\u4E2D",-1)),Va=y(()=>r("span",null,"\u8F83\u5DEE",-1)),Ra=y(()=>r("span",null,"\u5DEE",-1)),Oa=y(()=>r("div",{id:"popup-pagination"},null,-1)),ja={id:"pop"},Ma={key:0},qa=y(()=>r("div",null,"\u6751\u540D\uFF1A",-1)),Fa={class:"mt-4"},Pa={class:"tabulation"},$a={class:"searchDiv"},Ha=y(()=>r("img",{src:Qt,alt:""},null,-1)),Za={class:"tableBox"},Ga={class:"tableBorder"},Ua={class:"example-pagination-block"},Ja={class:"chartMode"},Qa={__name:"Site",setup(oe){const Le=It();let Ce=s(null);const ze=s(null),De=s(null),Ee=s(null);s(null);const We=s(null),b=s("370211"),Ke=s(null);let B=$e({arr:[],brr:[],crr:[]});$e({arr:[]});const le=s({}),et=s([]),tt=s([]),Be=s(!1);let V=s(!0),q=s(!0);s("{x:765,y:191}");let Ae=s([]),ve=s([]),me=s(0);s([]);let G=s(["false"]),Te=s([]);const ye=s(0);let _e=s([]),F=s(!0);const re=s(null);let R=s(1),O=s(12),X=s([]),Ie=s([]),ne=s(!0);s(null),s(null),s("");let P=s([]),_=s([{\u597D:0,\u8F83\u597D:0,\u9002\u4E2D:0,\u8F83\u5DEE:0,\u5DEE:0}]),Y=s([]),Ve=["\u9AD8\u6807\u51C6\u519C\u75301.0","\u9AD8\u6807\u51C6\u519C\u75302.0","\u9AD8\u6807\u51C6\u519C\u75303.0","\u9AD8\u6807\u51C6\u519C\u75304.0","\u9AD8\u6807\u51C6\u519C\u75305.0","\u9AD8\u6807\u51C6\u519C\u75306.0","\u9AD8\u6807\u51C6\u519C\u75307.0"],$={good:[],better:[],moderate:[],poor:[],difference:[]};const U=s([]);let w=s({time:"",statistical:"\u9547",droughtRating:"",area:ye.value}),se=s([]),we={\u597D:{color:"rgba(49, 235, 7, 1)",disabled:!1},\u8F83\u597D:{color:"rgba(84, 170, 255, 1)",disabled:!1},\u9002\u4E2D:{color:"rgba(255, 251, 0, 1)",disabled:!1},\u8F83\u5DEE:{color:"rgba(255, 168, 8, 1)",disabled:!1},\u5DEE:{color:"rgba(255, 0, 255, 1)",disabled:!1}},K={\u597D:{setOf:"2022-08-05-zhangshi",name:"T2022_08_05_hao"},\u8F83\u597D:{setOf:"2022-08-05-zhangshi",name:"T2022_08_05_jiaohao"},\u9002\u4E2D:{setOf:"2022-08-05-zhangshi",name:"T2022_08_05_shizhong"},\u8F83\u5DEE:{setOf:"2022-08-05-zhangshi",name:"T2022_08_05_jiaocha"},\u5DEE:{setOf:"2022-08-05-zhangshi",name:"T2022_08_05_cha"}},Re=0;He(()=>b.value,()=>{Se()}),He(()=>G.value,(a,e)=>{a.length>e.length?a.filter(t=>{if(e.findIndex(n=>n===t)<0)return t}).forEach(t=>{K[t]&&dt(K[t])}):a.length<e.length&&e.filter(t=>{if(a.findIndex(n=>n===t)<0)return t}).forEach(t=>{K[t]&&(g.getLayers().getArray().indexOf(K[t].name),console.log(g.getLayers().getArray()),g.getLayers().getArray().forEach((l,n)=>{l.A.name&&l.A.name==K[t].name&&g.getLayers().removeAt(n)}))}),Re++,Re==1&&(st(),it())});var J={title:[]};let m=s({good:[],better:[],difference:[],moderate:[],poor:[]}),ie=s(null);const at=()=>{console.log(et.value)};let j=s([]);Vt(()=>{ot()});function ot(){ue("370211"),fe("370211"),yt(),ee("370211"),mt(),lt(),ct(),nt();for(const a in we)we[a].disabled!==!0&&Te.value.push(a);G.value=Te.value,localStorage.setItem(Le.currentRoute.value.path,!0)}Rt(()=>{localStorage.getItem(Le.currentRoute.value.path)=="false"?(document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F",window.document.querySelector("#screenfull").style.display="none"):(document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F",window.document.querySelector("#screenfull").style.display="block")});let g=s(null);s(null),s(null);let Oe=s(null),de=s(null);function lt(){var a=document.querySelector(".centerBox"),e=document.getElementById("cesiumContainer");g=new ol.Map({target:"cesiumContainer",controls:ol.control.defaults({attributionOptions:{collapsed:!0}}).extend([new ol.supermap.control.Logo,new ol.control.ScaleLine]),view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.Tianditu({layerType:"img",key:"1d109683f4d84198e37a38c442d68311"})})]}),g.on("moveend",function(t){var l=g.getView().getZoom();l>=13?ie.setVisible(!0):ie.setVisible(!1)}),g.on("singleclick",function(t){var l=t.coordinate,n=l[0],p=l[1],N=g.getView(),D=g.getView().getZoom();console.log(n,p),N.animate({center:[n,p],duration:1e3}),console.log(D,"zoom========================"),D>=13?je(t,"huangdaoqu_village@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_village@huangdaoqu_bianjie","\u6751"):je(t,"huangdaoqu_town@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_town@huangdaoqu_bianjie","\u9547")});var o=new ResizeObserver(function(t){t.forEach(function(l){var n=l.contentRect.width,p=l.contentRect.height;e.style.width=n+"px",e.style.height=p+"px",g.updateSize()})});o.observe(a)}function je(a,e,o,t){var l=new ol.geom.Point(a.coordinate),n=new ol.supermap.QueryByGeometryParameters({queryParams:{name:e},geometry:l});let p=[],N=document.querySelector("#popup-title"),D=s(null),M=s(null);new ol.supermap.QueryService(o).queryByGeometry(n,function(S){let d="";if(M=g.getLayers().getArray().find(x=>x.get("id")==="zhezhao"),g.removeLayer(M),t=="\u9547"){let x=S.result.recordsets[0].features.features[0].properties.XJQYDM;b.value=x,ee();let f=[];B.brr.forEach(C=>{C.subregion==x&&(d=C.subregionName,f.push(C),P.value=C),console.log(f)}),k()}else if(t=="\u6751"){let x=S.result.recordsets[0].features.features[0].properties.CJQYDM;Yt({divisions:x}).then(f=>{console.log(f.data),f.data.forEach(C=>{console.log(C),P.value=C}),d=f.data[0].subregionName,k()})}function k(){if(S.result.currentCount>0){console.log(S.result.recordsets[0].features),S.result.recordsets[0].features&&(de.setPosition(l.flatCoordinates),console.log(d),N.innerHTML=d),D=g.getLayers().getArray().find(W=>W.get("id")==="dianjigaoliang"),g.removeLayer(D);var x=new ol.format.GeoJSON().readFeatures(S.result.recordsets[0].features);p=S.result.recordsets[0].features.features[0].geometry.coordinates,rt(S.result.recordsets[0].features.features[0].geometry.coordinates);var f=new ol.source.Vector;f.addFeatures(x);const u=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var C=new ol.layer.Vector({id:"dianjigaoliang",source:f,zIndex:9999});C.setStyle(u),g.addLayer(C)}}}),Oe.addEventListener("click",function(){M=g.getLayers().getArray().find(S=>S.get("id")==="zhezhao"),g.removeLayer(M),Me(p),b.value="370211",D=g.getLayers().getArray().find(S=>S.get("id")==="dianjigaoliang"),g.removeLayer(D),de.setPosition(void 0)})}function rt(a){let e=new ol.source.Vector;var o=new ol.layer.Vector({id:"zhezhao",source:e,style:new ol.style.Style({fill:new ol.style.Fill({color:"rgba( 105, 105, 105, 0.9)"})})});const t=Me(a),l=new ol.Feature({geometry:t});o.getSource().addFeature(l),g.addLayer(o)}function Me(a){console.log(a);const e=[-180,-90,180,90],o=ol.geom.Polygon.fromExtent(e),t=a;return console.log(t),t.forEach(l=>{const n=new ol.geom.LinearRing(l[0]);o.appendLinearRing(n)}),o}const nt=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Oe=document.getElementById("popup-closer"),de=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),g.addOverlay(de)},st=()=>{ie=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_village@huangdaoqu_bianjie",cacheEnabled:!1}),name:"huangdaoqu_village",projection:"EPSG:4326",zIndex:9999}),g.addLayer(ie)},it=()=>{var a=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_town@huangdaoqu_bianjie",cacheEnabled:!1}),projection:"EPSG:4326",zIndex:9999});g.addLayer(a)},dt=a=>{let e=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+`/map-${a.setOf}/rest/maps/${a.name}@${a.setOf}`,cacheEnabled:!1}),name:a.name,projection:"EPSG:4326"});g.addLayer(e)};function ct(){Ot({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),tt.value=a.data.features}).catch(a=>{})}let ce=s({label:[]});function ut(){if(V.value=!V.value,V.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(V.value)}function ft(){if(q.value=!q.value,q.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 pt=()=>{w.value.time=_e.value[0],w.value.statistical="\u9547",w.value.droughtRating="",w.value.area=1,ne.value=!0,xe()},gt=()=>{F.value=!F.value;const a=re.value;a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px";const e=Z(a);window.addEventListener("resize",()=>{a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px",e.resize()}),Fe()},ht=a=>{w.value.area=a},xe=()=>{R.value=1,ta({time:w.value.time,statistical:w.value.statistical,droughtRating:w.value.droughtRating,area:w.value.area}).then(a=>{Ie.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"}],ne.value=!1,U.value=a.data,X.value=a.data.slice((R.value-1)*O.value,(R.value-1)*O.value+O.value),console.log(X.value),Y=s([]),X.value.forEach(t=>{Y.value.push({\u533A\u57DF\u540D\u79F0:t.subName,\u597D:t.good,\u8F83\u597D:t.better,\u9002\u4E2D:t.moderate,\u8F83\u5DEE:t.poor,\u5DEE:t.difference})}),_.value[0].\u597D=0,_.value[0].\u8F83\u597D=0,_.value[0].\u9002\u4E2D=0,_.value[0].\u8F83\u5DEE=0,_.value[0].\u5DEE=0,_.value[0].\u533A\u57DF\u540D\u79F0="\u5408\u8BA1",a.data.forEach(t=>{t.good&&(_.value[0].\u597D+=Number(t.good)!==NaN?Number(t.good):0),t.better&&(_.value[0].\u8F83\u597D+=Number(t.better)!==NaN?Number(t.better):0),t.moderate&&(_.value[0].\u9002\u4E2D+=Number(t.moderate)!==NaN?Number(t.moderate):0),t.poor&&(_.value[0].\u8F83\u5DEE+=Number(t.poor)!==NaN?Number(t.poor):0),t.difference&&(_.value[0].\u5DEE+=Number(t.difference)!==NaN?Number(t.difference):0)});for(const t in _.value[0])_.value[0][t]!=="\u5408\u8BA1"&&(_.value[0][t]=_.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=Z(e);window.addEventListener("resize",()=>{e.style.width=window.innerWidth-200+"px",e.style.height=window.innerHeight-200+"px",o.resize()}),Fe()})},bt=a=>{R.value=a,X.value=U.value.slice((R.value-1)*O.value,(R.value-1)*O.value+O.value)},vt=a=>{const e=R.value,o=O.value;return a+1+(e-1)*o},mt=()=>{Kt().then(a=>{_e.value=a.data,w.value.time=a.data[0],xe()})},ue=a=>{Ae=s([]),ve=s([]),Je({divisions:a}).then(e=>{for(const o in e.data[0])e.data[0][o]&&(Ae.value.push(o),ve.value.push(e.data[0][o]));zt()})},fe=a=>{se=s([]),j.value=[],me=s(0),ea({divisions:a}).then(e=>{console.log(e.data),e.data.forEach(o=>{me.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]}),j.value.push({date:t,name:o[t]})),j.value.forEach(n=>{o[`${n.date}Zb`]!==void 0&&(n.address=(o[`${n.date}Zb`]*100).toFixed(2)+"%")});let l=JSON.parse(JSON.stringify(j.value));l.forEach(n=>{switch(n.date){case"good":n.date="\u597D";break;case"better":n.date="\u8F83\u597D";break;case"moderate":n.date="\u9002\u4E2D";break;case"poor":n.date="\u8F83\u5DEE";break;case"difference":n.date="\u5DEE";break}}),j.value=l}}),Dt()})},yt=()=>{s([]),Qe().then(a=>{Ve.forEach((e,o)=>{a.data.map(t=>{if(e===t.region)for(const l in t)$[l]&&$[l].push(t[l])})}),Et()})},ee=a=>{m.value.better=[],m.value.difference=[],m.value.good=[],m.value.moderate=[],m.value.poor=[],Xe({divisions:a,yearMonth:"2023-05"}).then(e=>{console.log(e.data),B.brr=e.data,B.arr=e.data.sort((l,n)=>l.subregionName.length-n.subregionName.length),B.arr.unshift({subregion:"370211",subregionName:"\u5168\u90E8"});let o=[...e.data],t=[];o.splice(0,1),o.forEach(l=>{t.indexOf(l.subregionName)==-1&&t.push(l.subregionName)}),J.title=[...Object.values(t)],J.title.forEach((l,n)=>{e.data.map(p=>{if(l===p.subregionName)return m.value.better.push(p.better),m.value.difference.push(p.difference),m.value.good.push(p.good),m.value.moderate.push(p.moderate),m.value.poor.push(p.poor),p})}),console.log(m),qe()})},_t=a=>{let e={good:[],better:[],difference:[],moderate:[],poor:[]};Ye({divisions:a}).then(o=>{console.log(o.data),B.brr=o.data;let t=[...o.data],l=[];t.forEach(n=>{l.indexOf(n.subregionName)==-1&&l.push(n.subregionName)}),J.title=[...Object.values(l)],J.title.forEach((n,p)=>{o.data.map(N=>{if(n===N.subregionName)return e.better.push(N.better),e.difference.push(N.difference),e.good.push(N.good),e.moderate.push(N.moderate),e.poor.push(N.poor),N})}),m.value=e,qe()})},Se=()=>{b.value!=="370211"&&(_t(b.value),ue(b.value),fe(b.value)),b.value=="370211"&&(ee("370211"),ue("370211"),fe("370211"))},wt=a=>{let e="";B.arr.forEach(o=>{o.subregion==b.value&&(e=o.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":o.subregionName)}),Je({divisions:b.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}];pe(t,`${t[0].region}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1`,"Sheet1")})},xt=a=>{let e="";B.arr.forEach(o=>{o.subregion==b.value&&(e=o.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":o.subregionName)}),console.log(j),Lt(j.value,`${e}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4`,"Sheet1")},St=a=>{let e=[];Qe().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})}),pe(e,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530\u5217\u8868","Sheet1")})},kt=a=>{let e="",o=[];B.arr.forEach(t=>{t.subregion==b.value&&(e=t.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":t.subregionName)}),b.value==="370211"?Xe({divisions:b.value,whetherToDownload:!1}).then(t=>{t.data.forEach(l=>{console.log(l),o.push({region:l.subregionName,good:l.good,better:l.better,moderate:l.moderate,poor:l.poor,difference:l.difference})}),pe(o,`${e}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")}):Ye({divisions:b.value,whetherToDownload:!1}).then(t=>{t.data.forEach(l=>{console.log(l),o.push({region:l.subregionName,good:l.good,better:l.better,moderate:l.moderate,poor:l.poor,difference:l.difference})}),pe(o,`${e}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})},Nt=()=>{console.log(U);let a=JSON.parse(JSON.stringify(_.value[0]));a.region="\u5408\u8BA1",Y.value.push(a),console.log(Y.value),Ct(Y.value,"\u957F\u52BF\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},ke=(a,e)=>a.map(t=>{const l={};for(const n in t)e[n]&&(l[e[n]]=t[n]);return l}),pe=(a,e="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const l=ke(a,{region:"\u533A\u57DF\u540D\u79F0",good:"\u597D(\u4EA9)",better:"\u8F83\u597D(\u4EA9)",moderate:"\u9002\u4E2D(\u4EA9)",poor:"\u8F83\u5DEE(\u4EA9)",difference:"\u5DEE(\u4EA9)"}),n=I.json_to_sheet(l),p=I.book_new();I.book_append_sheet(p,n,o),Ne(p,`${e}.xlsx`)},Lt=(a,e="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const l=ke(a,{date:"\u7C7B\u578B",name:"\u9762\u79EF(\u4EA9)",address:"\u5360\u6BD4"}),n=I.json_to_sheet(l),p=I.book_new();I.book_append_sheet(p,n,o),Ne(p,`${e}.xlsx`)},Ct=(a,e="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const l=ke(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)"}),n=I.json_to_sheet(l),p=I.book_new();I.book_append_sheet(p,n,o),Ne(p,`${e}.xlsx`)};function zt(){const a=Z(ze.value);let e=["\u597D","\u8F83\u597D","\u9002\u4E2D","\u8F83\u5DEE","\u5DEE"],o=ve.value,t=!1;o.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:o,barWidth:"15",itemStyle:{normal:{color:new Q(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&&a.setOption(l),window.addEventListener("resize",function(){a.resize()})}function Dt(){const a=Z(De.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(49, 235, 7, 1)","rgba(84, 170, 255, 1)","rgba(255, 251, 0, 1)","rgba(255, 168, 8, 1)","rgba(255, 0, 255, 1)"],title:{text:"\u603B\u9762\u79EF",subtext:`${me.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"}}}]}]};ge(a,o)}function Et(){const a=Z(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:Ve,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:$.good,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(49, 235, 7, 1)",color:new Q(0,0,0,1,[{offset:0,color:"rgba(49, 235, 7, 1)"},{offset:1,color:"rgba(49, 235, 7, 1)"}])}}},{name:"\u8F83\u597D",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:$.better,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(84, 170, 255, 1)",color:new Q(0,0,0,1,[{offset:0,color:"rgba(84, 170, 255, 1)"},{offset:1,color:"rgba(84, 170, 255, 1)"}])}}},{name:"\u9002\u4E2D",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:$.moderate,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 251, 0, 1)",color:new Q(0,0,0,1,[{offset:0,color:"rgba(255, 251, 0, 1)"},{offset:1,color:"rgba(255, 251, 0, 1)"}])}}},{name:"\u8F83\u5DEE",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:$.poor,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 168, 8, 1)",color:new Q(0,0,0,1,[{offset:0,color:"rgba(255, 168, 8, 1)"},{offset:1,color:"rgba(255, 168, 8, 1)"}])}}},{name:"\u5DEE",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:$.difference,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 0, 255, 1)",color:new Q(0,0,0,1,[{offset:0,color:"rgba(255, 0, 255, 1)"},{offset:1,color:"rgba(255, 0, 255, 1)"}])}}}]};e&&a.setOption(e,{notMerge:!0,grid:{bottom:20}}),ge(a,e)}function Wt(){ee("370211"),delete ce.value.XZQMC,deleteEntityByName("townLine"),deleteEntityByName("villageLine"),b.value="370211",Se(),Be.value=!1,Pe()}function qe(){const a=Z(We.value);console.log(m),console.log(J);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: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(49, 235, 7, 1)"},{offset:1,color:"rgba(49, 235, 7, 1)"}]}},data:m.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(84, 170, 255, 1)"},{offset:1,color:"rgba(84, 170, 255, 1)"}]}},data:m.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(255, 251, 0, 1)"},{offset:1,color:"rgba(255, 251, 0, 1)"}]}},data:m.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(255, 168, 8, 1)"},{offset:1,color:"rgba(255, 168, 8, 1)"}]}},data:m.value.poor},{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(255, 0, 255, 1)"},{offset:1,color:"rgba(255, 0, 255, 1)"}]}},data:m.value.difference}]};ge(a,e)}function Fe(){const a=Z(re.value);let e=[],o=[],t=[],l=[],n=[],p=[];U.value.forEach(d=>{e.push(d.subName),d.good!==null?o.push(d.good):o.push(0),d.better!==null?t.push(d.better):t.push(0),d.moderate!==null?l.push(d.moderate):l.push(0),d.poor!==null?n.push(d.poor):n.push(0),d.difference!==null?p.push(d.difference):p.push(0)});let N=10/e.length*100,D={tooltip:{trigger:"axis",formatter:function(d){let k=d[0].axisValueLabel+"</br>",x=0;for(let f=0;f<d.length;f++)x+=d[f].value,d[f].seriesName!=="\u5408\u8BA1"&&(k+=d[f].seriesName+"\uFF1A"+d[f].value+"</br>");for(let f=0;f<d.length;f++)x+=Number(d[f].value),d[f].seriesName==="\u5408\u8BA1"&&(k+="\u5408\u8BA1\uFF1A"+x);return k},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:N,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:l},{name:"\u8F83\u5DEE",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 84, 84, 1)"},data:n},{name:"\u5DEE",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 140, 255, 1)"},data:p}]};D.series;var M=D.tooltip;function S(d){let k=d[0].axisValueLabel+"</br>",x=0;for(let f=0;f<d.length;f++)if(d[f].seriesName!=="\u5408\u8BA1"){const C=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${d[f].color}"></span>`;x+=d[f].value,k+=C+d[f].seriesName+"\uFF1A"+d[f].value+"</br>"}for(let f=0;f<d.length;f++)d[f].seriesName==="\u5408\u8BA1"&&(k+="\u5408\u8BA1\uFF1A"+x);return k}M.formatter=S,ge(a,D)}s({});function Bt(){if(le.value.lon&&le.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(le.value.lon),Number(le.value.lat),0);var a=Cesium.SceneTransforms.wgs84ToWindowCoordinates(Ce.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 Pe(){const a=document.getElementById("popup");a&&(a.style.display="none"),Ce.scene.postRender.removeEventListener(Bt),b.value="370211",deleteEntityByName("townLine"),ue(b.value),fe(b.value),ee(b.value)}return(a,e)=>{const o=z("el-table-column"),t=z("el-table"),l=z("el-tooltip"),n=z("el-option"),p=z("el-select"),N=z("el-checkbox"),D=z("el-checkbox-group"),M=z("el-collapse-item"),S=z("el-collapse"),d=z("el-button"),k=z("el-form-item"),x=z("el-input-number"),f=z("el-form"),C=z("el-pagination");return v(),E("div",aa,[r("div",oa,[la,r("div",ra,[r("div",na,[r("div",sa,[ia,r("p",{onClick:e[0]||(e[0]=u=>wt())},[L(" \u4E0B\u8F7D \xA0 "),da])]),r("div",{ref_key:"areaDiv",ref:ze,class:"areaDiv"},null,512),r("div",{ref_key:"leftProgressBarDiv",ref:Ke,class:"ProgressBar"},null,512)]),r("div",ca,[r("div",ua,[fa,r("p",{onClick:e[1]||(e[1]=u=>xt())},[L(" \u4E0B\u8F7D \xA0 "),pa])]),r("div",{ref_key:"typesofDiv",ref:De,class:"typesofDiv"},null,512),r("div",ga,[i(t,{data:c(j),style:{width:"100%"}},{default:h(()=>[i(o,{prop:"date",label:"\u7C7B\u578B"}),i(o,{prop:"name",label:"\u9762\u79EF(\u4EA9)"}),i(o,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),r("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=u=>ut())},[i(l,{class:"box-item","show-arrow":!1,disabled:c(V),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:h(()=>[c(V)?A("v-if",!0):(v(),E("img",ha))]),_:1},8,["disabled"]),i(l,{disabled:!c(V),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:h(()=>[c(V)?(v(),E("img",ba)):A("v-if",!0)]),_:1},8,["disabled"])])]),r("div",va,[r("div",ma,[r("div",ya,[_a,r("p",{onClick:e[3]||(e[3]=u=>St())},[L(" \u4E0B\u8F7D \xA0 "),wa])]),r("div",{ref_key:"farmlandDiv",ref:Ee,class:"farmlandDiv"},null,512),A(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),r("div",xa,[r("div",Sa,[ka,r("p",{onClick:e[4]||(e[4]=u=>kt())},[L(" \u4E0B\u8F7D \xA0 "),Na])]),i(p,{"popper-class":"select_city",onChange:e[5]||(e[5]=u=>Se(a.item)),modelValue:b.value,"onUpdate:modelValue":e[6]||(e[6]=u=>b.value=u),placeholder:"\u5168\u90E8"},{default:h(()=>[(v(!0),E(te,null,ae(c(B).arr,u=>(v(),H(n,{key:u.subregion,label:u.subregionName,value:u.subregion},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),r("div",{ref_key:"ASdivisionDiv",ref:We,class:"ASdivision"},null,512)]),r("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=u=>ft())},[i(l,{disabled:!c(q),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:h(()=>[c(q)?(v(),E("img",La)):A("v-if",!0)]),_:1},8,["disabled"]),i(l,{disabled:c(q),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:h(()=>[c(q)?A("v-if",!0):(v(),E("img",Ca))]),_:1},8,["disabled"])])]),r("div",za,[i(Xt)]),Da,r("div",Ea,[Wa,r("div",Ba,[r("div",null,[r("p",null,[Aa,L(" : "),r("span",null,T(c(P).good)+"(\u4EA9)",1)]),r("p",null,[Ta,L(" : "),r("span",null,T(c(P).better)+"(\u4EA9)",1)]),r("p",null,[Ia,L(" : "),r("span",null,T(c(P).moderate)+"(\u4EA9)",1)]),r("p",null,[Va,L(" : "),r("span",null,T(c(P).poor)+"(\u4EA9)",1)]),r("p",null,[Ra,L(" : "),r("span",null,T(c(P).difference)+"(\u4EA9)",1)])])]),Oa]),r("div",ja,[(v(!0),E(te,null,ae(c(ce).label,(u,W)=>(v(),E("div",{key:W},[r("div",null,T(u.crop)+"\uFF1A",1),r("div",null,T(u.Shape_Area.toFixed(2))+" \u4EA9",1)]))),128)),c(ce).XZQMC?(v(),E("div",Ma,[qa,r("div",null,T(c(ce).XZQMC),1)])):A("v-if",!0),r("div",{class:"cancel",onClick:Pe},"X")]),i(S,{class:"legend",accordion:""},{default:h(()=>[i(M,{name:"1"},{title:h(()=>[L("\u56FE\u4F8B")]),default:h(()=>[r("div",Fa,[i(D,{modelValue:c(G),"onUpdate:modelValue":e[8]||(e[8]=u=>jt(G)?G.value=u:G=u),onChange:at},{default:h(()=>[(v(!0),E(te,null,ae(c(we),(u,W,At)=>(v(),H(N,{key:At,style:Mt({backgroundColor:u.color,border:"1px solid value.color",width:"100%"}),"v-model":u.disabled,disabled:u.disabled,label:W},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),Be.value?(v(),H(d,{key:0,class:"back_button",onClick:e[9]||(e[9]=u=>Wt())},{default:h(()=>[L("\u8FD4\u56DE")]),_:1})):A("v-if",!0)]),r("div",Pa,[r("div",$a,[i(f,{inline:!0,model:c(w),class:"demo-form-inline"},{default:h(()=>[i(k,{label:"\u65F6\u95F4:"},{default:h(()=>[i(p,{"popper-class":"selectCity",modelValue:c(w).time,"onUpdate:modelValue":e[10]||(e[10]=u=>c(w).time=u),placeholder:"\u8BF7\u9009\u62E9"},{default:h(()=>[(v(!0),E(te,null,ae(c(_e),(u,W)=>(v(),H(n,{key:W,label:a.Zitem,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i(k,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:h(()=>[i(p,{"popper-class":"selectCity",modelValue:c(w).statistical,"onUpdate:modelValue":e[11]||(e[11]=u=>c(w).statistical=u),placeholder:"\u8BF7\u9009\u62E9"},{default:h(()=>[i(n,{label:"\u9547\u7EA7",value:"\u9547"}),i(n,{label:"\u6751\u7EA7",value:"\u6751"}),i(n,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})]),_:1},8,["modelValue"])]),_:1}),i(k,{label:"\u957F\u52BF\u7B49\u7EA7"},{default:h(()=>[i(p,{modelValue:c(w).droughtRating,"onUpdate:modelValue":e[12]||(e[12]=u=>c(w).droughtRating=u),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:h(()=>[i(n,{label:"\u5168\u90E8",value:""}),i(n,{label:"\u597D",value:"\u597D"}),i(n,{label:"\u8F83\u597D",value:"\u8F83\u597D"}),i(n,{label:"\u9002\u4E2D",value:"\u9002\u4E2D"}),i(n,{label:"\u8F83\u5DEE",value:"\u8F83\u5DEE"}),i(n,{label:"\u5DEE",value:"\u5DEE"})]),_:1},8,["modelValue"])]),_:1}),i(k,{label:"\u9762\u79EF(\u4EA9)>"},{default:h(()=>[i(x,{modelValue:ye.value,"onUpdate:modelValue":e[13]||(e[13]=u=>ye.value=u),min:0,onChange:ht},null,8,["modelValue"])]),_:1}),i(k,null,{default:h(()=>[i(d,{type:"primary",onClick:xe},{default:h(()=>[L("\u67E5\u8BE2")]),_:1}),i(d,{plain:"",onClick:pt,disabled:!c(F)},{default:h(()=>[L(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),c(ne)?A("v-if",!0):(v(),H(d,{key:0,type:"primary",text:"",onClick:Nt},{default:h(()=>[Ha,L(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),r("div",{class:"modeDiv",onClick:gt},[r("div",{class:Ze(c(F)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),r("div",{class:Ze(c(F)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),Ge(r("div",Za,[r("div",Ga,[c(ne)?A("v-if",!0):(v(),H(t,{key:0,data:c(_),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:h(()=>[i(o,{prop:"",width:"80"}),(v(!0),E(te,null,ae(c(Ie),(u,W)=>(v(),H(o,{key:W,prop:u.value,label:W==0?u.lable:u.lable+"(\u4EA9)"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),i(t,{data:c(X),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:h(()=>[i(o,{type:"index",width:"80",label:"\u5E8F\u53F7",index:vt}),i(o,{prop:"subName",label:"\u533A\u57DF\u540D\u79F0"}),i(o,{prop:"good",label:"\u597D(\u4EA9)"}),i(o,{prop:"better",label:"\u8F83\u597D(\u4EA9)"}),i(o,{prop:"moderate",label:"\u9002\u4E2D(\u4EA9)"}),i(o,{prop:"poor",label:"\u8F83\u5DEE(\u4EA9)"}),i(o,{prop:"difference",label:"\u5DEE(\u4EA9)"})]),_:1},8,["data"]),r("div",Ua,[L(" \u5171"+T(U.value.length)+"\u6761 ",1),i(C,{background:"",layout:"prev, pager, next",total:U.value.length,"current-page":c(R),"page-size":c(O),onCurrentChange:bt},null,8,["total","current-page","page-size"])])],512),[[Ue,c(F)]]),Ge(r("div",Ja,[r("div",{ref_key:"chartModeDiv",ref:re,class:"chartModeDiv"},null,512)],512),[[Ue,!c(F)]])])])}}},so=Tt(Qa,[["__scopeId","data-v-1e2a71d9"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/site/Site.vue"]]);export{so as default};
|