2 lines
38 KiB
JavaScript
2 lines
38 KiB
JavaScript
import{H as P,_ as Lt,a as Wt,r as i,A as Et,V as zt,W as Tt,U as $e,d as L,o as h,c as y,l as s,m as A,e as c,w as g,f as p,g as R,L as Z,N as J,k as j,F as Ot,x as B,G as He,C as Ge,D as Ue,y as qt,p as At,q as Bt}from"./index.ae0c781d.js";import fe from"./downloads.4cdbbcc5.js";import{_ as pe}from"./close1.45635d81.js";import{_ as It,a as Vt,b as Ft,c as Mt,d as Rt,e as jt}from"./linesGL.97ae14ae.js";import{_ as Pt}from"./dow.f37c8d82.js";import{i as U,L as X}from"./index.c9f5bd8b.js";import{T as $t}from"./TimeLine.64a8bde3.js";import{u as ce}from"./useEcharts.dbdb546a.js";import{d as Ze}from"./download.8084913c.js";import{u as We,w as Ht}from"./xlsx.86b9426e.js";function Je(x){return P({url:"equipment/areaStatisticsDrought",method:"get",params:x})}function Qe(x){return P({url:"equipment/proportionOfArea",method:"get",params:x})}function Ye(x){return P({url:"equipment/statisticsOfArea",method:"get",params:x})}function Xe(x){return P({url:"equipment/township",method:"get",params:x})}function Ke(x){return P({url:"equipment/administrative",method:"get",params:x})}function Gt(){return P({url:"equipment/listDroughtsYear",method:"get"})}function Ut(x){return P({url:"equipment/listDroughts",method:"get",params:x})}function Zt(x){return P({url:"equipment/administrativeChun",method:"get",params:x})}const T=x=>(At("data-v-252bfa44"),x=x(),Bt(),x),Jt={class:"fatherDiv"},Qt={class:"centerBox"},Yt=T(()=>s("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Xt={class:"leftWra"},Kt={class:"leftTop"},ea={class:"title"},ta=T(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),aa=T(()=>s("img",{src:fe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),oa={class:"leftbottom"},la={class:"title"},ra=T(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),na=T(()=>s("img",{src:fe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),sa={class:"tableDiv"},ia={key:0,src:pe,alt:""},da={key:0,class:"imgrotate",src:pe,alt:""},ua={class:"rightWra"},ca={class:"rightTop"},fa={class:"title"},pa=T(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),ha=T(()=>s("img",{src:fe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ga={class:"rightbottom"},va={class:"title"},ba=T(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),ma=T(()=>s("img",{src:fe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ya={key:0,src:pe,alt:""},_a={key:0,class:"imgrotate",src:pe,alt:""},wa={class:"bottom_center"},xa=qt('<div class="tool" data-v-252bfa44><span data-v-252bfa44><img src="'+It+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+Vt+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+Ft+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+Mt+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+Rt+'" alt="" data-v-252bfa44></span><span data-v-252bfa44><img src="'+jt+'" alt="" data-v-252bfa44></span></div>',1),Sa={class:"mt-4"},ka={id:"popup",class:"ol-popup"},Na=T(()=>s("div",{class:"pophead",style:{width:"100%",height:"20px"}},[s("div",{id:"popup-title",style:{font:"bold 15px sans-serif",align:"left",position:"absolute",left:"17px",color:"#fff"}}),s("a",{href:"#",id:"popup-closer",class:"ol-popup-closer",style:{color:"#8e908c"}})],-1)),Da={id:"popup-content",style:{padding:"10px"}},Ca=T(()=>s("div",{id:"popup-pagination"},null,-1)),La={class:"tabulation"},Wa={class:"searchDiv"},Ea=T(()=>s("img",{src:Pt,alt:""},null,-1)),za={class:"tableBox"},Ta={class:"tableBorder"},Oa={key:0,style:{color:"rgba(255, 255, 0, 1)","font-weight":"600"}},qa={key:1,style:{color:"rgba(255, 168, 8, 1)","font-weight":"700"}},Aa={key:2,style:{color:"red","font-weight":"800"}},Ba={key:3},Ia={key:0,style:{color:"rgba(255, 255, 0, 1)","font-weight":"600"}},Va={key:1,style:{color:"rgba(255, 168, 8, 1)","font-weight":"700"}},Fa={key:2,style:{color:"red","font-weight":"800"}},Ma={key:3},Ra={class:"example-pagination-block"},ja={class:"chartMode"},Pa={__name:"Drought",setup(x){const Ee=Wt();let he=i(null);const ze=i(null),Te=i(null),Oe=i(null);i(null);const qe=i(null),b=i("370211"),et=i(null);let O=Et({arr:[],brr:[],crr:[]});const K=i({});i([]);const Ae=i(!1);let $=i(!1),H=i(!1);const ee=i(["false"]);let ge=i([]),ve=i([]),be=i([]),me=i(0),Be=i([]),G=i(!0),ye=i([]);const _e=i(1);i(null),i(null);let we=i([]);i("");let S=i([{\u6E7F\u6DA6:0,\u9002\u5B9C:0,\u8F7B\u5EA6\u5E72\u65F1:0,\u4E2D\u5EA6\u5E72\u65F1:0,\u91CD\u5EA6\u5E72\u65F1:0}]),xe=i([]),I=i(1),V=i(12);const te=i(null);let Se=i([]),ae=i(!0),k=i({time:"",statistical:"\u9547",droughtRating:"",area:_e.value});const F=i([]);let Ie=["\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"],M={\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[],\u9002\u5B9C:[],\u6E7F\u6DA6:[]},ke={\u6E7F\u6DA6:{color:"rgba(0, 132, 255, 1)",disabled:!1},\u9002\u5B9C:{color:"rgba(32, 242, 255, 1)",disabled:!1},\u8F7B\u5EA6\u5E72\u65F1:{color:"rgba(255, 255, 0, 1)",disabled:!1},\u4E2D\u5EA6\u5E72\u65F1:{color:"rgba(255, 168, 8, 1)",disabled:!1},\u91CD\u5EA6\u5E72\u65F1:{color:"rgba(224, 13, 15, 1)",disabled:!1}};var Q={title:[]};let z={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},Ne=i([]),oe={\u6E7F\u6DA6:{setOf:"2022-12-20-ganhan",name:"T2022_12_20_shirun"},\u9002\u5B9C:{setOf:"2022-12-20-ganhan",name:"T2022_12_20_shiyi"},\u8F7B\u5EA6\u5E72\u65F1:{setOf:"2022-12-20-ganhan",name:"T2022_12_20_qingduganhan"},\u4E2D\u5EA6\u5E72\u65F1:{setOf:"2022-12-20-ganhan",name:"T2022_12_20_medium_ganhan"},\u91CD\u5EA6\u5E72\u65F1:{setOf:"2022-12-20-ganhan",name:"T2022_12_20_serious_ganhan"}};zt(()=>{tt()});function tt(){se("370211"),ie("370211"),ht(),de("370211"),pt(),at(),ue(),je(),Y(),lt();for(const o in ke)ke[o].disabled!==!0&&(console.log(o),Be.value.push(o));ee.value=Be.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(Ee.currentRoute.value.path,!0)}Tt(()=>{localStorage.getItem(Ee.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 le=i(null),v=i(null);i(null),i(null);let Ve=i(null),re=i(null);function at(){v=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"})})]}),v.on("moveend",function(t){var e=v.getView().getZoom();e>=13?le.setVisible(!0):le.setVisible(!1)}),v.on("singleclick",function(t){var e=t.coordinate,o=e[0],r=e[1],l=v.getView(),a=v.getView().getZoom();console.log(o,r),l.animate({center:[o,r],duration:1e3}),a>=13?Fe(t,"huangdaoqu_village@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_village@huangdaoqu_bianjie","\u6751"):Fe(t,"huangdaoqu_town@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_town@huangdaoqu_bianjie","\u9547")})}function Fe(t,e,o,r){var l=new ol.geom.Point(t.coordinate),a=new ol.supermap.QueryByGeometryParameters({queryParams:{name:e},geometry:l});let d=[],m=document.querySelector("#popup-title"),W=i(null),_=i(null);new ol.supermap.QueryService(o).queryByGeometry(a,function(w){let u="";if(_=v.getLayers().getArray().find(N=>N.get("id")==="zhezhao"),v.removeLayer(_),r=="\u9547"&&w.result.recordsets[0].features.features[0].properties.XJQYDM){let N=w.result.recordsets[0].features.features[0].properties.XJQYDM;b.value=N,de();let f=[];O.brr.forEach(C=>{console.log(C),C.streetCode==N&&(u=C.streetName,f.push(C)),we.value=f}),D()}else if(r=="\u6751"&&w.result.recordsets[0].features.features[0].properties.CJQYDM){let N=w.result.recordsets[0].features.features[0].properties.CJQYDM,f=[];Zt({divisions:N}).then(C=>{C.data.forEach(n=>{console.log(n),f.push(n)}),u=C.data[0].streetName,we.value=f,D()})}function D(){if(w.result.currentCount>0){console.log(w.result.recordsets[0].features),w.result.recordsets[0].features&&(re.setPosition(l.flatCoordinates),console.log(u),m.innerHTML=u),W=v.getLayers().getArray().find(E=>E.get("id")==="dianjigaoliang"),v.removeLayer(W);var N=new ol.format.GeoJSON().readFeatures(w.result.recordsets[0].features);d=w.result.recordsets[0].features.features[0].geometry.coordinates,ot(w.result.recordsets[0].features.features[0].geometry.coordinates);var f=new ol.source.Vector;f.addFeatures(N);const n=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(n),v.addLayer(C)}}}),Ve.addEventListener("click",function(){_=v.getLayers().getArray().find(w=>w.get("id")==="zhezhao"),v.removeLayer(_),Me(d),b.value="370211",W=v.getLayers().getArray().find(w=>w.get("id")==="dianjigaoliang"),v.removeLayer(W),re.setPosition(void 0)})}function ot(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=Me(t),l=new ol.Feature({geometry:r});o.getSource().addFeature(l),v.addLayer(o)}function Me(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 lt=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Ve=document.getElementById("popup-closer"),re=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),v.addOverlay(re)},rt=()=>{le=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}),v.addLayer(le)},nt=()=>{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});v.addLayer(t)},st=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"});v.addLayer(e)};let it=i({label:[]});const dt=(t,e)=>t.map(r=>{const l={};for(const a in r)e[a]&&(l[e[a]]=r[a]);return l}),ne=(t,e="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const l=dt(t,{region:"\u533A\u57DF\u540D\u79F0",\u6E7F\u6DA6:"\u6E7F\u6DA6 (\u4EA9)",\u9002\u5B9C:"\u9002\u5B9C(\u4EA9)",\u8F7B\u5EA6\u5E72\u65F1:"\u8F7B\u5EA6\u5E72\u65F1(\u4EA9)",\u4E2D\u5EA6\u5E72\u65F1:"\u4E2D\u5EA6\u5E72\u65F1(\u4EA9)",\u91CD\u5EA6\u5E72\u65F1:"\u91CD\u5EA6\u5E72\u65F1(\u4EA9)",area:"\u9762\u79EF(\u4EA9)"}),a=We.json_to_sheet(l),d=We.book_new();We.book_append_sheet(d,a,o),Ht(d,`${e}.xlsx`)};function ut(){if($.value=!$.value,$.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 ct(){if(H.value=!H.value,H.value){let t=document.querySelector(".rightWra");t.style.transform="translate(0,0)"}else{let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"}}$e(()=>b.value,()=>{Ce()});let Re=0;$e(()=>ee.value,(t,e)=>{t.length>e.length?t.filter(r=>{if(e.findIndex(a=>a===r)<0)return r}).forEach(r=>{oe[r]&&st(oe[r])}):t.length<e.length&&e.filter(r=>{if(t.findIndex(a=>a===r)<0)return r}).forEach(r=>{oe[r]&&v.getLayers().getArray().forEach((l,a)=>{l.A.name&&l.A.name==oe[r].name&&v.getLayers().removeAt(a)})}),Re++,Re==1&&(rt(),nt())});const De=()=>{let t=[],e=[];I.value=1,Ut({time:k.value.time,statistical:k.value.statistical,droughtRating:k.value.droughtRating,area:k.value.area}).then(o=>{Se.value=[{lable:"",value:"region"},{lable:"\u9002\u5B9C",value:"\u9002\u5B9C"},{lable:"\u6E7F\u6DA6",value:"\u6E7F\u6DA6"},{lable:"\u8F7B\u5EA6\u5E72\u65F1",value:"\u8F7B\u5EA6\u5E72\u65F1"},{lable:"\u4E2D\u5EA6\u5E72\u65F1",value:"\u4E2D\u5EA6\u5E72\u65F1"},{lable:"\u91CD\u5EA6\u5E72\u65F1",value:"\u91CD\u5EA6\u5E72\u65F1"}],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(d=>{a.regio===d.region&&(a.region=d.region,a[d.level]=Number(d.area).toFixed(2))})}),ae.value=!1,F.value=e.sort((a,d)=>a.region.length-d.region.length),xe.value=e.slice((I.value-1)*V.value,(I.value-1)*V.value+V.value),S.value[0].\u9002\u5B9C=0,S.value[0].\u6E7F\u6DA6=0,S.value[0].\u8F7B\u5EA6\u5E72\u65F1=0,S.value[0].\u4E2D\u5EA6\u5E72\u65F1=0,S.value[0].\u91CD\u5EA6\u5E72\u65F1=0,S.value[0].region="\u5408\u8BA1",e.forEach(a=>{a.\u9002\u5B9C&&(S.value[0].\u9002\u5B9C+=Number(a.\u9002\u5B9C)!==NaN?Number(a.\u9002\u5B9C):0),a.\u6E7F\u6DA6&&(S.value[0].\u6E7F\u6DA6+=Number(a.\u6E7F\u6DA6)!==NaN?Number(a.\u6E7F\u6DA6):0),a.\u8F7B\u5EA6\u5E72\u65F1&&(S.value[0].\u8F7B\u5EA6\u5E72\u65F1+=Number(a.\u8F7B\u5EA6\u5E72\u65F1)!==NaN?Number(a.\u8F7B\u5EA6\u5E72\u65F1):0),a.\u4E2D\u5EA6\u5E72\u65F1&&(S.value[0].\u4E2D\u5EA6\u5E72\u65F1+=Number(a.\u4E2D\u5EA6\u5E72\u65F1)!==NaN?Number(a.\u4E2D\u5EA6\u5E72\u65F1):0),a.\u91CD\u5EA6\u5E72\u65F1&&(S.value[0].\u91CD\u5EA6\u5E72\u65F1+=Number(a.\u91CD\u5EA6\u5E72\u65F1)!==NaN?Number(a.\u91CD\u5EA6\u5E72\u65F1):0)});for(const a in S.value[0])console.log(S.value[0][a]),S.value[0][a]!=="\u5408\u8BA1"&&(S.value[0][a]=S.value[0][a].toFixed(2));const r=te.value;r.style.width=window.innerWidth-100+"px",r.style.height=window.innerHeight-100+"px";const l=U(r);window.addEventListener("resize",()=>{r.style.width=window.innerWidth-200+"px",r.style.height=window.innerHeight-200+"px",l.resize()}),Pe()})},ft=()=>{k.value.time=ye.value[0],k.value.statistical="\u9547",k.value.droughtRating="",k.value.area=1,ae.value=!0,De()},pt=()=>{Gt().then(t=>{ye.value=t.data,k.value.time=t.data[0],De()})},se=t=>{ge=i([]),ve=i([]),Je({divisions:t}).then(e=>{e.data.forEach(o=>{ge.value.push(o.level),ve.value.push(o.area)}),Le()})},ie=t=>{be=i([]),Ne=i([]),me=i(0),Qe({divisions:t}).then(e=>{e.data.forEach(o=>{me.value+=Number(o.area),be.value.push({name:o.level,value:Number(o.area).toFixed(2)}),Ne.value.push({date:o.level,name:`${Number(o.area).toFixed(2)}`,address:`${(o.percentage*100).toFixed(2)}%`})}),ue()})};i([{}]);const ht=()=>{Ye().then(t=>{Ie.forEach((e,o)=>{let r=t.data.map(l=>{if(e===l.region)return l});Object.keys(M).forEach(l=>{let a=0;r.findIndex(m=>(m&&m.level===l&&(a=m.area),m&&m.level===l))>-1?M[l].push(a):M[l].push(0)})}),je()})},de=t=>{Xe({divisions:t}).then(e=>{O.brr=e.data,O.arr=e.data.sort((d,m)=>d.streetName.length-m.streetName.length),O.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let o=[],r=[];O.arr.forEach(d=>{o.indexOf(d.streetName)==-1&&(o.push(d.streetName),r.push({streetName:d.streetName,streetCode:d.streetCode,area:d.area,type:d.type}))}),O.arr=r;let l=[...e.data],a=[];l.splice(0,1),l.forEach(d=>{a.indexOf(d.streetName)==-1&&a.push(d.streetName)}),Q.title=[...Object.values(a)],Q.title.forEach((d,m)=>{let W=e.data.map(_=>{if(d===_.streetName)return _});Object.keys(z).forEach(_=>{W.findIndex(u=>u&&u.type===_)>-1?z[_].push(1):z[_].push(null)})}),Y()})},gt=t=>{z={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},Ke({divisions:t}).then(e=>{O.brr=e.data;let o=[...e.data],r=[];o.forEach(l=>{r.indexOf(l.streetName)==-1&&r.push(l.streetName)}),Q.title=[...Object.values(r)],Q.title.forEach((l,a)=>{let d=e.data.map(m=>{if(l===m.streetName)return m});Object.keys(z).forEach(m=>{d.findIndex(_=>_&&_.type===m&&_.area>0)>-1?z[m].push(1):z[m].push(null)})}),Y()})},Ce=()=>{if(b.value=="370211"){de(),Y(),se("370211"),ie("370211"),Le(),ue();return}else gt(b.value),se(b.value),ie(b.value)},vt=t=>{Je({divisions:b.value,whetherToDownload:!0}).then(e=>{console.log(e),Ze(e.data[e.data.length-1].downloadPath)})},bt=t=>{Qe({divisions:b.value,whetherToDownload:!0}).then(e=>{Ze(e.data[e.data.length-1].downloadPath)})},mt=t=>{Ye({divisions:b.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))})}),ne(r,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},yt=t=>{if(b.value==="370211"){let e="";O.arr.forEach(o=>{o.subregion==b.value&&(e=o.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":o.subregionName)}),Xe({divisions:b.value}).then(o=>{let r=[],l=[];o.data.forEach(a=>{r.indexOf(a.streetName)==-1&&r.push(a.streetName)}),r.forEach(a=>{l.push(Object.create(null,{regio:{value:a}}))}),l.forEach(a=>{o.data.map(d=>{a.regio===d.streetName&&(a.region=d.streetName,a[d.type]=Number(d.area).toFixed(2))})}),l=l.sort((a,d)=>a.region.length-d.region.length),ne(l,`${e}\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF-\u884C\u653F\u533A\u5212`,"Sheet1")})}else{let e="";O.arr.forEach(o=>{o.subregion==b.value&&(e=o.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":o.subregionName)}),Ke({divisions:b.value,whetherToDownload:!1}).then(o=>{let r=[],l=[];o.data.forEach(a=>{r.indexOf(a.streetName)==-1&&r.push(a.streetName)}),r.forEach(a=>{l.push(Object.create(null,{regio:{value:a}}))}),l.forEach(a=>{o.data.map(d=>{a.regio===d.streetName&&(a.region=d.streetName,a[d.type]=Number(d.area).toFixed(2))})}),ne(l,`${e}\u4F5C\u7269\u5E72\u65F1\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})}},_t=()=>{console.log(F);let t=JSON.parse(JSON.stringify(S.value[0]));t.region="\u5408\u8BA1",F.value.push(t),ne(F.value,"\u5E72\u65F1\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")};function Le(){const t=U(ze.value);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:ge.value,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:ve.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 ue(){const t=U(Te.value);var e=be.value;let o={color:["rgba(0, 132, 255, 1)","rgba(32, 242, 255, 1)","rgba(255, 255, 0, 1)","rgba(255, 168, 8, 1)","rgba(224, 13, 15, 1)"],title:{text:"\u603B\u9762\u79EF",subtext:`${(me.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}\u4EA9 <br/>\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u5E72\u65F1\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"}}}]}]};ce(t,o)}function je(){const t=U(Oe.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:Ie,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:"\u6E7F\u6DA6",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:M.\u6E7F\u6DA6,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(0, 132, 255, 1)",color:new X(0,0,0,1,[{offset:0,color:"rgba(0, 132, 255, 1)"},{offset:1,color:"rgba(0, 132, 255, 1)"}])}}},{name:"\u9002\u5B9C",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:M.\u9002\u5B9C,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(32, 242, 255, 1)",color:new X(0,0,0,1,[{offset:0,color:"rgba(32, 242, 255, 1)"},{offset:1,color:"rgba(32, 242, 255, 1)"}])}}},{name:"\u8F7B\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:M.\u8F7B\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 165, 93, 1)",color:new X(0,0,0,1,[{offset:0,color:"rgba(255, 255, 0, 1)"},{offset:1,color:"rgba(255, 255, 0, 1)"}])}}},{name:"\u4E2D\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:M.\u4E2D\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(205, 92, 92, 0.8)",color:new X(0,0,0,1,[{offset:0,color:"rgba(255, 168, 8, 1)"},{offset:1,color:"rgba(255, 168, 8, 1)"}])}}},{name:"\u91CD\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:M.\u91CD\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(224, 13, 15, 1)",color:new X(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}}),ce(t,e)}const wt=t=>{I.value=t,xe.value=F.value.slice((I.value-1)*V.value,(I.value-1)*V.value+V.value)},xt=t=>{const e=I.value,o=V.value;return t+1+(e-1)*o};function St(){deleteEntityByName("townLine"),delete it.value.XZQMC,removeWms(["gbznt"],!0),removeWms(["aaa"]),b.value="370211",Ce(),he.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Ae.value=!1,Nt()}function Y(){const t=U(qe.value);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(o){let r=0;return O.brr.forEach(l=>{l.type==o.seriesName&&l.streetName==o.name&&(console.log(l.area),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:Q.title,inverse:!0}],series:[{type:"bar",name:"\u6E7F\u6DA6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u6E7F\u6DA6",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(0, 132, 255, 1)"},{offset:1,color:"rgba(0, 132, 255, 1)"}]}},data:z.\u6E7F\u6DA6},{type:"bar",name:"\u9002\u5B9C",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u9002\u5B9C",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{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.\u9002\u5B9C},{type:"bar",name:"\u8F7B\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F7B\u5EA6\u5E72\u65F1",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, 255, 0, 1)"},{offset:1,color:"rgba(255, 255, 0, 1)"}]}},data:z.\u8F7B\u5EA6\u5E72\u65F1},{type:"bar",name:"\u4E2D\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u4E2D\u5EA6\u5E72\u65F1",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\u5E72\u65F1},{type:"bar",name:"\u91CD\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u91CD\u5EA6\u5E72\u65F1",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\u5E72\u65F1}]};ce(t,e)}function kt(){if(K.value.lon&&K.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(K.value.lon),Number(K.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(he.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 Nt(){const t=document.getElementById("popup");t&&(t.style.display="none"),he.scene.postRender.removeEventListener(kt),b.value="370211",deleteEntityByName("townLine"),de(),ie(b.value),se(b.value),Y(),Le(),ue()}const Dt=()=>{G.value=!G.value;const t=te.value;t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px";const e=U(t);window.addEventListener("resize",()=>{t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px",e.resize()}),Pe()},Ct=t=>{k.value.area=t};function Pe(){const t=U(te.value);let e=[],o=[],r=[],l=[],a=[],d=[];F.value.forEach(u=>{console.log(u.\u91CD\u5EA6\u5E72\u65F1),e.push(u.region),u.\u6E7F\u6DA6!==void 0?o.push(u.\u6E7F\u6DA6):o.push(0),u.\u9002\u5B9C!==void 0?r.push(u.\u9002\u5B9C):r.push(0),u.\u8F7B\u5EA6\u5E72\u65F1!==void 0?l.push(u.\u8F7B\u5EA6\u5E72\u65F1):l.push(0),u.\u4E2D\u5EA6\u5E72\u65F1!==void 0?a.push(u.\u4E2D\u5EA6\u5E72\u65F1):a.push(0),u.\u91CD\u5EA6\u5E72\u65F1!==void 0?d.push(u.\u91CD\u5EA6\u5E72\u65F1):d.push(0)});let m=10/e.length*100,W={tooltip:{trigger:"axis",formatter:function(u){let D=u[0].axisValueLabel+"</br>",N=0;for(let f=0;f<u.length;f++)N+=u[f].value,u[f].seriesName!=="\u5408\u8BA1"&&(D+=u[f].seriesName+"\uFF1A"+u[f].value+"</br>");for(let f=0;f<u.length;f++)N+=Number(u[f].value),u[f].seriesName==="\u5408\u8BA1"&&(D+="\u5408\u8BA1\uFF1A"+N);return D},axisPointer:{type:"shadow"}},legend:{top:5,left:10,icon:"rect",itemWidth:4,itemHeight:12,data:[]},dataZoom:[{type:"slider",width:"40%",top:"90%",zoomLock:!0,start:0,end:m,showDataShadow:!1,showDetail:!1,fillerColor:"rgba(64, 158, 255)",borderRadius:"50%",moveHandleSize:0,moveHandleStyle:{},left:"30%",height:12,handleSize:"80%",handleIcon:"path://M512,512m-448,0a448,448,0,1,0,896,0a448,448,0,1,0,-896,0Z",handleStyle:{borderWidth:0,color:"rgba(64, 158, 255)"}},{type:"inside"}],grid:{left:"3%",right:"10%",bottom:"15%",top:"5%",containLabel:!0},xAxis:{type:"category",name:"\u533A\u57DF",axisLabel:{fontSize:12,interval:0,rotate:0},axisLine:{lineStyle:{}},data:e},yAxis:[{type:"value",name:"\u9762\u79EF\uFF08\u4EA9\uFF09",axisLabel:{},axisLine:{lineStyle:{}},splitLine:{lineStyle:{},show:!0}}],series:[{name:"\u6E7F\u6DA6",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(0, 132, 255, 1)"},data:o},{name:"\u9002\u5B9C",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(32, 242, 255, 1)"},data:r},{name:"\u8F7B\u5EA6\u5E72\u65F1",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 255, 0, 1)"},data:l},{name:"\u4E2D\u5EA6\u5E72\u65F1",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 168, 8, 1)"},data:a},{name:"\u91CD\u5EA6\u5E72\u65F1",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(224, 13, 15, 1)"},data:d}]};W.series;var _=W.tooltip;function w(u){let D=u[0].axisValueLabel+"</br>",N=0;for(let f=0;f<u.length;f++)if(u[f].seriesName!=="\u5408\u8BA1"){const C=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${u[f].color}"></span>`;N+=u[f].value,D+=C+u[f].seriesName+"\uFF1A"+u[f].value+"</br>"}for(let f=0;f<u.length;f++)u[f].seriesName==="\u5408\u8BA1"&&(D+="\u5408\u8BA1\uFF1A"+N);return D}_.formatter=w,ce(t,W)}return(t,e)=>{const o=L("el-table-column"),r=L("el-table"),l=L("el-tooltip"),a=L("el-option"),d=L("el-select"),m=L("el-checkbox"),W=L("el-checkbox-group"),_=L("el-collapse-item"),w=L("el-collapse"),u=L("el-button"),D=L("el-form-item"),N=L("el-input-number"),f=L("el-form"),C=L("el-pagination");return h(),y("div",Jt,[s("div",Qt,[Yt,s("div",Xt,[s("div",Kt,[s("div",ea,[ta,s("p",{onClick:e[0]||(e[0]=n=>vt())},[A(" \u4E0B\u8F7D \xA0 "),aa])]),s("div",{ref_key:"areaDiv",ref:ze,class:"areaDiv"},null,512),s("div",{ref_key:"leftProgressBarDiv",ref:et,class:"ProgressBar"},null,512)]),s("div",oa,[s("div",la,[ra,s("p",{onClick:e[1]||(e[1]=n=>bt())},[A(" \u4E0B\u8F7D \xA0 "),na])]),s("div",{ref_key:"typesofDiv",ref:Te,class:"typesofDiv"},null,512),s("div",sa,[c(r,{data:p(Ne),style:{width:"100%"}},{default:g(()=>[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"])])]),s("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=n=>ut())},[c(l,{class:"box-item","show-arrow":!1,disabled:p($),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:g(()=>[p($)?R("v-if",!0):(h(),y("img",ia))]),_:1},8,["disabled"]),c(l,{disabled:!p($),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:g(()=>[p($)?(h(),y("img",da)):R("v-if",!0)]),_:1},8,["disabled"])])]),s("div",ua,[s("div",ca,[s("div",fa,[pa,s("p",{onClick:e[3]||(e[3]=n=>mt())},[A(" \u4E0B\u8F7D \xA0 "),ha])]),s("div",{ref_key:"farmlandDiv",ref:Oe,class:"farmlandDiv"},null,512),R(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),s("div",ga,[s("div",va,[ba,s("p",{onClick:e[4]||(e[4]=n=>yt())},[A(" \u4E0B\u8F7D \xA0 "),ma])]),c(d,{"popper-class":"select_city",onChange:e[5]||(e[5]=n=>Ce(t.item)),modelValue:b.value,"onUpdate:modelValue":e[6]||(e[6]=n=>b.value=n),placeholder:"\u5168\u90E8"},{default:g(()=>[(h(!0),y(Z,null,J(p(O).arr,n=>(h(),j(a,{key:n.streetCode,label:n.streetName,value:n.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),s("div",{ref_key:"ASdivisionDiv",ref:qe,class:"ASdivision"},null,512)]),s("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=n=>ct())},[c(l,{disabled:!p(H),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:g(()=>[p(H)?(h(),y("img",ya)):R("v-if",!0)]),_:1},8,["disabled"]),c(l,{disabled:p(H),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:g(()=>[p(H)?R("v-if",!0):(h(),y("img",_a))]),_:1},8,["disabled"])])]),s("div",wa,[c($t)]),xa,c(w,{class:"legend",accordion:""},{default:g(()=>[c(_,{name:"1"},{title:g(()=>[A("\u56FE\u4F8B")]),default:g(()=>[s("div",Sa,[c(W,{modelValue:ee.value,"onUpdate:modelValue":e[8]||(e[8]=n=>ee.value=n),onChange:t.change},{default:g(()=>[(h(!0),y(Z,null,J(p(ke),(n,E,q)=>(h(),j(m,{key:q,style:Ot({backgroundColor:n.color,border:"1px solid value.color",width:"100%"}),"v-model":n.disabled,disabled:n.disabled,label:E},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),s("div",ka,[Na,s("div",Da,[(h(!0),y(Z,null,J(p(we),(n,E)=>(h(),y("div",{key:E},[s("p",null,[s("span",null,B(n.type),1),A(" : "),s("span",null,B(Number(n.area).toFixed(2))+"(\u4EA9)",1)])]))),128))]),Ca]),Ae.value?(h(),j(u,{key:0,class:"back_button",onClick:e[9]||(e[9]=n=>St())},{default:g(()=>[A("\u8FD4\u56DE")]),_:1})):R("v-if",!0)]),s("div",La,[s("div",Wa,[c(f,{inline:!0,model:p(k),class:"demo-form-inline"},{default:g(()=>[c(D,{label:"\u65F6\u95F4:"},{default:g(()=>[c(d,{"popper-class":"selectCity",modelValue:p(k).time,"onUpdate:modelValue":e[10]||(e[10]=n=>p(k).time=n),placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[(h(!0),y(Z,null,J(p(ye),(n,E)=>(h(),j(a,{key:E,label:t.Zitem,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),c(D,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:g(()=>[c(d,{"popper-class":"selectCity",modelValue:p(k).statistical,"onUpdate:modelValue":e[11]||(e[11]=n=>p(k).statistical=n),placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[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(D,{label:"\u5E72\u65F1\u7B49\u7EA7"},{default:g(()=>[c(d,{modelValue:p(k).droughtRating,"onUpdate:modelValue":e[12]||(e[12]=n=>p(k).droughtRating=n),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[c(a,{label:"\u5168\u90E8",value:""}),c(a,{label:"\u6E7F\u6DA6",value:"\u6E7F\u6DA6"}),c(a,{label:"\u9002\u5B9C",value:"\u9002\u5B9C"}),c(a,{label:"\u8F7B\u5EA6\u5E72\u65F1",value:"\u8F7B\u5EA6\u5E72\u65F1"}),c(a,{label:"\u4E2D\u5EA6\u5E72\u65F1",value:"\u4E2D\u5EA6\u5E72\u65F1"}),c(a,{label:"\u91CD\u5EA6\u5E72\u65F1",value:"\u91CD\u5EA6\u5E72\u65F1"})]),_:1},8,["modelValue"])]),_:1}),c(D,{label:"\u9762\u79EF(\u4EA9)>"},{default:g(()=>[c(N,{modelValue:_e.value,"onUpdate:modelValue":e[13]||(e[13]=n=>_e.value=n),min:1,onChange:Ct},null,8,["modelValue"])]),_:1}),c(D,null,{default:g(()=>[c(u,{type:"primary",onClick:De},{default:g(()=>[A("\u67E5\u8BE2")]),_:1}),c(u,{plain:"",onClick:ft,disabled:!p(G)},{default:g(()=>[A(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),p(ae)?R("v-if",!0):(h(),j(u,{key:0,type:"primary",text:"",onClick:_t},{default:g(()=>[Ea,A(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),s("div",{class:"modeDiv",onClick:Dt},[s("div",{class:He(p(G)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),s("div",{class:He(p(G)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),Ge(s("div",za,[s("div",Ta,[p(ae)?R("v-if",!0):(h(),j(r,{key:0,data:p(S),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:g(()=>[c(o,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(h(!0),y(Z,null,J(p(Se),(n,E)=>(h(),j(o,{key:E,prop:n.value,label:E==0?n.lable:n.lable+"(\u4EA9)",align:"center"},{default:g(q=>[n.value=="\u8F7B\u5EA6\u5E72\u65F1"?(h(),y("span",Oa,B(q.row[n.value]),1)):n.value=="\u4E2D\u5EA6\u5E72\u65F1"?(h(),y("span",qa,B(q.row[n.value]),1)):n.value=="\u91CD\u5EA6\u5E72\u65F1"?(h(),y("span",Aa,B(q.row[n.value]),1)):(h(),y("span",Ba,B(q.row[n.value]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]))]),c(r,{data:p(xe),"header-cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:g(()=>[c(o,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:xt}),(h(!0),y(Z,null,J(p(Se),(n,E)=>(h(),j(o,{key:E,prop:n.value,label:E==0?n.lable:n.lable+"(\u4EA9)",align:"center"},{default:g(q=>[n.value=="\u8F7B\u5EA6\u5E72\u65F1"?(h(),y("span",Ia,B(q.row[n.value]),1)):n.value=="\u4E2D\u5EA6\u5E72\u65F1"?(h(),y("span",Va,B(q.row[n.value]),1)):n.value=="\u91CD\u5EA6\u5E72\u65F1"?(h(),y("span",Fa,B(q.row[n.value]),1)):(h(),y("span",Ma,B(q.row[n.value]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]),s("div",Ra,[A(" \u5171"+B(F.value.length)+"\u6761 ",1),c(C,{background:"",layout:"prev, pager, next",total:F.value.length,"current-page":p(I),"page-size":p(V),onCurrentChange:wt},null,8,["total","current-page","page-size"])])],512),[[Ue,p(G)]]),Ge(s("div",ja,[s("div",{ref_key:"chartModeDiv",ref:te,class:"chartModeDiv"},null,512)],512),[[Ue,!p(G)]])])])}}},eo=Lt(Pa,[["__scopeId","data-v-252bfa44"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/drought/Drought.vue"]]);export{eo as default};
|