Agriculture-front-end/dist/assets/Classify.44a42d1d.js
2023-07-24 18:07:54 +08:00

2 lines
56 KiB
JavaScript

import{_ as Qa,u as Ja,r as b,D as ca,x as _e,t as Ya,X as Xa,v as Ha,M as $e,d as $,o as z,c as T,k as c,m as q,P as J,Q as Y,y as ae,I as je,f as v,e as M,w as C,l as j,j as O,J as fa,G as ha,H as ga,a2 as Za,p as Ua,q as Ka}from"./index.db81687b.js";import ke from"./downloads.4cdbbcc5.js";import{_ as et}from"./crops.d314ada0.js";import{_ as ze}from"./linesGL.99030c5a.js";import{_ as at}from"./fh.5fefbcf9.js";import{_ as tt}from"./icon.d0cb5387.js";import{_ as ot}from"./dow.b3cd2c30.js";import{d as qe}from"./download.67ee05d3.js";import"./index.e2d056fa.js";import{T as rt}from"./TimeLine.5d80dd5c.js";import{u as ue}from"./useEcharts.7cdde45a.js";import{a as Re,c as lt,d as Ve,b as ma,e as xe,f as pa,h as nt,i as st}from"./classify.74645469.js";import{u as Pe,w as it}from"./xlsx.86b9426e.js";import{e as Fe}from"./element-resize-detector.d8720798.js";import"./moment.9709ab41.js";import{i as te,L as F}from"./install.49294472.js";/* empty css */const A=ce=>(Ua("data-v-3e7934a0"),ce=ce(),Ka(),ce),dt={class:"fatherDiv"},ut={class:"centerBox"},ct=A(()=>c("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),ft={class:"leftWra"},ht={class:"leftTop"},gt={class:"title"},mt=A(()=>c("span",null,"\u4F5C\u7269\u5206\u7C7B\u9762\u79EF\u7EDF\u8BA1",-1)),pt=A(()=>c("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),bt={class:"leftbottom"},vt={class:"title"},yt=A(()=>c("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1",-1)),wt=A(()=>c("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),St={class:"tableDiv"},_t=A(()=>c("img",{src:et,alt:""},null,-1)),xt={key:0,src:ze,alt:""},kt={key:0,class:"imgrotate",src:ze,alt:""},zt={class:"rightWra"},Et={class:"rightTop"},Ct={class:"title"},Wt=A(()=>c("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Lt=A(()=>c("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Mt={class:"rightbottom"},Nt={class:"title"},Dt=A(()=>c("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Bt=A(()=>c("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),At={key:0,src:ze,alt:""},Tt={key:0,class:"imgrotate",src:ze,alt:""},Ot=A(()=>c("img",{src:at},null,-1)),It=A(()=>c("span",null,"\u8FD4\u56DE",-1)),$t=[Ot,It],jt={class:"mt-4"},qt={class:"bottom_center"},Rt=A(()=>c("div",{id:"pop"},null,-1)),Vt={id:"popup",class:"ol-popup"},Pt=A(()=>c("div",{class:"pophead",style:{width:"100%"}},[c("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"}}),c("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),Ft={id:"popup-content",style:{padding:"30px"}},Gt=A(()=>c("img",{src:tt},null,-1)),Qt={class:"label"},Jt=A(()=>c("div",{id:"popup-pagination"},null,-1)),Yt={class:"tabulation"},Xt={class:"searchDiv"},Ht=A(()=>c("img",{src:ot,alt:""},null,-1)),Zt={class:"tableBox"},Ut={class:"tableBorder"},Kt=["onClick"],eo=["onClick"],ao={class:"example-pagination-block"},to={class:"chartMode"},oo={__name:"Classify",setup(ce){const Ge=Ja();let ba=b(null);const fe=b(null),Qe=b(null),Ee=b(null),he=b(null),Ce=b(null);let R=ca({arr:[],brr:[],crr:[]}),We=b([]);const L=b("");L.value=window.localStorage.getItem("divisions"),b({info:[]});let Je=b([]);const Ye=b(!1);let X=b(!1),H=b(!1),G=b(!0),Z=b(1),Q=b(14);const U=b([]);let le=b([]),Le=b([]),oe=b(!0);b("");let K=b(null),ge=b([]),Me=b([]),S=b(""),Xe=b(""),ne=!(window.localStorage.getItem("divisions").length>6),He=["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"],I={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},E=b({yearMonth:"",flag:"2",divisions:""}),me=b([]);_e(()=>G.value,(r,t)=>{r?window.document.querySelector(".tableBox").style.height="90%":window.document.querySelector(".tableBox").style.height="83%"}),_e(()=>S.value,(r,t)=>{L.value=window.localStorage.getItem("divisions"),Te(L.value,S.value.name),Oe(L.value,S.value.name),ne?la(L.value,S.value.name):na(L.value,S.value.name),Oa(S.value.name);let e=S.value.name.replace(/-/g,"_");V={\u5C0F\u9EA6:{setOf:`${S.value.name}-nongzuowufenlei`,name:`T${e}_xiaomai`},\u7389\u7C73:{setOf:`${S.value.name}-nongzuowufenlei`,name:`T${e}_yumi`},\u5927\u8C46:{setOf:`${S.value.name}-nongzuowufenlei`,name:`T${e}_dadou`},\u5730\u74DC:{setOf:`${S.value.name}-nongzuowufenlei`,name:`T${e}_digua`},\u82B1\u751F:{setOf:`${S.value.name}-nongzuowufenlei`,name:`T${e}_huasheng`},\u84DD\u8393:{setOf:`${S.value.name}-nongzuowufenlei`,name:`T${e}_lanmei`},\u8336\u53F6:{setOf:`${S.value.name}-nongzuowufenlei`,name:`T${e}_chaye`},\u5176\u4ED6:{setOf:`${S.value.name}-nongzuowufenlei`,name:`T${e}_qitanongzuowu`}}});const Ne=()=>{if(!E.value.yearMonth){Za.error("\u8BF7\u9009\u62E9\u65F6\u95F4");return}let r=[],t=[];st({yearMonth:E.value.yearMonth,flag:E.value.flag===""?0:E.value.flag,divisions:E.value.divisions}).then(a=>{if(me.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"}],E.value.flag=="1")E.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(g=>{l.regio===g.region&&(l.region=g.region,l[g.name]=g.area)})}),G.value=!1;else if(E.value.flag=="2"){let l=[],g=[];xe({divisions:E.value.divisions?E.value.divisions:window.localStorage.getItem("divisions"),yearMonth:E.value.yearMonth}).then(n=>{n.data.forEach(u=>{l.indexOf(u.tomeName)==-1&&l.push(u.tomeName)}),l.forEach(u=>{g.push(Object.create(null,{regio:{value:u}}))}),g.forEach(u=>{n.data.map(m=>{u.regio===m.tomeName&&(u.region=m.tomeName,u[m.name]=m.area)})}),R.arr.forEach(u=>{if(E.value.divisions==u.tomeCode){g[0].region=u.tomeName,g[0].\u5408\u8BA1="\u5408\u8BA1";return}else u.tomeCode=="370211"&&(g[0].region="\u9EC4\u5C9B\u533A",g[0].\u5408\u8BA1="\u5408\u8BA1")}),me.value=g}),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(u=>{n.regio===u.tomeName&&(n.region=u.tomeName,n[u.name]=u.area)})}),G.value=!1}else E.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,De.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=te(e);window.addEventListener("resize",()=>{e.style.width=window.innerWidth-200+"px",e.style.height=window.innerHeight-200+"px",o.resize()}),ua()})},va=()=>{E.yearMonth=Le.value[0],E.flag=2,E.value.divisions="",G.value=!0,Ne()};let se=b([{lable:"\u65F6\u95F4",value:"dateTime"},{lable:"\u6570\u636E\u540D\u79F0",value:"excelName"}]),De=b([]);const ya=r=>{xe({divisions:L.value,yearMonth:S.value.name,whetherToDownload:!0}).then(t=>{qe(t.data[t.data.length-1].downloadPath)})},wa=r=>{pa({divisions:L.value,yearMonth:S.value.name,whetherToDownload:!0}).then(t=>{qe(t.data[t.data.length-1].downloadPath)})},Sa=r=>{Ve({divisions:L.value,yearMonth:S.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"?Re({divisions:L.value,yearMonth:S.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(g=>{l.regio===g.tomeName&&(l.region=g.tomeName,l[g.name]=g.area)})}),pe(o,`${t}\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")}):ma({divisions:L.value,yearMonth:S.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(g=>{l.regio===g.tomeName&&(l.region=g.tomeName,l[g.name]=g.area)})}),pe(o,`${t}\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})},Ze=r=>{qe(r.download)},xa=()=>{let r=JSON.parse(JSON.stringify(me.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=Pe.json_to_sheet(o),g=Pe.book_new();Pe.book_append_sheet(g,l,a),it(g,`${t}.xlsx`)};let B={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},Ue=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={\u7389\u7C73:{setOf:"2022-10-01-nongzuowufenlei",name:"T2022_10_01_yumi"},\u5927\u8C46:{setOf:"2022-10-01-nongzuowufenlei",name:"T2022_10_01_dadou"},\u5730\u74DC:{setOf:"2022-10-01-nongzuowufenlei",name:"T2022_10_01_digua"},\u82B1\u751F:{setOf:"2022-10-01-nongzuowufenlei",name:"T2022_10_01_huasheng"},\u84DD\u8393:{setOf:"2022-10-01-nongzuowufenlei",name:"T2022_10_01_lanmei"},\u8336\u53F6:{setOf:"2022-10-01-nongzuowufenlei",name:"T2022_10_01_chaye"},\u5176\u4ED6:{setOf:"2022-10-01-nongzuowufenlei",name:"T2022_10_01_qitanongzuowu"}},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([]),Ke=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName");Ya(()=>{za()});function za(){$a(),Ea(),Ca(),ia(),da(),Ie(),Wa();for(const a in P.value)P.value[a].disabled!==!0&&le.value.push(a);ee.value=le.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(Ge.currentRoute.value.path,!0)}Xa(()=>{localStorage.getItem(Ge.currentRoute.value.path)=="false"?(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F",window.document.querySelector("#screenfull").style.display="none"):(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F",window.document.querySelector("#screenfull").style.display="block")});let h=b(null);b(null),b(null);let ea=b(null),ye=b(null);function Ea(){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(ne){var l=o[0],g=o[1],n=h.getView(),u=h.getView().getZoom();n.animate({center:[l,g],duration:1e3});let m=!1;if(["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(y=>{h.getLayers().getArray().forEach((w,_)=>{if(y==w.A.name){m=!0;return}})}),m)u>=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 y="http://36.134.44.75:8090/iserver/services/data-2019-2022gaobiaozhunnongtian/rest/data",w=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian",attributeFilter:`DKMC = '${Xe.value}'`},datasetNames:["2019-2022gaobiaozhunnongtian:T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A"]});new ol.supermap.FeatureService(y).getFeaturesBySQL(w,function(_){let x=new ol.format.GeoJSON().readFeatures(_.result.features),s=new ol.source.Vector;s.addFeatures(x);let N=new ol.layer.Vector({source:s}).getSource().getFeatures();for(var f=0;f<N.length;f++)N[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 m="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 = '${Ke}'`},datasetNames:["huangdaoqu_bianjie:XJQY3702112019WGS84"]});new ol.supermap.FeatureService(m).getFeaturesBySQL(p,function(y){let w=new ol.format.GeoJSON().readFeatures(y.result.features),_=new ol.source.Vector;_.addFeatures(w);let s=new ol.layer.Vector({source:_}).getSource().getFeatures();for(var d=0;d<s.length;d++)if(s[d].getGeometry().intersectsCoordinate(o)){var N=o[0],f=o[1],D=h.getView(),W=h.getView().getZoom();D.animate({center:[N,f],duration:1e3});let Se=!1;["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(Fa=>{h.getLayers().getArray().forEach((Ga,lo)=>{if(Fa==Ga.A.name){Se=!0;return}})}),Se?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,g=o.contentRect.height;t.style.width=l+"px",t.style.height=g+"px",h.updateSize()})});a.observe(r),Va(Ke)}function Ca(){Ha.get("/json/huangdao.json").then(({data:r})=>{const a=new ol.format.GeoJSON().readFeatures(r)[0];we(a.getGeometry().getCoordinates(),"huandao")})}function we(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 g=aa(r),n=new ol.Feature({geometry:g});l.getSource().addFeature(n),h.addLayer(l)}function aa(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 ta=()=>{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)},oa=()=>{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)},Ae=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),g=new ol.supermap.QueryByGeometryParameters({queryParams:{name:t},geometry:l});let n=document.querySelector("#popup-title"),u=b(null),m=b(null);new ol.supermap.QueryService(a).queryByGeometry(g,function(p){m=h.getLayers().getArray().find(_=>_.get("id")==="zhezhao"),h.removeLayer(m);let y="";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=[];Re({divisions:"370211",yearMonth:S.value.name}).then(s=>{s.data.forEach(d=>{d.tomeCode==_&&(y=d.tomeName,x.push(d))}),ge.value=x,w()})}else if(e=="\u6751"&&p.result.recordsets[0].features.features[0].properties.CJQYDM){let _=p.result.recordsets[0].features.features[0].properties.CJQYDM,x=[];lt({divisions:_,yearMonth:S.value.name}).then(s=>{s.data.forEach(d=>{x.push(d)}),y=s.data[0].tomeName,ge.value=x,w()})}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=[];Ve({divisions:"370211",yearMonth:S.value.name}).then(s=>{s.data.forEach(d=>{d.region==_&&x.push(d)}),y=_,ge.value=x,w("gao")})}function w(_){if(p.result.currentCount>0){p.result.recordsets[0].features&&(ye.setPosition(l.flatCoordinates),n.innerHTML=y),u=h.getLayers().getArray().find(f=>f.get("id")==="dianjigaoliang"),h.removeLayer(u);var x=new ol.format.GeoJSON().readFeatures(p.result.recordsets[0].features);o=p.result.recordsets[0].features.features[0].geometry.coordinates,we(p.result.recordsets[0].features.features[0].geometry.coordinates,_);var s=new ol.source.Vector;s.addFeatures(x);const N=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(N),h.addLayer(d)}}}),ea.addEventListener("click",function(){m=h.getLayers().getArray().find(p=>p.get("id")==="zhezhao"),h.removeLayer(m),aa(o),L.value=window.localStorage.getItem("divisions"),u=h.getLayers().getArray().find(p=>p.get("id")==="dianjigaoliang"),h.removeLayer(u),u=h.getLayers().getArray().find(p=>p.get("id")==="gao"),h.removeLayer(u),ye.setPosition(void 0)})}const Wa=()=>{document.getElementById("popup"),document.getElementById("popup-content"),ea=document.getElementById("popup-closer"),ye=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),h.addOverlay(ye)},ee=b(["false"]);let ra=0;_e(()=>L.value,()=>{Ia()}),_e(()=>ee.value,(r,t)=>{Ue.value>0&&r.length<t.length&&ee.value.forEach(a=>{Ae(V[a])}),r.length>=t.length?r.length==t.length?ee.value.forEach(a=>{Ae(V[a])}):r.filter(e=>{if(t.findIndex(l=>l===e)<0)return e}).forEach(e=>{V[e]&&Ae(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)}))}),ra++,ra==1&&(ta(),oa())});function La(){oe.value=!oe.value;const r=he.value;r.style.width=window.innerWidth-100+"px",r.style.height=window.innerHeight-100+"px";const t=te(r);window.addEventListener("resize",()=>{r.style.width=window.innerWidth-200+"px",r.style.height=window.innerHeight-200+"px",t.resize()}),ua()}b([]);const Ma=r=>{Z.value=r,De.value=U.value.slice((Z.value-1)*Q.value,(Z.value-1)*Q.value+Q.value)},Na=r=>{const t=Z.value,a=Q.value;return r+1+(t-1)*a};function Da(){L.value="370211",deleteEntityByName("townLine"),ba.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Ye.value=!1}function Ba(){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 Aa(){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 Ta=r=>{Ue.value+=1,le.value=[];let t=[];for(const a in V)h.getLayers().getArray().forEach((e,o)=>{e.A.name==V[a].name&&h.getLayers().removeAt(o)});S.value=r,xe({divisions:"370211",yearMonth:S.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&&le.value.push(e);ee.value=le.value})},la=(r,t)=>{B={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},Re({divisions:r,yearMonth:t}).then(a=>{a.data.forEach((n,u)=>{for(let m=0;m<Object.values(n).length;m++)Object.values(n)[m]=="0.0"&&a.data.splice(u,1)}),R.brr=a.data,R.arr=a.data.sort((n,u)=>n.tomeName.length-u.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,We.value=JSON.parse(JSON.stringify(R.arr)),We.value[0].tomeCode="";let l=[...a.data],g=[];l.splice(0,1),l.forEach(n=>{g.indexOf(n.tomeName)==-1&&g.push(n.tomeName)}),de.title=[...Object.values(g)],de.title.forEach((n,u)=>{let m=a.data.map(p=>{if(n===p.tomeName)return p});Object.keys(B).forEach(p=>{m.findIndex(w=>w&&w.name===p&&Number(w.area)>0)>-1?B[p].push(10):B[p].push(null)})}),Ie()})},na=(r,t)=>{B={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},ma({divisions:r,yearMonth:t}).then(a=>{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,g)=>{let n=a.data.map(u=>{if(l===u.tomeName)return u});Object.keys(B).forEach(u=>{n.findIndex(p=>p&&p.name===u&&Number(p.area)>0)>-1?B[u].push(1):B[u].push(null)})}),Ie()})},Te=(r,t)=>{xe({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)}),ia()})},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 g in P.value)g==o.name&&e.push({type:o.name,content:{value:o.area,percent:o.areaB,color:P.value[g].color}});be.arr.push(ie[l])}Je.value=e}),da()})};let sa=b([]);const Oa=r=>{Ve({yearMonth:r,divisions:window.localStorage.getItem("divisions")}).then(t=>{I={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},sa.value=t.data,He.forEach((a,e)=>{let o=t.data.map(l=>{if(a===l.region)return l});Object.keys(B).forEach(l=>{o.findIndex(n=>n&&n.name===l&&Number(n.area)>0)>-1?I[l].push(70):I[l].push(null)})}),t.data.length>0&&Pa()})},Ia=()=>{if(L.value=="370211"){la("370211",S.value.name),Te("370211",S.value.name),Oe("370211",S.value.name);return}else Te(L.value,S.value.name),Oe(L.value,S.value.name),na(L.value,S.value.name)},$a=()=>{nt().then(r=>{S.value={name:r.data[0]},Le.value=r.data,E.value.yearMonth=r.data[0],ja(r.data[0]),r.data.forEach(e=>{Me.value.push({name:e})});let a=S.value.name.replace(/-/g,"_");V={\u597D:{setOf:`${S.value.name}-zhangshi`,name:`T${a}_hao`},\u8F83\u597D:{setOf:`${S.value.name}-zhangshi`,name:`T${a}_jiaohao`},\u9002\u4E2D:{setOf:`${S.value.name}-zhangshi`,name:`T${a}_shizhong`},\u8F83\u5DEE:{setOf:`${S.value.name}-zhangshi`,name:`T${a}_jiaocha`},\u5DEE:{setOf:`${S.value.name}-zhangshi`,name:`T${a}_cha`}}})},ja=r=>{Ne()};let qa=()=>{document.querySelector(".tool").style.display="none",ta(),K.setVisible(!1),oa(),["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 Ra(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 g=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${e}@${o}`,attributeFilter:`${l} like '%${t}%'`},datasetNames:[`${o}:${e}`]});new ol.supermap.FeatureService(a).getFeaturesBySQL(g,function(n){if(n.result.featureCount!=0){var u=h.getLayers().getArray().find(d=>d.get("id")==="zhezhao");h.removeLayer(u);var m=h.getLayers().getArray().find(d=>d.get("id")==="gbz");h.removeLayer(m);var p=h.getLayers().getArray().find(d=>d.get("id")==="dianjigaoliang");h.removeLayer(p);var y=h.getLayers().getArray().find(d=>d.get("id")==="dianjigaoliangs");h.removeLayer(y);var w=new ol.format.GeoJSON().readFeatures(n.result.features);we(n.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var _=new ol.source.Vector;_.addFeatures(w);const s=new ol.style.Style({fill:new ol.style.Fill({color:"rgba(0, 255, 0, 0.1)"}),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 Va(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 g=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${e}@${o}`,attributeFilter:`${l} like '%${t}%'`},datasetNames:[`${o}:${e}`]});new ol.supermap.FeatureService(a).getFeaturesBySQL(g,function(n){if(n.result.featureCount!=0){var u=h.getLayers().getArray().find(x=>x.get("id")==="zhezhao");h.removeLayer(u);var m=h.getLayers().getArray().find(x=>x.get("id")==="dianjigaoliang");h.removeLayer(m);var p=new ol.format.GeoJSON().readFeatures(n.result.features);we(n.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var y=new ol.source.Vector;y.addFeatures(p);const _=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var w=new ol.layer.Vector({id:"dianjigaoliang",source:y});w.setStyle(_),h.addLayer(w),h.getView().fit(y.getExtent())}})}function ia(){if(fe.value){const r=te(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),Fe().listenTo(fe.value,()=>{$e(()=>{r.resize()})})}}function da(){const r=te(Qe.value);let t="",a="",e="",o=g(be.arr,0);function l(n,u,m,p,y,w){const _=(n+u)/2,x=n*Math.PI*2,s=u*Math.PI*2,d=_*Math.PI*2;n===0&&u===1&&(m=!1),y=typeof y<"u"?y:1/3;const N=m?Math.cos(d)*.1:0,f=m?Math.sin(d)*.1:0,D=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?N+Math.cos(x)*(1+Math.cos(k)*y)*D:W>s?N+Math.cos(s)*(1+Math.cos(k)*y)*D:N+Math.cos(W)*(1+Math.cos(k)*y)*D},y(W,k){return W<x?f+Math.sin(x)*(1+Math.cos(k)*y)*D:W>s?f+Math.sin(s)*(1+Math.cos(k)*y)*D:f+Math.sin(W)*(1+Math.cos(k)*y)*D},z(W,k){return W<-Math.PI*.5?Math.sin(W):W>Math.PI*2.5?Math.sin(W)*w*.1:Math.sin(k)>0?1*w*.1:-1}}}function g(n,u){const m=[];let p=0,y=0,w=0;const _=[],x=typeof u<"u"?(1-u)/(1+u):1/3;for(let d=0;d<n.length;d+=1){p+=n[d].value;const N={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),N.itemStyle=f}m.push(N)}for(let d=0;d<m.length;d+=1)w=y+m[d].pieData.value,m[d].pieData.startRatio=y/p,m[d].pieData.endRatio=w/p,m[d].parametricEquation=l(m[d].pieData.startRatio,m[d].pieData.endRatio,!1,!1,x,m[d].pieData.value===m[0].pieData.value?35:10),y=w,_.push(m[d].name);return{legend:{show:!0,bottom:0,textStyle:{color:"rgba(255,255,255,.9)"}},tooltip:{formatter:d=>{if(d.seriesName!=="mouseoutSeries"){let N="";return be.arr.forEach(f=>{f.name==d.seriesName&&(N=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(N)}\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:m}}r.on("mouseover",function(n){let u,m,p,y,w,_;e!==n.seriesIndex&&(e!==""&&(u=o.series[e].pieStatus.selected,m=!1,p=o.series[e].pieData.startRatio,y=o.series[e].pieData.endRatio,w=o.series[e].pieStatus.k,_=o.series[e].pieData.value===o.series[0].pieData.value?35:10,o.series[e].parametricEquation=l(p,y,u,m,w,_),o.series[e].pieStatus.hovered=m,e=""),n.seriesName!=="mouseoutSeries"&&(u=o.series[n.seriesIndex].pieStatus.selected,m=!0,p=o.series[n.seriesIndex].pieData.startRatio,y=o.series[n.seriesIndex].pieData.endRatio,w=o.series[n.seriesIndex].pieStatus.k,o.series[n.seriesIndex].parametricEquation=l(p,y,u,m,w,o.series[n.seriesIndex].pieData.value+5),o.series[n.seriesIndex].pieStatus.hovered=m,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 Pa(){const r=te(Ee.value);let t={grid:{left:"3%",right:"4%",bottom:"3%",top:"10%",containLabel:!0},tooltip:{formatter:function(e){let o=0;return sa.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:He},series:[{name:"\u5C0F\u9EA6",type:"bar",barWidth:12,stack:"stack",data:I.\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:I.\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:I.\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:I.\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:I.\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:I.\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:I.\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:I.\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:I.\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:I.\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",Xe.value=e.name;let o=["XJQY3702112019WGS84","CJQY3702112019WGS84"];Ra(e.name),o.forEach(g=>{h.getLayers().getArray().forEach((n,u)=>{n.A.name==g&&h.getLayers().removeAt(u)})}),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao"].forEach(g=>{h.getLayers().getArray().forEach((n,u)=>{console.log(n.A),(n.A.name==g||n.A.id==g)&&h.getLayers().removeAt(u)})}),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),Fe().listenTo(Ee.value,()=>{$e(()=>{r.resize()})})}function Ie(){const r=te(Ce.value);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:B.\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:B.\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:B.\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:B.\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:B.\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:B.\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:B.\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:B.\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:B.\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:B.\u5176\u4ED6}]};ue(r,t),Fe().listenTo(Ce.value,()=>{$e(()=>{r.resize()})})}function ua(){const r=te(he.value);let t=[],a=[],e=[],o=[],l=[],g=[],n=[],u=[],m=[],p=[],y=[];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&&g.push(f.\u82B1\u751F),f.\u84DD\u8393!==void 0&&n.push(f.\u84DD\u8393),f.\u8336\u53F6!==void 0&&u.push(f.\u8336\u53F6),f.\u9A6C\u94C3\u85AF!==void 0&&m.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&&y.push(f.\u5176\u4ED6)});let w=10/t.length*100,_={tooltip:{trigger:"axis",formatter:function(f){let D=f[0].axisValueLabel+"</br>",W=0;for(let k=0;k<f.length;k++)W+=f[k].value,f[k].seriesName!=="\u5408\u8BA1"&&(D+=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"&&(D+="\u5408\u8BA1\uFF1A"+W);return D},axisPointer:{type:"shadow"}},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"90%",start:0,end:w,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:g},{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:u},{name:"\u9A6C\u94C3\u85AF",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(253, 127, 1, 1)"},data:m},{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:y},{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 D=f[0].axisValueLabel+"</br>",W=0;for(let k=0;k<f.length;k++)if(f[k].seriesName!=="\u5408\u8BA1"){const Se=`<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,D+=Se+f[k].seriesName+"\uFF1A"+f[k].value+"</br>"}for(let k=0;k<f.length;k++)f[k].seriesName==="\u5408\u8BA1"&&(D+="\u5408\u8BA1\uFF1A"+W);return D}s.formatter=d;function N(f){for(var D=0,W=0;W<x.length;W++)D+=x[W].data[f.dataIndex];return D}x[x.length-1].label.normal.formatter=N,ue(r,_)}return(r,t)=>{const a=$("el-tooltip"),e=$("el-option"),o=$("el-select"),l=$("el-checkbox"),g=$("el-checkbox-group"),n=$("el-collapse-item"),u=$("el-collapse"),m=$("el-button"),p=$("el-form-item"),y=$("el-form"),w=$("el-table-column"),_=$("el-table"),x=$("el-pagination");return z(),T("div",dt,[c("div",ut,[ct,c("div",ft,[c("div",ht,[c("div",gt,[mt,c("p",{onClick:t[0]||(t[0]=s=>ya())},[q(" \u4E0B\u8F7D \xA0 "),pt])]),c("div",{ref_key:"areaDiv",ref:fe,class:"areaDiv"},null,512)]),c("div",bt,[c("div",vt,[yt,c("p",{onClick:t[1]||(t[1]=s=>wa())},[q(" \u4E0B\u8F7D \xA0 "),wt])]),c("div",{ref_key:"typesofDiv",ref:Qe,class:"typesofDiv"},null,512)]),c("div",St,[c("div",null,[(z(!0),T(J,null,Y(v(Je),(s,d)=>(z(),T("div",{key:d,class:"Crops"},[c("div",null,[_t,q(" "+ae(s.type),1)]),c("div",{style:je({color:s.content.color})},ae(s.content.value)+"\u4EA9 ",5),c("div",{style:je({color:s.content.color})},ae(s.content.percent),5)]))),128))])]),c("div",{class:"leftFoldDiv",onClick:t[2]||(t[2]=s=>Ba())},[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)?j("",!0):(z(),T("img",xt))]),_: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)?(z(),T("img",kt)):j("",!0)]),_:1},8,["disabled"])])]),c("div",zt,[c("div",Et,[c("div",Ct,[Wt,v(ne)?(z(),T("p",{key:0,onClick:t[3]||(t[3]=s=>Sa())},[q(" \u4E0B\u8F7D \xA0 "),Lt])):j("",!0)]),c("div",{ref_key:"farmlandDiv",ref:Ee,class:"farmlandDiv"},null,512)]),c("div",Mt,[c("div",Nt,[Dt,c("p",{onClick:t[4]||(t[4]=s=>_a())},[q(" \u4E0B\u8F7D \xA0 "),Bt])]),v(ne)?(z(),O(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(()=>[(z(!0),T(J,null,Y(v(R).arr,s=>(z(),O(e,{key:s.tomeCode,label:s.tomeName,value:s.tomeCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):j("",!0),c("div",{ref_key:"ASdivisionDiv",ref:Ce,class:"ASdivision"},null,512)]),c("div",{class:"rightFoldDiv",onClick:t[6]||(t[6]=s=>Aa())},[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)?(z(),T("img",At)):j("",!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)?j("",!0):(z(),T("img",Tt))]),_:1},8,["disabled"])]),c("div",{class:"tool",onClick:t[7]||(t[7]=s=>v(qa)())},$t)]),M(u,{class:"legend",accordion:""},{default:C(()=>[M(n,{name:"1"},{title:C(()=>[q("\u56FE\u4F8B")]),default:C(()=>[c("div",jt,[M(g,{modelValue:ee.value,"onUpdate:modelValue":t[8]||(t[8]=s=>ee.value=s),onChange:r.change},{default:C(()=>[(z(!0),T(J,null,Y(v(P),(s,d,N)=>(z(),O(l,{key:N,"v-model":s.disabled,disabled:s.disabled,label:d},{default:C(()=>[c("span",{style:je({background:s.color,border:`1px solid ${s.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),q(" "+ae(d),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),c("div",qt,[v(Me).length>0?(z(),O(rt,{key:0,dataSource:v(Me),onDataHandle:Ta},null,8,["dataSource"])):j("",!0)]),Rt,c("div",Vt,[Pt,c("div",Ft,[(z(!0),T(J,null,Y(v(ge),(s,d)=>(z(),T("p",{key:d},[Gt,c("span",Qt,ae(s.name)+"\uFF1A",1),c("span",null,ae(s.area)+"\uFF08\u4EA9\uFF09",1)]))),128))]),Jt]),Ye.value?(z(),O(m,{key:0,class:"back_button",onClick:t[9]||(t[9]=s=>Da())},{default:C(()=>[q("\u8FD4\u56DE")]),_:1})):j("",!0)]),c("div",Yt,[c("div",Xt,[M(y,{inline:!0,model:v(E),class:"demo-form-inline"},{default:C(()=>[M(p,{label:"\u65F6\u95F4:"},{default:C(()=>[M(o,{"popper-class":"selectCity",modelValue:v(E).yearMonth,"onUpdate:modelValue":t[10]||(t[10]=s=>v(E).yearMonth=s),placeholder:"\u8BF7\u9009\u62E9"},{default:C(()=>[(z(!0),T(J,null,Y(v(Le),(s,d)=>(z(),O(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(E).flag,"onUpdate:modelValue":t[11]||(t[11]=s=>v(E).flag=s),placeholder:"\u8BF7\u9009\u62E9"},{default:C(()=>[M(e,{label:"\u884C\u653F\u533A\u5212",value:"2"}),v(ne)?(z(),O(e,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"1"})):j("",!0)]),_:1},8,["modelValue"])]),_:1}),M(p,{label:"\u9547:"},{default:C(()=>[M(o,{modelValue:v(E).divisions,"onUpdate:modelValue":t[12]||(t[12]=s=>v(E).divisions=s),disabled:v(E).flag!="2",placeholder:v(E).flag=="2"?"\u5168\u90E8":"\u8BF7\u9009\u62E9","popper-class":"selectCity"},{default:C(()=>[(z(!0),T(J,null,Y(v(We),(s,d)=>(z(),O(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(m,{type:"primary",onClick:Ne},{default:C(()=>[q("\u67E5\u8BE2")]),_:1}),M(m,{plain:"",onClick:va},{default:C(()=>[q("\u91CD\u7F6E")]),_:1}),v(G)?j("",!0):(z(),O(m,{key:0,type:"primary",text:"",onClick:xa},{default:C(()=>[Ht,q(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),c("div",{class:"modeDiv",onClick:La},[c("div",{class:fa(v(oe)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),c("div",{class:fa(v(oe)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),ha(c("div",Zt,[c("div",Ut,[v(G)?j("",!0):(z(),O(_,{key:0,data:v(me),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:C(()=>[M(w,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(z(!0),T(J,null,Y(v(se),(s,d)=>(z(),O(w,{key:d,prop:s.value,label:d==0?s.lable:s.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),v(G)?(z(),O(w,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:C(s=>[c("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:d=>Ze(s.row)}," \u4E0B\u8F7D ",8,Kt)]),_:1})):j("",!0)]),_:1},8,["data"]))]),M(_,{data:v(De),"header-cell-style":{"text-align":"center"},height:"90%","highlight-current-row":"","header-row-class-name":"tabth"},{default:C(()=>[M(w,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Na}),(z(!0),T(J,null,Y(v(se),(s,d)=>(z(),O(w,{key:d,prop:s.value,label:d==0?s.lable:s.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),v(G)?(z(),O(w,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:C(s=>[c("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:d=>Ze(s.row)}," \u4E0B\u8F7D ",8,eo)]),_:1})):j("",!0)]),_:1},8,["data"]),c("div",ao,[q(" \u5171"+ae(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:Ma},null,8,["total","current-page","page-size"])])],512),[[ga,v(oe)]]),ha(c("div",to,[c("div",{ref_key:"chartModeDiv",ref:he,class:"chartModeDiv"},null,512)],512),[[ga,!v(oe)]])])])}}},ko=Qa(oo,[["__scopeId","data-v-3e7934a0"]]);export{ko as default};