2 lines
38 KiB
JavaScript
2 lines
38 KiB
JavaScript
import{H as R,_ as Tt,a as Ot,r as d,A as Ze,U as We,V as Ft,W as Ue,a1 as Mt,d as L,o as v,c as D,l as n,m as O,e as c,w as g,f as u,g as A,L as Q,N as J,k as F,F as Bt,x as U,G as Xe,C as Ke,D as et,y as qt,p as It,q as Vt}from"./index.afd881ee.js";import fe from"./downloads.4cdbbcc5.js";import{_ as he}from"./close1.45635d81.js";import{_ as Rt,a as jt,b as Pt,c as Gt}from"./position.a021215f.js";import{_ as $t,a as Ht}from"./TimeLine.vue_vue_type_style_index_0_scoped_26e8a223_lang.891b9335.js";import{_ as Qt}from"./icon.d0cb5387.js";import{_ as Jt}from"./dow.2a8d74cb.js";import"./index.6098b0aa.js";import{T as Yt}from"./TimeLine.7d9e99e3.js";import{u as ce}from"./useEcharts.a1c5140e.js";import"./linesGL.306b5757.js";import{d as tt}from"./download.5dddc0da.js";import{u as Ee,w as Zt}from"./xlsx.86b9426e.js";import{i as Y,L as pe}from"./install.6cb28b74.js";function at(_){return R({url:"equipment/statisticsOfTheArea",method:"get",params:_})}function ot(_){return R({url:"equipment/proportionOfTheArea",method:"get",params:_})}function lt(_){return R({url:"equipment/eachFreezingGradeArea",method:"get",params:_})}function Ae(_){return R({url:"equipment/townshipArea",method:"get",params:_})}function rt(_){return R({url:"equipment/administrativeArea",method:"get",params:_})}function Ut(_){return R({url:"equipment/freezeWarningYear",method:"get",params:_})}function Xt(_){return R({url:"equipment/freezeWarning",method:"get",params:_})}function Kt(_){return R({url:"equipment/administrativeAreaChun",method:"get",params:_})}const W=_=>(It("data-v-158b2a96"),_=_(),Vt(),_),ea={class:"fatherDiv"},ta={class:"centerBox"},aa=W(()=>n("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),oa={class:"leftWra"},la={class:"leftTop"},ra={class:"title"},na=W(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),sa=W(()=>n("img",{src:fe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ia={class:"leftbottom"},da={class:"title"},ua=W(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),ca=W(()=>n("img",{src:fe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),pa={class:"tableDiv"},fa={key:0,src:he,alt:""},ha={key:0,class:"imgrotate",src:he,alt:""},ga={class:"rightWra"},va={class:"rightTop"},ma={class:"title"},ba=W(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),ya=W(()=>n("img",{src:fe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),_a={class:"rightbottom"},wa={class:"title"},xa=W(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Sa=W(()=>n("img",{src:fe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ka={key:0,src:he,alt:""},Ca={key:0,class:"imgrotate",src:he,alt:""},Na={class:"bottom_center"},Da=qt('<div class="tool" data-v-158b2a96><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><span data-v-158b2a96><img src="'+Ht+'" alt="" data-v-158b2a96></span><span data-v-158b2a96><img src="'+Gt+'" alt="" data-v-158b2a96></span></div>',1),za={class:"mt-4"},La={id:"popup",class:"ol-popup"},Wa=W(()=>n("div",{class:"pophead",style:{width:"100%"}},[n("div",{id:"popup-title",style:{"font-size":"20px","font-weight":"400","letter-spacing":"1px",color:"rgba(246, 255, 255, 1)","line-height":"42px","padding-left":"45px"}}),n("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),Ea={id:"popup-content",style:{padding:"10px"}},Aa={class:"perform_children"},Ta=W(()=>n("img",{src:Qt},null,-1)),Oa=W(()=>n("div",{id:"popup-pagination"},null,-1)),Fa={id:"pop"},Ma={key:0},Ba=W(()=>n("div",null,"\u6751\u540D\uFF1A",-1)),qa={class:"tabulation"},Ia={class:"searchDiv"},Va=W(()=>n("img",{src:Jt,alt:""},null,-1)),Ra={class:"tableBox"},ja={class:"tableBorder"},Pa=["onClick"],Ga=["onClick"],$a={class:"example-pagination-block"},Ha={class:"chartMode"},Qa={__name:"Freeze",setup(_){const ge=Ot();let ve=d(null);const Te=d(null),Oe=d(null),Fe=d(null);d(null);const Me=d(null),h=d("370211"),nt=d(null);let M=Ze({arr:[],brr:[],crr:[]});const ee=d({});d([]);const te=d(!1);let j=d(!1),P=d(!1);const ae=d(["false"]);let Be=d([]),q=Ze({lable:[],value:[]}),me=d([]),be=d(0),I=d(1),V=d(12);const G=d([]),ye=d(1);let _e=d([]),we=d([]),Z=d(!0),xe=d([]);const oe=d(null);let $=d(!0),le=d(null),Se=d([]),N=d(""),ke=d([]),C=d([{\u65E0\u51BB\u5BB3:0,\u8F7B\u5EA6\u51BB\u5BB3:0,\u4E2D\u5EA6\u51BB\u5BB3:0,\u91CD\u5EA6\u51BB\u5BB3:0}]),S=d({time:"",statistical:"\u9547",droughtRating:"",area:ye.value}),qe=["\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}},re={\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"}};We(()=>h.value,()=>{He()}),We(()=>N.value,(a,e)=>{h.value="370211",ie(h.value,N.value.name),de(h.value,N.value.name),wt(N.value.name),K(h.value,N.value.name)});var X={title:[]};let z={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Ie=d([]);Ft(()=>{st()});function st(){_t(),it(),ut(),De(),ze(),Qe(),Le(),dt();for(const l in Ce)Ce[l].disabled!==!0&&(console.log(l),Be.value.push(l));ae.value=Be.value;let a=document.querySelector(".leftWra");a&&(a.style.transform="translate(-107%,0)");let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)",localStorage.setItem(ge.currentRoute.value.path,!0)}Ue(()=>{console.log(localStorage.getItem(ge.currentRoute.value.path)),localStorage.getItem(ge.currentRoute.value.path)=="false"?(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F",window.document.querySelector("#screenfull").style.display="none"):(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F",window.document.querySelector("#screenfull").style.display="block")}),d(null),d(null);let Ve=d(null),ne=d(null),b=d(null);function it(){b=new ol.Map({target:"cesiumContainer",controls:[],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(a){var e=b.getView().getZoom();e>=13?le.setVisible(!0):le.setVisible(!1)}),b.on("singleclick",function(a){var e=a.coordinate,l=e[0],r=e[1],o=b.getView(),t=b.getView().getZoom();console.log(l,r),o.animate({center:[l,r],duration:1e3}),t>=13?Re(a,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):Re(a,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547")})}Ue(()=>{var a=document.querySelector(".centerBox"),e=document.getElementById("cesiumContainer"),l=new ResizeObserver(function(r){r.forEach(function(o){var t=o.contentRect.width,f=o.contentRect.height;e.style.width=t+"px",e.style.height=f+"px",b.updateSize()})});l.observe(a)});function Re(a,e,l,r){var o=new ol.geom.Point(a.coordinate),t=new ol.supermap.QueryByGeometryParameters({queryParams:{name:e},geometry:o});let f=[],y=document.querySelector("#popup-title"),m=d(null),T=d(null);new ol.supermap.QueryService(l).queryByGeometry(t,function(s){let x="";if(T=b.getLayers().getArray().find(p=>p.get("id")==="zhezhao"),b.removeLayer(T),r=="\u9547"&&s.result.recordsets[0].features.features[0].properties.XJQYDM){let p=s.result.recordsets[0].features.features[0].properties.XJQYDM;h.value=p,K();let E=[];Ae({divisions:"370211",yearMonth:N.value.name}).then(B=>{B.data.forEach(i=>{console.log(i),i.streetCode==p&&(x=i.streetName,E.push(i)),ke.value=E}),w()})}else if(r=="\u6751"&&s.result.recordsets[0].features.features[0].properties.CJQYDM){let p=s.result.recordsets[0].features.features[0].properties.CJQYDM,E=[];Kt({divisions:p,yearMonth:N.value.name}).then(B=>{console.log(B.data),B.data.forEach(i=>{console.log(i),E.push(i)}),x=B.data[0].streetName,ke.value=E,w()})}function w(){if(s.result.currentCount>0){console.log(s.result.recordsets[0].features),s.result.recordsets[0].features&&(ne.setPosition(o.flatCoordinates),console.log(x),y.innerHTML=x),m=b.getLayers().getArray().find(k=>k.get("id")==="dianjigaoliang"),b.removeLayer(m);var p=new ol.format.GeoJSON().readFeatures(s.result.recordsets[0].features);f=s.result.recordsets[0].features.features[0].geometry.coordinates,je(s.result.recordsets[0].features.features[0].geometry.coordinates);var E=new ol.source.Vector;E.addFeatures(p);const i=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var B=new ol.layer.Vector({id:"dianjigaoliang",source:E,zIndex:9999});B.setStyle(i),b.addLayer(B)}}}),Ve.addEventListener("click",function(){T=b.getLayers().getArray().find(s=>s.get("id")==="zhezhao"),b.removeLayer(T),Pe(f),h.value="370211",m=b.getLayers().getArray().find(s=>s.get("id")==="dianjigaoliang"),b.removeLayer(m),ne.setPosition(void 0)})}const dt=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Ve=document.getElementById("popup-closer"),ne=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),b.addOverlay(ne)};function ut(){Mt.get("/json/huangdao.json").then(({data:a})=>{const l=new ol.format.GeoJSON().readFeatures(a)[0];je(l.getGeometry().getCoordinates(),"huandao")})}function je(a,e){let l=new ol.source.Vector;var r=new ol.layer.Vector({id:e||"zhezhao",source:l,style:new ol.style.Style({fill:new ol.style.Fill({color:"rgba( 105, 105, 105, 0.9)"})})});const o=Pe(a),t=new ol.Feature({geometry:o});r.getSource().addFeature(t),b.addLayer(r)}function Pe(a){console.log(a);const e=[-180,-90,180,90],l=ol.geom.Polygon.fromExtent(e),r=a;return console.log(r),r.forEach(o=>{const t=new ol.geom.LinearRing(o[0]);l.appendLinearRing(t)}),l}const ct=()=>{le=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"huangdaoqu_village",projection:"EPSG:4326",zIndex:9999}),b.addLayer(le)},pt=()=>{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/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),projection:"EPSG:4326",zIndex:9999});b.addLayer(a)},ft=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"});b.addLayer(e)};let Ge=0;We(()=>ae.value,(a,e)=>{a.length>e.length?a.filter(r=>{if(e.findIndex(t=>t===r)<0)return r}).forEach(r=>{re[r]&&ft(re[r])}):a.length<e.length&&e.filter(r=>{if(a.findIndex(t=>t===r)<0)return r}).forEach(r=>{re[r]&&b.getLayers().getArray().forEach((o,t)=>{o.A.name&&o.A.name==re[r].name&&b.getLayers().removeAt(t)})}),Ge++,Ge==1&&(ct(),pt())});let se=d({label:[]});function ht(){if(j.value=!j.value,j.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)")}}function gt(){if(P.value=!P.value,P.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 vt=a=>{S.value.area=a},Ne=()=>{let a=[],e=[];I.value=1,Xt({yearMonth:S.value.time,statistical:S.value.statistical,droughtRating:S.value.droughtRating,area:S.value.area}).then(l=>{console.log(l.data),we.value=[{lable:"",value:"region"},{lable:"\u65E0\u51BB\u5BB3",value:"\u65E0\u51BB\u5BB3"},{lable:"\u8F7B\u5EA6\u51BB\u5BB3",value:"\u8F7B\u5EA6\u51BB\u5BB3"},{lable:"\u4E2D\u5EA6\u51BB\u5BB3",value:"\u4E2D\u5EA6\u51BB\u5BB3"},{lable:"\u91CD\u5EA6\u51BB\u5BB3",value:"\u91CD\u5EA6\u51BB\u5BB3"}],l.data.forEach(t=>{a.indexOf(t.region)==-1&&a.push(t.region)}),a.forEach(t=>{e.push(Object.create(null,{regio:{value:t}}))}),e.forEach(t=>{l.data.map(f=>{t.regio===f.region&&(t.region=f.region,t[f.level]=Number(f.area).toFixed(2))})}),Z.value=!1,G.value=e.sort((t,f)=>t.region.length-f.region.length),xe.value=e.slice((I.value-1)*V.value,(I.value-1)*V.value+V.value),C.value[0].\u65E0\u51BB\u5BB3=0,C.value[0].\u8F7B\u5EA6\u51BB\u5BB3=0,C.value[0].\u4E2D\u5EA6\u51BB\u5BB3=0,C.value[0].\u91CD\u5EA6\u51BB\u5BB3=0,C.value[0].region="\u5408\u8BA1",e.forEach(t=>{t.\u65E0\u51BB\u5BB3&&(C.value[0].\u65E0\u51BB\u5BB3+=Number(t.\u65E0\u51BB\u5BB3)!==NaN?Number(t.\u65E0\u51BB\u5BB3):0),t.\u8F7B\u5EA6\u51BB\u5BB3&&(C.value[0].\u8F7B\u5EA6\u51BB\u5BB3+=Number(t.\u8F7B\u5EA6\u51BB\u5BB3)!==NaN?Number(t.\u8F7B\u5EA6\u51BB\u5BB3):0),t.\u4E2D\u5EA6\u51BB\u5BB3&&(C.value[0].\u4E2D\u5EA6\u51BB\u5BB3+=Number(t.\u4E2D\u5EA6\u51BB\u5BB3)!==NaN?Number(t.\u4E2D\u5EA6\u51BB\u5BB3):0),t.\u91CD\u5EA6\u51BB\u5BB3&&(C.value[0].\u91CD\u5EA6\u51BB\u5BB3+=Number(t.\u91CD\u5EA6\u51BB\u5BB3)!==NaN?Number(t.\u91CD\u5EA6\u51BB\u5BB3):0)});for(const t in C.value[0])console.log(C.value[0][t]),C.value[0][t]!=="\u5408\u8BA1"&&(C.value[0][t]=C.value[0][t].toFixed(2));const r=oe.value;r.style.width=window.innerWidth-100+"px",r.style.height=window.innerHeight-100+"px";const o=Y(r);window.addEventListener("resize",()=>{r.style.width=window.innerWidth-200+"px",r.style.height=window.innerHeight-200+"px",o.resize()}),Je()})},mt=()=>{$.value=!$.value;const a=oe.value;a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px";const e=Y(a);window.addEventListener("resize",()=>{a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px",e.resize()}),Je()},bt=()=>{let a=JSON.parse(JSON.stringify(C.value[0]));a.region="\u5408\u8BA1",G.value.push(a),ue(G.value,"\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},yt=()=>{S.value.time=_e.value[0],S.value.statistical="\u9547",S.value.droughtRating="",S.value.area=1,Z.value=!0,Ne()},_t=()=>{Ut().then(a=>{N.value={name:a.data[0]},a.data.forEach(e=>{Se.value.push({name:e})}),_e.value=a.data,S.value.time=a.data[0],Ne()})},ie=(a,e)=>{q.lable=[],q.value=[],at({divisions:a,yearMonth:e}).then(l=>{console.log(q.lable,q.value),l.data.forEach(r=>{q.lable.push(r.level),q.value.push(r.area)}),De()})},de=(a,e)=>{let l=d([]);ot({divisions:a,yearMonth:e}).then(r=>{me=d([]),be=d(0),r.data.forEach(o=>{be.value+=Number(o.area),me.value.push({name:o.level,value:Number(o.area).toFixed(2)}),l.value.push({date:o.level,name:`${Number(o.area).toFixed(2)}`,address:`${(o.percentage*100).toFixed(2)}%`})}),Ie.value=l.value,ze()})},wt=a=>{lt({yearMonth:a}).then(e=>{qe.forEach((l,r)=>{let o=e.data.map(t=>{if(l===t.region)return t});Object.keys(H).forEach(t=>{let f=0;o.findIndex(m=>(m&&m.level===t&&(f=m.area),m&&m.level===t))>-1?H[t].push(f):H[t].push(0)})}),Qe()})},K=(a,e)=>{z={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Ae({divisions:a,yearMonth:e}).then(l=>{M.brr=l.data,M.arr=l.data.sort((y,m)=>y.streetName.length-m.streetName.length),M.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let r=[],o=[];M.arr.forEach(y=>{r.indexOf(y.streetName)==-1&&(r.push(y.streetName),o.push({streetName:y.streetName,streetCode:y.streetCode}))}),M.arr=o,console.log(M.arr);let t=[...l.data],f=[];t.splice(0,1),t.forEach(y=>{f.indexOf(y.streetName)==-1&&f.push(y.streetName)}),X.title=[...Object.values(f)],X.title.forEach((y,m)=>{let T=l.data.map(s=>{if(y===s.streetName)return s});Object.keys(z).forEach(s=>{T.findIndex(w=>w&&w.type===s&&w.area>0)>-1?z[s].push(1):z[s].push(null)})}),Le()})},$e=(a,e)=>{z={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},rt({divisions:a,yearMonth:e}).then(l=>{M.brr=l.data;let r=[...l.data],o=[];r.splice(0,1),r.forEach(t=>{o.indexOf(t.streetName)==-1&&o.push(t.streetName)}),X.title=[...Object.values(o)],X.title.forEach((t,f)=>{let y=l.data.map(m=>{if(t===m.streetName)return m});Object.keys(z).forEach(m=>{y.findIndex(s=>s&&s.type===m&&s.area>0)>-1?z[m].push(1):z[m].push(null)})}),Le()})},He=()=>{h.value=="370211"?(ie(h.value,N.value.name),de(h.value,N.value.name),K(h.value,N.value.name)):(ie(h.value,N.value.name),de(h.value,N.value.name),$e(h.value,N.value.name)),[...M.arr]},xt=a=>{at({divisions:h.value,whetherToDownload:!0}).then(e=>{tt(e.data[e.data.length-1].downloadPath)})},St=a=>{ot({divisions:h.value,whetherToDownload:!0}).then(e=>{tt(e.data[e.data.length-1].downloadPath)})},kt=a=>{lt({divisions:h.value,whetherToDownload:!1}).then(e=>{let l=[],r=[];e.data.forEach(o=>{l.indexOf(o.region)==-1&&l.push(o.region)}),l.forEach(o=>{r.push(Object.create(null,{regio:{value:o}}))}),r.forEach(o=>{e.data.map(t=>{o.regio===t.region&&(o.region=t.region,o[t.level]=Number(t.area).toFixed(2))})}),ue(r,"\u5404\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},Ct=a=>{h.value==="370211"?Ae({divisions:h.value}).then(e=>{let l=[],r=[];e.data.forEach(o=>{l.indexOf(o.streetName)==-1&&l.push(o.streetName)}),l.forEach(o=>{r.push(Object.create(null,{regio:{value:o}}))}),r.forEach(o=>{e.data.map(t=>{o.regio===t.streetName&&(o.region=t.streetName,o[t.type]=Number(t.area).toFixed(2))})}),r=r.sort((o,t)=>o.region.length-t.region.length),ue(r,"\u5404\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212","\u884C\u653F\u533A\u5212")}):rt({divisions:h.value,whetherToDownload:!1}).then(e=>{let l=[],r=[];e.data.forEach(o=>{l.indexOf(o.streetName)==-1&&l.push(o.streetName)}),l.forEach(o=>{r.push(Object.create(null,{regio:{value:o}}))}),r.forEach(o=>{e.data.map(t=>{o.regio===t.streetName&&(o.region=t.streetName,o[t.type]=Number(t.area).toFixed(2))})}),ue(r,"\u5404\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},Nt=(a,e)=>a.map(r=>{const o={};for(const t in r)e[t]=="\u533A\u57DF\u540D\u79F0"&&(o[e[t]]=r[t]);for(const t in r)e[t]=="\u65E0\u51BB\u5BB3(\u4EA9)"&&(o[e[t]]=r[t]);for(const t in r)e[t]=="\u8F7B\u5EA6\u51BB\u5BB3(\u4EA9)"&&(o[e[t]]=r[t]);for(const t in r)e[t]=="\u4E2D\u5EA6\u51BB\u5BB3(\u4EA9)"&&(o[e[t]]=r[t]);for(const t in r)e[t]=="\u91CD\u5EA6\u51BB\u5BB3(\u4EA9)"&&(o[e[t]]=r[t]);return o}),ue=(a,e="\u7528\u6237\u5217\u8868",l="Sheet1")=>{const o=Nt(a,{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)"}),t=Ee.json_to_sheet(o),f=Ee.book_new();Ee.book_append_sheet(f,t,l),Zt(f,`${e}.xlsx`)},Dt=a=>{N.value=a};function De(){const a=Y(Te.value);console.log(q.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:q.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:q.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&&a.setOption(e),window.addEventListener("resize",function(){a.resize()})}function ze(){const a=Y(Oe.value);var e=me.value;let l={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:`${(be.value/1e4).toFixed(2)}\u4E07\u4EA9`,textStyle:{color:"#f2f2f2",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},legend:{orient:"vertical",top:"middle",right:"2%",textStyle:{color:"#f2f2f2",fontSize:14},icon:"roundRect",data:e},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a} <br/>{b} : {c} <br/>\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",data:e},{radius:["50%","54%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1},emphasis:{show:!1}},labelLine:{normal:{show:!1},emphasis:{show:!1}},animation:!1,tooltip:{show:!1},data:[{value:1,itemStyle:{color:"rgba(250,250,250,0.3)"}}]},{name:"\u5916\u8FB9\u6846",type:"pie",clockWise:!1,hoverAnimation:!1,center:["50%","50%"],radius:["85%","85%"],label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};ce(a,l)}function Qe(){const a=Y(Fe.value);console.log(z);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:qe,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 pe(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 pe(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 pe(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 pe(0,0,0,1,[{offset:0,color:"rgba(224, 13, 15, 1)"},{offset:1,color:"rgba(224, 13, 15, 1)"}])}}}]};a.on("click",function(l){console.log(l.name)}),e&&a.setOption(e,{notMerge:!0,grid:{bottom:20}}),ce(a,e)}function Je(){const a=Y(oe.value);let e=[],l=[],r=[],o=[],t=[];G.value.forEach(s=>{e.push(s.region),s.\u65E0\u51BB\u5BB3!==void 0?l.push(s.\u65E0\u51BB\u5BB3):l.push(0),s.\u4E2D\u5EA6\u51BB\u5BB3!==void 0?o.push(s.\u4E2D\u5EA6\u51BB\u5BB3):o.push(0),s.\u91CD\u5EA6\u51BB\u5BB3!==void 0?t.push(s.\u91CD\u5EA6\u51BB\u5BB3):t.push(0),s.\u8F7B\u5EA6\u51BB\u5BB3!==void 0?r.push(s.\u8F7B\u5EA6\u51BB\u5BB3):r.push(0)});let f=10/e.length*100,y={tooltip:{trigger:"axis",formatter:function(s){let x=s[0].axisValueLabel+"</br>",w=0;for(let p=0;p<s.length;p++)w+=s[p].value,s[p].seriesName!=="\u5408\u8BA1"&&(x+=s[p].seriesName+"\uFF1A"+s[p].value+"</br>");for(let p=0;p<s.length;p++)w+=Number(s[p].value),s[p].seriesName==="\u5408\u8BA1"&&(x+="\u5408\u8BA1\uFF1A"+w);return x},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(32, 242, 255, 1)"},data:l},{name:"\u8F7B\u5EA6\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 255, 0, 1)"},data:r},{name:"\u4E2D\u5EA6\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 168, 8, 1)"},data:o},{name:"\u91CD\u5EA6\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(224, 13, 15, 1)"},data:t}]};y.series;var m=y.tooltip;function T(s){let x=s[0].axisValueLabel+"</br>",w=0;for(let p=0;p<s.length;p++)if(s[p].seriesName!=="\u5408\u8BA1"){const E=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${s[p].color}"></span>`;w+=s[p].value,x+=E+s[p].seriesName+"\uFF1A"+s[p].value+"</br>"}for(let p=0;p<s.length;p++)s[p].seriesName==="\u5408\u8BA1"&&(x+="\u5408\u8BA1\uFF1A"+w);return x}m.formatter=T,ce(a,y)}const zt=a=>{I.value=a,xe.value=G.value.slice((I.value-1)*V.value,(I.value-1)*V.value+V.value)},Lt=a=>{const e=I.value,l=V.value;return a+1+(e-1)*l};function Wt(){K("370211"),delete se.value.XZQMC,deleteEntityByName("townLine"),deleteEntityByName("villageLine"),removeWms(["gbznt"],!0),removeWms(["aaa"]),h.value="370211",He(),te.value==="1"&&(console.log(te.value),addWms("huangdaoqu_town","huangdaoqu_town")),ve.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),te.value=!1,Ye()}function Le(){const a=Y(Me.value);console.log(z);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(l){let r=0;return M.brr.forEach(o=>{o.type==l.seriesName&&o.streetName==l.name&&(r=Number(o.area).toFixed(2))}),l.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:X.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:z.\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:z.\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:z.\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:z.\u91CD\u5EA6\u51BB\u5BB3}]};ce(a,e)}d({});function Et(){if(ee.value.lon&&ee.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(ee.value.lon),Number(ee.value.lat),0);var a=Cesium.SceneTransforms.wgs84ToWindowCoordinates(ve.scene,e);if(Cesium.defined(a)){const l=document.getElementById("popup");l&&(l.style.top=a.y-10+"px",l.style.left=a.x+10+"px")}}}function Ye(){const a=document.getElementById("popup");a&&(a.style.display="none"),ve.scene.postRender.removeEventListener(Et),deleteEntityByName("townLine"),h.value="370211",ie(h.value),de(h.value),$e(h.value),K("370211"),De(),ze()}return(a,e)=>{const l=L("el-table-column"),r=L("el-table"),o=L("el-tooltip"),t=L("el-option"),f=L("el-select"),y=L("el-checkbox"),m=L("el-checkbox-group"),T=L("el-collapse-item"),s=L("el-collapse"),x=L("el-button"),w=L("el-form-item"),p=L("el-input-number"),E=L("el-form"),B=L("el-pagination");return v(),D("div",ea,[n("div",ta,[aa,n("div",oa,[n("div",la,[n("div",ra,[na,n("p",{onClick:e[0]||(e[0]=i=>xt())},[O(" \u4E0B\u8F7D \xA0 "),sa])]),n("div",{ref_key:"areaDiv",ref:Te,class:"areaDiv"},null,512),n("div",{ref_key:"leftProgressBarDiv",ref:nt,class:"ProgressBar"},null,512)]),n("div",ia,[n("div",da,[ua,n("p",{onClick:e[1]||(e[1]=i=>St())},[O(" \u4E0B\u8F7D \xA0 "),ca])]),n("div",{ref_key:"typesofDiv",ref:Oe,class:"typesofDiv"},null,512),n("div",pa,[c(r,{data:u(Ie),style:{width:"100%"}},{default:g(()=>[c(l,{prop:"date",label:"\u7C7B\u578B"}),c(l,{prop:"name",label:"\u9762\u79EF(\u4EA9)"}),c(l,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),n("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=i=>ht())},[c(o,{class:"box-item","show-arrow":!1,disabled:u(j),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:g(()=>[u(j)?A("v-if",!0):(v(),D("img",fa))]),_:1},8,["disabled"]),c(o,{disabled:!u(j),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:g(()=>[u(j)?(v(),D("img",ha)):A("v-if",!0)]),_:1},8,["disabled"])])]),n("div",ga,[n("div",va,[n("div",ma,[ba,n("p",{onClick:e[3]||(e[3]=i=>kt())},[O(" \u4E0B\u8F7D \xA0 "),ya])]),n("div",{ref_key:"farmlandDiv",ref:Fe,class:"farmlandDiv"},null,512),A(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),n("div",_a,[n("div",wa,[xa,n("p",{onClick:e[4]||(e[4]=i=>Ct())},[O(" \u4E0B\u8F7D \xA0 "),Sa])]),c(f,{"popper-class":"select_city",modelValue:h.value,"onUpdate:modelValue":e[5]||(e[5]=i=>h.value=i),placeholder:"\u5168\u90E8"},{default:g(()=>[(v(!0),D(Q,null,J(u(M).arr,i=>(v(),F(t,{key:i.streetCode,label:i.streetName,value:i.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),n("div",{ref_key:"ASdivisionDiv",ref:Me,class:"ASdivision"},null,512)]),n("div",{class:"rightFoldDiv",onClick:e[6]||(e[6]=i=>gt())},[c(o,{disabled:!u(P),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:g(()=>[u(P)?(v(),D("img",ka)):A("v-if",!0)]),_:1},8,["disabled"]),c(o,{disabled:u(P),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:g(()=>[u(P)?A("v-if",!0):(v(),D("img",Ca))]),_:1},8,["disabled"])])]),n("div",Na,[u(Se).length>0?(v(),F(Yt,{key:0,dataSource:u(Se),onDataHandle:Dt},null,8,["dataSource"])):A("v-if",!0)]),Da,c(s,{class:"legend",accordion:""},{default:g(()=>[c(T,{name:"1"},{title:g(()=>[O("\u56FE\u4F8B")]),default:g(()=>[n("div",za,[c(m,{modelValue:ae.value,"onUpdate:modelValue":e[7]||(e[7]=i=>ae.value=i),onChange:a.change},{default:g(()=>[(v(!0),D(Q,null,J(u(Ce),(i,k,At)=>(v(),F(y,{key:At,style:Bt({backgroundColor:i.color,border:"1px solid value.color",width:"100%"}),"v-model":i.disabled,disabled:i.disabled,label:k},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),n("div",La,[Wa,n("div",Ea,[(v(!0),D(Q,null,J(u(ke),(i,k)=>(v(),D("div",{class:"perform",key:k},[n("div",Aa,[Ta,n("span",null,U(i.type),1),O(" : "),n("span",null,U(Number(i.area).toFixed(2))+"(\u4EA9)",1)])]))),128))]),Oa]),n("div",Fa,[(v(!0),D(Q,null,J(u(se).label,(i,k)=>(v(),D("div",{key:k},[n("div",null,U(i.crop)+"\uFF1A",1),n("div",null,U(i.Shape_Area)+" \u4EA9",1)]))),128)),u(se).XZQMC?(v(),D("div",Ma,[Ba,n("div",null,U(u(se).XZQMC),1)])):A("v-if",!0),n("div",{class:"cancel",onClick:Ye},"X")]),te.value?(v(),F(x,{key:0,class:"back_button",onClick:e[8]||(e[8]=i=>Wt())},{default:g(()=>[O("\u8FD4\u56DE")]),_:1})):A("v-if",!0)]),n("div",qa,[n("div",Ia,[c(E,{inline:!0,model:u(S),class:"demo-form-inline"},{default:g(()=>[c(w,{label:"\u65F6\u95F4:"},{default:g(()=>[c(f,{"popper-class":"selectCity",modelValue:u(S).time,"onUpdate:modelValue":e[9]||(e[9]=i=>u(S).time=i),placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[(v(!0),D(Q,null,J(u(_e),(i,k)=>(v(),F(t,{key:k,label:a.Zitem,value:i},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),c(w,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:g(()=>[c(f,{"popper-class":"selectCity",modelValue:u(S).statistical,"onUpdate:modelValue":e[10]||(e[10]=i=>u(S).statistical=i),placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[c(t,{label:"\u9547\u7EA7",value:"\u9547"}),c(t,{label:"\u6751\u7EA7",value:"\u6751"}),c(t,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})]),_:1},8,["modelValue"])]),_:1}),c(w,{label:"\u51B7\u51BB\u7B49\u7EA7"},{default:g(()=>[c(f,{modelValue:u(S).droughtRating,"onUpdate:modelValue":e[11]||(e[11]=i=>u(S).droughtRating=i),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[c(t,{label:"\u5168\u90E8",value:""}),c(t,{label:"\u65E0\u51BB\u5BB3",value:"\u65E0\u51BB\u5BB3"}),c(t,{label:"\u8F7B\u5EA6\u51BB\u5BB3",value:"\u8F7B\u5EA6\u51BB\u5BB3"}),c(t,{label:"\u4E2D\u5EA6\u51BB\u5BB3",value:"\u4E2D\u5EA6\u51BB\u5BB3"}),c(t,{label:"\u91CD\u5EA6\u51BB\u5BB3",value:"\u91CD\u5EA6\u51BB\u5BB3"})]),_:1},8,["modelValue"])]),_:1}),c(w,{label:"\u9762\u79EF(\u4EA9)>"},{default:g(()=>[c(p,{modelValue:ye.value,"onUpdate:modelValue":e[12]||(e[12]=i=>ye.value=i),min:1,onChange:vt},null,8,["modelValue"])]),_:1}),c(w,null,{default:g(()=>[c(x,{type:"primary",onClick:Ne},{default:g(()=>[O("\u67E5\u8BE2")]),_:1}),c(x,{plain:"",onClick:yt,disabled:!u($)},{default:g(()=>[O(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),u(Z)?A("v-if",!0):(v(),F(x,{key:0,type:"primary",text:"",onClick:bt},{default:g(()=>[Va,O(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),n("div",{class:"modeDiv",onClick:mt},[n("div",{class:Xe(u($)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),n("div",{class:Xe(u($)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),Ke(n("div",Ra,[n("div",ja,[u(Z)?A("v-if",!0):(v(),F(r,{key:0,data:u(C),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:g(()=>[c(l,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(v(!0),D(Q,null,J(u(we),(i,k)=>(v(),F(l,{key:k,prop:i.value,label:k==0?i.lable:i.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),u(Z)?(v(),F(l,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:g(i=>[n("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:k=>a.download(i.row)}," \u4E0B\u8F7D ",8,Pa)]),_:1})):A("v-if",!0)]),_:1},8,["data"]))]),c(r,{data:u(xe),"header-cell-style":{"text-align":"center"},height:"70%","highlight-current-row":"","header-row-class-name":"tabth"},{default:g(()=>[c(l,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Lt}),(v(!0),D(Q,null,J(u(we),(i,k)=>(v(),F(l,{key:k,prop:i.value,label:k==0?i.lable:i.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),u(Z)?(v(),F(l,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:g(i=>[n("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:k=>a.download(i.row)}," \u4E0B\u8F7D ",8,Ga)]),_:1})):A("v-if",!0)]),_:1},8,["data"]),n("div",$a,[O(" \u5171"+U(G.value.length)+"\u6761 ",1),c(B,{background:"",layout:"prev, pager, next",total:G.value.length,"current-page":u(I),"page-size":u(V),onCurrentChange:zt},null,8,["total","current-page","page-size"])])],512),[[et,u($)]]),Ke(n("div",Ha,[n("div",{ref_key:"chartModeDiv",ref:oe,class:"chartModeDiv"},null,512)],512),[[et,!u($)]])])])}}},io=Tt(Qa,[["__scopeId","data-v-158b2a96"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/freeze/Freeze.vue"]]);export{io as default};
|