2 lines
37 KiB
JavaScript
2 lines
37 KiB
JavaScript
import{H as M,_ as Wt,a as Et,r as d,A as He,U as Ge,V as At,W as Ft,a1 as Tt,d as z,o as g,c as C,l as n,m as T,e as c,w as h,f as u,g as q,L as G,N as U,k as O,F as qt,x as J,G as Ue,C as Ze,D as Qe,y as Ot,p as It,q as Bt}from"./index.ae0c781d.js";import ve from"./downloads.4cdbbcc5.js";import{_ as me}from"./close1.45635d81.js";import{_ as Vt,a as Mt,b as Rt,c as jt,d as Pt,e as $t}from"./linesGL.97ae14ae.js";import{_ as Ht}from"./dow.f37c8d82.js";import{i as Z,L as he}from"./index.c9f5bd8b.js";import{T as Gt}from"./TimeLine.64a8bde3.js";import{u as ge}from"./useEcharts.dbdb546a.js";import{d as Je}from"./download.8084913c.js";import{u as We,w as Ut}from"./xlsx.86b9426e.js";function Ye(_){return M({url:"equipment/statisticsOfTheArea",method:"get",params:_})}function Xe(_){return M({url:"equipment/proportionOfTheArea",method:"get",params:_})}function Ke(_){return M({url:"equipment/eachFreezingGradeArea",method:"get",params:_})}function et(_){return M({url:"equipment/townshipArea",method:"get",params:_})}function tt(_){return M({url:"equipment/administrativeArea",method:"get",params:_})}function Zt(_){return M({url:"equipment/freezeWarningYear",method:"get",params:_})}function Qt(_){return M({url:"equipment/freezeWarning",method:"get",params:_})}function Jt(_){return M({url:"equipment/administrativeAreaChun",method:"get",params:_})}const W=_=>(It("data-v-158b2a96"),_=_(),Bt(),_),Yt={class:"fatherDiv"},Xt={class:"centerBox"},Kt=W(()=>n("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),ea={class:"leftWra"},ta={class:"leftTop"},aa={class:"title"},oa=W(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),la=W(()=>n("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ra={class:"leftbottom"},na={class:"title"},sa=W(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),ia=W(()=>n("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),da={class:"tableDiv"},ua={key:0,src:me,alt:""},ca={key:0,class:"imgrotate",src:me,alt:""},fa={class:"rightWra"},pa={class:"rightTop"},ha={class:"title"},ga=W(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),va=W(()=>n("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ma={class:"rightbottom"},ba={class:"title"},ya=W(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),_a=W(()=>n("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),wa={key:0,src:me,alt:""},xa={key:0,class:"imgrotate",src:me,alt:""},Sa={class:"bottom_center"},ka=Ot('<div class="tool" data-v-158b2a96><span data-v-158b2a96><img src="'+Vt+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+Mt+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+Rt+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+jt+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+Pt+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+$t+'" alt="" data-v-158b2a96></span></div>',1),Na={class:"mt-4"},Ca={id:"popup",class:"ol-popup"},La=W(()=>n("div",{class:"pophead",style:{width:"100%",height:"20px"}},[n("div",{id:"popup-title",style:{font:"bold 15px sans-serif",align:"left",position:"absolute",left:"17px",color:"#fff"}}),n("a",{href:"#",id:"popup-closer",class:"ol-popup-closer",style:{color:"#8e908c"}})],-1)),za={id:"popup-content",style:{padding:"10px"}},Da=W(()=>n("div",{id:"popup-pagination"},null,-1)),Wa={id:"pop"},Ea={key:0},Aa=W(()=>n("div",null,"\u6751\u540D\uFF1A",-1)),Fa={class:"tabulation"},Ta={class:"searchDiv"},qa=W(()=>n("img",{src:Ht,alt:""},null,-1)),Oa={class:"tableBox"},Ia={class:"tableBorder"},Ba=["onClick"],Va=["onClick"],Ma={class:"example-pagination-block"},Ra={class:"chartMode"},ja={__name:"Freeze",setup(_){const be=Et();let ye=d(null);const Ee=d(null),Ae=d(null),Fe=d(null);d(null);const Te=d(null),m=d("370211"),at=d(null);let A=He({arr:[],brr:[],crr:[]});const ae=d({}),ot=d([]),oe=d(!1);let R=d(!1),j=d(!1);const le=d(["false"]);let qe=d([]),I=He({lable:[],value:[]}),re=d([]),_e=d(0),B=d(1),V=d(12);const P=d([]),we=d(1);let xe=d([]),Se=d([]),Q=d(!0),ke=d([]);const ne=d(null);let $=d(!0),se=d(null);d("");let Ne=d([]),k=d([{\u65E0\u51BB\u5BB3:0,\u8F7B\u5EA6\u51BB\u5BB3:0,\u4E2D\u5EA6\u51BB\u5BB3:0,\u91CD\u5EA6\u51BB\u5BB3:0}]),x=d({time:"",statistical:"\u9547",droughtRating:"",area:we.value}),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"],H={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Ce={\u65E0\u51BB\u5BB3:{color:"rgba(32, 242, 255, 1)",disabled:!1},\u8F7B\u5EA6\u51BB\u5BB3:{color:"rgba(255, 255, 0, 1)",disabled:!1},\u4E2D\u5EA6\u51BB\u5BB3:{color:"rgba(255, 168, 8, 1)",disabled:!1},\u91CD\u5EA6\u51BB\u5BB3:{color:"rgba(224, 13, 15, 1)",disabled:!1}},ie={\u65E0\u51BB\u5BB3:{setOf:"2022-12-20-lengdong",name:"T2022_12_20_wudonghai"},\u8F7B\u5EA6\u51BB\u5BB3:{setOf:"2022-12-20-lengdong",name:"T2022_12_20_qingdudonghai"},\u4E2D\u5EA6\u51BB\u5BB3:{setOf:"2022-12-20-lengdong",name:"T2022_12_20_medium_donghai"},\u91CD\u5EA6\u51BB\u5BB3:{setOf:"2022-12-20-lengdong",name:"T2022_12_20_serious_donghai"}};Ge(()=>m.value,()=>{De()});var Y={title:[]};let L={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Le=d([]);At(()=>{lt()});function lt(){ce("370211"),fe("370211"),yt(),X("370211"),bt(),rt(),K(),ee(),je(),te(),ct(),nt();for(const o in Ce)Ce[o].disabled!==!0&&(console.log(o),qe.value.push(o));le.value=qe.value;let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)");let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)",localStorage.setItem(be.currentRoute.value.path,!0)}Ft(()=>{console.log(localStorage.getItem(be.currentRoute.value.path)),localStorage.getItem(be.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")}),d(null),d(null);let Ie=d(null),de=d(null),b=d(null);function rt(){b=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"})})]}),b.on("moveend",function(t){var e=b.getView().getZoom();e>=13?se.setVisible(!0):se.setVisible(!1)}),b.on("singleclick",function(t){var e=t.coordinate,o=e[0],r=e[1],l=b.getView(),a=b.getView().getZoom();console.log(o,r),l.animate({center:[o,r],duration:1e3}),a>=13?Be(t,"huangdaoqu_village@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_village@huangdaoqu_bianjie","\u6751"):Be(t,"huangdaoqu_town@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_town@huangdaoqu_bianjie","\u9547")})}function Be(t,e,o,r){var l=new ol.geom.Point(t.coordinate),a=new ol.supermap.QueryByGeometryParameters({queryParams:{name:e},geometry:l});let f=[],v=document.querySelector("#popup-title"),F=d(null),w=d(null);new ol.supermap.QueryService(o).queryByGeometry(a,function(i){let y="";if(w=b.getLayers().getArray().find(p=>p.get("id")==="zhezhao"),b.removeLayer(w),r=="\u9547"&&i.result.recordsets[0].features.features[0].properties.XJQYDM){let p=i.result.recordsets[0].features.features[0].properties.XJQYDM;m.value=p,X();let E=[];A.brr.forEach(D=>{console.log(D),D.streetCode==p&&(y=D.streetName,E.push(D)),Ne.value=E}),N()}else if(r=="\u6751"&&i.result.recordsets[0].features.features[0].properties.CJQYDM){let p=i.result.recordsets[0].features.features[0].properties.CJQYDM,E=[];Jt({divisions:p}).then(D=>{console.log(D.data),D.data.forEach(s=>{console.log(s),E.push(s)}),y=D.data[0].streetName,Ne.value=E,N()})}function N(){if(i.result.currentCount>0){console.log(i.result.recordsets[0].features),i.result.recordsets[0].features&&(de.setPosition(l.flatCoordinates),console.log(y),v.innerHTML=y),F=b.getLayers().getArray().find(S=>S.get("id")==="dianjigaoliang"),b.removeLayer(F);var p=new ol.format.GeoJSON().readFeatures(i.result.recordsets[0].features);f=i.result.recordsets[0].features.features[0].geometry.coordinates,st(i.result.recordsets[0].features.features[0].geometry.coordinates);var E=new ol.source.Vector;E.addFeatures(p);const s=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var D=new ol.layer.Vector({id:"dianjigaoliang",source:E,zIndex:9999});D.setStyle(s),b.addLayer(D)}}}),Ie.addEventListener("click",function(){w=b.getLayers().getArray().find(i=>i.get("id")==="zhezhao"),b.removeLayer(w),Ve(f),m.value="370211",F=b.getLayers().getArray().find(i=>i.get("id")==="dianjigaoliang"),b.removeLayer(F),de.setPosition(void 0)})}const nt=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Ie=document.getElementById("popup-closer"),de=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),b.addOverlay(de)};function st(t){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 r=Ve(t),l=new ol.Feature({geometry:r});o.getSource().addFeature(l),b.addLayer(o)}function Ve(t){console.log(t);const e=[-180,-90,180,90],o=ol.geom.Polygon.fromExtent(e),r=t;return console.log(r),r.forEach(l=>{const a=new ol.geom.LinearRing(l[0]);o.appendLinearRing(a)}),o}const it=()=>{se=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}),b.addLayer(se)},dt=()=>{var t=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});b.addLayer(t)},ut=t=>{let e=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+`/map-${t.setOf}/rest/maps/${t.name}@${t.setOf}`,cacheEnabled:!1}),name:t.name,projection:"EPSG:4326"});b.addLayer(e)};function ct(){Tt({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afarmland&maxFeatures=50&outputFormat=application%2Fjson",method:"get"}).then(t=>{console.log("\u519C\u7530\uFF1A",t),ot.value=t.data.features}).catch(t=>{})}let Me=0;Ge(()=>le.value,(t,e)=>{t.length>e.length?t.filter(r=>{if(e.findIndex(a=>a===r)<0)return r}).forEach(r=>{ie[r]&&ut(ie[r])}):t.length<e.length&&e.filter(r=>{if(t.findIndex(a=>a===r)<0)return r}).forEach(r=>{ie[r]&&b.getLayers().getArray().forEach((l,a)=>{l.A.name&&l.A.name==ie[r].name&&b.getLayers().removeAt(a)})}),Me++,Me==1&&(it(),dt())});let ue=d({label:[]});function ft(){if(R.value=!R.value,R.value){let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(0,0)")}else{let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)")}}function pt(){if(j.value=!j.value,j.value){let t=document.querySelector(".rightWra");t.style.transform="translate(0,0)"}else{let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"}}const ht=t=>{x.value.area=t},ze=()=>{let t=[],e=[];B.value=1,Qt({time:x.value.time,statistical:x.value.statistical,droughtRating:x.value.droughtRating,area:x.value.area}).then(o=>{console.log(o.data),Se.value=[{lable:"",value:"region"},{lable:"\u65E0\u51BB\u5BB3",value:"\u65E0\u51BB\u5BB3"},{lable:"\u8F7B\u5EA6\u51BB\u5BB3",value:"\u8F7B\u5EA6\u51BB\u5BB3"},{lable:"\u4E2D\u5EA6\u51BB\u5BB3",value:"\u4E2D\u5EA6\u51BB\u5BB3"},{lable:"\u91CD\u5EA6\u51BB\u5BB3",value:"\u91CD\u5EA6\u51BB\u5BB3"}],o.data.forEach(a=>{t.indexOf(a.region)==-1&&t.push(a.region)}),t.forEach(a=>{e.push(Object.create(null,{regio:{value:a}}))}),e.forEach(a=>{o.data.map(f=>{a.regio===f.region&&(a.region=f.region,a[f.level]=Number(f.area).toFixed(2))})}),Q.value=!1,P.value=e.sort((a,f)=>a.region.length-f.region.length),ke.value=e.slice((B.value-1)*V.value,(B.value-1)*V.value+V.value),k.value[0].\u65E0\u51BB\u5BB3=0,k.value[0].\u8F7B\u5EA6\u51BB\u5BB3=0,k.value[0].\u4E2D\u5EA6\u51BB\u5BB3=0,k.value[0].\u91CD\u5EA6\u51BB\u5BB3=0,k.value[0].region="\u5408\u8BA1",e.forEach(a=>{a.\u65E0\u51BB\u5BB3&&(k.value[0].\u65E0\u51BB\u5BB3+=Number(a.\u65E0\u51BB\u5BB3)!==NaN?Number(a.\u65E0\u51BB\u5BB3):0),a.\u8F7B\u5EA6\u51BB\u5BB3&&(k.value[0].\u8F7B\u5EA6\u51BB\u5BB3+=Number(a.\u8F7B\u5EA6\u51BB\u5BB3)!==NaN?Number(a.\u8F7B\u5EA6\u51BB\u5BB3):0),a.\u4E2D\u5EA6\u51BB\u5BB3&&(k.value[0].\u4E2D\u5EA6\u51BB\u5BB3+=Number(a.\u4E2D\u5EA6\u51BB\u5BB3)!==NaN?Number(a.\u4E2D\u5EA6\u51BB\u5BB3):0),a.\u91CD\u5EA6\u51BB\u5BB3&&(k.value[0].\u91CD\u5EA6\u51BB\u5BB3+=Number(a.\u91CD\u5EA6\u51BB\u5BB3)!==NaN?Number(a.\u91CD\u5EA6\u51BB\u5BB3):0)});for(const a in k.value[0])console.log(k.value[0][a]),k.value[0][a]!=="\u5408\u8BA1"&&(k.value[0][a]=k.value[0][a].toFixed(2));const r=ne.value;r.style.width=window.innerWidth-100+"px",r.style.height=window.innerHeight-100+"px";const l=Z(r);window.addEventListener("resize",()=>{r.style.width=window.innerWidth-200+"px",r.style.height=window.innerHeight-200+"px",l.resize()}),Pe()})},gt=()=>{$.value=!$.value;const t=ne.value;t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px";const e=Z(t);window.addEventListener("resize",()=>{t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px",e.resize()}),Pe()},vt=()=>{let t=JSON.parse(JSON.stringify(k.value[0]));t.region="\u5408\u8BA1",P.value.push(t),pe(P.value,"\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},mt=()=>{x.value.time=xe.value[0],x.value.statistical="\u9547",x.value.droughtRating="",x.value.area=1,Q.value=!0,ze()},bt=()=>{Zt().then(t=>{xe.value=t.data,x.value.time=t.data[0],ze()})},ce=t=>{I.lable=[],I.value=[],Ye({divisions:t}).then(e=>{console.log(I.lable,I.value),e.data.forEach(o=>{I.lable.push(o.level),I.value.push(o.area)}),K()})},fe=t=>{re=d([]),Le=d([]),_e=d(0),Xe({divisions:t}).then(e=>{e.data.forEach(o=>{_e.value+=Number(o.area),re.value.push({name:o.level,value:Number(o.area).toFixed(2)}),Le.value.push({date:o.level,name:`${Number(o.area).toFixed(2)}`,address:`${(o.percentage*100).toFixed(2)}%`})}),console.log(re.value),ee()})},yt=()=>{Ke().then(t=>{Oe.forEach((e,o)=>{let r=t.data.map(l=>{if(e===l.region)return l});Object.keys(H).forEach(l=>{let a=0;r.findIndex(v=>(v&&v.level===l&&(a=v.area),v&&v.level===l))>-1?H[l].push(a):H[l].push(0)})}),je()})},X=t=>{L={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},et({divisions:t}).then(e=>{A.brr=e.data,A.arr=e.data.sort((f,v)=>f.streetName.length-v.streetName.length),A.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let o=[],r=[];A.arr.forEach(f=>{o.indexOf(f.streetName)==-1&&(o.push(f.streetName),r.push({streetName:f.streetName,streetCode:f.streetCode}))}),A.arr=r,console.log(A.arr);let l=[...e.data],a=[];l.splice(0,1),l.forEach(f=>{a.indexOf(f.streetName)==-1&&a.push(f.streetName)}),Y.title=[...Object.values(a)],Y.title.forEach((f,v)=>{let F=e.data.map(w=>{if(f===w.streetName)return w});Object.keys(L).forEach(w=>{F.findIndex(y=>y&&y.type===w&&y.area>0)>-1?L[w].push(1):L[w].push(null)})}),te()})},Re=t=>{L={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},tt({divisions:t}).then(e=>{A.brr=e.data;let o=[...e.data],r=[];o.splice(0,1),o.forEach(l=>{r.indexOf(l.streetName)==-1&&r.push(l.streetName)}),Y.title=[...Object.values(r)],Y.title.forEach((l,a)=>{let f=e.data.map(v=>{if(l===v.streetName)return v});Object.keys(L).forEach(v=>{f.findIndex(w=>w&&w.type===v&&w.area>0)>-1?L[v].push(1):L[v].push(null)})}),te()})},De=()=>{m.value=="370211"?(ce(m.value),fe(m.value),X(),te(),K(),ee()):(ce(m.value),fe(m.value),Re(m.value),te(),K(),ee()),[...A.arr]},_t=t=>{Ye({divisions:m.value,whetherToDownload:!0}).then(e=>{Je(e.data[e.data.length-1].downloadPath)})},wt=t=>{Xe({divisions:m.value,whetherToDownload:!0}).then(e=>{Je(e.data[e.data.length-1].downloadPath)})},xt=t=>{Ke({divisions:m.value,whetherToDownload:!1}).then(e=>{let o=[],r=[];e.data.forEach(l=>{o.indexOf(l.region)==-1&&o.push(l.region)}),o.forEach(l=>{r.push(Object.create(null,{regio:{value:l}}))}),r.forEach(l=>{e.data.map(a=>{l.regio===a.region&&(l.region=a.region,l[a.level]=Number(a.area).toFixed(2))})}),pe(r,"\u5404\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},St=t=>{m.value==="370211"?et({divisions:m.value}).then(e=>{let o=[],r=[];e.data.forEach(l=>{o.indexOf(l.streetName)==-1&&o.push(l.streetName)}),o.forEach(l=>{r.push(Object.create(null,{regio:{value:l}}))}),r.forEach(l=>{e.data.map(a=>{l.regio===a.streetName&&(l.region=a.streetName,l[a.type]=Number(a.area).toFixed(2))})}),r=r.sort((l,a)=>l.region.length-a.region.length),pe(r,"\u5404\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212","\u884C\u653F\u533A\u5212")}):tt({divisions:m.value,whetherToDownload:!1}).then(e=>{let o=[],r=[];e.data.forEach(l=>{o.indexOf(l.streetName)==-1&&o.push(l.streetName)}),o.forEach(l=>{r.push(Object.create(null,{regio:{value:l}}))}),r.forEach(l=>{e.data.map(a=>{l.regio===a.streetName&&(l.region=a.streetName,l[a.type]=Number(a.area).toFixed(2))})}),pe(r,"\u5404\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},kt=(t,e)=>t.map(r=>{const l={};for(const a in r)e[a]&&(l[e[a]]=r[a]);return l}),pe=(t,e="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const l=kt(t,{region:"\u533A\u57DF\u540D\u79F0",\u65E0\u51BB\u5BB3:"\u65E0\u51BB\u5BB3(\u4EA9)",\u8F7B\u5EA6\u51BB\u5BB3:"\u8F7B\u5EA6\u51BB\u5BB3(\u4EA9)",\u4E2D\u5EA6\u51BB\u5BB3:"\u4E2D\u5EA6\u51BB\u5BB3(\u4EA9)",\u91CD\u5EA6\u51BB\u5BB3:"\u91CD\u5EA6\u51BB\u5BB3(\u4EA9)"}),a=We.json_to_sheet(l),f=We.book_new();We.book_append_sheet(f,a,o),Ut(f,`${e}.xlsx`)};function K(){const t=Z(Ee.value);console.log(I.lable);var e={textStyle:{fontSize:0},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!0,top:"5%",data:["\u9762\u79EF"],right:"5%",icon:"rect",textStyle:{fontSize:14,color:"rgba(255, 255, 255, 0.7)"}},xAxis:{nameTextStyle:{color:"#c0c3cd",padding:[0,0,-10,0],fontSize:14},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14},axisTick:{lineStyle:{color:"#0B1535",width:1},show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#384267",width:1,type:"dashed"},show:!0},data:I.lable,type:"category"},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255,255,255,0.7)"},splitLine:{lineStyle:{type:"dashed"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{data:I.value,name:"\u9762\u79EF",type:"bar",barMaxWidth:"auto",barWidth:35,itemStyle:{color:{x:0,y:0,x2:0,y2:1,type:"linear",global:!1,colorStops:[{offset:0,color:"rgba(45, 204, 177, 1)"},{offset:1,color:"rgba(71, 179, 161, 0)"}]}},label:{normal:{show:!1,fontSize:14,color:"#ffffff",position:"top"}}}]};e&&t.setOption(e),window.addEventListener("resize",function(){t.resize()})}function ee(){const t=Z(Ae.value);var e=re.value;let o={color:["rgba(9, 187, 222, 0.8)","rgba(255, 235, 59, 0.8)","rgba(234, 165, 93, 0.8)","rgba(224, 13, 15, 1)","#585247","#7F6AAD","#009D85","rgba(250,250,250,0.3)"],title:{text:"\u603B\u9762\u79EF",subtext:`${(_e.value/1e4).toFixed(2)}\u4E07\u4EA9`,textStyle:{color:"#f2f2f2",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},legend:{orient:"vertical",top:"middle",right:"2%",textStyle:{color:"#f2f2f2",fontSize:14},icon:"roundRect",data:e},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a} <br/>{b} : {c} <br/>\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",data:e},{radius:["50%","54%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1},emphasis:{show:!1}},labelLine:{normal:{show:!1},emphasis:{show:!1}},animation:!1,tooltip:{show:!1},data:[{value:1,itemStyle:{color:"rgba(250,250,250,0.3)"}}]},{name:"\u5916\u8FB9\u6846",type:"pie",clockWise:!1,hoverAnimation:!1,center:["50%","50%"],radius:["85%","85%"],label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};ge(t,o)}function je(){const t=Z(Fe.value);console.log(L);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.3)",width:1,type:"solid"},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14}}},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255, 255, 255, 0.7)"},splitLine:{lineStyle:{type:"solid",color:"rgba(255, 255, 255, 0.3)"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"\u65E0\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:H.\u65E0\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(32, 242, 255, 1)",color:new he(0,0,0,1,[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}])}}},{name:"\u8F7B\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:H.\u8F7B\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 255, 0, 1)",color:new he(0,0,0,1,[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}])}}},{name:"\u4E2D\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:H.\u4E2D\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 168, 8, 1)",color:new he(0,0,0,1,[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}])}}},{name:"\u91CD\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:H.\u91CD\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(215, 25, 28, 1)",color:new he(0,0,0,1,[{offset:0,color:"rgba(224, 13, 15, 1)"},{offset:1,color:"rgba(224, 13, 15, 1)"}])}}}]};t.on("click",function(o){console.log(o.name)}),e&&t.setOption(e,{notMerge:!0,grid:{bottom:20}}),ge(t,e)}function Pe(){const t=Z(ne.value);let e=[],o=[],r=[],l=[],a=[];P.value.forEach(i=>{e.push(i.region),i.\u65E0\u51BB\u5BB3!==void 0?o.push(i.\u65E0\u51BB\u5BB3):o.push(0),i.\u4E2D\u5EA6\u51BB\u5BB3!==void 0?l.push(i.\u4E2D\u5EA6\u51BB\u5BB3):l.push(0),i.\u91CD\u5EA6\u51BB\u5BB3!==void 0?a.push(i.\u91CD\u5EA6\u51BB\u5BB3):a.push(0),i.\u8F7B\u5EA6\u51BB\u5BB3!==void 0?r.push(i.\u8F7B\u5EA6\u51BB\u5BB3):r.push(0)});let f=10/e.length*100,v={tooltip:{trigger:"axis",formatter:function(i){let y=i[0].axisValueLabel+"</br>",N=0;for(let p=0;p<i.length;p++)N+=i[p].value,i[p].seriesName!=="\u5408\u8BA1"&&(y+=i[p].seriesName+"\uFF1A"+i[p].value+"</br>");for(let p=0;p<i.length;p++)N+=Number(i[p].value),i[p].seriesName==="\u5408\u8BA1"&&(y+="\u5408\u8BA1\uFF1A"+N);return y},axisPointer:{type:"shadow"}},dataZoom:[{type:"slider",width:"40%",top:"90%",zoomLock:!0,start:0,end:f,showDataShadow:!1,showDetail:!1,fillerColor:"rgba(64, 158, 255)",borderRadius:"50%",moveHandleSize:0,moveHandleStyle:{},left:"30%",height:12,handleSize:"80%",handleIcon:"path://M512,512m-448,0a448,448,0,1,0,896,0a448,448,0,1,0,-896,0Z",handleStyle:{borderWidth:0,color:"rgba(64, 158, 255)"}},{type:"inside"}],legend:{top:5,left:10,icon:"rect",itemWidth:4,itemHeight:12,data:[]},grid:{left:"3%",right:"10%",bottom:"15%",top:"5%",containLabel:!0},xAxis:{type:"category",name:"\u533A\u57DF",axisLabel:{fontSize:12,interval:0,rotate:0},axisLine:{lineStyle:{}},data:e},yAxis:[{type:"value",name:"\u9762\u79EF\uFF08\u4EA9\uFF09",axisLabel:{},axisLine:{lineStyle:{}},splitLine:{lineStyle:{},show:!0}}],series:[{name:"\u65E0\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 141, 26, 1)"},data:o},{name:"\u8F7B\u5EA6\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 255, 26, 1)"},data:r},{name:"\u4E2D\u5EA6\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 201, 148, 1)"},data:l},{name:"\u91CD\u5EA6\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 84, 84, 1)"},data:a}]};v.series;var F=v.tooltip;function w(i){let y=i[0].axisValueLabel+"</br>",N=0;for(let p=0;p<i.length;p++)if(i[p].seriesName!=="\u5408\u8BA1"){const E=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${i[p].color}"></span>`;N+=i[p].value,y+=E+i[p].seriesName+"\uFF1A"+i[p].value+"</br>"}for(let p=0;p<i.length;p++)i[p].seriesName==="\u5408\u8BA1"&&(y+="\u5408\u8BA1\uFF1A"+N);return y}F.formatter=w,ge(t,v)}const Nt=t=>{B.value=t,ke.value=P.value.slice((B.value-1)*V.value,(B.value-1)*V.value+V.value)},Ct=t=>{const e=B.value,o=V.value;return t+1+(e-1)*o};function Lt(){X("370211"),delete ue.value.XZQMC,deleteEntityByName("townLine"),deleteEntityByName("villageLine"),removeWms(["gbznt"],!0),removeWms(["aaa"]),m.value="370211",De(),oe.value==="1"&&(console.log(oe.value),addWms("huangdaoqu_town","huangdaoqu_town")),ye.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),oe.value=!1,$e()}function te(){const t=Z(Te.value);console.log(L);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(o){let r=0;return A.brr.forEach(l=>{l.type==o.seriesName&&l.streetName==o.name&&(r=Number(l.area).toFixed(2))}),o.seriesName+'<span style="font-size: 14px; color: #f00;">'+r+"</span>\u4EA9"}},dataZoom:[{type:"slider",show:!1,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:10,startValue:0,endValue:4,handleIcon:"M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z",handleSize:"100%",handleStyle:{color:"#DBDBDB",height:"100%"},backgroundColor:"transparent",fillerColor:"#DBDBDB",textStyle:{color:"transparent"},dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:"transparent"}},borderColor:"transparent"},{type:"inside",id:"insideY",yAxisIndex:0,start:0,end:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(255, 255, 255, 1)",formatter:"{value}"},data:Y.title,inverse:!0}],series:[{type:"bar",name:"\u65E0\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u65E0\u51BB\u5BB3",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(32, 242, 255, 1)"},{offset:1,color:"rgba(32, 242, 255, 1)"}]}},data:L.\u65E0\u51BB\u5BB3},{type:"bar",name:"\u8F7B\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F7B\u5EA6\u51BB\u5BB3",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(255, 255, 0, 1)"},{offset:1,color:"rgba(255, 255, 0, 1)"}]}},data:L.\u8F7B\u5EA6\u51BB\u5BB3},{type:"bar",name:"\u4E2D\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u4E2D\u5EA6\u51BB\u5BB3",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(255, 168, 8, 1)"},{offset:1,color:"rgba(255, 168, 8, 1)"}]}},data:L.\u4E2D\u5EA6\u51BB\u5BB3},{type:"bar",name:"\u91CD\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u91CD\u5EA6\u51BB\u5BB3",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(224, 13, 15, 1)"},{offset:1,color:"rgba(224, 13, 15, 1)"}]}},data:L.\u91CD\u5EA6\u51BB\u5BB3}]};ge(t,e)}d({});function zt(){if(ae.value.lon&&ae.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(ae.value.lon),Number(ae.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(ye.scene,e);if(Cesium.defined(t)){const o=document.getElementById("popup");o&&(o.style.top=t.y-10+"px",o.style.left=t.x+10+"px")}}}function $e(){const t=document.getElementById("popup");t&&(t.style.display="none"),ye.scene.postRender.removeEventListener(zt),deleteEntityByName("townLine"),m.value="370211",ce(m.value),fe(m.value),Re(m.value),X("370211"),K(),ee()}return(t,e)=>{const o=z("el-table-column"),r=z("el-table"),l=z("el-tooltip"),a=z("el-option"),f=z("el-select"),v=z("el-checkbox"),F=z("el-checkbox-group"),w=z("el-collapse-item"),i=z("el-collapse"),y=z("el-button"),N=z("el-form-item"),p=z("el-input-number"),E=z("el-form"),D=z("el-pagination");return g(),C("div",Yt,[n("div",Xt,[Kt,n("div",ea,[n("div",ta,[n("div",aa,[oa,n("p",{onClick:e[0]||(e[0]=s=>_t())},[T(" \u4E0B\u8F7D \xA0 "),la])]),n("div",{ref_key:"areaDiv",ref:Ee,class:"areaDiv"},null,512),n("div",{ref_key:"leftProgressBarDiv",ref:at,class:"ProgressBar"},null,512)]),n("div",ra,[n("div",na,[sa,n("p",{onClick:e[1]||(e[1]=s=>wt())},[T(" \u4E0B\u8F7D \xA0 "),ia])]),n("div",{ref_key:"typesofDiv",ref:Ae,class:"typesofDiv"},null,512),n("div",da,[c(r,{data:u(Le),style:{width:"100%"}},{default:h(()=>[c(o,{prop:"date",label:"\u7C7B\u578B"}),c(o,{prop:"name",label:"\u9762\u79EF(\u4EA9)"}),c(o,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),n("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=s=>ft())},[c(l,{class:"box-item","show-arrow":!1,disabled:u(R),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:h(()=>[u(R)?q("v-if",!0):(g(),C("img",ua))]),_:1},8,["disabled"]),c(l,{disabled:!u(R),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:h(()=>[u(R)?(g(),C("img",ca)):q("v-if",!0)]),_:1},8,["disabled"])])]),n("div",fa,[n("div",pa,[n("div",ha,[ga,n("p",{onClick:e[3]||(e[3]=s=>xt())},[T(" \u4E0B\u8F7D \xA0 "),va])]),n("div",{ref_key:"farmlandDiv",ref:Fe,class:"farmlandDiv"},null,512),q(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),n("div",ma,[n("div",ba,[ya,n("p",{onClick:e[4]||(e[4]=s=>St())},[T(" \u4E0B\u8F7D \xA0 "),_a])]),c(f,{"popper-class":"select_city",onChange:e[5]||(e[5]=s=>De(t.item)),modelValue:m.value,"onUpdate:modelValue":e[6]||(e[6]=s=>m.value=s),placeholder:"\u5168\u90E8"},{default:h(()=>[(g(!0),C(G,null,U(u(A).arr,s=>(g(),O(a,{key:s.streetCode,label:s.streetName,value:s.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),n("div",{ref_key:"ASdivisionDiv",ref:Te,class:"ASdivision"},null,512)]),n("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=s=>pt())},[c(l,{disabled:!u(j),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:h(()=>[u(j)?(g(),C("img",wa)):q("v-if",!0)]),_:1},8,["disabled"]),c(l,{disabled:u(j),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:h(()=>[u(j)?q("v-if",!0):(g(),C("img",xa))]),_:1},8,["disabled"])])]),n("div",Sa,[c(Gt)]),ka,c(i,{class:"legend",accordion:""},{default:h(()=>[c(w,{name:"1"},{title:h(()=>[T("\u56FE\u4F8B")]),default:h(()=>[n("div",Na,[c(F,{modelValue:le.value,"onUpdate:modelValue":e[8]||(e[8]=s=>le.value=s),onChange:t.change},{default:h(()=>[(g(!0),C(G,null,U(u(Ce),(s,S,Dt)=>(g(),O(v,{key:Dt,style:qt({backgroundColor:s.color,border:"1px solid value.color",width:"100%"}),"v-model":s.disabled,disabled:s.disabled,label:S},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),n("div",Ca,[La,n("div",za,[(g(!0),C(G,null,U(u(Ne),(s,S)=>(g(),C("div",{key:S},[n("p",null,[n("span",null,J(s.type),1),T(" : "),n("span",null,J(Number(s.area).toFixed(2))+"(\u4EA9)",1)])]))),128))]),Da]),n("div",Wa,[(g(!0),C(G,null,U(u(ue).label,(s,S)=>(g(),C("div",{key:S},[n("div",null,J(s.crop)+"\uFF1A",1),n("div",null,J(s.Shape_Area)+" \u4EA9",1)]))),128)),u(ue).XZQMC?(g(),C("div",Ea,[Aa,n("div",null,J(u(ue).XZQMC),1)])):q("v-if",!0),n("div",{class:"cancel",onClick:$e},"X")]),oe.value?(g(),O(y,{key:0,class:"back_button",onClick:e[9]||(e[9]=s=>Lt())},{default:h(()=>[T("\u8FD4\u56DE")]),_:1})):q("v-if",!0)]),n("div",Fa,[n("div",Ta,[c(E,{inline:!0,model:u(x),class:"demo-form-inline"},{default:h(()=>[c(N,{label:"\u65F6\u95F4:"},{default:h(()=>[c(f,{"popper-class":"selectCity",modelValue:u(x).time,"onUpdate:modelValue":e[10]||(e[10]=s=>u(x).time=s),placeholder:"\u8BF7\u9009\u62E9"},{default:h(()=>[(g(!0),C(G,null,U(u(xe),(s,S)=>(g(),O(a,{key:S,label:t.Zitem,value:s},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),c(N,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:h(()=>[c(f,{"popper-class":"selectCity",modelValue:u(x).statistical,"onUpdate:modelValue":e[11]||(e[11]=s=>u(x).statistical=s),placeholder:"\u8BF7\u9009\u62E9"},{default:h(()=>[c(a,{label:"\u9547\u7EA7",value:"\u9547"}),c(a,{label:"\u6751\u7EA7",value:"\u6751"}),c(a,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})]),_:1},8,["modelValue"])]),_:1}),c(N,{label:"\u51B7\u51BB\u7B49\u7EA7"},{default:h(()=>[c(f,{modelValue:u(x).droughtRating,"onUpdate:modelValue":e[12]||(e[12]=s=>u(x).droughtRating=s),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:h(()=>[c(a,{label:"\u5168\u90E8",value:""}),c(a,{label:"\u65E0\u51BB\u5BB3",value:"\u65E0\u51BB\u5BB3"}),c(a,{label:"\u8F7B\u5EA6\u51BB\u5BB3",value:"\u8F7B\u5EA6\u51BB\u5BB3"}),c(a,{label:"\u4E2D\u5EA6\u51BB\u5BB3",value:"\u4E2D\u5EA6\u51BB\u5BB3"}),c(a,{label:"\u91CD\u5EA6\u51BB\u5BB3",value:"\u91CD\u5EA6\u51BB\u5BB3"})]),_:1},8,["modelValue"])]),_:1}),c(N,{label:"\u9762\u79EF(\u4EA9)>"},{default:h(()=>[c(p,{modelValue:we.value,"onUpdate:modelValue":e[13]||(e[13]=s=>we.value=s),min:1,onChange:ht},null,8,["modelValue"])]),_:1}),c(N,null,{default:h(()=>[c(y,{type:"primary",onClick:ze},{default:h(()=>[T("\u67E5\u8BE2")]),_:1}),c(y,{plain:"",onClick:mt,disabled:!u($)},{default:h(()=>[T(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),u(Q)?q("v-if",!0):(g(),O(y,{key:0,type:"primary",text:"",onClick:vt},{default:h(()=>[qa,T(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),n("div",{class:"modeDiv",onClick:gt},[n("div",{class:Ue(u($)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),n("div",{class:Ue(u($)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),Ze(n("div",Oa,[n("div",Ia,[u(Q)?q("v-if",!0):(g(),O(r,{key:0,data:u(k),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:h(()=>[c(o,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(g(!0),C(G,null,U(u(Se),(s,S)=>(g(),O(o,{key:S,prop:s.value,label:S==0?s.lable:s.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),u(Q)?(g(),O(o,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:h(s=>[n("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:S=>t.download(s.row)}," \u4E0B\u8F7D ",8,Ba)]),_:1})):q("v-if",!0)]),_:1},8,["data"]))]),c(r,{data:u(ke),"header-cell-style":{"text-align":"center"},height:"70%","highlight-current-row":"","header-row-class-name":"tabth"},{default:h(()=>[c(o,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Ct}),(g(!0),C(G,null,U(u(Se),(s,S)=>(g(),O(o,{key:S,prop:s.value,label:S==0?s.lable:s.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),u(Q)?(g(),O(o,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:h(s=>[n("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:S=>t.download(s.row)}," \u4E0B\u8F7D ",8,Va)]),_:1})):q("v-if",!0)]),_:1},8,["data"]),n("div",Ma,[T(" \u5171"+J(P.value.length)+"\u6761 ",1),c(D,{background:"",layout:"prev, pager, next",total:P.value.length,"current-page":u(B),"page-size":u(V),onCurrentChange:Nt},null,8,["total","current-page","page-size"])])],512),[[Qe,u($)]]),Ze(n("div",Ra,[n("div",{ref_key:"chartModeDiv",ref:ne,class:"chartModeDiv"},null,512)],512),[[Qe,!u($)]])])])}}},Ka=Wt(ja,[["__scopeId","data-v-158b2a96"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/freeze/Freeze.vue"]]);export{Ka as default};
|