Agriculture-front-end/dist/assets/Classify.eb41100d.js
2023-07-26 17:29:34 +08:00

2 lines
55 KiB
JavaScript

import{_ as Ja,u as Ya,r as b,D as ca,x as Se,t as Xa,X as Ha,v as Za,M as $e,d as q,o as E,c as T,k as u,m as j,P as J,Q as Y,y as ee,I as Ie,f as v,e as M,w as C,l as $,j as I,J as fa,G as ha,H as ma,a2 as Ua,p as Ka,q as et}from"./index.1974707a.js";import xe from"./downloads.4cdbbcc5.js";import{_ as at}from"./crops.d314ada0.js";import{_ as ke}from"./linesGL.99030c5a.js";import{_ as tt,a as ot}from"./fh.cf269d4d.js";import{_ as rt}from"./icon.d0cb5387.js";import{_ as lt}from"./dow.b4b83e88.js";import{d as qe}from"./download.b14e0d1d.js";import"./index.e2d056fa.js";import{T as nt}from"./TimeLine.50b18dc6.js";import{u as ue}from"./useEcharts.2e9d7b11.js";import{a as je,c as st,d as Re,b as ga,e as _e,f as pa,h as it,i as dt}from"./classify.947349b7.js";import{u as Ve,w as ut}from"./xlsx.86b9426e.js";import{e as Pe}from"./element-resize-detector.d8720798.js";import"./moment.9709ab41.js";import{i as ae,L as F}from"./install.49294472.js";/* empty css */const A=ce=>(Ka("data-v-cb0cf599"),ce=ce(),et(),ce),ct={class:"fatherDiv"},ft={class:"centerBox"},ht=A(()=>u("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),mt={class:"leftWra"},gt={class:"leftTop"},pt={class:"title"},bt=A(()=>u("span",null,"\u4F5C\u7269\u5206\u7C7B\u9762\u79EF\u7EDF\u8BA1",-1)),vt=A(()=>u("img",{src:xe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),yt={class:"leftbottom"},wt={class:"title"},St=A(()=>u("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1",-1)),_t=A(()=>u("img",{src:xe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),xt={class:"tableDiv"},kt=A(()=>u("img",{src:at,alt:""},null,-1)),Et={key:0,src:ke,alt:""},zt={key:0,class:"imgrotate",src:ke,alt:""},Ct={class:"rightWra"},Wt={class:"rightTop"},Lt={class:"title"},Mt=A(()=>u("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Nt=A(()=>u("img",{src:xe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Dt={key:0},Bt=A(()=>u("img",{src:tt},null,-1)),At=[Bt],Tt={class:"rightbottom"},Ot={class:"title"},$t=A(()=>u("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),It=A(()=>u("img",{src:xe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),qt={key:0,src:ke,alt:""},jt={key:0,class:"imgrotate",src:ke,alt:""},Rt=A(()=>u("img",{src:ot},null,-1)),Vt=A(()=>u("span",null,"\u8FD4\u56DE",-1)),Pt=[Rt,Vt],Ft={class:"mt-4"},Gt={class:"bottom_center"},Qt=A(()=>u("div",{id:"pop"},null,-1)),Jt={id:"popup",class:"ol-popup"},Yt=A(()=>u("div",{class:"pophead",style:{width:"100%"}},[u("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"}}),u("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),Xt={id:"popup-content",style:{padding:"30px"}},Ht=A(()=>u("img",{src:rt},null,-1)),Zt={class:"label"},Ut=A(()=>u("div",{id:"popup-pagination"},null,-1)),Kt={class:"tabulation"},eo={class:"searchDiv"},ao=A(()=>u("img",{src:lt,alt:""},null,-1)),to={class:"tableBox"},oo={class:"tableBorder"},ro=["onClick"],lo=["onClick"],no={class:"example-pagination-block"},so={class:"chartMode"},io={__name:"Classify",setup(ce){const Fe=Ya();let ba=b(null);const fe=b(null),Ge=b(null),Ee=b(null),he=b(null),ze=b(null);let R=ca({arr:[],brr:[],crr:[]}),Ce=b([]);const L=b("");L.value=window.localStorage.getItem("divisions"),b({info:[]});let Qe=b([]);const Je=b(!1);let X=b(!1),H=b(!1),G=b(!0),Z=b(1),Q=b(14);const U=b([]);let ne=b([]),We=b([]),te=b(!0);b("");let K=b(null),me=b([]),Le=b([]),y=b(""),Ye=b(""),oe=!(window.localStorage.getItem("divisions").length>6),Xe=["2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A1","2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A2","2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A3","2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A4","2020\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A","2021\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A1","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A2","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A3","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A4","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A5","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A6","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A7"],O={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},z=b({yearMonth:"",flag:"2",divisions:""}),ge=b([]);Se(()=>G.value,(r,t)=>{r?window.document.querySelector(".tableBox").style.height="90%":window.document.querySelector(".tableBox").style.height="83%"}),Se(()=>y.value,(r,t)=>{L.value=window.localStorage.getItem("divisions"),Te(L.value,y.value.name),Oe(L.value,y.value.name),oe?ra(L.value,y.value.name):la(L.value,y.value.name),$a(y.value.name);let a=y.value.name,e=a&&a.replace(/-/g,"_");V={\u5C0F\u9EA6:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${e}_xiaomai`},\u7389\u7C73:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${e}_yumi`},\u5927\u8C46:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${e}_dadou`},\u5730\u74DC:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${e}_digua`},\u82B1\u751F:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${e}_huasheng`},\u84DD\u8393:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${e}_lanmei`},\u8336\u53F6:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${e}_chaye`},\u5176\u4ED6:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${e}_qitanongzuowu`}}});const Me=()=>{if(!z.value.yearMonth){Ua.error("\u8BF7\u9009\u62E9\u65F6\u95F4");return}let r=[],t=[];dt({yearMonth:z.value.yearMonth,flag:z.value.flag===""?0:z.value.flag,divisions:z.value.divisions}).then(a=>{if(ge.value=[{region:"\u9AD8\u6807\u51C6\u519C\u7530",\u5176\u4ED6:a.data[a.data.length-1].otherSum,\u5730\u74DC:a.data[a.data.length-1].sweetPotatoSum,\u5927\u8C46:a.data[a.data.length-1].soyBeanSum,\u5C0F\u9EA6:a.data[a.data.length-1].wheatSum,\u82B1\u751F:a.data[a.data.length-1].peanutSum,\u8336\u53F6:a.data[a.data.length-1].teaSum,\u84DD\u8393:a.data[a.data.length-1].blueberrySum,\u7389\u7C73:a.data[a.data.length-1].cronSum,\u9A6C\u94C3\u85AF:a.data[a.data.length-1].potatoSum,\u767D\u83DC\u548C\u841D\u535C:a.data[a.data.length-1].turnipSum,\u5408\u8BA1:"\u5408\u8BA1"}],z.value.flag=="1")z.value.divisions="",se.value=[{lable:"\u533A\u57DF\u540D\u79F0",value:"region"},{lable:"\u5C0F\u9EA6",value:"\u5C0F\u9EA6"},{lable:"\u7389\u7C73",value:"\u7389\u7C73"},{lable:"\u5927\u8C46",value:"\u5927\u8C46"},{lable:"\u5730\u74DC",value:"\u5730\u74DC"},{lable:"\u82B1\u751F",value:"\u82B1\u751F"},{lable:"\u84DD\u8393",value:"\u84DD\u8393"},{lable:"\u8336\u53F6",value:"\u8336\u53F6"},{lable:"\u9A6C\u94C3\u85AF",value:"\u9A6C\u94C3\u85AF"},{lable:"\u767D\u83DC\u548C\u841D\u535C",value:"\u767D\u83DC\u548C\u841D\u535C"},{lable:"\u5176\u4ED6",value:"\u5176\u4ED6"}],a.data.forEach(l=>{r.indexOf(l.region)==-1&&r.push(l.region)}),r.forEach(l=>{t.push(Object.create(null,{regio:{value:l}}))}),t.forEach(l=>{a.data.map(m=>{l.regio===m.region&&(l.region=m.region,l[m.name]=m.area)})}),G.value=!1;else if(z.value.flag=="2"){let l=[],m=[];_e({divisions:z.value.divisions?z.value.divisions:window.localStorage.getItem("divisions"),yearMonth:z.value.yearMonth}).then(n=>{n.data.forEach(c=>{l.indexOf(c.tomeName)==-1&&l.push(c.tomeName)}),l.forEach(c=>{m.push(Object.create(null,{regio:{value:c}}))}),m.forEach(c=>{n.data.map(g=>{c.regio===g.tomeName&&(c.region=g.tomeName,c[g.name]=g.area)})}),R.arr.forEach(c=>{if(z.value.divisions==c.tomeCode){m[0].region=c.tomeName,m[0].\u5408\u8BA1="\u5408\u8BA1";return}else c.tomeCode=="370211"&&(m[0].region="\u9EC4\u5C9B\u533A",m[0].\u5408\u8BA1="\u5408\u8BA1")}),ge.value=m}),se.value=[{lable:"\u533A\u57DF\u540D\u79F0",value:"region"},{lable:"\u5C0F\u9EA6",value:"\u5C0F\u9EA6"},{lable:"\u7389\u7C73",value:"\u7389\u7C73"},{lable:"\u5927\u8C46",value:"\u5927\u8C46"},{lable:"\u5730\u74DC",value:"\u5730\u74DC"},{lable:"\u82B1\u751F",value:"\u82B1\u751F"},{lable:"\u84DD\u8393",value:"\u84DD\u8393"},{lable:"\u8336\u53F6",value:"\u8336\u53F6"},{lable:"\u9A6C\u94C3\u85AF",value:"\u9A6C\u94C3\u85AF"},{lable:"\u767D\u83DC\u548C\u841D\u535C",value:"\u767D\u83DC\u548C\u841D\u535C"},{lable:"\u5176\u4ED6",value:"\u5176\u4ED6"}],a.data.forEach(n=>{r.indexOf(n.tomeName)==-1&&r.push(n.tomeName)}),r.forEach(n=>{t.push(Object.create(null,{regio:{value:n}}))}),t.forEach(n=>{a.data.map(c=>{n.regio===c.tomeName&&(n.region=c.tomeName,n[c.name]=c.area)})}),G.value=!1}else z.value.flag==0&&(G.value=!0,t=a.data,se=b([{lable:"\u65F6\u95F4",value:"dateTime"},{lable:"\u6570\u636E\u540D\u79F0",value:"excelName"}]));U.value=t,Ne.value=t.slice((Z.value-1)*Q.value,(Z.value-1)*Q.value+Q.value);const e=he.value;e.style.width=window.innerWidth-100+"px",e.style.height=window.innerHeight-100+"px";const o=ae(e);window.addEventListener("resize",()=>{e.style.width=window.innerWidth-200+"px",e.style.height=window.innerHeight-200+"px",o.resize()}),ua()})},va=()=>{z.yearMonth=We.value[0],z.flag=2,z.value.divisions="",G.value=!0,Me()};let se=b([{lable:"\u65F6\u95F4",value:"dateTime"},{lable:"\u6570\u636E\u540D\u79F0",value:"excelName"}]),Ne=b([]);const ya=r=>{_e({divisions:L.value,yearMonth:y.value.name,whetherToDownload:!0}).then(t=>{qe(t.data[t.data.length-1].downloadPath)})},wa=r=>{pa({divisions:L.value,yearMonth:y.value.name,whetherToDownload:!0}).then(t=>{qe(t.data[t.data.length-1].downloadPath)})},Sa=r=>{Re({divisions:L.value,yearMonth:y.value.name,whetherToDownload:!1}).then(t=>{let a=[],e=[];t.data.forEach(o=>{a.indexOf(o.region)==-1&&a.push(o.region)}),a.forEach(o=>{e.push(Object.create(null,{regio:{value:o}}))}),e.forEach(o=>{t.data.map(l=>{o.regio===l.region&&(o.region=l.region,o[l.name]=l.area)})}),pe(e,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},_a=r=>{let t="";R.arr.forEach(a=>{a.subregion==L.value&&(t=a.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":a.subregionName)}),L.value==="370211"?je({divisions:L.value,yearMonth:y.value.name,whetherToDownload:!1}).then(a=>{let e=[],o=[];a.data.forEach(l=>{e.indexOf(l.tomeName)==-1&&e.push(l.tomeName)}),e.forEach(l=>{o.push(Object.create(null,{regio:{value:l}}))}),o.forEach(l=>{a.data.map(m=>{l.regio===m.tomeName&&(l.region=m.tomeName,l[m.name]=m.area)})}),pe(o,`${t}\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")}):ga({divisions:L.value,yearMonth:y.value.name,whetherToDownload:!1}).then(a=>{let e=[],o=[];a.data.forEach(l=>{e.indexOf(l.tomeName)==-1&&e.push(l.tomeName)}),e.forEach(l=>{o.push(Object.create(null,{regio:{value:l}}))}),o.forEach(l=>{a.data.map(m=>{l.regio===m.tomeName&&(l.region=m.tomeName,l[m.name]=m.area)})}),pe(o,`${t}\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})},He=r=>{qe(r.download)},xa=()=>{let r=JSON.parse(JSON.stringify(ge.value[0]));r.region="\u5408\u8BA1",U.value.push(r),pe(U.value,"\u519C\u4F5C\u7269\u79CD\u690D\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},ka=(r,t)=>r.map(e=>{const o={};for(const l in e)t[l]&&(o[t[l]]=e[l]);return o}),pe=(r,t="\u7528\u6237\u5217\u8868",a="Sheet1")=>{const o=ka(r,{region:"\u533A\u57DF\u540D\u79F0",\u5C0F\u9EA6:"\u5C0F\u9EA6(\u4EA9)",\u7389\u7C73:"\u7389\u7C73(\u4EA9)",\u5927\u8C46:"\u5927\u8C46(\u4EA9)",\u5730\u74DC:"\u5730\u74DC(\u4EA9)",\u82B1\u751F:"\u82B1\u751F(\u4EA9)",\u84DD\u8393:"\u84DD\u8393(\u4EA9)",\u8336\u53F6:"\u8336\u53F6(\u4EA9)",\u9A6C\u94C3\u85AF:"\u9A6C\u94C3\u85AF(\u4EA9)",\u767D\u83DC\u548C\u841D\u535C:"\u767D\u83DC\u548C\u841D\u535C(\u4EA9)",\u5176\u4ED6:"\u5176\u4ED6(\u4EA9)"}),l=Ve.json_to_sheet(o),m=Ve.book_new();Ve.book_append_sheet(m,l,a),ut(m,`${t}.xlsx`)};let N={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},De=b(0),P=b({\u5C0F\u9EA6:{color:"rgba(25, 196, 22, 1)",disabled:!1},\u7389\u7C73:{color:"rgba(255, 240, 26, 1)",disabled:!1},\u5927\u8C46:{color:"rgba(255, 184, 148, 1)",disabled:!1},\u5730\u74DC:{color:"rgba(255, 18, 18, 1)",disabled:!1},\u82B1\u751F:{color:"rgba(255, 140, 255, 1)",disabled:!1},\u84DD\u8393:{color:" rgba(0, 153, 255, 1)",disabled:!1},\u8336\u53F6:{color:"rgba(0, 209, 195, 1)",disabled:!1},\u9A6C\u94C3\u85AF:{color:"rgba(253, 127, 1, 1)",disabled:!1},\u767D\u83DC\u548C\u841D\u535C:{color:"rgba(201, 255, 148, 1)",disabled:!1},\u5176\u4ED6:{color:"rgba(166, 224, 255, 1)",disabled:!1}}),V={},ie=[{name:"\u5C0F\u9EA6",value:0,itemStyle:{opacity:.8,color:"rgba(25, 196, 22, 1)"},area:""},{name:"\u7389\u7C73",value:0,itemStyle:{opacity:.8,color:"rgba(255, 240, 26, 1)"},area:""},{name:"\u82B1\u751F",area:"",value:0,itemStyle:{opacity:.8,color:"rgba(255, 140, 255, 1)"},label:{show:!0}},{name:"\u5927\u8C46",area:"",value:156,itemStyle:{opacity:.8,color:"rgba(255, 184, 148, 1)"},label:{show:!0}},{name:"\u5730\u74DC",area:"",value:156,itemStyle:{opacity:.8,color:"rgba(255, 18, 18, 1)"},label:{show:!0}},{name:"\u84DD\u8393",area:"",value:56,itemStyle:{opacity:.8,color:" rgba(0, 153, 255, 1)"},label:{show:!0}},{name:"\u8336\u53F6",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(0, 209, 195, 1)"},label:{show:!0}},{name:"\u9A6C\u94C3\u85AF",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(253, 127, 1, 1)"},label:{show:!0}},{name:"\u767D\u83DC\u548C\u841D\u535C",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(201, 255, 148, 1)"},label:{show:!0}},{name:"\u5176\u4ED6",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(166, 224, 255, 1)"},label:{show:!0}}],be=ca({arr:[]});var de={title:["\u533A\u57DF\u4E00","\u533A\u57DF\u4E8C","\u533A\u57DF\u4E09","\u533A\u57DF\u56DB","\u533A\u57DF\u4E94","\u533A\u57DF\u516D","\u533A\u57DF\u4E03","\u533A\u57DF\u516B"]};let ve=b([]),Be=b([]),Ze=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName");Xa(()=>{Ea()});function Ea(){qa(),za(),Ca(),sa(),ia(),Wa();for(const a in P.value)P.value[a].disabled!==!0&&ne.value.push(a);le.value=ne.value;let r=document.querySelector(".leftWra");r&&(r.style.transform="translate(-107%,0)");let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)",localStorage.setItem(Fe.currentRoute.value.path,!0)}Ha(()=>{localStorage.getItem(Fe.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")});let h=b(null);b(null),b(null);let Ue=b(null),ye=b(null);function za(){var r=document.querySelector(".centerBox"),t=document.getElementById("cesiumContainer");h=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,maxZoom:16.5,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.Tianditu({layerType:"img",key:"1d109683f4d84198e37a38c442d68311"})})]}),h.on("moveend",function(e){var o=h.getView().getZoom();h.getView(),o>=13?K.setVisible(!0):K.setVisible(!1)}),h.on("singleclick",function(e){var o=e.coordinate;if(oe){var l=o[0],m=o[1],n=h.getView(),c=h.getView().getZoom();n.animate({center:[l,m],duration:1e3});let g=!1;if(["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(w=>{h.getLayers().getArray().forEach((S,_)=>{if(w==S.A.name){g=!0;return}})}),g)c>=13?re(e,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):re(e,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547");else{let w="http://36.134.44.75:8090/iserver/services/data-2019-2022gaobiaozhunnongtian/rest/data",S=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian",attributeFilter:`DKMC = '${Ye.value}'`},datasetNames:["2019-2022gaobiaozhunnongtian:T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A"]});new ol.supermap.FeatureService(w).getFeaturesBySQL(S,function(_){let x=new ol.format.GeoJSON().readFeatures(_.result.features),s=new ol.source.Vector;s.addFeatures(x);let D=new ol.layer.Vector({source:s}).getSource().getFeatures();for(var f=0;f<D.length;f++)D[f].getGeometry().intersectsCoordinate(o)&&re(e,"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian","http://36.134.44.75:8090/iserver/services/map-2019-2022gaobiaozhunnongtian/rest/maps/T2019_2022%E9%AB%98%E6%A0%87%E5%87%86%E5%86%9C%E7%94%B0%E7%89%87%E5%8C%BA@2019-2022gaobiaozhunnongtian","\u9AD8\u6807\u51C6")})}}else{let g="http://36.134.44.75:8090/iserver/services/data-huangdaoqu_bianjie/rest/data",p=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"XJQY3702112019WGS84@huangdaoqu_bianjie",attributeFilter:`XJQYMC = '${Ze}'`},datasetNames:["huangdaoqu_bianjie:XJQY3702112019WGS84"]});new ol.supermap.FeatureService(g).getFeaturesBySQL(p,function(w){let S=new ol.format.GeoJSON().readFeatures(w.result.features),_=new ol.source.Vector;_.addFeatures(S);let s=new ol.layer.Vector({source:_}).getSource().getFeatures();for(var d=0;d<s.length;d++)if(s[d].getGeometry().intersectsCoordinate(o)){var D=o[0],f=o[1],B=h.getView(),W=h.getView().getZoom();B.animate({center:[D,f],duration:1e3});let we=!1;["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(Ga=>{h.getLayers().getArray().forEach((Qa,co)=>{if(Ga==Qa.A.name){we=!0;return}})}),we?W>=13?re(e,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):re(e,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547"):re(e,"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian","http://36.134.44.75:8090/iserver/services/map-2019-2022gaobiaozhunnongtian/rest/maps/T2019_2022%E9%AB%98%E6%A0%87%E5%87%86%E5%86%9C%E7%94%B0%E7%89%87%E5%8C%BA@2019-2022gaobiaozhunnongtian","\u9AD8\u6807\u51C6")}})}});var a=new ResizeObserver(function(e){e.forEach(function(o){var l=o.contentRect.width,m=o.contentRect.height;t.style.width=l+"px",t.style.height=m+"px",h.updateSize()})});a.observe(r),Pa(Ze)}function Ca(){Za.get("/json/huangdao.json").then(({data:r})=>{new ol.format.GeoJSON().readFeatures(r)[0]})}function Ae(r,t,a,e){let o=new ol.source.Vector;var l=new ol.layer.Vector({id:t||"zhezhao",source:o,zIndex:e||50,style:new ol.style.Style({fill:new ol.style.Fill({color:a||"rgba( 105, 105, 105, 0.9)"})})});const m=Ke(r),n=new ol.Feature({geometry:m});l.getSource().addFeature(n),h.addLayer(l)}function Ke(r){const t=[-180,-90,180,90],a=ol.geom.Polygon.fromExtent(t);return r.forEach(o=>{const l=new ol.geom.LinearRing(o[0]);a.appendLinearRing(l)}),a}const ea=()=>{K=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:"CJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999}),h.addLayer(K)},aa=()=>{var r=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}),name:"XJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999});h.addLayer(r)},ta=r=>{let t=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+`/map-${r.setOf}/rest/maps/${r.name}@${r.setOf}`,cacheEnabled:!1}),name:r.name,projection:"EPSG:4326"});h.addLayer(t)};function re(r,t,a,e){let o=[];var l=new ol.geom.Point(r.coordinate),m=new ol.supermap.QueryByGeometryParameters({queryParams:{name:t},geometry:l});let n=document.querySelector("#popup-title"),c=b(null),g=b(null);new ol.supermap.QueryService(a).queryByGeometry(m,function(p){g=h.getLayers().getArray().find(_=>_.get("id")==="zhezhao"),h.removeLayer(g);let w="";if(e=="\u9547"&&p.result.recordsets[0].features.features[0].properties.XJQYDM){let _=p.result.recordsets[0].features.features[0].properties.XJQYDM;L.value=_;let x=[];je({divisions:"370211",yearMonth:y.value.name}).then(s=>{s.data.forEach(d=>{d.tomeCode==_&&(w=d.tomeName,x.push(d))}),me.value=x,S()})}else if(e=="\u6751"&&p.result.recordsets[0].features.features[0].properties.CJQYDM){let _=p.result.recordsets[0].features.features[0].properties.CJQYDM,x=[];st({divisions:_,yearMonth:y.value.name}).then(s=>{s.data.forEach(d=>{x.push(d)}),w=s.data[0].tomeName,me.value=x,S()})}else if(e=="\u9AD8\u6807\u51C6"&&p.result.recordsets[0].features.features[0].properties.DKMC){let _=p.result.recordsets[0].features.features[0].properties.DKMC,x=[];Re({divisions:"370211",yearMonth:y.value.name}).then(s=>{s.data.forEach(d=>{d.region==_&&x.push(d)}),w=_,me.value=x,S("gao")})}function S(_){if(p.result.currentCount>0){p.result.recordsets[0].features&&(ye.setPosition(l.flatCoordinates),n.innerHTML=w),c=h.getLayers().getArray().find(f=>f.get("id")==="dianjigaoliang"),h.removeLayer(c);var x=new ol.format.GeoJSON().readFeatures(p.result.recordsets[0].features);o=p.result.recordsets[0].features.features[0].geometry.coordinates,Ae(p.result.recordsets[0].features.features[0].geometry.coordinates,_);var s=new ol.source.Vector;s.addFeatures(x);const D=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:s,zIndex:9999});d.setStyle(D),h.addLayer(d)}}}),Ue.addEventListener("click",function(){g=h.getLayers().getArray().find(p=>p.get("id")==="zhezhao"),h.removeLayer(g),Ke(o),L.value=window.localStorage.getItem("divisions"),c=h.getLayers().getArray().find(p=>p.get("id")==="dianjigaoliang"),h.removeLayer(c),c=h.getLayers().getArray().find(p=>p.get("id")==="gao"),h.removeLayer(c),ye.setPosition(void 0)})}const Wa=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Ue=document.getElementById("popup-closer"),ye=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),h.addOverlay(ye)},le=b(["false"]);let oa=0;Se(()=>L.value,()=>{Ia()});const La=()=>{De.value=0};Se(()=>le.value,(r,t)=>{r.length>t.length&&De.value<1?r.filter(e=>{if(t.findIndex(l=>l===e)<0)return e}).forEach(e=>{V[e]&&(console.log(V[e]),ta(V[e]))}):r.length<t.length&&t.filter(e=>{if(r.findIndex(l=>l===e)<0)return e}).forEach(e=>{V[e]&&(h.getLayers().getArray().indexOf(V[e].name),h.getLayers().getArray().forEach((o,l)=>{o.A.name&&o.A.name==V[e].name&&h.getLayers().removeAt(l)}))}),oa++,oa==1&&(ea(),aa())});function Ma(){te.value=!te.value;const r=he.value;r.style.width=window.innerWidth-100+"px",r.style.height=window.innerHeight-100+"px";const t=ae(r);window.addEventListener("resize",()=>{r.style.width=window.innerWidth-200+"px",r.style.height=window.innerHeight-200+"px",t.resize()}),ua()}b([]);const Na=r=>{Z.value=r,Ne.value=U.value.slice((Z.value-1)*Q.value,(Z.value-1)*Q.value+Q.value)},Da=r=>{const t=Z.value,a=Q.value;return r+1+(t-1)*a};function Ba(){L.value="370211",deleteEntityByName("townLine"),ba.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Je.value=!1}function Aa(){if(X.value=!X.value,X.value){let r=document.querySelector(".leftWra");r.style.transform="translate(0,0)"}else{let r=document.querySelector(".leftWra");r.style.transform="translate(-107%,0)"}}function Ta(){if(H.value=!H.value,H.value){let r=document.querySelector(".rightWra");r.style.transform="translate(0,0)"}else{let r=document.querySelector(".rightWra");r.style.transform="translate(107%,0)"}}const Oa=r=>{De.value+=1,ne.value=[];let t=[];for(const a in V)h.getLayers().getArray().forEach((e,o)=>{e.A.name==V[a].name&&h.getLayers().removeAt(o)});y.value=r,_e({divisions:"370211",yearMonth:y.value.name}).then(a=>{a.data.forEach(e=>{Number(e.area)>1?P.value[e.name].disabled=!1:P.value[e.name].disabled=!0,t=P});for(const e in t.value)t.value[e].disabled!==!0&&ne.value.push(e);le.value=ne.value,le.value.forEach(e=>{ta(V[e])})})},ra=(r,t)=>{je({divisions:r,yearMonth:t}).then(a=>{N={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},a.data.forEach((n,c)=>{for(let g=0;g<Object.values(n).length;g++)Object.values(n)[g]=="0.0"&&a.data.splice(c,1)}),R.brr=a.data,R.arr=a.data.sort((n,c)=>n.tomeName.length-c.tomeName.length),R.arr.unshift({tomeCode:"370211",tomeName:"\u5168\u90E8"});let e=[],o=[];R.arr.forEach(n=>{e.indexOf(n.tomeName)==-1&&(e.push(n.tomeName),o.push({tomeName:n.tomeName,tomeCode:n.tomeCode,area:n.area,type:n.type}))}),R.arr=o,Ce.value=JSON.parse(JSON.stringify(R.arr)),Ce.value[0].tomeCode="";let l=[...a.data],m=[];l.splice(0,1),l.forEach(n=>{m.indexOf(n.tomeName)==-1&&m.push(n.tomeName)}),de.title=[...Object.values(m)],de.title.forEach((n,c)=>{let g=a.data.map(p=>{if(n===p.tomeName)return p});Object.keys(N).forEach(p=>{g.findIndex(S=>S&&S.name===p&&Number(S.area)>0)>-1?N[p].push(10):N[p].push(null)})}),console.log(N,"dd"),da()})},la=(r,t)=>{ga({divisions:r,yearMonth:t}).then(a=>{N={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},R.brr=a.data;let e=[...a.data],o=[];e.splice(0,1),e.forEach(l=>{o.indexOf(l.tomeName)==-1&&o.push(l.tomeName)}),de.title=[...Object.values(o)],de.title.forEach((l,m)=>{let n=a.data.map(c=>{if(l===c.tomeName)return c});Object.keys(N).forEach(c=>{n.findIndex(p=>p&&p.name===c&&Number(p.area)>0)>-1?N[c].push(1):N[c].push(null)})}),da()})},Te=(r,t)=>{_e({divisions:r,yearMonth:t}).then(a=>{a.data.forEach(e=>{Number(e.area)<1?P.value[e.name].disabled=!0:P.value[e.name].disabled=!1}),ve=b([]),Be=b([]),a.data.forEach(e=>{ve.value.unshift(e.area),Be.value.unshift(e.name)}),sa()})},Oe=(r,t)=>{pa({divisions:r,yearMonth:t}).then(a=>{be.arr=[];let e=[];a.data.forEach(o=>{for(let l=0;l<ie.length;l++)if(o.name==ie[l].name){ie[l].area=o.area,ie[l].value=1;for(const m in P.value)m==o.name&&e.push({type:o.name,content:{value:o.area,percent:o.areaB,color:P.value[m].color}});be.arr.push(ie[l])}Qe.value=e}),ia()})};let na=b([]);const $a=r=>{Re({yearMonth:r,divisions:window.localStorage.getItem("divisions")}).then(t=>{O={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},na.value=t.data,Xe.forEach((a,e)=>{let o=t.data.map(l=>{if(a===l.region)return l});Object.keys(N).forEach(l=>{o.findIndex(n=>n&&n.name===l&&Number(n.area)>0)>-1?O[l].push(70):O[l].push(null)})}),t.data.length>0&&Fa()})},Ia=()=>{if(L.value=="370211"){ra("370211",y.value.name),Te("370211",y.value.name),Oe("370211",y.value.name);return}else Te(L.value,y.value.name),Oe(L.value,y.value.name),la(L.value,y.value.name)},qa=()=>{it().then(r=>{y.value={name:r.data[r.data.length-1]},We.value=r.data,z.value.yearMonth=r.data[0],ja(r.data[0]),r.data.forEach(e=>{Le.value.push({name:e})});let t=y.value.name,a=t&&t.replace(/-/g,"_");V={\u5C0F\u9EA6:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${a}_xiaomai`},\u7389\u7C73:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${a}_yumi`},\u5927\u8C46:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${a}_dadou`},\u5730\u74DC:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${a}_digua`},\u82B1\u751F:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${a}_huasheng`},\u84DD\u8393:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${a}_lanmei`},\u8336\u53F6:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${a}_chaye`},\u5176\u4ED6:{setOf:`${y.value.name}-nongzuowufenlei`,name:`T${a}_qitanongzuowu`}}})},ja=r=>{Me()};let Ra=()=>{document.querySelector(".tool").style.display="none",ea(),K.setVisible(!1),aa(),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao","zhezhao"].forEach(a=>{h.getLayers().getArray().forEach((e,o)=>{(e.A.name==a||e.A.id==a)&&h.getLayers().removeAt(o)})}),h.getLayers().getArray().forEach((a,e)=>{console.log(a.A)});var t=h.getView();t.animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11})};function Va(r){let t="",a="",e="",o="",l="";a="http://36.134.44.75:8090/iserver/services/data-2019-2022gaobiaozhunnongtian/rest/data",t=r,e="T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A",o="2019-2022gaobiaozhunnongtian",l="DKMC";var m=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${e}@${o}`,attributeFilter:`${l} like '%${t}%'`},datasetNames:[`${o}:${e}`]});new ol.supermap.FeatureService(a).getFeaturesBySQL(m,function(n){if(n.result.featureCount!=0){var c=h.getLayers().getArray().find(d=>d.get("id")==="zhezhao");h.removeLayer(c);var g=h.getLayers().getArray().find(d=>d.get("id")==="gbz");h.removeLayer(g);var p=h.getLayers().getArray().find(d=>d.get("id")==="dianjigaoliang");h.removeLayer(p);var w=h.getLayers().getArray().find(d=>d.get("id")==="dianjigaoliangs");h.removeLayer(w);var S=new ol.format.GeoJSON().readFeatures(n.result.features);Ae(n.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var _=new ol.source.Vector;_.addFeatures(S);const s=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var x=new ol.layer.Vector({id:"dianjigaoliang",source:_});x.setStyle(s),h.addLayer(x),h.getView().fit(_.getExtent())}})}function Pa(r){let t="",a="",e="",o="",l="";a="http://36.134.44.75:8090/iserver/services/data-huangdaoqu_bianjie/rest/data",t=r,e="XJQY3702112019WGS84",o="huangdaoqu_bianjie",l="XJQYMC";var m=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${e}@${o}`,attributeFilter:`${l} like '%${t}%'`},datasetNames:[`${o}:${e}`]});new ol.supermap.FeatureService(a).getFeaturesBySQL(m,function(n){if(n.result.featureCount!=0){var c=h.getLayers().getArray().find(x=>x.get("id")==="zhezhao");h.removeLayer(c);var g=h.getLayers().getArray().find(x=>x.get("id")==="dianjigaoliang");h.removeLayer(g);var p=new ol.format.GeoJSON().readFeatures(n.result.features);Ae(n.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var w=new ol.source.Vector;w.addFeatures(p);const _=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var S=new ol.layer.Vector({id:"dianjigaoliang",source:w});S.setStyle(_),h.addLayer(S),h.getView().fit(w.getExtent())}})}function sa(){if(fe.value){const r=ae(fe.value);let t={textStyle:{color:"#c0c3cd",fontSize:14},toolbox:{show:!1,feature:{saveAsImage:{backgroundColor:"#031245"},restore:{}},iconStyle:{borderColor:"#c0c3cd"}},legend:{top:10,itemWidth:8,itemHeight:8,icon:"circle",left:"center",padding:0,textStyle:{color:"#fff",fontSize:14,padding:[2,0,0,0]},border:"1px solid rgba(4, 153, 153, 1)"},color:["#00D7E9","rgba(0, 215, 233, 0.9)"],grid:{containLabel:!0,left:20,right:20,bottom:10,top:40},xAxis:[{type:"category",data:Be.value,axisLine:{lineStyle:{color:"#C0C4CC",width:1}},axisTick:{show:!1},axisLabel:{margin:10,color:"#fff",textStyle:{fontSize:14}}}],yAxis:{nameTextStyle:{color:"#fff",padding:[0,0,0,0],fontSize:14},axisLabel:{color:"#fff",fontSize:14},axisTick:{lineStyle:{color:"#668092",width:1},show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.7)",type:"dashed"}},axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.7)",width:1},show:!1},name:"\u9762\u79EF(\u4EA9)"},series:[{data:ve.value,type:"bar",barMaxWidth:"auto",barWidth:30,itemStyle:{color:{x:0,y:0,x2:0,y2:1,type:"linear",colorStops:[{offset:0,color:" rgba(0, 208, 255, 0.1)"},{offset:1,color:"rgba(0, 208, 255, 0.9) "}]},borderWidth:1,borderColor:"black"},label:{show:!1,position:"top",distance:10,color:"#fff"},emphasis:{itemStyle:{shadowBlur:20,shadowColor:"rgba(0, 147, 252, 1)"}}},{data:[1,1,1,1,1],type:"pictorialBar",barMaxWidth:"20",symbol:"diamond",symbolOffset:[0,"50%"],symbolSize:[30,15],tooltip:{show:!1}},{data:ve.value,type:"pictorialBar",barMaxWidth:"20",symbolPosition:"end",symbol:"diamond",symbolOffset:[0,"-50%"],symbolSize:[30,12],zlevel:2}],tooltip:{show:!0}};ue(r,t),Pe().listenTo(fe.value,()=>{$e(()=>{r.resize()})})}}function ia(){const r=ae(Ge.value);let t="",a="",e="",o=m(be.arr,0);function l(n,c,g,p,w,S){const _=(n+c)/2,x=n*Math.PI*2,s=c*Math.PI*2,d=_*Math.PI*2;n===0&&c===1&&(g=!1),w=typeof w<"u"?w:1/3;const D=g?Math.cos(d)*.1:0,f=g?Math.sin(d)*.1:0,B=p?1.05:1;return{u:{min:-Math.PI,max:Math.PI*3,step:Math.PI/32},v:{min:0,max:Math.PI*2,step:Math.PI/20},x(W,k){return W<x?D+Math.cos(x)*(1+Math.cos(k)*w)*B:W>s?D+Math.cos(s)*(1+Math.cos(k)*w)*B:D+Math.cos(W)*(1+Math.cos(k)*w)*B},y(W,k){return W<x?f+Math.sin(x)*(1+Math.cos(k)*w)*B:W>s?f+Math.sin(s)*(1+Math.cos(k)*w)*B:f+Math.sin(W)*(1+Math.cos(k)*w)*B},z(W,k){return W<-Math.PI*.5?Math.sin(W):W>Math.PI*2.5?Math.sin(W)*S*.1:Math.sin(k)>0?1*S*.1:-1}}}function m(n,c){const g=[];let p=0,w=0,S=0;const _=[],x=typeof c<"u"?(1-c)/(1+c):1/3;for(let d=0;d<n.length;d+=1){p+=n[d].value;const D={name:typeof n[d].name>"u"?`series${d}`:n[d].name,type:"surface",parametric:!0,wireframe:{show:!1},pieData:n[d],pieStatus:{selected:!1,hovered:!1,k:x}};if(typeof n[d].itemStyle<"u"){const{itemStyle:f}=n[d];typeof n[d].itemStyle.color<"u"&&(f.color=n[d].itemStyle.color),typeof n[d].itemStyle.opacity<"u"&&(f.opacity=n[d].itemStyle.opacity),D.itemStyle=f}g.push(D)}for(let d=0;d<g.length;d+=1)S=w+g[d].pieData.value,g[d].pieData.startRatio=w/p,g[d].pieData.endRatio=S/p,g[d].parametricEquation=l(g[d].pieData.startRatio,g[d].pieData.endRatio,!1,!1,x,g[d].pieData.value===g[0].pieData.value?35:10),w=S,_.push(g[d].name);return{legend:{show:!0,bottom:0,textStyle:{color:"rgba(255,255,255,.9)"}},tooltip:{formatter:d=>{if(d.seriesName!=="mouseoutSeries"){let D="";return be.arr.forEach(f=>{f.name==d.seriesName&&(D=f.area)}),`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${d.color};"></span>${d.seriesName}:${Number(D)}\u4EA9`}return""}},xAxis3D:{min:-1,max:1},yAxis3D:{min:-1,max:1},zAxis3D:{min:-1,max:1},grid3D:{show:!1,boxHeight:10,top:"-10%",viewControl:{alpha:35,beta:30,rotateSensitivity:1,zoomSensitivity:0,panSensitivity:0,autoRotate:!1,distance:300},postEffect:{enable:!0,bloom:{enable:!0,bloomIntensity:.1},SSAO:{enable:!0,quality:"medium",radius:2}}},series:g}}r.on("mouseover",function(n){let c,g,p,w,S,_;e!==n.seriesIndex&&(e!==""&&(c=o.series[e].pieStatus.selected,g=!1,p=o.series[e].pieData.startRatio,w=o.series[e].pieData.endRatio,S=o.series[e].pieStatus.k,_=o.series[e].pieData.value===o.series[0].pieData.value?35:10,o.series[e].parametricEquation=l(p,w,c,g,S,_),o.series[e].pieStatus.hovered=g,e=""),n.seriesName!=="mouseoutSeries"&&(c=o.series[n.seriesIndex].pieStatus.selected,g=!0,p=o.series[n.seriesIndex].pieData.startRatio,w=o.series[n.seriesIndex].pieData.endRatio,S=o.series[n.seriesIndex].pieStatus.k,o.series[n.seriesIndex].parametricEquation=l(p,w,c,g,S,o.series[n.seriesIndex].pieData.value+5),o.series[n.seriesIndex].pieStatus.hovered=g,e=n.seriesIndex),r.setOption(o))}),r.on("globalout",function(){if(e!==""){t=o.series[e].pieStatus.selected,a=!1;let n=o.series[e].pieStatus.k;startRatio=o.series[e].pieData.startRatio,endRatio=o.series[e].pieData.endRatio,i=o.series[e].pieData.value===o.series[0].pieData.value?35:10,o.series[e].parametricEquation=l(startRatio,endRatio,t,a,n,i),o.series[e].pieStatus.hovered=a,e=""}r.setOption(o)}),ue(r,o)}function Fa(){const r=ae(Ee.value);console.log(O);let t={grid:{left:"3%",right:"4%",bottom:"3%",top:"10%",containLabel:!0},tooltip:{formatter:function(e){let o=0;return na.value.forEach(l=>{l.name==e.seriesName&&l.region==e.name&&(o=l.area)}),e.seriesName+'<span style="font-size: 14px; color: #f00;">'+o+"</span>\u4EA9"}},xAxis:{type:"value",max:500,show:!1,axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},yAxis:{type:"category",inverse:!0,splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1},axisLabel:{interval:0,color:"rgba(255, 255, 255, 1)",fontSize:14},data:Xe},series:[{name:"\u5C0F\u9EA6",type:"bar",barWidth:12,stack:"stack",data:O.\u5C0F\u9EA6,itemStyle:{normal:{barBorderRadius:0,color:new F(0,0,.9,0,[{offset:1,color:"rgba(25, 196, 22, 1)"},{offset:0,color:"rgba(25, 196, 22, 1)"}])}}},{name:"\u5927\u8C46",type:"bar",barWidth:12,stack:"stack",data:O.\u5927\u8C46,itemStyle:{normal:{barBorderRadius:0,color:new F(0,0,.9,0,[{offset:1,color:"rgba(255, 184, 148, 1)"},{offset:0,color:"rgba(255, 184, 148, 1)"}])}}},{name:"\u8336\u53F6",type:"bar",barWidth:12,stack:"stack",data:O.\u8336\u53F6,itemStyle:{normal:{barBorderRadius:0,color:new F(0,0,.9,0,[{offset:1,color:"rgba(0, 209, 195, 1)"},{offset:0,color:"rgba(0, 209, 195, 1)"}])}}},{name:"\u82B1\u751F",type:"bar",barWidth:12,stack:"stack",data:O.\u82B1\u751F,itemStyle:{normal:{barBorderRadius:0,color:new F(0,0,.9,0,[{offset:1,color:"rgba(255, 140, 255, 1)"},{offset:0,color:"rgba(255, 140, 255, 1)"}])}}},{name:"\u84DD\u8393",type:"bar",barWidth:12,stack:"stack",data:O.\u84DD\u8393,itemStyle:{normal:{barBorderRadius:0,color:new F(0,0,.9,0,[{offset:1,color:"rgba(0, 153, 255, 1)"},{offset:0,color:"rgba(0, 153, 255, 1)"}])}}},{name:"\u5730\u74DC",type:"bar",barWidth:12,stack:"stack",data:O.\u5730\u74DC,itemStyle:{normal:{barBorderRadius:0,color:new F(0,0,.9,0,[{offset:1,color:"rgba(255, 18, 18, 1)"},{offset:0,color:"rgba(255, 18, 18, 1)"}])}}},{name:"\u7389\u7C73",type:"bar",barWidth:12,stack:"stack",data:O.\u7389\u7C73,itemStyle:{normal:{barBorderRadius:0,color:new F(0,0,.9,0,[{offset:1,color:"rgba(255, 240, 26, 1)"},{offset:0,color:"rgba(255, 240, 26, 1)"}])}}},{name:"\u9A6C\u94C3\u85AF",type:"bar",barWidth:12,stack:"stack",data:O.\u9A6C\u94C3\u85AF,itemStyle:{normal:{barBorderRadius:0,color:new F(0,0,.9,0,[{offset:1,color:"rgba(253, 127, 1, 1)"},{offset:0,color:"rgba(253, 127, 1, 1)"}])}}},{name:"\u767D\u83DC\u548C\u841D\u535C",type:"bar",barWidth:12,stack:"stack",data:O.\u767D\u83DC\u548C\u841D\u535C,itemStyle:{normal:{barBorderRadius:0,color:new F(0,0,.9,0,[{offset:1,color:"rgba(201, 255, 148, 1)"},{offset:0,color:"rgba(201, 255, 148, 1)"}])}}},{name:"\u5176\u4ED6",type:"bar",barWidth:12,stack:"stack",data:O.\u5176\u4ED6,itemStyle:{normal:{barBorderRadius:0,color:new F(0,0,.9,0,[{offset:1,color:"rgba(166, 224, 255, 1)"},{offset:0,color:"rgba(166, 224, 255, 1)"}])}}}]};r.on("click",function(e){document.querySelector(".tool").style.display="block",Ye.value=e.name;let o=["XJQY3702112019WGS84","CJQY3702112019WGS84"];Va(e.name),o.forEach(m=>{h.getLayers().getArray().forEach((n,c)=>{n.A.name==m&&h.getLayers().removeAt(c)})}),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao"].forEach(m=>{h.getLayers().getArray().forEach((n,c)=>{console.log(n.A),(n.A.name==m||n.A.id==m)&&h.getLayers().removeAt(c)})}),K=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-2019-2022gaobiaozhunnongtian/rest/maps/T2019_2022%E9%AB%98%E6%A0%87%E5%87%86%E5%86%9C%E7%94%B0%E7%89%87%E5%8C%BA@2019-2022gaobiaozhunnongtian",cacheEnabled:!1}),name:"2019-2022gaobiaozhunnongtian",projection:"EPSG:4326",zIndex:500}),h.addLayer(K)}),ue(r,t),Pe().listenTo(Ee.value,()=>{$e(()=>{r.resize()})})}function da(){const r=ae(ze.value);console.log(N);var t={grid:{bottom:"8%",left:"10%",right:"6%",top:"6%",containLabel:!0},tooltip:{formatter:function(e){let o=0;return R.brr.forEach(l=>{l.name==e.seriesName&&l.tomeName==e.name&&(o=l.area)}),e.seriesName+'<span style="font-size: 14px; color: #f00;">'+o+"</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:de.title,inverse:!0}],series:[{type:"bar",name:"\u8336\u53F6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u8336\u53F6",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(0, 209, 195, 1)",color:{colorStops:[{offset:0,color:"rgba(0, 209, 195, 1)"},{offset:1,color:"rgba(0, 209, 195, 1)"}]}},data:N.\u8336\u53F6},{type:"bar",name:"\u5730\u74DC",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u5730\u74DC",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(255, 18, 18, 1)",color:{colorStops:[{offset:0,color:"rgba(255, 18, 18, 1)"},{offset:1,color:"rgba(255, 18, 18, 1)"}]}},data:N.\u5730\u74DC},{type:"bar",name:"\u5927\u8C46",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u5927\u8C46",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(255, 184, 148, 1)",color:{colorStops:[{offset:0,color:"rgba(255, 184, 148, 1)"},{offset:1,color:"rgba(255, 184, 148, 1)"}]}},data:N.\u5927\u8C46},{type:"bar",name:"\u82B1\u751F",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u82B1\u751F",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(255, 140, 255, 1)",color:{colorStops:[{offset:0,color:"rgba(255, 140, 255, 1)"},{offset:1,color:"rgba(255, 140, 255, 1)"}]}},data:N.\u82B1\u751F},{type:"bar",name:"\u5C0F\u9EA6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u5C0F\u9EA6",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(25, 196, 22, 1)",color:{colorStops:[{offset:0,color:"rgba(25, 196, 22, 1)"},{offset:1,color:"rgba(25, 196, 22, 1)"}]}},data:N.\u5C0F\u9EA6},{type:"bar",name:"\u84DD\u8393",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u84DD\u8393",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:" rgba(0, 153, 255, 1)",color:{colorStops:[{offset:0,color:" rgba(0, 153, 255, 1)"},{offset:1,color:" rgba(0, 153, 255, 1)"}]}},data:N.\u84DD\u8393},{type:"bar",name:"\u7389\u7C73",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u7389\u7C73",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(255, 240, 26, 1)",color:{colorStops:[{offset:0,color:" rgba(255, 240, 26, 1)"},{offset:1,color:" rgba(255, 240, 26, 1)"}]}},data:N.\u7389\u7C73},{type:"bar",name:"\u9A6C\u94C3\u85AF",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u9A6C\u94C3\u85AF",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(253, 127, 1, 1)",color:{colorStops:[{offset:0,color:" rgba(253, 127, 1, 1)"},{offset:1,color:" rgba(253, 127, 1, 1)"}]}},data:N.\u9A6C\u94C3\u85AF},{type:"bar",name:"\u767D\u83DC\u548C\u841D\u535C",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u767D\u83DC\u548C\u841D\u535C",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(201, 255, 148, 1)",color:{colorStops:[{offset:0,color:" rgba(201, 255, 148, 1)"},{offset:1,color:" rgba(201, 255, 148, 1)"}]}},data:N.\u767D\u83DC\u548C\u841D\u535C},{type:"bar",name:"\u5176\u4ED6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u5176\u4ED6",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(166, 224, 255, 1)",color:{colorStops:[{offset:0,color:"rgba(166, 224, 255, 1)"},{offset:1,color:"rgba(166, 224, 255, 1)"}]}},data:N.\u5176\u4ED6}]};ue(r,t),Pe().listenTo(ze.value,()=>{$e(()=>{r.resize()})})}function ua(){const r=ae(he.value);let t=[],a=[],e=[],o=[],l=[],m=[],n=[],c=[],g=[],p=[],w=[];U.value.forEach(f=>{t.push(f.region),f.\u5C0F\u9EA6!==void 0&&a.push(f.\u5C0F\u9EA6),f.\u7389\u7C73!==void 0&&e.push(f.\u7389\u7C73),f.\u5927\u8C46!==void 0&&o.push(f.\u5927\u8C46),f.\u5730\u74DC!==void 0&&l.push(f.\u5730\u74DC),f.\u82B1\u751F!==void 0&&m.push(f.\u82B1\u751F),f.\u84DD\u8393!==void 0&&n.push(f.\u84DD\u8393),f.\u8336\u53F6!==void 0&&c.push(f.\u8336\u53F6),f.\u9A6C\u94C3\u85AF!==void 0&&g.push(f.\u9A6C\u94C3\u85AF),f.\u767D\u83DC\u548C\u841D\u535C!==void 0&&p.push(f.\u767D\u83DC\u548C\u841D\u535C),f.\u5176\u4ED6!==void 0&&w.push(f.\u5176\u4ED6)});let S=10/t.length*100,_={tooltip:{trigger:"axis",formatter:function(f){let B=f[0].axisValueLabel+"</br>",W=0;for(let k=0;k<f.length;k++)W+=f[k].value,f[k].seriesName!=="\u5408\u8BA1"&&(B+=f[k].seriesName+"\uFF1A"+f[k].value+"</br>");for(let k=0;k<f.length;k++)W+=Number(f[k].value),f[k].seriesName==="\u5408\u8BA1"&&(B+="\u5408\u8BA1\uFF1A"+W);return B},axisPointer:{type:"shadow"}},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"90%",start:0,end:S,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:10,left:10,icon:"rect",itemWidth:4,itemHeight:12,data:[]},grid:{left:"3%",right:"13%",bottom:"15%",top:"10%",containLabel:!0},xAxis:{type:"category",name:"\u533A\u57DF",axisLabel:{fontSize:12,interval:0,rotate:0},axisLine:{lineStyle:{}},data:t},yAxis:[{type:"value",name:"\u9762\u79EF\uFF08\u4EA9\uFF09",axisLabel:{},axisLine:{lineStyle:{}},splitLine:{lineStyle:{},show:!0}}],series:[{name:"\u5C0F\u9EA6",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(25, 196, 22, 1)"},data:a},{name:"\u7389\u7C73",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 240, 26, 1)"},data:e},{name:"\u5927\u8C46",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 184, 148, 1)"},data:o},{name:"\u5730\u74DC",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 18, 18, 1)"},data:l},{name:"\u82B1\u751F",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 140, 255, 1)"},data:m},{name:"\u84DD\u8393",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:" rgba(0, 153, 255, 1)"},data:n},{name:"\u8336\u53F6",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(0, 209, 195, 1)"},data:c},{name:"\u9A6C\u94C3\u85AF",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(253, 127, 1, 1)"},data:g},{name:"\u767D\u83DC\u548C\u841D\u535C",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(201, 255, 148, 1)"},data:p},{name:"\u5176\u4ED6",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(166, 224, 255, 1)"},data:w},{name:"\u5408\u8BA1",type:"bar",stack:"\u5206\u7C7B",label:{normal:{show:!0,position:"top",textStyle:{color:"#ffffff"},formatter:""}},data:[]}]};var x=_.series,s=_.tooltip;function d(f){let B=f[0].axisValueLabel+"</br>",W=0;for(let k=0;k<f.length;k++)if(f[k].seriesName!=="\u5408\u8BA1"){const we=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${f[k].color}"></span>`;W+=f[k].value,B+=we+f[k].seriesName+"\uFF1A"+f[k].value+"</br>"}for(let k=0;k<f.length;k++)f[k].seriesName==="\u5408\u8BA1"&&(B+="\u5408\u8BA1\uFF1A"+W);return B}s.formatter=d;function D(f){for(var B=0,W=0;W<x.length;W++)B+=x[W].data[f.dataIndex];return B}x[x.length-1].label.normal.formatter=D,ue(r,_)}return(r,t)=>{const a=q("el-tooltip"),e=q("el-option"),o=q("el-select"),l=q("el-checkbox"),m=q("el-checkbox-group"),n=q("el-collapse-item"),c=q("el-collapse"),g=q("el-button"),p=q("el-form-item"),w=q("el-form"),S=q("el-table-column"),_=q("el-table"),x=q("el-pagination");return E(),T("div",ct,[u("div",ft,[ht,u("div",mt,[u("div",gt,[u("div",pt,[bt,u("p",{onClick:t[0]||(t[0]=s=>ya())},[j(" \u4E0B\u8F7D \xA0 "),vt])]),u("div",{ref_key:"areaDiv",ref:fe,class:"areaDiv"},null,512)]),u("div",yt,[u("div",wt,[St,u("p",{onClick:t[1]||(t[1]=s=>wa())},[j(" \u4E0B\u8F7D \xA0 "),_t])]),u("div",{ref_key:"typesofDiv",ref:Ge,class:"typesofDiv"},null,512)]),u("div",xt,[u("div",null,[(E(!0),T(J,null,Y(v(Qe),(s,d)=>(E(),T("div",{key:d,class:"Crops"},[u("div",null,[kt,j(" "+ee(s.type),1)]),u("div",{style:Ie({color:s.content.color})},ee(s.content.value)+"\u4EA9 ",5),u("div",{style:Ie({color:s.content.color})},ee(s.content.percent),5)]))),128))])]),u("div",{class:"leftFoldDiv",onClick:t[2]||(t[2]=s=>Aa())},[M(a,{disabled:v(X),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:C(()=>[v(X)?$("",!0):(E(),T("img",Et))]),_:1},8,["disabled"]),M(a,{disabled:!v(X),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:C(()=>[v(X)?(E(),T("img",zt)):$("",!0)]),_:1},8,["disabled"])])]),u("div",Ct,[u("div",Wt,[u("div",Lt,[Mt,v(oe)?(E(),T("p",{key:0,onClick:t[3]||(t[3]=s=>Sa())},[j(" \u4E0B\u8F7D \xA0 "),Nt])):$("",!0)]),u("div",{ref_key:"farmlandDiv",ref:Ee,class:"farmlandDiv"},null,512),v(oe)?$("",!0):(E(),T("div",Dt,At))]),u("div",Tt,[u("div",Ot,[$t,u("p",{onClick:t[4]||(t[4]=s=>_a())},[j(" \u4E0B\u8F7D \xA0 "),It])]),v(oe)?(E(),I(o,{key:0,"popper-class":"select_city",modelValue:L.value,"onUpdate:modelValue":t[5]||(t[5]=s=>L.value=s),placeholder:"\u5168\u90E8"},{default:C(()=>[(E(!0),T(J,null,Y(v(R).arr,s=>(E(),I(e,{key:s.tomeCode,label:s.tomeName,value:s.tomeCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):$("",!0),u("div",{ref_key:"ASdivisionDiv",ref:ze,class:"ASdivision"},null,512)]),u("div",{class:"rightFoldDiv",onClick:t[6]||(t[6]=s=>Ta())},[M(a,{disabled:!v(H),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:C(()=>[v(H)?(E(),T("img",qt)):$("",!0)]),_:1},8,["disabled"]),M(a,{disabled:v(H),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:C(()=>[v(H)?$("",!0):(E(),T("img",jt))]),_:1},8,["disabled"])]),u("div",{class:"tool",onClick:t[7]||(t[7]=s=>v(Ra)())},Pt)]),M(c,{class:"legend",accordion:""},{default:C(()=>[M(n,{name:"1"},{title:C(()=>[j("\u56FE\u4F8B")]),default:C(()=>[u("div",Ft,[M(m,{modelValue:le.value,"onUpdate:modelValue":t[8]||(t[8]=s=>le.value=s),onChange:La},{default:C(()=>[(E(!0),T(J,null,Y(v(P),(s,d,D)=>(E(),I(l,{key:D,"v-model":s.disabled,disabled:s.disabled,label:d},{default:C(()=>[u("span",{style:Ie({background:s.color,border:`1px solid ${s.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),j(" "+ee(d),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),u("div",Gt,[v(Le).length>0?(E(),I(nt,{key:0,dataSource:v(Le),onDataHandle:Oa},null,8,["dataSource"])):$("",!0)]),Qt,u("div",Jt,[Yt,u("div",Xt,[(E(!0),T(J,null,Y(v(me),(s,d)=>(E(),T("p",{key:d},[Ht,u("span",Zt,ee(s.name)+"\uFF1A",1),u("span",null,ee(s.area)+"\uFF08\u4EA9\uFF09",1)]))),128))]),Ut]),Je.value?(E(),I(g,{key:0,class:"back_button",onClick:t[9]||(t[9]=s=>Ba())},{default:C(()=>[j("\u8FD4\u56DE")]),_:1})):$("",!0)]),u("div",Kt,[u("div",eo,[M(w,{inline:!0,model:v(z),class:"demo-form-inline"},{default:C(()=>[M(p,{label:"\u65F6\u95F4:"},{default:C(()=>[M(o,{"popper-class":"selectCity",modelValue:v(z).yearMonth,"onUpdate:modelValue":t[10]||(t[10]=s=>v(z).yearMonth=s),placeholder:"\u8BF7\u9009\u62E9"},{default:C(()=>[(E(!0),T(J,null,Y(v(We),(s,d)=>(E(),I(e,{key:d,label:r.Zitem,value:s},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),M(p,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:C(()=>[M(o,{"popper-class":"selectCity",modelValue:v(z).flag,"onUpdate:modelValue":t[11]||(t[11]=s=>v(z).flag=s),placeholder:"\u8BF7\u9009\u62E9"},{default:C(()=>[M(e,{label:"\u884C\u653F\u533A\u5212",value:"2"}),v(oe)?(E(),I(e,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"1"})):$("",!0)]),_:1},8,["modelValue"])]),_:1}),M(p,{label:"\u9547:"},{default:C(()=>[M(o,{modelValue:v(z).divisions,"onUpdate:modelValue":t[12]||(t[12]=s=>v(z).divisions=s),disabled:v(z).flag!="2",placeholder:v(z).flag=="2"?"\u5168\u90E8":"\u8BF7\u9009\u62E9","popper-class":"selectCity"},{default:C(()=>[(E(!0),T(J,null,Y(v(Ce),(s,d)=>(E(),I(e,{key:d,label:s.tomeName,value:s.tomeCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),M(p,null,{default:C(()=>[M(g,{type:"primary",onClick:Me},{default:C(()=>[j("\u67E5\u8BE2")]),_:1}),M(g,{plain:"",onClick:va},{default:C(()=>[j("\u91CD\u7F6E")]),_:1}),v(G)?$("",!0):(E(),I(g,{key:0,type:"primary",text:"",onClick:xa},{default:C(()=>[ao,j(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),u("div",{class:"modeDiv",onClick:Ma},[u("div",{class:fa(v(te)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),u("div",{class:fa(v(te)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),ha(u("div",to,[u("div",oo,[v(G)?$("",!0):(E(),I(_,{key:0,data:v(ge),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:C(()=>[M(S,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(E(!0),T(J,null,Y(v(se),(s,d)=>(E(),I(S,{key:d,prop:s.value,label:d==0?s.lable:s.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),v(G)?(E(),I(S,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:C(s=>[u("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:d=>He(s.row)}," \u4E0B\u8F7D ",8,ro)]),_:1})):$("",!0)]),_:1},8,["data"]))]),M(_,{data:v(Ne),"header-cell-style":{"text-align":"center"},height:"90%","highlight-current-row":"","header-row-class-name":"tabth"},{default:C(()=>[M(S,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Da}),(E(!0),T(J,null,Y(v(se),(s,d)=>(E(),I(S,{key:d,prop:s.value,label:d==0?s.lable:s.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),v(G)?(E(),I(S,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:C(s=>[u("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:d=>He(s.row)}," \u4E0B\u8F7D ",8,lo)]),_:1})):$("",!0)]),_:1},8,["data"]),u("div",no,[j(" \u5171"+ee(U.value.length)+"\u6761 ",1),M(x,{background:"",layout:"prev, pager, next",total:U.value.length,"current-page":v(Z),"page-size":v(Q),onCurrentChange:Na},null,8,["total","current-page","page-size"])])],512),[[ma,v(te)]]),ha(u("div",so,[u("div",{ref_key:"chartModeDiv",ref:he,class:"chartModeDiv"},null,512)],512),[[ma,!v(te)]])])])}}},Lo=Ja(io,[["__scopeId","data-v-cb0cf599"]]);export{Lo as default};