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