3 lines
58 KiB
JavaScript
3 lines
58 KiB
JavaScript
import{_ as Xa,u as Ha,r as m,D as pa,Y as fe,t as Za,C as Ka,a5 as et,N as Qe,d as N,o as k,c as P,k as d,K as $e,f as p,G as Q,H as J,m as j,l as D,j as T,w as E,Q as ee,R as ae,e as W,I as at,x as Ce,Z as tt,p as ot,q as rt}from"./index.57224d07.js";import We from"./downloads.4cdbbcc5.js";import{_ as lt}from"./qx.88a5ecd3.js";import{_ as nt,a as it}from"./zhankaiss.dd067ea4.js";import{_ as st}from"./fh.7489c25e.js";import{_ as ut}from"./dow.b4b83e88.js";import{d as Je}from"./download.60adf562.js";import"./index.b8675889.js";import"./linesGL.901ceb35.js";import{T as dt}from"./TimeLine.dbdee48d.js";import{u as ge}from"./useEcharts.c43bfe26.js";import{g as Ye,c as ct,d as Me,a as ba,e as Le,f as va,h as ft,i as gt}from"./classify.ed1bd2aa.js";import{u as Ue,w as ht}from"./xlsx.86b9426e.js";import{e as Xe}from"./element-resize-detector.ff2fdb0d.js";import"./moment.9709ab41.js";import{i as te,ar as R}from"./install.5b5161c6.js";/* empty css */import"./browser-detector.e77caf03.js";const L=he=>(ot("data-v-176a26de"),he=he(),rt(),he),mt={class:"fatherDiv"},pt={class:"centerBox"},bt=L(()=>d("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),vt={class:"rightWra"},yt={class:"tabar"},wt={class:"rightTop"},St={class:"title"},_t=L(()=>d("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),xt=L(()=>d("span",null,"\u4F5C\u7269\u5206\u7C7B\u9762\u79EF\u7EDF\u8BA1",-1)),zt=L(()=>d("img",{src:We,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),kt={class:"rightbottom"},Et={class:"title"},$t=L(()=>d("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Ct=L(()=>d("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1",-1)),Mt=L(()=>d("img",{src:We,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Lt={class:"rightTop"},Wt={class:"title"},Tt=L(()=>d("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),At=L(()=>d("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Nt=L(()=>d("img",{src:We,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),It={key:0},Bt=L(()=>d("img",{src:lt},null,-1)),Dt=[Bt],Ot={class:"rightbottom"},Pt={class:"title"},jt=L(()=>d("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Rt=L(()=>d("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),qt=L(()=>d("img",{src:We,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Vt={class:"el_select_div"},Ft=L(()=>d("img",{src:nt},null,-1)),Gt=L(()=>d("img",{src:it},null,-1)),Qt=L(()=>d("img",{src:st},null,-1)),Jt=L(()=>d("span",null,"\u8FD4\u56DE",-1)),Yt=[Qt,Jt],Ut={class:"mt-4"},Xt={class:"bottom_center"},Ht=L(()=>d("div",{id:"pop"},null,-1)),Zt={id:"popup",class:"ol-popup"},Kt=L(()=>d("div",{class:"pophead",style:{width:"100%"}},[d("div",{id:"popup-title",style:{"font-size":"20px","font-weight":"400","letter-spacing":"1px","line-height":"42px","padding-left":"20px","border-radius":"8px",margin:"20px",background:"rgba(100, 195, 164, 0.05)"}}),d("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),eo={id:"popup-content",style:{padding:"30px"}},ao={class:"label"},to=L(()=>d("div",{id:"popup-pagination"},null,-1)),oo={class:"tabulation"},ro={class:"searchDiv"},lo=L(()=>d("img",{src:ut,alt:""},null,-1)),no={class:"tableBox"},io={class:"tableBorder"},so=["onClick"],uo=["onClick"],co={class:"example-pagination-block"},fo={class:"chartMode"},go={__name:"Classify",setup(he){const He=Ha();let ya=m(null);const me=m(null),Ze=m(null),Te=m(null),pe=m(null),Ae=m(null);let O=pa({arr:[],brr:[],crr:[]}),Ne=m([]);const $=m("");$.value=window.localStorage.getItem("divisions");let ie=m("\u884C\u653F\u533A\u5212"),wa=m([]);const Ke=m(!1);let Y=m(!1),F=m(!0),U=m(1),G=m(14);const X=m([]);let se=m([]),be=m([]),oe=m(!0),H=m(null),ve=m([]),ye=m([]),ea=m([]),b=m(""),aa=m(""),Ie=m(""),we=m([]),Se=m(5),Z=m(!0),K=!(window.localStorage.getItem("divisions").length>6),ta=["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"],A={\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=m({yearMonth:"",flag:"2",divisions:""}),_e=m([]);fe(()=>ie.value,(l,o)=>{ke(),Ge()}),fe(()=>F.value,(l,o)=>{l?window.document.querySelector(".tableBox").style.height="90%":window.document.querySelector(".tableBox").style.height="83%"}),fe(()=>b.value,(l,o)=>{$.value=window.localStorage.getItem("divisions"),qe($.value,b.value.name),Ve($.value,b.value.name),K?fa($.value,b.value.name):ga($.value,b.value.name),Pa(b.value.name);let r=b.value.name,t=r&&r.replace(/-/g,"_");var e=r.match(/\d+/g),e=r.match(/\d+/g),a=e.join("");V={\u5C0F\u9EA6:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_xiaomai`,time:`T${a}xiaomai${a}nongzuowufenlei`},\u7389\u7C73:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_yumi`,time:`T${a}yumi${a}nongzuowufenlei`},\u5927\u8C46:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_dadou`,time:`T${a}dadou${a}nongzuowufenlei`},\u5730\u74DC:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_digua`,time:`T${a}digua${a}nongzuowufenlei`},\u82B1\u751F:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_huasheng`,time:`T${a}huasheng${a}nongzuowufenlei`},\u84DD\u8393:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_lanmei`,time:`T${a}lanmei${a}nongzuowufenlei`},\u8336\u53F6:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_chaye`,time:`T${a}chaye${a}nongzuowufenlei`},\u9A6C\u94C3\u85AF:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_malingshu`,time:`T${a}malingshu${a}nongzuowufenlei`},\u767D\u83DC\u548C\u841D\u535C:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_baicai_luobo`,time:`T${a}baicai_luobo${a}nongzuowufenlei`},\u5176\u4ED6:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_qitanongzuowu`,time:`T${a}qitanongzuowu${a}nongzuowufenlei`}}});const Be=()=>{if(!z.value.yearMonth){tt.error("\u8BF7\u9009\u62E9\u65F6\u95F4");return}let l=[],o=[];gt({yearMonth:z.value.yearMonth,flag:z.value.flag===""?0:z.value.flag,divisions:z.value.flag==1?"370211":z.value.divisions}).then(r=>{if(_e.value=[{region:"\u9AD8\u6807\u51C6\u519C\u7530",\u5176\u4ED6:r.data[r.data.length-1].otherSum,\u5730\u74DC:r.data[r.data.length-1].sweetPotatoSum,\u5927\u8C46:r.data[r.data.length-1].soyBeanSum,\u5C0F\u9EA6:r.data[r.data.length-1].wheatSum,\u82B1\u751F:r.data[r.data.length-1].peanutSum,\u8336\u53F6:r.data[r.data.length-1].teaSum,\u84DD\u8393:r.data[r.data.length-1].blueberrySum,\u7389\u7C73:r.data[r.data.length-1].cronSum,\u9A6C\u94C3\u85AF:r.data[r.data.length-1].potatoSum,\u767D\u83DC\u548C\u841D\u535C:r.data[r.data.length-1].turnipSum,\u5408\u8BA1:"\u5408\u8BA1"}],z.value.flag=="1")z.value.divisions="",ue.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"}],r.data.forEach(a=>{l.indexOf(a.region)==-1&&l.push(a.region)}),l.forEach(a=>{o.push(Object.create(null,{regio:{value:a}}))}),o.forEach(a=>{r.data.map(n=>{a.regio===n.region&&(a.region=n.region,a[n.name]=n.area)})}),F.value=!1;else if(z.value.flag=="2"){let a=[],n=[];Le({divisions:z.value.divisions?z.value.divisions:window.localStorage.getItem("divisions"),yearMonth:z.value.yearMonth}).then(c=>{c.data.forEach(u=>{a.indexOf(u.tomeName)==-1&&a.push(u.tomeName)}),a.forEach(u=>{n.push(Object.create(null,{regio:{value:u}}))}),n.forEach(u=>{c.data.map(v=>{u.regio===v.tomeName&&(u.region=v.tomeName,u[v.name]=v.area)})}),O.arr.forEach(u=>{if(z.value.divisions==u.tomeCode){n[0].region=u.tomeName,n[0].\u5408\u8BA1="\u5408\u8BA1";return}else u.tomeCode=="370211"&&(n[0].region="\u9EC4\u5C9B\u533A",n[0].\u5408\u8BA1="\u5408\u8BA1")}),_e.value=n}),ue.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"}],r.data.forEach(c=>{l.indexOf(c.tomeName)==-1&&l.push(c.tomeName)}),l.forEach(c=>{o.push(Object.create(null,{regio:{value:c}}))}),o.forEach(c=>{r.data.map(u=>{c.regio===u.tomeName&&(c.region=u.tomeName,c[u.name]=u.area)})}),F.value=!1}else z.value.flag==0&&(F.value=!0,o=r.data,ue=m([{lable:"\u65F6\u95F4",value:"dateTime"},{lable:"\u6570\u636E\u540D\u79F0",value:"excelName"}]));X.value=o,De.value=o.slice((U.value-1)*G.value,(U.value-1)*G.value+G.value);const t=pe.value;t.style.width=window.innerWidth-100+"px",t.style.height=window.innerHeight-100+"px";const e=te(t);window.addEventListener("resize",()=>{t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px",e.resize()}),ma()})},Sa=()=>{z.value.yearMonth=be.value[be.value.length-1],z.value.flag="2",z.value.divisions="",F.value=!0,Be()};let ue=m([{lable:"\u65F6\u95F4",value:"dateTime"},{lable:"\u6570\u636E\u540D\u79F0",value:"excelName"}]),De=m([]);const _a=l=>{Le({divisions:$.value,yearMonth:b.value.name,whetherToDownload:!0}).then(o=>{Je(o.data[o.data.length-1].downloadPath)})},xa=l=>{va({divisions:$.value,yearMonth:b.value.name,whetherToDownload:!0}).then(o=>{Je(o.data[o.data.length-1].downloadPath)})},za=l=>{Me({divisions:$.value,yearMonth:b.value.name,whetherToDownload:!1}).then(o=>{let r=[],t=[];o.data.forEach(e=>{r.indexOf(e.region)==-1&&r.push(e.region)}),r.forEach(e=>{t.push(Object.create(null,{regio:{value:e}}))}),t.forEach(e=>{o.data.map(a=>{e.regio===a.region&&(e.region=a.region,e[a.name]=a.area)})}),de(t,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},ka=l=>{if(ie.value=="\u884C\u653F\u533A\u5212"){let o="";O.arr.forEach(r=>{r.subregion==$.value&&(o=r.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":r.subregionName)}),$.value==="370211"?Ye({divisions:$.value,yearMonth:b.value.name,whetherToDownload:!1}).then(r=>{let t=[],e=[];r.data.forEach(a=>{t.indexOf(a.tomeName)==-1&&t.push(a.tomeName)}),t.forEach(a=>{e.push(Object.create(null,{regio:{value:a}}))}),e.forEach(a=>{r.data.map(n=>{a.regio===n.tomeName&&(a.region=n.tomeName,a[n.name]=n.area)})}),de(e,`${o}\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")}):ba({divisions:$.value,yearMonth:b.value.name,whetherToDownload:!1}).then(r=>{let t=[],e=[];r.data.forEach(a=>{t.indexOf(a.tomeName)==-1&&t.push(a.tomeName)}),t.forEach(a=>{e.push(Object.create(null,{regio:{value:a}}))}),e.forEach(a=>{r.data.map(n=>{a.regio===n.tomeName&&(a.region=n.tomeName,a[n.name]=n.area)})}),de(e,`${o}\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})}else ie.value=="\u9AD8\u6807\u51C6\u519C\u7530"&&Me({divisions:$.value,yearMonth:b.value.name,whetherToDownload:!1}).then(o=>{let r=[],t=[];o.data.forEach(e=>{r.indexOf(e.region)==-1&&r.push(e.region)}),r.forEach(e=>{t.push(Object.create(null,{regio:{value:e}}))}),t.forEach(e=>{o.data.map(a=>{e.regio===a.region&&(e.region=a.region,e[a.name]=a.area)})}),de(t,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},oa=l=>{Je(l.download)},Ea=()=>{let l=JSON.parse(JSON.stringify(_e.value[0]));l.region="\u5408\u8BA1",X.value.push(l),de(X.value,"\u519C\u4F5C\u7269\u79CD\u690D\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},$a=(l,o)=>l.map(t=>{const e={};for(const a in t)o[a]&&(e[o[a]]=t[a]);return e}),de=(l,o="\u7528\u6237\u5217\u8868",r="Sheet1")=>{const e=$a(l,{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)"}),a=Ue.json_to_sheet(e),n=Ue.book_new();Ue.book_append_sheet(n,a,r),ht(n,`${o}.xlsx`)};let M={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},Oe=m(0),q=m({\u5C0F\u9EA6:{color:"rgba(119, 255, 51, 1)",disabled:!1},\u7389\u7C73:{color:"rgba(97, 184, 51, 1)",disabled:!1},\u5927\u8C46:{color:"rgba(217, 254, 140, 1)",disabled:!1},\u5730\u74DC:{color:"rgba(227, 60, 100, 1)",disabled:!1},\u82B1\u751F:{color:"rgba(255, 152, 153, 1)",disabled:!1},\u84DD\u8393:{color:"rgba(50, 140, 254, 1)",disabled:!1},\u8336\u53F6:{color:"rgba(255, 204, 59, 1)",disabled:!1},\u9A6C\u94C3\u85AF:{color:"rgba(152, 255, 254, 1)",disabled:!1},\u767D\u83DC\u548C\u841D\u535C:{color:"rgba(255, 152, 153, 1)",disabled:!1},\u5176\u4ED6:{color:"rgba(176, 161, 255, 1)",disabled:!1}}),V={},re=[{name:"\u5C0F\u9EA6",value:0,itemStyle:{opacity:.8,color:"rgba(254, 181, 98, 1)"},area:""},{name:"\u7389\u7C73",value:0,itemStyle:{opacity:.8,color:"rgba(142, 212, 200, 1)"},area:""},{name:"\u82B1\u751F",area:"",value:0,itemStyle:{opacity:.8,color:"rgba(255, 156, 145, 1)"},label:{show:!0}},{name:"\u5927\u8C46",area:"",value:156,itemStyle:{opacity:.8,color:"rgba(255, 238, 112, 1)"},label:{show:!0}},{name:"\u5730\u74DC",area:"",value:156,itemStyle:{opacity:.8,color:"rgba(192, 187, 220, 1)"},label:{show:!0}},{name:"\u84DD\u8393",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(129, 179, 212, 1)"},label:{show:!0}},{name:"\u8336\u53F6",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(179, 224, 104, 1)"},label:{show:!0}},{name:"\u9A6C\u94C3\u85AF",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(253, 205, 230, 1)"},label:{show:!0}},{name:"\u767D\u83DC\u548C\u841D\u535C",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(205, 236, 198, 1)"},label:{show:!0}},{name:"\u5176\u4ED6",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(255, 218, 44, 1)"},label:{show:!0}}],xe=pa({arr:[]});var ce={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 Pe=m([]),je=m([]),ra=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName");Za(()=>{Ca()});function Ca(){qa(),Ma(),La(),Fe(),Wa();for(const o in q.value)q.value[o].disabled!==!0&&se.value.push(o);ne.value=se.value;let l=document.querySelector(".rightWra");l.style.transform="translate(101%,0)",localStorage.setItem(He.currentRoute.value.path,!0)}Ka(()=>{localStorage.getItem(He.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 g=m(null);m(null),m(null);let la=m(null),ze=m(null);function Ma(){var l=document.querySelector(".centerBox"),o=document.getElementById("cesiumContainer");g=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.XYZ({url:`${serverAPI.tiandituLayers}`,projection:serverAPI.tiandituLayers=="http://59.206.203.34/tileservice/SdRasterPubMap?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=sdimg2017&STYLE=default&TILEMATRIXSET=img2017&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=application%2Fpng"?"EPSG:4326":"EPSG:3857"}),preload:20})]}),g.on("moveend",function(t){var e=g.getView().getZoom();g.getView(),e>=13?H.setVisible(!0):H.setVisible(!1)}),g.on("singleclick",function(t){var e=t.coordinate;if(K){var a=e[0],n=e[1],c=g.getView(),u=g.getView().getZoom();c.animate({center:[a,n],duration:1e3});let v=!1;if(["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(y=>{g.getLayers().getArray().forEach((x,s)=>{if(y==x.A.name){v=!0;return}})}),v)u>=13?le(t,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u6751"):le(t,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u9547");else{let y=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,x=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian",attributeFilter:`DKMC = '${aa.value}'`},datasetNames:["2019-2022gaobiaozhunnongtian:T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A"]});new ol.supermap.FeatureService(y).getFeaturesBySQL(x,function(s){let w=new ol.format.GeoJSON().readFeatures(s.result.features),_=new ol.source.Vector;_.addFeatures(w);let S=new ol.layer.Vector({source:_}).getSource().getFeatures();for(var f=0;f<S.length;f++)S[f].getGeometry().intersectsCoordinate(e)&&le(t,"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian",`${serverAPI.geoserverUrl}/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 v=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,h=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"XJQY3702112019WGS84@huangdaoqu_bianjie",attributeFilter:`XJQYMC = '${ra}'`},datasetNames:["huangdaoqu_bianjie:XJQY3702112019WGS84"]});new ol.supermap.FeatureService(v).getFeaturesBySQL(h,function(y){let x=new ol.format.GeoJSON().readFeatures(y.result.features),s=new ol.source.Vector;s.addFeatures(x);let _=new ol.layer.Vector({source:s}).getSource().getFeatures();for(var i=0;i<_.length;i++)if(_[i].getGeometry().intersectsCoordinate(e)){var S=e[0],f=e[1],I=g.getView(),B=g.getView().getZoom();I.animate({center:[S,f],duration:1e3});let Ee=!1;["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(Ya=>{g.getLayers().getArray().forEach((Ua,mo)=>{if(Ya==Ua.A.name){Ee=!0;return}})}),Ee?B>=13?le(t,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u6751"):le(t,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u9547"):le(t,"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian",`${serverAPI.geoserverUrl}/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 r=new ResizeObserver(function(t){t.forEach(function(e){var a=e.contentRect.width,n=e.contentRect.height;o.style.width=a+"px",o.style.height=n+"px",g.updateSize()})});r.observe(l),Qa(ra)}function La(){et.get("/json/huangdao.json").then(({data:l})=>{new ol.format.GeoJSON().readFeatures(l)[0]})}function Re(l,o,r,t){let e=new ol.source.Vector;var a=new ol.layer.Vector({id:o||"zhezhao",source:e,zIndex:t||50,style:new ol.style.Style({fill:new ol.style.Fill({color:r||"rgba( 105, 105, 105, 0.9)"})})});const n=na(l),c=new ol.Feature({geometry:n});a.getSource().addFeature(c),g.addLayer(a)}function na(l){const o=[-180,-90,180,90],r=ol.geom.Polygon.fromExtent(o);return l.forEach(e=>{const a=new ol.geom.LinearRing(e[0]);r.appendLinearRing(a)}),r}const ia=()=>{H=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"CJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999}),g.addLayer(H)},sa=()=>{var l=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"XJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999});g.addLayer(l)},ua=l=>{if(!l.time)return;let o=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+`/map-ugcv5-${l.time}/rest/maps/${l.name}@${l.setOf}`,cacheEnabled:!1}),name:l.name,projection:"EPSG:4326"});g.addLayer(o)};function le(l,o,r,t){let e=[];var a=new ol.geom.Point(l.coordinate),n=new ol.supermap.QueryByGeometryParameters({queryParams:{name:o},geometry:a});let c=document.querySelector("#popup-title"),u=m(null),v=m(null);new ol.supermap.QueryService(r).queryByGeometry(n,function(h){v=g.getLayers().getArray().find(s=>s.get("id")==="zhezhao"),g.removeLayer(v);let y="";if(t=="\u9547"&&h.result.recordsets[0].features.features[0].properties.XJQYDM){let s=h.result.recordsets[0].features.features[0].properties.XJQYDM;$.value=s;let w=[];Ye({divisions:"370211",yearMonth:b.value.name}).then(_=>{_.data.forEach(i=>{i.tomeCode==s&&(y=i.tomeName,w.push(i))}),ve.value=w,x()})}else if(t=="\u6751"&&h.result.recordsets[0].features.features[0].properties.CJQYDM){let s=h.result.recordsets[0].features.features[0].properties.CJQYDM,w=[];ct({divisions:s,yearMonth:b.value.name}).then(_=>{_.data.forEach(i=>{w.push(i)}),y=_.data[0].tomeName,ve.value=w,x()})}else if(t=="\u9AD8\u6807\u51C6"&&h.result.recordsets[0].features.features[0].properties.DKMC){let s=h.result.recordsets[0].features.features[0].properties.DKMC,w=[];Me({divisions:"370211",yearMonth:b.value.name}).then(_=>{_.data.forEach(i=>{i.region==s&&w.push(i)}),y=s,ve.value=w,x("gao")})}function x(s){if(h.result.currentCount>0){h.result.recordsets[0].features&&(ze.setPosition(a.flatCoordinates),c.innerHTML=y),u=g.getLayers().getArray().find(f=>f.get("id")==="dianjigaoliang"),g.removeLayer(u);var w=new ol.format.GeoJSON().readFeatures(h.result.recordsets[0].features);e=h.result.recordsets[0].features.features[0].geometry.coordinates,Re(h.result.recordsets[0].features.features[0].geometry.coordinates,s);var _=new ol.source.Vector;_.addFeatures(w);const S=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var i=new ol.layer.Vector({id:"dianjigaoliang",source:_,zIndex:9999});i.setStyle(S),g.addLayer(i)}}}),la.addEventListener("click",function(){v=g.getLayers().getArray().find(h=>h.get("id")==="zhezhao"),g.removeLayer(v),na(e),$.value=window.localStorage.getItem("divisions"),u=g.getLayers().getArray().find(h=>h.get("id")==="dianjigaoliang"),g.removeLayer(u),u=g.getLayers().getArray().find(h=>h.get("id")==="gao"),g.removeLayer(u),ze.setPosition(void 0)})}const Wa=()=>{document.getElementById("popup"),document.getElementById("popup-content"),la=document.getElementById("popup-closer"),ze=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),g.addOverlay(ze)},ne=m(["false"]);let da=0;fe(()=>$.value,()=>{ja()});const Ta=()=>{Oe.value=0};fe(()=>ne.value,(l,o)=>{l.length>o.length&&Oe.value<1?l.filter(t=>{if(o.findIndex(a=>a===t)<0)return t}).forEach(t=>{V[t]&&ua(V[t])}):l.length<o.length&&o.filter(t=>{if(l.findIndex(a=>a===t)<0)return t}).forEach(t=>{V[t]&&(g.getLayers().getArray().indexOf(V[t].name),g.getLayers().getArray().forEach((e,a)=>{e.A.name&&e.A.name==V[t].name&&g.getLayers().removeAt(a)}))}),da++,da==1&&(ia(),sa())});function Aa(){oe.value=!oe.value;const l=pe.value;l.style.width=window.innerWidth-100+"px",l.style.height=window.innerHeight-100+"px";const o=te(l);window.addEventListener("resize",()=>{l.style.width=window.innerWidth-200+"px",l.style.height=window.innerHeight-200+"px",o.resize()}),ma()}m([]);const Na=l=>{U.value=l,De.value=X.value.slice((U.value-1)*G.value,(U.value-1)*G.value+G.value)},Ia=l=>{const o=U.value,r=G.value;return l+1+(o-1)*r};function Ba(){$.value="370211",deleteEntityByName("townLine"),ya.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Ke.value=!1}function Da(){if(Y.value=!Y.value,Y.value){let l=document.querySelector(".rightWra");l.style.transform="translate(0,0)"}else{let l=document.querySelector(".rightWra");l.style.transform="translate(101%,0)"}}const Oa=l=>{Oe.value+=1,se.value=[];let o=[];for(const r in V)g.getLayers().getArray().forEach((t,e)=>{t.A.name==V[r].name&&g.getLayers().removeAt(e)});b.value=l,Le({divisions:"370211",yearMonth:b.value.name}).then(r=>{r.data.forEach(t=>{Number(t.area)>1?q.value[t.name].disabled=!1:q.value[t.name].disabled=!0,o=q});for(const t in o.value)o.value[t].disabled!==!0&&se.value.push(t);ne.value=se.value,ne.value.forEach(t=>{ua(V[t])})})},ca=l=>{Z.value=l,l?Fe():(Ge(),ke())},fa=(l,o)=>{Ye({divisions:l,yearMonth:o}).then(r=>{M={\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.data.forEach((c,u)=>{for(let v=0;v<Object.values(c).length;v++)Object.values(c)[v]=="0.0"&&r.data.splice(u,1)}),O.brr=r.data,O.arr=r.data.sort((c,u)=>c.tomeName.length-u.tomeName.length),O.arr.unshift({tomeCode:"370211",tomeName:"\u5168\u90E8"});let t=[],e=[];O.arr.forEach(c=>{t.indexOf(c.tomeName)==-1&&(t.push(c.tomeName),e.push({tomeName:c.tomeName,tomeCode:c.tomeCode,area:c.area,type:c.type}))}),O.arr=e,Ne.value=JSON.parse(JSON.stringify(O.arr)),Ne.value[0].tomeCode="";let a=[...r.data],n=[];a.splice(0,1),a.forEach(c=>{n.indexOf(c.tomeName)==-1&&n.push(c.tomeName)}),ce.title=[...Object.values(n)],ce.title.forEach((c,u)=>{let v=r.data.map(h=>{if(c===h.tomeName)return h});Object.keys(M).forEach(h=>{v.findIndex(x=>x&&x.name===h&&Number(x.area)>0)>-1?M[h].push(10):M[h].push(null)})}),ke()})},ga=(l,o)=>{ba({divisions:l,yearMonth:o}).then(r=>{M={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},O.brr=r.data;let t=[...r.data],e=[];t.splice(0,1),t.forEach(a=>{e.indexOf(a.tomeName)==-1&&e.push(a.tomeName)}),ce.title=[...Object.values(e)],ce.title.forEach((a,n)=>{let c=r.data.map(u=>{if(a===u.tomeName)return u});Object.keys(M).forEach(u=>{c.findIndex(h=>h&&h.name===u&&Number(h.area)>0)>-1?M[u].push(1):M[u].push(null)})}),ke()})},qe=(l,o)=>{Le({divisions:l,yearMonth:o}).then(r=>{r.data.forEach(t=>{Number(t.area)<1?q.value[t.name].disabled=!0:q.value[t.name].disabled=!1}),Pe=m([]),je=m([]),r.data.forEach(t=>{Pe.value.push(t.area),je.value.push(t.name)}),Fe()})},Ve=(l,o)=>{va({divisions:l,yearMonth:o}).then(r=>{xe.arr=[];let t=[];r.data.forEach(e=>{for(let a=0;a<re.length;a++)if(e.name==re[a].name){re[a].area=e.area,re[a].value=1;for(const n in q.value)n==e.name&&Number(e.area)>0&&t.push({type:e.name,content:{value:e.area,percent:e.areaB,color:q.value[n].color}});Number(re[a].area)>0&&xe.arr.push(re[a])}wa.value=t}),Ja()})};let ha=m([]);const Pa=l=>{Me({yearMonth:l,divisions:window.localStorage.getItem("divisions")}).then(o=>{A={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},ha.value=o.data,ta.forEach((r,t)=>{let e=o.data.map(a=>{if(r===a.region)return a});Object.keys(M).forEach(a=>{e.findIndex(c=>c&&c.name===a&&Number(c.area)>0)>-1?A[a].push(70):A[a].push(null)})}),o.data.length>0&&Ge()})},ja=()=>{if($.value=="370211"){fa("370211",b.value.name),qe("370211",b.value.name),Ve("370211",b.value.name);return}else qe($.value,b.value.name),Ve($.value,b.value.name),ga($.value,b.value.name)},Ra=l=>{ye.value=we.value.slice((l-1)*Se.value,l*Se.value)},qa=()=>{ft().then(l=>{b.value={name:l.data[l.data.length-1]},be.value=l.data,z.value.yearMonth=l.data[l.data.length-1],Va(l.data[0]);let o=[];l.data.forEach(a=>{o.push({name:a})}),we.value=o,ea.value=Math.ceil(we.value.length/5),Ie=Math.ceil(o.length/5),ye.value=we.value.slice((Ie-1)*Se.value,Ie*Se.value);let r=b.value.name,t=r&&r.replace(/-/g,"_");var e=parseFloat(r);V={\u5C0F\u9EA6:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_xiaomai`,time:`T${e}xiaomai${e}nongzuowufenlei`},\u7389\u7C73:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_yumi`,time:`T${e}yumi${e}nongzuowufenlei`},\u5927\u8C46:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_dadou`,time:`T${e}dadou$${e}nongzuowufenlei`},\u5730\u74DC:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_digua`,time:`T${e}digua${e}nongzuowufenlei`},\u82B1\u751F:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_huasheng`,time:`T${e}huasheng${e}nongzuowufenlei`},\u84DD\u8393:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_lanmei`,time:`T${e}lanmei${e}nongzuowufenlei`},\u8336\u53F6:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_chaye`,time:`T${e}chaye${e}nongzuowufenlei`},\u5176\u4ED6:{setOf:`${b.value.name}-nongzuowufenlei`,name:`T${t}_qitanongzuowu`,time:`T${e}qitanongzuowu${e}nongzuowufenlei`}}})},Va=l=>{Be()};let Fa=()=>{document.querySelector(".tool").style.display="none",ia(),H.setVisible(!1),sa(),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao","zhezhao"].forEach(r=>{g.getLayers().getArray().forEach((t,e)=>{(t.A.name==r||t.A.id==r)&&g.getLayers().removeAt(e)})});var o=g.getView();o.animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11})};function Ga(l){let o="",r="",t="",e="",a="";r=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,o=l,t="T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A",e="2019-2022gaobiaozhunnongtian",a="DKMC";var n=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${t}@${e}`,attributeFilter:`${a} like '%${o}%'`},datasetNames:[`${e}:${t}`]});new ol.supermap.FeatureService(r).getFeaturesBySQL(n,function(c){if(c.result.featureCount!=0){var u=g.getLayers().getArray().find(i=>i.get("id")==="zhezhao");g.removeLayer(u);var v=g.getLayers().getArray().find(i=>i.get("id")==="gbz");g.removeLayer(v);var h=g.getLayers().getArray().find(i=>i.get("id")==="dianjigaoliang");g.removeLayer(h);var y=g.getLayers().getArray().find(i=>i.get("id")==="dianjigaoliangs");g.removeLayer(y);var x=new ol.format.GeoJSON().readFeatures(c.result.features);Re(c.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var s=new ol.source.Vector;s.addFeatures(x);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:s});w.setStyle(_),g.addLayer(w),g.getView().fit(s.getExtent())}})}function Qa(l){let o="",r="",t="",e="",a="";r=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,o=l,t="XJQY3702112019WGS84",e="huangdaoqu_bianjie",a="XJQYMC";var n=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${t}@${e}`,attributeFilter:`${a} like '%${o}%'`},datasetNames:[`${e}:${t}`]});new ol.supermap.FeatureService(r).getFeaturesBySQL(n,function(c){if(c.result.featureCount!=0){var u=g.getLayers().getArray().find(w=>w.get("id")==="zhezhao");g.removeLayer(u);var v=g.getLayers().getArray().find(w=>w.get("id")==="dianjigaoliang");g.removeLayer(v);var h=new ol.format.GeoJSON().readFeatures(c.result.features);Re(c.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var y=new ol.source.Vector;y.addFeatures(h);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:y});x.setStyle(s),g.addLayer(x),g.getView().fit(y.getExtent())}})}function Fe(){if(me.value){const o=te(me.value);let r=je.value,t=Pe.value,e=!1;t.length>14?e=!0:e=!1;var l={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"10%",right:"5%",left:"18%",bottom:"15%"},xAxis:[{type:"category",data:r,axisLine:{lineStyle:{color:"rgba(235, 238, 245, 1)"}},axisLabel:{interval:0,color:"rgba(153, 153, 153, 1)",formatter:function(n){var c="",u=2,v=n.length,h=Math.ceil(v/u);if(h>1){for(var y=0;y<h;y++){var x="",s=y*u,w=s+u;x=n.substring(s,w)+`
|
|
`,c+=x}return c}else return n}},axisTick:{show:!1}}],yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(153, 153, 153, 1)",fontSize:14},type:"value",axisLabel:{color:" rgba(153, 153, 153, 1)"},splitLine:{lineStyle:{type:"dashed",color:"rgba(235, 238, 245, 1)"},show:!0},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},dataZoom:[{show:e,zoomLock:!0,type:"slider",realtime:!0,startValue:0,endValue:14,xAxisIndex:[0],bottom:"10",left:"30",height:10,borderColor:"rgba(0,0,0,0)",textStyle:{color:"#05D5FF"}}],series:[{type:"bar",data:t,barWidth:"15",itemStyle:{normal:{color:new R(0,0,0,1,[{offset:0,color:"rgba(255, 142, 67, 1)"},{offset:.98,color:"rgba(255, 142, 67, 0.4)"}],!1),shadowColor:"rgba(255, 142, 67, 1)",shadowBlur:4,borderRadius:[5,5,0,0]}}}]};ge(o,l),Xe().listenTo(me.value,()=>{Qe(()=>{o.resize()})})}}function Ja(){const l=te(Ze.value);let o=t(xe.arr,0);l.clear(),l.setOption(o);function r(e,a,n,c,u,v){const h=(e+a)/2,y=e*Math.PI*2,x=a*Math.PI*2,s=h*Math.PI*2;e===0&&a===1&&(n=!1),u=typeof u<"u"?u:1/3;const w=n?Math.cos(s)*.1:0,_=n?Math.sin(s)*.1:0,i=c?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(S,f){return S<y?w+Math.cos(y)*(1+Math.cos(f)*u)*i:S>x?w+Math.cos(x)*(1+Math.cos(f)*u)*i:w+Math.cos(S)*(1+Math.cos(f)*u)*i},y(S,f){return S<y?_+Math.sin(y)*(1+Math.cos(f)*u)*i:S>x?_+Math.sin(x)*(1+Math.cos(f)*u)*i:_+Math.sin(S)*(1+Math.cos(f)*u)*i},z(S,f){return S<-Math.PI*.5?Math.sin(S):S>Math.PI*2.5?Math.sin(S)*v*.1:Math.sin(f)>0?1*v*.1:-1}}}function t(e,a){const n=[];let c=0,u=0,v=0;const h=[],y=typeof a<"u"?(1-a)/(1+a):1/3;for(let s=0;s<e.length;s+=1){c+=e[s].value;const w={name:typeof e[s].name>"u"?`series${s}`:e[s].name,type:"surface",parametric:!0,wireframe:{show:!1},pieData:e[s],pieStatus:{selected:!1,hovered:!1,k:y}};if(typeof e[s].itemStyle<"u"){const{itemStyle:_}=e[s];typeof e[s].itemStyle.color<"u"&&(_.color=e[s].itemStyle.color),typeof e[s].itemStyle.opacity<"u"&&(_.opacity=e[s].itemStyle.opacity),w.itemStyle=_}n.push(w)}for(let s=0;s<n.length;s+=1)v=u+n[s].pieData.value,n[s].pieData.startRatio=u/c,n[s].pieData.endRatio=v/c,n[s].parametricEquation=r(n[s].pieData.startRatio,n[s].pieData.endRatio,!1,!1,y,n[s].pieData.value===n[0].pieData.value?35:10),u=v,h.push(n[s].name);return{legend:{show:!0,bottom:30,textStyle:{color:"rgba(51, 51, 51, 1)"}},tooltip:{formatter:s=>{if(s.seriesName!=="mouseoutSeries"){let w="";return xe.arr.forEach(_=>{_.name==s.seriesName&&(w=_.area)}),`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${s.color};"></span>${s.seriesName}:${Number(w)}\u4EA9`}return""}},xAxis3D:{min:-1.5,max:1.5},yAxis3D:{min:-1.5,max:1.5},zAxis3D:{min:-1.5,max:1.5},grid3D:{show:!1,boxHeight:5,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:n}}ge(l,o)}function Ge(){const l=te(Te.value);let o=[];for(const e in A)M[e].forEach(a=>{a&&o.push(e)});let r={grid:{left:"10%",right:"0%",bottom:"0%",top:"10%",containLabel:!1},legend:{show:!0,top:"0px",itemGap:5,textStyle:{fontSize:12,color:"rgba(153, 153, 153, 1)"},itemWidth:5,itemHeight:5,data:o},tooltip:{formatter:function(e){let a=0;return ha.value.forEach(n=>{n.name==e.seriesName&&n.region==e.name&&(a=n.area)}),e.seriesName+'<span style="font-size: 14px; color: #f00;">'+a+"</span>\u4EA9"}},xAxis:{type:"value",max:500,show:!1,axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},yAxis:{type:"category",inverse:!0,offset:-160,splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1},axisLabel:{interval:0,color:"rgba(51, 51, 51, 1)",fontSize:14,verticalAlign:"bottom",lineHeight:42},data:ta},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}],series:[{name:"\u5C0F\u9EA6",type:"bar",barWidth:24,stack:"stack",data:A.\u5C0F\u9EA6,itemStyle:{normal:{barBorderRadius:0,color:new R(0,0,.9,0,[{offset:1,color:"rgba(254, 181, 98, 1)"},{offset:0,color:"rgba(254, 181, 98, 1)"}])}},label:{show:!0,position:"inside",formatter:"\u5C0F\u9EA6",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"\u5927\u8C46",type:"bar",barWidth:24,stack:"stack",data:A.\u5927\u8C46,itemStyle:{normal:{barBorderRadius:0,color:new R(0,0,.9,0,[{offset:1,color:"rgba(255, 238, 112, 1)"},{offset:0,color:"rgba(255, 238, 112, 1)"}])}},label:{show:!0,position:"inside",formatter:"\u5927\u8C46",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"\u8336\u53F6",type:"bar",barWidth:24,stack:"stack",data:A.\u8336\u53F6,itemStyle:{normal:{barBorderRadius:0,color:new R(0,0,.9,0,[{offset:1,color:"rgba(179, 224, 104, 1)"},{offset:0,color:"rgba(179, 224, 104, 1)"}])}},label:{show:!0,position:"inside",formatter:"\u8336\u53F6",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"\u82B1\u751F",type:"bar",barWidth:24,stack:"stack",data:A.\u82B1\u751F,itemStyle:{normal:{barBorderRadius:0,color:new R(0,0,.9,0,[{offset:1,color:"rgba(255, 156, 145, 1)"},{offset:0,color:"rgba(255, 156, 145, 1)"}])}},label:{show:!0,position:"inside",formatter:"\u82B1\u751F",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"\u84DD\u8393",type:"bar",barWidth:24,stack:"stack",data:A.\u84DD\u8393,itemStyle:{normal:{barBorderRadius:0,color:new R(0,0,.9,0,[{offset:1,color:"rgba(129, 179, 212, 1)"},{offset:0,color:"rgba(129, 179, 212, 1)"}])}},label:{show:!0,position:"inside",formatter:"\u84DD\u8393",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"\u5730\u74DC",type:"bar",barWidth:24,stack:"stack",data:A.\u5730\u74DC,itemStyle:{normal:{barBorderRadius:0,color:new R(0,0,.9,0,[{offset:1,color:"rgba(192, 187, 220, 1)"},{offset:0,color:"rgba(192, 187, 220, 1)"}])}},label:{show:!0,position:"inside",formatter:"\u5730\u74DC",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"\u7389\u7C73",type:"bar",barWidth:24,stack:"stack",data:A.\u7389\u7C73,itemStyle:{normal:{barBorderRadius:0,color:new R(0,0,.9,0,[{offset:1,color:"rgba(142, 212, 200, 1)"},{offset:0,color:"rgba(142, 212, 200, 1)"}])}},label:{show:!0,position:"inside",formatter:"\u7389\u7C73",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"\u9A6C\u94C3\u85AF",type:"bar",barWidth:24,stack:"stack",data:A.\u9A6C\u94C3\u85AF,itemStyle:{normal:{barBorderRadius:0,color:new R(0,0,.9,0,[{offset:1,color:"rgba(253, 205, 230, 1)"},{offset:0,color:"rgba(253, 205, 230, 1)"}])}},label:{show:!0,position:"inside",formatter:"\u9A6C\u94C3\u85AF",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"\u767D\u83DC\u548C\u841D\u535C",type:"bar",barWidth:24,stack:"stack",data:A.\u767D\u83DC\u548C\u841D\u535C,itemStyle:{normal:{barBorderRadius:0,color:new R(0,0,.9,0,[{offset:1,color:"rgba(205, 236, 198, 1)"},{offset:0,color:"rgba(205, 236, 198, 1)"}])}},label:{show:!0,position:"inside",formatter:"\u767D\u83DC\u548C\u841D\u535C",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"\u5176\u4ED6",type:"bar",barWidth:24,stack:"stack",data:A.\u5176\u4ED6,itemStyle:{normal:{barBorderRadius:0,color:new R(0,0,.9,0,[{offset:1,color:"rgba(255, 218, 44, 1)"},{offset:0,color:"rgba(255, 218, 44, 1)"}])}},label:{show:!0,position:"inside",formatter:"\u5176\u4ED6",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}}]};l.on("click",function(e){var a=window.location.host,n=/^(([-\u4E00-\u9FA5a-z0-9]{1,63})\.)+([\u4E00-\u9FA5a-z]{2,63})\.?$/;if(!n.test(a)){document.querySelector(".tool").style.display="block",aa.value=e.name;let c=["XJQY3702112019WGS84","CJQY3702112019WGS84"];Ga(e.name),c.forEach(v=>{g.getLayers().getArray().forEach((h,y)=>{h.A.name==v&&g.getLayers().removeAt(y)})}),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao"].forEach(v=>{g.getLayers().getArray().forEach((h,y)=>{(h.A.name==v||h.A.id==v)&&g.getLayers().removeAt(y)})}),H=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:`${serverAPI.geoserverUrl}/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}),g.addLayer(H)}}),r&&l.setOption(r,{notMerge:!0,grid:{bottom:20}}),ge(l,r),Xe().listenTo(Te.value,()=>{Qe(()=>{l.resize()})})}function ke(){const l=te(Ae.value);let o=[];for(const e in M)M[e].forEach(a=>{a&&o.push(e)});var r={grid:{bottom:"8%",left:"10%",right:"6%",top:"6%",containLabel:!0},legend:{show:!0,top:"10px",itemGap:5,textStyle:{fontSize:12,color:"rgba(153, 153, 153, 1)"},itemWidth:5,itemHeight:5,data:o},tooltip:{formatter:function(e){let a=0;return O.brr.forEach(n=>{n.name==e.seriesName&&n.tomeName==e.name&&(a=n.area)}),e.seriesName+'<span style="font-size: 14px; color: #f00;">'+a+"</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:"rrgba(51, 51, 51, 1)",formatter:"{value}"},data:ce.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:"rgba(119, 119, 119, 1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(179, 224, 104, 1)",color:{colorStops:[{offset:0,color:"rgba(179, 224, 104, 1)"},{offset:1,color:"rgba(179, 224, 104, 1)"}]}},data:M.\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:"rgba(119, 119, 119, 1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(192, 187, 220, 1)",color:{colorStops:[{offset:0,color:"rgba(192, 187, 220, 1)"},{offset:1,color:"rgba(192, 187, 220, 1)"}]}},data:M.\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:"rgba(119, 119, 119, 1)"}},itemStyle:{barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(255, 238, 112, 1)",color:{colorStops:[{offset:0,color:"rgba(255, 238, 112, 1)"},{offset:1,color:"rgba(255, 238, 112, 1)"}]}},data:M.\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:"rgba(119, 119, 119, 1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(255, 156, 145, 1)",color:{colorStops:[{offset:0,color:"rgba(255, 156, 145, 1)"},{offset:1,color:"rgba(255, 156, 145, 1)"}]}},data:M.\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:"rgba(119, 119, 119, 1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(254, 181, 98, 1)",color:{colorStops:[{offset:0,color:"rgba(254, 181, 98, 1)"},{offset:1,color:"rgba(254, 181, 98, 1)"}]}},data:M.\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:"rgba(119, 119, 119, 1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:" rgba(129, 179, 212, 1)",color:{colorStops:[{offset:0,color:" rgba(129, 179, 212, 1)"},{offset:1,color:" rgba(129, 179, 212, 1)"}]}},data:M.\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(142, 212, 200, 1)",color:{colorStops:[{offset:0,color:" rgba(142, 212, 200, 1)"},{offset:1,color:" rgba(142, 212, 200, 1)"}]}},data:M.\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:"rgba(119, 119, 119, 1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(253, 205, 230, 1)",color:{colorStops:[{offset:0,color:" rgba(253, 205, 230, 1)"},{offset:1,color:" rgba(253, 205, 230, 1)"}]}},data:M.\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:"rgba(119, 119, 119, 1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(205, 236, 198, 1)",color:{colorStops:[{offset:0,color:" rgba(205, 236, 198, 1)"},{offset:1,color:" rgba(205, 236, 198, 1)"}]}},data:M.\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:"rgba(119, 119, 119, 1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(255, 218, 44, 1)",color:{colorStops:[{offset:0,color:"rgba(255, 218, 44, 1)"},{offset:1,color:"rgba(255, 218, 44, 1)"}]}},data:M.\u5176\u4ED6}]};r&&l.setOption(r,{notMerge:!0,grid:{bottom:20}}),ge(l,r),Xe().listenTo(Ae.value,()=>{Qe(()=>{l.resize()})})}function ma(){const l=te(pe.value);let o=[],r=[],t=[],e=[],a=[],n=[],c=[],u=[],v=[],h=[],y=[];X.value.forEach(f=>{o.push(f.region),f.\u5C0F\u9EA6!==void 0&&r.push(f.\u5C0F\u9EA6),f.\u7389\u7C73!==void 0&&t.push(f.\u7389\u7C73),f.\u5927\u8C46!==void 0&&e.push(f.\u5927\u8C46),f.\u5730\u74DC!==void 0&&a.push(f.\u5730\u74DC),f.\u82B1\u751F!==void 0&&n.push(f.\u82B1\u751F),f.\u84DD\u8393!==void 0&&c.push(f.\u84DD\u8393),f.\u8336\u53F6!==void 0&&u.push(f.\u8336\u53F6),f.\u9A6C\u94C3\u85AF!==void 0&&v.push(f.\u9A6C\u94C3\u85AF),f.\u767D\u83DC\u548C\u841D\u535C!==void 0&&h.push(f.\u767D\u83DC\u548C\u841D\u535C),f.\u5176\u4ED6!==void 0&&y.push(f.\u5176\u4ED6)});let x=10/o.length*100,s={tooltip:{trigger:"axis",formatter:function(f){let I=f[0].axisValueLabel+"</br>",B=0;for(let C=0;C<f.length;C++)B+=f[C].value,f[C].seriesName!=="\u5408\u8BA1"&&(I+=f[C].seriesName+"\uFF1A"+f[C].value+"</br>");for(let C=0;C<f.length;C++)B+=Number(f[C].value),f[C].seriesName==="\u5408\u8BA1"&&(I+="\u5408\u8BA1\uFF1A"+B);return I},axisPointer:{type:"shadow"}},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"90%",start:0,end:x,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:o},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(34, 252, 10, 1)"},data:r},{name:"\u7389\u7C73",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 171, 87, 1)"},data:t},{name:"\u5927\u8C46",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(26, 255, 215, 1)"},data:e},{name:"\u5730\u74DC",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(140, 26, 255, 1)"},data:a},{name:"\u82B1\u751F",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 55, 255, 1)"},data:n},{name:"\u84DD\u8393",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:" rgba(23, 143, 255, 1)"},data:c},{name:"\u8336\u53F6",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 255, 26, 1)"},data:u},{name:"\u9A6C\u94C3\u85AF",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 18, 18, 1)"},data:v},{name:"\u767D\u83DC\u548C\u841D\u535C",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(229, 150, 255, 1)"},data:h},{name:"\u5176\u4ED6",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(189, 243, 255, 1)"},data:y},{name:"\u5408\u8BA1",type:"bar",stack:"\u5206\u7C7B",label:{normal:{show:!0,position:"top",textStyle:{color:"#ffffff"},formatter:""}},data:[]}]};var w=s.series,_=s.tooltip;function i(f){let I=f[0].axisValueLabel+"</br>",B=0;for(let C=0;C<f.length;C++)if(f[C].seriesName!=="\u5408\u8BA1"){const Ee=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${f[C].color}"></span>`;B+=f[C].value,I+=Ee+f[C].seriesName+"\uFF1A"+f[C].value+"</br>"}for(let C=0;C<f.length;C++)f[C].seriesName==="\u5408\u8BA1"&&(I+="\u5408\u8BA1\uFF1A"+B);return I}_.formatter=i;function S(f){for(var I=0,B=0;B<w.length;B++)I+=w[B].data[f.dataIndex];return I}w[w.length-1].label.normal.formatter=S,ge(l,s)}return(l,o)=>{const r=N("el-option"),t=N("el-select"),e=N("el-icon"),a=N("el-tooltip"),n=N("el-checkbox"),c=N("el-checkbox-group"),u=N("el-collapse-item"),v=N("el-collapse"),h=N("el-button"),y=N("el-form-item"),x=N("el-form"),s=N("el-table-column"),w=N("el-table"),_=N("el-pagination");return k(),P("div",mt,[d("div",pt,[bt,d("div",vt,[d("div",yt,[d("div",{class:$e(p(Z)?"tabarS":""),onClick:o[0]||(o[0]=i=>ca(!0))},"\u9EC4\u5C9B\u533A",2),d("div",{class:$e(p(Z)?"":"tabarS"),onClick:o[1]||(o[1]=i=>ca(!1))},"\u884C\u653F\u533A",2)]),Q(d("div",wt,[d("div",St,[_t,xt,d("p",{onClick:o[2]||(o[2]=i=>_a())},[j(" \u4E0B\u8F7D \xA0 "),zt])]),d("div",{ref_key:"areaDiv",ref:me,class:"areaDiv"},null,512)],512),[[J,p(Z)]]),Q(d("div",kt,[d("div",Et,[$t,Ct,d("p",{onClick:o[3]||(o[3]=i=>xa())},[j(" \u4E0B\u8F7D \xA0 "),Mt])]),d("div",{ref_key:"typesofDiv",ref:Ze,class:"typesofDiv"},null,512)],512),[[J,p(Z)]]),Q(d("div",Lt,[d("div",Wt,[Tt,At,p(K)?(k(),P("p",{key:0,onClick:o[4]||(o[4]=i=>za())},[j(" \u4E0B\u8F7D \xA0 "),Nt])):D("",!0)]),Q(d("div",{ref_key:"farmlandDiv",ref:Te,class:"farmlandDiv"},null,512),[[J,p(K)]]),p(K)?D("",!0):(k(),P("div",It,Dt))],512),[[J,!p(Z)]]),Q(d("div",Ot,[d("div",Pt,[jt,Rt,d("p",{onClick:o[5]||(o[5]=i=>ka())},[j(" \u4E0B\u8F7D \xA0 "),qt])]),d("div",Vt,[p(K)?(k(),T(t,{key:0,"popper-class":"select_citys",style:{width:"300px"},modelValue:$.value,"onUpdate:modelValue":o[6]||(o[6]=i=>$.value=i),placeholder:"\u5168\u90E8",disabled:p(ie)=="\u9AD8\u6807\u51C6\u519C\u7530",teleported:"\u201Cfalse\u201D"},{default:E(()=>[(k(!0),P(ee,null,ae(p(O).arr,i=>(k(),T(r,{key:i.tomeCode,label:i.tomeName,value:i.tomeCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])):D("",!0)]),Q(d("div",{ref_key:"ASdivisionDiv",ref:Ae,class:"ASdivision"},null,512),[[J,p(ie)=="\u884C\u653F\u533A\u5212"]])],512),[[J,!p(Z)]]),d("div",{class:"rightFoldDiv",onClick:o[7]||(o[7]=i=>Da())},[W(a,{disabled:!p(Y),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:E(()=>[p(Y)?(k(),T(e,{key:0},{default:E(()=>[Ft]),_:1})):D("",!0)]),_:1},8,["disabled"]),W(a,{disabled:p(Y),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:E(()=>[p(Y)?D("",!0):(k(),T(e,{key:0},{default:E(()=>[Gt]),_:1}))]),_:1},8,["disabled"])]),d("div",{class:"tool",onClick:o[8]||(o[8]=i=>p(Fa)())},Yt)]),W(v,{class:"legend",accordion:""},{default:E(()=>[W(u,{name:"1"},{title:E(()=>[j("\u56FE\u4F8B")]),default:E(()=>[d("div",Ut,[W(c,{modelValue:ne.value,"onUpdate:modelValue":o[9]||(o[9]=i=>ne.value=i),onChange:Ta},{default:E(()=>[(k(!0),P(ee,null,ae(p(q),(i,S,f)=>(k(),T(n,{key:f,"v-model":i.disabled,disabled:i.disabled,label:S},{default:E(()=>[d("span",{style:at({background:i.color,border:`1px solid ${i.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),j(" "+Ce(S),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),d("div",Xt,[p(ye).length>0?(k(),T(dt,{key:0,dataSource:p(ye),allCount:p(ea),onGetcurrentPage:Ra,onDataHandle:Oa},null,8,["dataSource","allCount"])):D("",!0)]),Ht,d("div",Zt,[Kt,d("div",eo,[(k(!0),P(ee,null,ae(p(ve),(i,S)=>(k(),P("p",{key:S},[d("div",ao,Ce(i.name)+"\uFF1A",1),d("span",null,Ce(i.area)+"\uFF08\u4EA9\uFF09",1)]))),128))]),to]),Ke.value?(k(),T(h,{key:0,class:"back_button",onClick:o[10]||(o[10]=i=>Ba())},{default:E(()=>[j("\u8FD4\u56DE")]),_:1})):D("",!0)]),d("div",oo,[d("div",ro,[W(x,{inline:!0,model:p(z),class:"demo-form-inline"},{default:E(()=>[W(y,{label:"\u65F6\u95F4:"},{default:E(()=>[W(t,{"popper-class":"selectCity",modelValue:p(z).yearMonth,"onUpdate:modelValue":o[11]||(o[11]=i=>p(z).yearMonth=i),placeholder:"\u8BF7\u9009\u62E9"},{default:E(()=>[(k(!0),P(ee,null,ae(p(be),(i,S)=>(k(),T(r,{key:S,label:l.Zitem,value:i},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),W(y,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:E(()=>[W(t,{"popper-class":"selectCity",modelValue:p(z).flag,"onUpdate:modelValue":o[12]||(o[12]=i=>p(z).flag=i),placeholder:"\u8BF7\u9009\u62E9"},{default:E(()=>[W(r,{label:"\u884C\u653F\u533A\u5212",value:"2"}),p(K)?(k(),T(r,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"1"})):D("",!0)]),_:1},8,["modelValue"])]),_:1}),W(y,{label:"\u9547:"},{default:E(()=>[W(t,{modelValue:p(z).divisions,"onUpdate:modelValue":o[13]||(o[13]=i=>p(z).divisions=i),disabled:p(z).flag!="2",placeholder:p(z).flag=="2"?"\u5168\u90E8":"\u8BF7\u9009\u62E9","popper-class":"selectCity"},{default:E(()=>[(k(!0),P(ee,null,ae(p(Ne),(i,S)=>(k(),T(r,{key:S,label:i.tomeName,value:i.tomeCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),W(y,null,{default:E(()=>[W(h,{type:"primary",onClick:Be},{default:E(()=>[j("\u67E5\u8BE2")]),_:1}),W(h,{plain:"",onClick:Sa},{default:E(()=>[j("\u91CD\u7F6E")]),_:1}),p(F)?D("",!0):(k(),T(h,{key:0,type:"primary",text:"",onClick:Ea},{default:E(()=>[lo,j(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),d("div",{class:"modeDiv",onClick:Aa},[d("div",{class:$e(p(oe)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),d("div",{class:$e(p(oe)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),Q(d("div",no,[d("div",io,[p(F)?D("",!0):(k(),T(w,{key:0,data:p(_e),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:E(()=>[W(s,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(k(!0),P(ee,null,ae(p(ue),(i,S)=>(k(),T(s,{key:S,prop:i.value,label:S==0?i.lable:i.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),p(F)?(k(),T(s,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:E(i=>[d("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:S=>oa(i.row)}," \u4E0B\u8F7D ",8,so)]),_:1})):D("",!0)]),_:1},8,["data"]))]),W(w,{data:p(De),"header-cell-style":{"text-align":"center"},height:"90%","highlight-current-row":"","header-row-class-name":"tabth"},{default:E(()=>[W(s,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Ia}),(k(!0),P(ee,null,ae(p(ue),(i,S)=>(k(),T(s,{key:S,prop:i.value,label:S==0?i.lable:i.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),p(F)?(k(),T(s,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:E(i=>[d("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:S=>oa(i.row)}," \u4E0B\u8F7D ",8,uo)]),_:1})):D("",!0)]),_:1},8,["data"]),d("div",co,[j(" \u5171"+Ce(X.value.length)+"\u6761 ",1),W(_,{background:"",layout:"prev, pager, next",total:X.value.length,"current-page":p(U),"page-size":p(G),onCurrentChange:Na},null,8,["total","current-page","page-size"])])],512),[[J,p(oe)]]),Q(d("div",fo,[d("div",{ref_key:"chartModeDiv",ref:pe,class:"chartModeDiv"},null,512)],512),[[J,!p(oe)]])])])}}},No=Xa(go,[["__scopeId","data-v-176a26de"]]);export{No as default};
|