Agriculture-front-end/dist/assets/Classify.11dff21f.js
2023-07-09 20:38:38 +08:00

2 lines
45 KiB
JavaScript

import{_ as Rt,a as Tt,r as m,A as tt,U as ge,V as At,W as jt,a1 as Vt,d as R,o as _,c as B,l as c,m as V,L as F,N as G,x as ee,F as Ne,f as g,e as C,w as k,g as T,k as j,G as at,C as ot,D as lt,y as qt,a2 as Pt,p as $t,q as Ft}from"./index.955aa49e.js";import ve from"./downloads.4cdbbcc5.js";import{_ as Gt}from"./crops.d314ada0.js";import{_ as ye}from"./close1.45635d81.js";import{_ as Ht,a as Jt,b as Qt,c as Yt}from"./position.a021215f.js";import{_ as Ut,a as Zt}from"./TimeLine.vue_vue_type_style_index_0_scoped_26e8a223_lang.891b9335.js";import{_ as Xt}from"./icon.d0cb5387.js";import{_ as Kt}from"./dow.2a8d74cb.js";import{d as ze}from"./download.2f5946e0.js";import"./index.6098b0aa.js";import"./linesGL.306b5757.js";import{T as ea}from"./TimeLine.c55795b7.js";import{u as ne}from"./useEcharts.586cdb9c.js";import{b as Le,d as ta,c as rt,g as aa,e as Ie,f as nt,h as st,i as oa,j as la}from"./classify.1bacd736.js";import{u as Be,w as ra}from"./xlsx.86b9426e.js";import"./moment.9709ab41.js";import{i as U,L as Z}from"./install.6cb28b74.js";const O=se=>($t("data-v-076bbc79"),se=se(),Ft(),se),na={class:"fatherDiv"},sa={class:"centerBox"},ia=O(()=>c("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),da={class:"leftWra"},ca={class:"leftTop"},ua={class:"title"},fa=O(()=>c("span",null,"\u4F5C\u7269\u5206\u7C7B\u9762\u79EF\u7EDF\u8BA1",-1)),ha=O(()=>c("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),pa={class:"leftbottom"},ma={class:"title"},ba=O(()=>c("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1",-1)),ga=O(()=>c("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),va={class:"tableDiv"},ya=O(()=>c("img",{src:Gt,alt:""},null,-1)),_a={key:0,src:ye,alt:""},wa={key:0,class:"imgrotate",src:ye,alt:""},Sa={class:"rightWra"},xa={class:"rightTop"},ka={class:"title"},Ca=O(()=>c("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Da=O(()=>c("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Wa={class:"rightbottom"},Ea={class:"title"},Ma=O(()=>c("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Na=O(()=>c("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),za={key:0,src:ye,alt:""},La={key:0,class:"imgrotate",src:ye,alt:""},Ia={class:"mt-4"},Ba={class:"bottom_center"},Oa=qt('<div class="tool" data-v-076bbc79><span data-v-076bbc79><img src="'+Ht+'" alt="" data-v-076bbc79></span><span data-v-076bbc79><img src="'+Jt+'" alt="" data-v-076bbc79></span><span data-v-076bbc79><img src="'+Qt+'" alt="" data-v-076bbc79></span><span data-v-076bbc79><img src="'+Ut+'" alt="" data-v-076bbc79></span><span data-v-076bbc79><img src="'+Zt+'" alt="" data-v-076bbc79></span><span data-v-076bbc79><img src="'+Yt+'" alt="" data-v-076bbc79></span></div><div id="pop" data-v-076bbc79></div>',2),Ra={id:"popup",class:"ol-popup"},Ta=O(()=>c("div",{class:"pophead",style:{width:"100%"}},[c("div",{id:"popup-title",style:{"font-size":"20px","font-weight":"400","letter-spacing":"1px",color:"rgba(246, 255, 255, 1)","line-height":"42px","padding-left":"45px"}}),c("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),Aa={id:"popup-content",style:{padding:"30px"}},ja=O(()=>c("img",{src:Xt},null,-1)),Va={class:"label"},qa=O(()=>c("div",{id:"popup-pagination"},null,-1)),Pa={class:"tabulation"},$a={class:"searchDiv"},Fa=O(()=>c("img",{src:Kt,alt:""},null,-1)),Ga={class:"tableBox"},Ha={class:"tableBorder"},Ja=["onClick"],Qa=["onClick"],Ya={class:"example-pagination-block"},Ua={class:"chartMode"},Za={__name:"Classify",setup(se){const Oe=Tt();let it=m(null);const _e=m(null),Re=m(null),Te=m(null),ie=m(null),Ae=m(null);let A=tt({arr:[],brr:[],crr:[]}),we=m([]);const E=m("370211");m({info:[]});let je=m([]);const Ve=m(!1);let H=m(!1),J=m(!1),q=m(!0),Q=m(1),$=m(14);const Y=m([]);let qe=m([]),Se=m([]),X=m(!0);m("");let de=m(null),xe=m([]),ce=m([]),L=m(""),Pe=["\u9AD8\u6807\u51C6\u519C\u75301.0","\u9AD8\u6807\u51C6\u519C\u75302.0","\u9AD8\u6807\u51C6\u519C\u75303.0","\u9AD8\u6807\u51C6\u519C\u75304.0","\u9AD8\u6807\u51C6\u519C\u75305.0","\u9AD8\u6807\u51C6\u519C\u75306.0","\u9AD8\u6807\u51C6\u519C\u75307.0"],P={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},S=m({yearMonth:"",flag:"2",divisions:""}),ue=m([]);ge(()=>q.value,(a,t)=>{a?window.document.querySelector(".tableBox").style.height="90%":window.document.querySelector(".tableBox").style.height="83%"}),ge(()=>L.value,(a,t)=>{console.log(L),E.value="370211",Ee(E.value,L.value.name),Me(E.value,L.value.name),Ye(E.value,L.value.name),We(E.value,L.value.name),zt(L.value.name)});const ke=()=>{if(!S.value.yearMonth){Pt.error("\u8BF7\u9009\u62E9\u65F6\u95F4");return}let a=[],t=[];la({yearMonth:S.value.yearMonth,flag:S.value.flag===""?0:S.value.flag,divisions:S.value.divisions}).then(l=>{if(ue.value=[{region:"\u9AD8\u6807\u51C6\u519C\u7530",\u5176\u4ED6:l.data[l.data.length-1].otherSum,\u5730\u74DC:l.data[l.data.length-1].sweetPotatoSum,\u5927\u8C46:l.data[l.data.length-1].soyBeanSum,\u5C0F\u9EA6:l.data[l.data.length-1].wheatSum,\u82B1\u751F:l.data[l.data.length-1].peanutSum,\u8336\u53F6:l.data[l.data.length-1].teaSum,\u84DD\u8393:l.data[l.data.length-1].blueberrySum,\u5408\u8BA1:"\u5408\u8BA1"}],S.value.flag=="1")S.value.divisions="",te.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"}],l.data.forEach(r=>{a.indexOf(r.region)==-1&&a.push(r.region)}),a.forEach(r=>{t.push(Object.create(null,{regio:{value:r}}))}),t.forEach(r=>{l.data.map(f=>{r.regio===f.region&&(r.region=f.region,r[f.name]=f.area)})}),q.value=!1;else if(S.value.flag=="2"){let r=[],f=[];Ie({divisions:S.value.divisions?S.value.divisions:"370211"}).then(n=>{n.data.forEach(p=>{r.indexOf(p.tomeName)==-1&&r.push(p.tomeName)}),r.forEach(p=>{f.push(Object.create(null,{regio:{value:p}}))}),f.forEach(p=>{n.data.map(h=>{p.regio===h.tomeName&&(p.region=h.tomeName,p[h.name]=h.area)})}),A.arr.forEach(p=>{if(S.value.divisions==p.tomeCode){f[0].region=p.tomeName,f[0].\u5408\u8BA1="\u5408\u8BA1";return}else p.tomeCode=="370211"&&(f[0].region="\u9EC4\u5C9B\u533A",f[0].\u5408\u8BA1="\u5408\u8BA1")}),ue.value=f}),te.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"}],l.data.forEach(n=>{a.indexOf(n.tomeName)==-1&&a.push(n.tomeName)}),a.forEach(n=>{t.push(Object.create(null,{regio:{value:n}}))}),t.forEach(n=>{l.data.map(p=>{n.regio===p.tomeName&&(n.region=p.tomeName,n[p.name]=p.area)})}),q.value=!1}else S.value.flag==0&&(q.value=!0,t=l.data,te=m([{lable:"\u65F6\u95F4",value:"dateTime"},{lable:"\u6570\u636E\u540D\u79F0",value:"excelName"}]));Y.value=t,Ce.value=t.slice((Q.value-1)*$.value,(Q.value-1)*$.value+$.value);const o=ie.value;o.style.width=window.innerWidth-100+"px",o.style.height=window.innerHeight-100+"px";const e=U(o);window.addEventListener("resize",()=>{o.style.width=window.innerWidth-200+"px",o.style.height=window.innerHeight-200+"px",e.resize()}),et()})},dt=()=>{S.yearMonth=Se.value[0],S.flag=2,S.value.divisions="",q.value=!0,ke()};let te=m([{lable:"\u65F6\u95F4",value:"dateTime"},{lable:"\u6570\u636E\u540D\u79F0",value:"excelName"}]),Ce=m([]);const ct=a=>{Ie({divisions:E.value,whetherToDownload:!0}).then(t=>{ze(t.data[t.data.length-1].downloadPath)})},ut=a=>{nt({divisions:E.value,whetherToDownload:!0}).then(t=>{ze(t.data[t.data.length-1].downloadPath)})},ft=a=>{st({divisions:E.value,whetherToDownload:!1}).then(t=>{let l=[],o=[];t.data.forEach(e=>{l.indexOf(e.region)==-1&&l.push(e.region)}),l.forEach(e=>{o.push(Object.create(null,{regio:{value:e}}))}),o.forEach(e=>{t.data.map(r=>{e.regio===r.region&&(e.region=r.region,e[r.name]=r.area)})}),fe(o,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},ht=a=>{let t="";A.arr.forEach(l=>{l.subregion==E.value&&(t=l.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":l.subregionName)}),E.value==="370211"?Le({divisions:E.value,whetherToDownload:!1}).then(l=>{let o=[],e=[];l.data.forEach(r=>{o.indexOf(r.tomeName)==-1&&o.push(r.tomeName)}),o.forEach(r=>{e.push(Object.create(null,{regio:{value:r}}))}),e.forEach(r=>{l.data.map(f=>{r.regio===f.tomeName&&(r.region=f.tomeName,r[f.name]=f.area)})}),fe(e,`${t}\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")}):rt({divisions:E.value,whetherToDownload:!1}).then(l=>{let o=[],e=[];l.data.forEach(r=>{o.indexOf(r.tomeName)==-1&&o.push(r.tomeName)}),o.forEach(r=>{e.push(Object.create(null,{regio:{value:r}}))}),e.forEach(r=>{l.data.map(f=>{r.regio===f.tomeName&&(r.region=f.tomeName,r[f.name]=f.area)})}),fe(e,`${t}\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})},$e=a=>{ze(a.download)},pt=()=>{let a=JSON.parse(JSON.stringify(ue.value[0]));a.region="\u5408\u8BA1",Y.value.push(a),fe(Y.value,"\u519C\u4F5C\u7269\u79CD\u690D\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},mt=(a,t)=>a.map(o=>{const e={};for(const r in o)t[r]&&(e[t[r]]=o[r]);return e}),fe=(a,t="\u7528\u6237\u5217\u8868",l="Sheet1")=>{const e=mt(a,{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)"}),r=Be.json_to_sheet(e),f=Be.book_new();Be.book_append_sheet(f,r,l),ra(f,`${t}.xlsx`)};let N={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},ae={\u5C0F\u9EA6:{color:"rgba(25, 196, 22, 1)",disabled:!1},\u7389\u7C73:{color:"rgba(255, 240, 26, 1)",disabled:!0},\u5927\u8C46:{color:"rgba(255, 184, 148, 1)",disabled:!1},\u5730\u74DC:{color:"rgba(255, 18, 18, 1)",disabled:!1},\u82B1\u751F:{color:"rgba(255, 140, 255, 1)",disabled:!1},\u84DD\u8393:{color:" rgba(0, 153, 255, 1)",disabled:!1},\u8336\u53F6:{color:"rgba(0, 209, 195, 1)",disabled:!1},\u9A6C\u94C3\u85AF:{color:"rgba(253, 127, 1, 1)",disabled:!0},\u767D\u83DC\u548C\u841D\u535C:{color:"rgba(201, 255, 148, 1)",disabled:!0},\u5176\u4ED6:{color:"rgba(166, 224, 255, 1)",disabled:!1}},oe={\u5C0F\u9EA6:{setOf:"2023-05-30-nongzuowufenlei",name:"T2023_05_30_xiaomai"},\u5927\u8C46:{setOf:"2023-05-30-nongzuowufenlei",name:"T2023_05_30_dadou"},\u5730\u74DC:{setOf:"2023-05-30-nongzuowufenlei",name:"T2023_05_30_digua"},\u82B1\u751F:{setOf:"2023-05-30-nongzuowufenlei",name:"T2023_05_30_huasheng"},\u84DD\u8393:{setOf:"2023-05-30-nongzuowufenlei",name:"T2023_05_30_lanmei"},\u8336\u53F6:{setOf:"2023-05-30-nongzuowufenlei",name:"T2023_05_30_chaye"},\u5176\u4ED6:{setOf:"2023-05-30-nongzuowufenlei",name:"T2023_05_30_qitanongzuowu"}},le=[{name:"\u5C0F\u9EA6",value:0,itemStyle:{opacity:.8,color:"rgba(25, 196, 22, 1)"},area:""},{name:"\u7389\u7C73",value:0,itemStyle:{opacity:.8,color:"rgba(255, 240, 26, 1)"},area:""},{name:"\u82B1\u751F",area:"",value:0,itemStyle:{opacity:.8,color:"rgba(255, 140, 255, 1)"},label:{show:!0}},{name:"\u5927\u8C46",area:"",value:156,itemStyle:{opacity:.8,color:"rgba(255, 184, 148, 1)"},label:{show:!0}},{name:"\u5730\u74DC",area:"",value:156,itemStyle:{opacity:.8,color:"rgba(255, 18, 18, 1)"},label:{show:!0}},{name:"\u84DD\u8393",area:"",value:56,itemStyle:{opacity:.8,color:" rgba(0, 153, 255, 1)"},label:{show:!0}},{name:"\u8336\u53F6",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(0, 209, 195, 1)"},label:{show:!0}},{name:"\u9A6C\u94C3\u85AF",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(253, 127, 1, 1)"},label:{show:!0}},{name:"\u767D\u83DC\u548C\u841D\u535C",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(201, 255, 148, 1)"},label:{show:!0}},{name:"\u5176\u4ED6",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(166, 224, 255, 1)"},label:{show:!0}}],he=tt({arr:[]});var K={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 re=m([]),De=m([]);At(()=>{bt()});function bt(){It(),Nt(),gt(),vt(),Ze(),Xe(),Ke(),be(),St();for(const l in ae)ae[l].disabled!==!0&&qe.value.push(l);me.value=qe.value;let a=document.querySelector(".leftWra");a&&(a.style.transform="translate(-107%,0)");let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)",localStorage.setItem(Oe.currentRoute.value.path,!0)}jt(()=>{localStorage.getItem(Oe.currentRoute.value.path)=="false"?(document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F",window.document.querySelector("#screenfull").style.display="none"):(document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F",window.document.querySelector("#screenfull").style.display="block")});let x=m(null);m(null),m(null);let Fe=m(null),pe=m(null);function gt(){var a=document.querySelector(".centerBox"),t=document.getElementById("cesiumContainer");x=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.Tianditu({layerType:"img",key:"1d109683f4d84198e37a38c442d68311"})})]}),x.on("moveend",function(o){var e=x.getView().getZoom();e>=13?de.setVisible(!0):de.setVisible(!1)}),x.on("singleclick",function(o){var e=o.coordinate,r=e[0],f=e[1],n=x.getView(),p=x.getView().getZoom();n.animate({center:[r,f],duration:1e3}),p>=13?Je(o,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):Je(o,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547")});var l=new ResizeObserver(function(o){o.forEach(function(e){var r=e.contentRect.width,f=e.contentRect.height;t.style.width=r+"px",t.style.height=f+"px",x.updateSize()})});l.observe(a)}function vt(){Vt.get("/json/huangdao.json").then(({data:a})=>{const l=new ol.format.GeoJSON().readFeatures(a)[0];Ge(l.getGeometry().getCoordinates())})}function Ge(a){let t=new ol.source.Vector;var l=new ol.layer.Vector({id:"zhezhao",source:t,style:new ol.style.Style({fill:new ol.style.Fill({color:"rgba( 105, 105, 105, 0.9)"})})});const o=He(a),e=new ol.Feature({geometry:o});l.getSource().addFeature(e),x.addLayer(l)}function He(a){console.log(a);const t=[-180,-90,180,90],l=ol.geom.Polygon.fromExtent(t),o=a;return console.log(o),o.forEach(e=>{const r=new ol.geom.LinearRing(e[0]);l.appendLinearRing(r)}),l}const yt=()=>{de=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"huangdaoqu_village",projection:"EPSG:4326",zIndex:9999}),x.addLayer(de)},_t=()=>{var a=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),projection:"EPSG:4326",zIndex:9999});x.addLayer(a)},wt=a=>{let t=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+`/map-${a.setOf}/rest/maps/${a.name}@${a.setOf}`,cacheEnabled:!1}),name:a.name,projection:"EPSG:4326"});x.addLayer(t)};function Je(a,t,l,o){let e=[];var r=new ol.geom.Point(a.coordinate),f=new ol.supermap.QueryByGeometryParameters({queryParams:{name:t},geometry:r});let n=document.querySelector("#popup-title"),p=m(null),h=m(null);new ol.supermap.QueryService(l).queryByGeometry(f,function(b){h=x.getLayers().getArray().find(M=>M.get("id")==="zhezhao"),x.removeLayer(h);let y="";if(o=="\u9547"&&b.result.recordsets[0].features.features[0].properties.XJQYDM){let M=b.result.recordsets[0].features.features[0].properties.XJQYDM;E.value=M,We();let D=[];Le("370211").then(s=>{s.data.forEach(d=>{d.tomeCode==M&&(y=d.tomeName,D.push(d))}),xe.value=D,w()})}else if(o=="\u6751"&&b.result.recordsets[0].features.features[0].properties.CJQYDM){let M=b.result.recordsets[0].features.features[0].properties.CJQYDM,D=[];ta({divisions:M}).then(s=>{s.data.forEach(d=>{D.push(d)}),y=s.data[0].tomeName,xe.value=D,w()})}function w(){if(b.result.currentCount>0){console.log(b.result.recordsets[0].features),b.result.recordsets[0].features&&(pe.setPosition(r.flatCoordinates),console.log(y),n.innerHTML=y),p=x.getLayers().getArray().find(I=>I.get("id")==="dianjigaoliang"),x.removeLayer(p);var M=new ol.format.GeoJSON().readFeatures(b.result.recordsets[0].features);e=b.result.recordsets[0].features.features[0].geometry.coordinates,Ge(b.result.recordsets[0].features.features[0].geometry.coordinates);var D=new ol.source.Vector;D.addFeatures(M);const d=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var s=new ol.layer.Vector({id:"dianjigaoliang",source:D,zIndex:9999});s.setStyle(d),x.addLayer(s)}}}),Fe.addEventListener("click",function(){h=x.getLayers().getArray().find(b=>b.get("id")==="zhezhao"),x.removeLayer(h),He(e),E.value="370211",p=x.getLayers().getArray().find(b=>b.get("id")==="dianjigaoliang"),x.removeLayer(p),pe.setPosition(void 0)})}const St=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Fe=document.getElementById("popup-closer"),pe=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),x.addOverlay(pe)},me=m(["false"]);let Qe=0;ge(()=>E.value,()=>{Lt()}),ge(()=>me.value,(a,t)=>{a.length>t.length?a.filter(o=>{if(t.findIndex(r=>r===o)<0)return o}).forEach(o=>{oe[o]&&wt(oe[o])}):a.length<t.length&&t.filter(o=>{if(a.findIndex(r=>r===o)<0)return o}).forEach(o=>{oe[o]&&(x.getLayers().getArray().indexOf(oe[o].name),console.log(x.getLayers().getArray()),x.getLayers().getArray().forEach((e,r)=>{e.A.name&&e.A.name==oe[o].name&&x.getLayers().removeAt(r)}))}),Qe++,Qe==1&&(yt(),_t())});function xt(){X.value=!X.value;const a=ie.value;a.style.width=window.innerWidth-100+"px",a.style.height=window.innerHeight-100+"px";const t=U(a);window.addEventListener("resize",()=>{a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px",t.resize()}),et()}m([]);const kt=a=>{Q.value=a,Ce.value=Y.value.slice((Q.value-1)*$.value,(Q.value-1)*$.value+$.value)},Ct=a=>{const t=Q.value,l=$.value;return a+1+(t-1)*l};function Dt(){E.value="370211",deleteEntityByName("townLine"),it.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Ve.value=!1}function Wt(){if(H.value=!H.value,H.value){let a=document.querySelector(".leftWra");a.style.transform="translate(0,0)"}else{let a=document.querySelector(".leftWra");a.style.transform="translate(-107%,0)"}}function Et(){if(J.value=!J.value,J.value){let a=document.querySelector(".rightWra");a.style.transform="translate(0,0)"}else{let a=document.querySelector(".rightWra");a.style.transform="translate(107%,0)"}}const Mt=a=>{L.value=a},We=(a,t)=>{console.log(t),N={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},Le({divisions:a,yearMonth:t}).then(l=>{l.data.forEach((n,p)=>{for(let h=0;h<Object.values(n).length;h++)Object.values(n)[h]=="0.0"&&l.data.splice(p,1)}),A.brr=l.data,A.arr=l.data.sort((n,p)=>n.tomeName.length-p.tomeName.length),A.arr.unshift({tomeCode:"370211",tomeName:"\u5168\u90E8"});let o=[],e=[];A.arr.forEach(n=>{o.indexOf(n.tomeName)==-1&&(o.push(n.tomeName),e.push({tomeName:n.tomeName,tomeCode:n.tomeCode,area:n.area,type:n.type}))}),A.arr=e,we.value=JSON.parse(JSON.stringify(A.arr)),we.value[0].tomeCode="";let r=[...l.data],f=[];r.splice(0,1),r.forEach(n=>{f.indexOf(n.tomeName)==-1&&f.push(n.tomeName)}),K.title=[...Object.values(f)],K.title.forEach((n,p)=>{let h=l.data.map(b=>{if(n===b.tomeName)return b});Object.keys(N).forEach(b=>{h.findIndex(w=>w&&w.name===b)>-1?N[b].push(10):N[b].push(null)})}),be()})},Ye=a=>{N={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},rt({divisions:a}).then(t=>{A.brr=t.data;let l=[...t.data],o=[];l.splice(0,1),l.forEach(e=>{o.indexOf(e.tomeName)==-1&&o.push(e.tomeName)}),K.title=[...Object.values(o)],K.title.forEach((e,r)=>{let f=t.data.map(n=>{if(e===n.tomeName)return n});Object.keys(N).forEach(n=>{f.findIndex(h=>h&&h.name===n&&Number(h.area)>0)>-1?N[n].push(1):N[n].push(null)})}),be()})},Nt=()=>{aa().then(a=>{a.features&&(A.crr=a.features,K.title.forEach((t,l)=>{let o=a.features.map(e=>{if(t===e.properties.town)return e.properties});Object.keys(N).forEach(e=>{o.findIndex(f=>f&&f.crop===e)>-1?N[e].push(1):N[e].push(null)})})),be()})},Ee=(a,t)=>{Ie({divisions:a,yearMonth:t}).then(l=>{re=m([]),De=m([]),l.data.forEach(o=>{re.value.unshift(o.area),De.value.unshift(o.name)}),Ze()})},Me=(a,t)=>{nt({divisions:a,yearMonth:t}).then(l=>{he.arr=[];let o=[];l.data.forEach(e=>{for(let r=0;r<le.length;r++)if(e.name==le[r].name){le[r].area=e.area,le[r].value=1;for(const f in ae)f==e.name&&o.push({type:e.name,content:{value:e.area,percent:e.areaB,color:ae[f].color}});he.arr.push(le[r])}je.value=o}),Xe()})};let Ue=m([]);const zt=a=>{st({yearMonth:a}).then(t=>{Ue.value=t.data,console.log(t.data),Pe.forEach((l,o)=>{let e=t.data.map(r=>{if(l===r.region)return r});Object.keys(N).forEach(r=>{e.findIndex(n=>n&&n.name===r&&Number(n.area)>0)>-1?P[r].push(70):P[r].push(null)})}),Ke()})},Lt=()=>{if(E.value=="370211"){We("370211",L.value.name),Ee("370211",L.value.name),Me("370211",L.value.name);return}else console.log(L),Ee(E.value,L.value.name),Me(E.value,L.value.name),Ye(E.value,L.value.name)},It=()=>{oa().then(a=>{L.value={name:a.data[0]},Se.value=a.data,S.value.yearMonth=a.data[0],Bt(a.data[0]),a.data.forEach(t=>{ce.value.push({name:t})}),console.log(ce.value),console.log("1111")})},Bt=a=>{ke()};function Ze(){if(_e.value){const a=U(_e.value);console.log(re);let t={textStyle:{color:"#c0c3cd",fontSize:14},toolbox:{show:!1,feature:{saveAsImage:{backgroundColor:"#031245"},restore:{}},iconStyle:{borderColor:"#c0c3cd"}},legend:{top:10,itemWidth:8,itemHeight:8,icon:"circle",left:"center",padding:0,textStyle:{color:"#c0c3cd",fontSize:14,padding:[2,0,0,0]},border:"1px solid rgba(4, 153, 153, 1)"},color:["#00D7E9","rgba(0, 215, 233, 0.9)"],grid:{containLabel:!0,left:20,right:20,bottom:10,top:40},xAxis:[{type:"category",data:De.value,axisLine:{lineStyle:{color:"#C0C4CC",width:1}},axisTick:{show:!1},axisLabel:{margin:10,color:"rgba(255, 255, 255, 0.7)",textStyle:{fontSize:14}}}],yAxis:{nameTextStyle:{color:"#c0c3cd",padding:[0,0,0,0],fontSize:14},axisLabel:{color:"#c0c3cd",fontSize:14},axisTick:{lineStyle:{color:"#668092",width:1},show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.7)",type:"dashed"}},axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.7)",width:1},show:!1},name:"\u9762\u79EF(\u4EA9)"},series:[{data:re.value,type:"bar",barMaxWidth:"auto",barWidth:30,itemStyle:{color:{x:0,y:0,x2:0,y2:1,type:"linear",colorStops:[{offset:0,color:" rgba(0, 208, 255, 0.1)"},{offset:1,color:"rgba(0, 208, 255, 0.9) "}]},borderWidth:1,borderColor:"black"},label:{show:!1,position:"top",distance:10,color:"#fff"},emphasis:{itemStyle:{shadowBlur:20,shadowColor:"rgba(0, 147, 252, 1)"}}},{data:[1,1,1,1,1],type:"pictorialBar",barMaxWidth:"20",symbol:"diamond",symbolOffset:[0,"50%"],symbolSize:[30,15],tooltip:{show:!1}},{data:re.value,type:"pictorialBar",barMaxWidth:"20",symbolPosition:"end",symbol:"diamond",symbolOffset:[0,"-50%"],symbolSize:[30,12],zlevel:2}],tooltip:{show:!0,formatter:"\u9762\u79EF:{c0}"}};ne(a,t)}}function Xe(){const a=U(Re.value);let t="",l="",o="",e=f(he.arr,0);function r(n,p,h,b,y,w){const M=(n+p)/2,D=n*Math.PI*2,s=p*Math.PI*2,d=M*Math.PI*2;n===0&&p===1&&(h=!1),y=typeof y<"u"?y:1/3;const I=h?Math.cos(d)*.1:0,u=h?Math.sin(d)*.1:0,z=b?1.05:1;return{u:{min:-Math.PI,max:Math.PI*3,step:Math.PI/32},v:{min:0,max:Math.PI*2,step:Math.PI/20},x(W,v){return W<D?I+Math.cos(D)*(1+Math.cos(v)*y)*z:W>s?I+Math.cos(s)*(1+Math.cos(v)*y)*z:I+Math.cos(W)*(1+Math.cos(v)*y)*z},y(W,v){return W<D?u+Math.sin(D)*(1+Math.cos(v)*y)*z:W>s?u+Math.sin(s)*(1+Math.cos(v)*y)*z:u+Math.sin(W)*(1+Math.cos(v)*y)*z},z(W,v){return W<-Math.PI*.5?Math.sin(W):W>Math.PI*2.5?Math.sin(W)*w*.1:Math.sin(v)>0?1*w*.1:-1}}}function f(n,p){const h=[];let b=0,y=0,w=0;const M=[],D=typeof p<"u"?(1-p)/(1+p):1/3;for(let d=0;d<n.length;d+=1){b+=n[d].value;const I={name:typeof n[d].name>"u"?`series${d}`:n[d].name,type:"surface",parametric:!0,wireframe:{show:!1},pieData:n[d],pieStatus:{selected:!1,hovered:!1,k:D}};if(typeof n[d].itemStyle<"u"){const{itemStyle:u}=n[d];typeof n[d].itemStyle.color<"u"&&(u.color=n[d].itemStyle.color),typeof n[d].itemStyle.opacity<"u"&&(u.opacity=n[d].itemStyle.opacity),I.itemStyle=u}h.push(I)}for(let d=0;d<h.length;d+=1)w=y+h[d].pieData.value,h[d].pieData.startRatio=y/b,h[d].pieData.endRatio=w/b,h[d].parametricEquation=r(h[d].pieData.startRatio,h[d].pieData.endRatio,!1,!1,D,h[d].pieData.value===h[0].pieData.value?35:10),y=w,M.push(h[d].name);return{legend:{show:!0,bottom:0,textStyle:{color:"rgba(255,255,255,.9)"}},tooltip:{formatter:d=>{if(d.seriesName!=="mouseoutSeries"){let I="";return he.arr.forEach(u=>{u.name==d.seriesName&&(I=u.area)}),`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${d.color};"></span>${d.seriesName}:${Number(I)}\u4EA9`}return""}},xAxis3D:{min:-1,max:1},yAxis3D:{min:-1,max:1},zAxis3D:{min:-1,max:1},grid3D:{show:!1,boxHeight:10,top:"-10%",viewControl:{alpha:35,beta:30,rotateSensitivity:1,zoomSensitivity:0,panSensitivity:0,autoRotate:!1,distance:300},postEffect:{enable:!0,bloom:{enable:!0,bloomIntensity:.1},SSAO:{enable:!0,quality:"medium",radius:2}}},series:h}}a.on("mouseover",function(n){let p,h,b,y,w,M;o!==n.seriesIndex&&(o!==""&&(p=e.series[o].pieStatus.selected,h=!1,b=e.series[o].pieData.startRatio,y=e.series[o].pieData.endRatio,w=e.series[o].pieStatus.k,M=e.series[o].pieData.value===e.series[0].pieData.value?35:10,e.series[o].parametricEquation=r(b,y,p,h,w,M),e.series[o].pieStatus.hovered=h,o=""),n.seriesName!=="mouseoutSeries"&&(p=e.series[n.seriesIndex].pieStatus.selected,h=!0,b=e.series[n.seriesIndex].pieData.startRatio,y=e.series[n.seriesIndex].pieData.endRatio,w=e.series[n.seriesIndex].pieStatus.k,e.series[n.seriesIndex].parametricEquation=r(b,y,p,h,w,e.series[n.seriesIndex].pieData.value+5),e.series[n.seriesIndex].pieStatus.hovered=h,o=n.seriesIndex),a.setOption(e))}),a.on("globalout",function(){if(o!==""){t=e.series[o].pieStatus.selected,l=!1;let n=e.series[o].pieStatus.k;startRatio=e.series[o].pieData.startRatio,endRatio=e.series[o].pieData.endRatio,i=e.series[o].pieData.value===e.series[0].pieData.value?35:10,e.series[o].parametricEquation=r(startRatio,endRatio,t,l,n,i),e.series[o].pieStatus.hovered=l,o=""}a.setOption(e)}),ne(a,e)}function Ke(){const a=U(Te.value);let t={grid:{left:"3%",right:"4%",bottom:"3%",top:"10%",containLabel:!0},tooltip:{formatter:function(l){let o=0;return Ue.value.forEach(e=>{e.name==l.seriesName&&e.region==l.name&&(o=e.area)}),l.seriesName+'<span style="font-size: 14px; color: #f00;">'+o+"</span>\u4EA9"}},xAxis:{type:"value",max:500,show:!1,axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},yAxis:{type:"category",inverse:!0,splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1},axisLabel:{interval:0,color:"rgba(255, 255, 255, 1)",fontSize:14},data:Pe},series:[{name:"\u5C0F\u9EA6",type:"bar",barWidth:12,stack:"stack",data:P.\u5C0F\u9EA6,itemStyle:{normal:{barBorderRadius:0,color:new Z(0,0,.9,0,[{offset:1,color:"rgba(25, 196, 22, 1)"},{offset:0,color:"rgba(25, 196, 22, 1)"}])}}},{name:"\u5927\u8C46",type:"bar",barWidth:12,stack:"stack",data:P.\u5927\u8C46,itemStyle:{normal:{barBorderRadius:0,color:new Z(0,0,.9,0,[{offset:1,color:"rgba(255, 184, 148, 1)"},{offset:0,color:"rgba(255, 184, 148, 1)"}])}}},{name:"\u8336\u53F6",type:"bar",barWidth:12,stack:"stack",data:P.\u8336\u53F6,itemStyle:{normal:{barBorderRadius:0,color:new Z(0,0,.9,0,[{offset:1,color:"rgba(0, 209, 195, 1)"},{offset:0,color:"rgba(0, 209, 195, 1)"}])}}},{name:"\u82B1\u751F",type:"bar",barWidth:12,stack:"stack",data:P.\u82B1\u751F,itemStyle:{normal:{barBorderRadius:0,color:new Z(0,0,.9,0,[{offset:1,color:"rgba(255, 140, 255, 1)"},{offset:0,color:"rgba(255, 140, 255, 1)"}])}}},{name:"\u84DD\u8393",type:"bar",barWidth:12,stack:"stack",data:P.\u84DD\u8393,itemStyle:{normal:{barBorderRadius:0,color:new Z(0,0,.9,0,[{offset:1,color:"rgba(0, 153, 255, 1)"},{offset:0,color:"rgba(0, 153, 255, 1)"}])}}},{name:"\u5730\u74DC",type:"bar",barWidth:12,stack:"stack",data:P.\u5730\u74DC,itemStyle:{normal:{barBorderRadius:0,color:new Z(0,0,.9,0,[{offset:1,color:"rgba(255, 18, 18, 1)"},{offset:0,color:"rgba(255, 18, 18, 1)"}])}}},{name:"\u5176\u4ED6",type:"bar",barWidth:12,stack:"stack",data:P.\u5176\u4ED6,itemStyle:{normal:{barBorderRadius:0,color:new Z(0,0,.9,0,[{offset:1,color:"rgba(166, 224, 255, 1)"},{offset:0,color:"rgba(166, 224, 255, 1)"}])}}}]};ne(a,t)}function be(){const a=U(Ae.value);var t={grid:{bottom:"8%",left:"10%",right:"6%",top:"6%",containLabel:!0},tooltip:{formatter:function(l){let o=0;return A.brr.forEach(e=>{e.name==l.seriesName&&e.tomeName==l.name&&(o=e.area)}),l.seriesName+'<span style="font-size: 14px; color: #f00;">'+o+"</span>\u4EA9"}},dataZoom:[{type:"slider",show:!1,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:10,startValue:0,endValue:4,handleIcon:"M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z",handleSize:"100%",handleStyle:{color:"#DBDBDB",height:"100%"},backgroundColor:"transparent",fillerColor:"#DBDBDB",textStyle:{color:"transparent"},dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:"transparent"}},borderColor:"transparent"},{type:"inside",id:"insideY",yAxisIndex:0,start:0,end:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(255, 255, 255, 1)",formatter:"{value}"},data:K.title,inverse:!0}],series:[{type:"bar",name:"\u8336\u53F6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u8336\u53F6",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(0, 209, 195, 1)",color:{colorStops:[{offset:0,color:"rgba(0, 209, 195, 1)"},{offset:1,color:"rgba(0, 209, 195, 1)"}]}},data:N.\u8336\u53F6},{type:"bar",name:"\u5730\u74DC",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u5730\u74DC",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(255, 18, 18, 1)",color:{colorStops:[{offset:0,color:"rgba(255, 18, 18, 1)"},{offset:1,color:"rgba(255, 18, 18, 1)"}]}},data:N.\u5730\u74DC},{type:"bar",name:"\u5927\u8C46",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u5927\u8C46",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(255, 184, 148, 1)",color:{colorStops:[{offset:0,color:"rgba(255, 184, 148, 1)"},{offset:1,color:"rgba(255, 184, 148, 1)"}]}},data:N.\u5927\u8C46},{type:"bar",name:"\u82B1\u751F",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u82B1\u751F",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(255, 140, 255, 1)",color:{colorStops:[{offset:0,color:"rgba(255, 140, 255, 1)"},{offset:1,color:"rgba(255, 140, 255, 1)"}]}},data:N.\u82B1\u751F},{type:"bar",name:"\u5C0F\u9EA6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u5C0F\u9EA6",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(25, 196, 22, 1)",color:{colorStops:[{offset:0,color:"rgba(25, 196, 22, 1)"},{offset:1,color:"rgba(25, 196, 22, 1)"}]}},data:N.\u5C0F\u9EA6},{type:"bar",name:"\u84DD\u8393",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u84DD\u8393",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:" rgba(0, 153, 255, 1)",color:{colorStops:[{offset:0,color:" rgba(0, 153, 255, 1)"},{offset:1,color:" rgba(0, 153, 255, 1)"}]}},data:N.\u84DD\u8393},{type:"bar",name:"\u5176\u4ED6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u5176\u4ED6",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(166, 224, 255, 1)",color:{colorStops:[{offset:0,color:"rgba(166, 224, 255, 1)"},{offset:1,color:"rgba(166, 224, 255, 1)"}]}},data:N.\u5176\u4ED6}]};ne(a,t)}function et(){const a=U(ie.value);let t=[],l=[],o=[],e=[],r=[],f=[],n=[],p=[],h=[],b=[],y=[];Y.value.forEach(u=>{t.push(u.region),u.\u5C0F\u9EA6!==void 0&&l.push(u.\u5C0F\u9EA6),u.\u7389\u7C73!==void 0&&o.push(u.\u7389\u7C73),u.\u5927\u8C46!==void 0&&e.push(u.\u5927\u8C46),u.\u5730\u74DC!==void 0&&r.push(u.\u5730\u74DC),u.\u82B1\u751F!==void 0&&f.push(u.\u82B1\u751F),u.\u84DD\u8393!==void 0&&n.push(u.\u84DD\u8393),u.\u8336\u53F6!==void 0&&p.push(u.\u8336\u53F6),u.\u9A6C\u94C3\u85AF!==void 0&&h.push(u.\u9A6C\u94C3\u85AF),u.\u767D\u83DC\u548C\u841D\u535C!==void 0&&b.push(u.\u767D\u83DC\u548C\u841D\u535C),u.\u5176\u4ED6!==void 0&&y.push(u.\u5176\u4ED6)});let w=10/t.length*100,M={tooltip:{trigger:"axis",formatter:function(u){let z=u[0].axisValueLabel+"</br>",W=0;for(let v=0;v<u.length;v++)W+=u[v].value,u[v].seriesName!=="\u5408\u8BA1"&&(z+=u[v].seriesName+"\uFF1A"+u[v].value+"</br>");for(let v=0;v<u.length;v++)W+=Number(u[v].value),u[v].seriesName==="\u5408\u8BA1"&&(z+="\u5408\u8BA1\uFF1A"+W);return z},axisPointer:{type:"shadow"}},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"90%",start:0,end:w,showDataShadow:!1,showDetail:!1,fillerColor:"rgba(64, 158, 255)",borderRadius:"50%",moveHandleSize:0,moveHandleStyle:{},left:"30%",height:12,handleSize:"80%",handleIcon:"path://M512,512m-448,0a448,448,0,1,0,896,0a448,448,0,1,0,-896,0Z",handleStyle:{borderWidth:0,color:"rgba(64, 158, 255)"}},{type:"inside"}],legend:{top:10,left:10,icon:"rect",itemWidth:4,itemHeight:12,data:[]},grid:{left:"3%",right:"13%",bottom:"15%",top:"10%",containLabel:!0},xAxis:{type:"category",name:"\u533A\u57DF",axisLabel:{fontSize:12,interval:0,rotate:0},axisLine:{lineStyle:{}},data:t},yAxis:[{type:"value",name:"\u9762\u79EF\uFF08\u4EA9\uFF09",axisLabel:{},axisLine:{lineStyle:{}},splitLine:{lineStyle:{},show:!0}}],series:[{name:"\u5C0F\u9EA6",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(25, 196, 22, 1)"},data:l},{name:"\u7389\u7C73",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 240, 26, 1)"},data:o},{name:"\u5927\u8C46",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 184, 148, 1)"},data:e},{name:"\u5730\u74DC",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 18, 18, 1)"},data:r},{name:"\u82B1\u751F",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 140, 255, 1)"},data:f},{name:"\u84DD\u8393",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:" rgba(0, 153, 255, 1)"},data:n},{name:"\u8336\u53F6",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(0, 209, 195, 1)"},data:p},{name:"\u9A6C\u94C3\u85AF",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(253, 127, 1, 1)"},data:h},{name:"\u767D\u83DC\u548C\u841D\u535C",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(201, 255, 148, 1)"},data:b},{name:"\u5176\u4ED6",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(166, 224, 255, 1)"},data:y},{name:"\u5408\u8BA1",type:"bar",stack:"\u5206\u7C7B",label:{normal:{show:!0,position:"top",textStyle:{color:"#ffffff"},formatter:""}},data:[]}]};var D=M.series,s=M.tooltip;function d(u){let z=u[0].axisValueLabel+"</br>",W=0;for(let v=0;v<u.length;v++)if(u[v].seriesName!=="\u5408\u8BA1"){const Ot=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${u[v].color}"></span>`;W+=u[v].value,z+=Ot+u[v].seriesName+"\uFF1A"+u[v].value+"</br>"}for(let v=0;v<u.length;v++)u[v].seriesName==="\u5408\u8BA1"&&(z+="\u5408\u8BA1\uFF1A"+W);return z}s.formatter=d;function I(u){for(var z=0,W=0;W<D.length;W++)z+=D[W].data[u.dataIndex];return z}D[D.length-1].label.normal.formatter=I,ne(a,M)}return(a,t)=>{const l=R("el-tooltip"),o=R("el-option"),e=R("el-select"),r=R("el-checkbox"),f=R("el-checkbox-group"),n=R("el-collapse-item"),p=R("el-collapse"),h=R("el-button"),b=R("el-form-item"),y=R("el-form"),w=R("el-table-column"),M=R("el-table"),D=R("el-pagination");return _(),B("div",na,[c("div",sa,[ia,c("div",da,[c("div",ca,[c("div",ua,[fa,c("p",{onClick:t[0]||(t[0]=s=>ct())},[V(" \u4E0B\u8F7D \xA0 "),ha])]),c("div",{ref_key:"areaDiv",ref:_e,class:"areaDiv"},null,512)]),c("div",pa,[c("div",ma,[ba,c("p",{onClick:t[1]||(t[1]=s=>ut())},[V(" \u4E0B\u8F7D \xA0 "),ga])]),c("div",{ref_key:"typesofDiv",ref:Re,class:"typesofDiv"},null,512)]),c("div",va,[c("div",null,[(_(!0),B(F,null,G(g(je),(s,d)=>(_(),B("div",{key:d,class:"Crops"},[c("div",null,[ya,V(" "+ee(s.type),1)]),c("div",{style:Ne({color:s.content.color})},ee(s.content.value)+"\u4EA9 ",5),c("div",{style:Ne({color:s.content.color})},ee(s.content.percent),5)]))),128))])]),c("div",{class:"leftFoldDiv",onClick:t[2]||(t[2]=s=>Wt())},[C(l,{disabled:g(H),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[T(' <el-icon v-if="!leftWraFlag"><ArrowRightBold /></el-icon> '),g(H)?T("v-if",!0):(_(),B("img",_a))]),_:1},8,["disabled"]),C(l,{disabled:!g(H),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[T(' <el-icon v-if="leftWraFlag"><ArrowLeftBold /></el-icon> '),g(H)?(_(),B("img",wa)):T("v-if",!0)]),_:1},8,["disabled"])])]),c("div",Sa,[c("div",xa,[c("div",ka,[Ca,c("p",{onClick:t[3]||(t[3]=s=>ft())},[V(" \u4E0B\u8F7D \xA0 "),Da])]),c("div",{ref_key:"farmlandDiv",ref:Te,class:"farmlandDiv"},null,512),T(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),c("div",Wa,[c("div",Ea,[Ma,c("p",{onClick:t[4]||(t[4]=s=>ht())},[V(" \u4E0B\u8F7D \xA0 "),Na])]),C(e,{"popper-class":"select_city",modelValue:E.value,"onUpdate:modelValue":t[5]||(t[5]=s=>E.value=s),placeholder:"\u5168\u90E8"},{default:k(()=>[(_(!0),B(F,null,G(g(A).arr,s=>(_(),j(o,{key:s.tomeCode,label:s.tomeName,value:s.tomeCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),c("div",{ref_key:"ASdivisionDiv",ref:Ae,class:"ASdivision"},null,512)]),c("div",{class:"rightFoldDiv",onClick:t[6]||(t[6]=s=>Et())},[C(l,{disabled:!g(J),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[g(J)?(_(),B("img",za)):T("v-if",!0)]),_:1},8,["disabled"]),C(l,{disabled:g(J),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[g(J)?T("v-if",!0):(_(),B("img",La))]),_:1},8,["disabled"])])]),C(p,{class:"legend",accordion:""},{default:k(()=>[C(n,{name:"1"},{title:k(()=>[V("\u56FE\u4F8B")]),default:k(()=>[c("div",Ia,[C(f,{modelValue:me.value,"onUpdate:modelValue":t[7]||(t[7]=s=>me.value=s),onChange:a.change},{default:k(()=>[(_(!0),B(F,null,G(g(ae),(s,d,I)=>(_(),j(r,{key:I,style:Ne({background:s.color,border:`1px solid ${s.color}`,width:"100%"}),"v-model":s.disabled,disabled:s.disabled,label:d},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),c("div",Ba,[g(ce).length>0?(_(),j(ea,{key:0,dataSource:g(ce),onDataHandle:Mt},null,8,["dataSource"])):T("v-if",!0)]),Oa,c("div",Ra,[Ta,c("div",Aa,[(_(!0),B(F,null,G(g(xe),(s,d)=>(_(),B("p",{key:d},[ja,c("span",Va,ee(s.name)+"\uFF1A",1),c("span",null,ee(s.area)+"\uFF08\u4EA9\uFF09",1)]))),128))]),qa]),Ve.value?(_(),j(h,{key:0,class:"back_button",onClick:t[8]||(t[8]=s=>Dt())},{default:k(()=>[V("\u8FD4\u56DE")]),_:1})):T("v-if",!0)]),c("div",Pa,[c("div",$a,[C(y,{inline:!0,model:g(S),class:"demo-form-inline"},{default:k(()=>[C(b,{label:"\u65F6\u95F4:"},{default:k(()=>[C(e,{"popper-class":"selectCity",modelValue:g(S).yearMonth,"onUpdate:modelValue":t[9]||(t[9]=s=>g(S).yearMonth=s),placeholder:"\u8BF7\u9009\u62E9"},{default:k(()=>[(_(!0),B(F,null,G(g(Se),(s,d)=>(_(),j(o,{key:d,label:a.Zitem,value:s},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),C(b,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:k(()=>[C(e,{"popper-class":"selectCity",modelValue:g(S).flag,"onUpdate:modelValue":t[10]||(t[10]=s=>g(S).flag=s),placeholder:"\u8BF7\u9009\u62E9"},{default:k(()=>[C(o,{label:"\u884C\u653F\u533A\u5212",value:"2"}),C(o,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"1"})]),_:1},8,["modelValue"])]),_:1}),C(b,{label:"\u9547:"},{default:k(()=>[C(e,{modelValue:g(S).divisions,"onUpdate:modelValue":t[11]||(t[11]=s=>g(S).divisions=s),disabled:g(S).flag!="2",placeholder:g(S).flag=="2"?"\u5168\u90E8":"\u8BF7\u9009\u62E9","popper-class":"selectCity"},{default:k(()=>[(_(!0),B(F,null,G(g(we),(s,d)=>(_(),j(o,{key:d,label:s.tomeName,value:s.tomeCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),C(b,null,{default:k(()=>[C(h,{type:"primary",onClick:ke},{default:k(()=>[V("\u67E5\u8BE2")]),_:1}),C(h,{plain:"",onClick:dt},{default:k(()=>[V("\u91CD\u7F6E")]),_:1}),g(q)?T("v-if",!0):(_(),j(h,{key:0,type:"primary",text:"",onClick:pt},{default:k(()=>[Fa,V(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),c("div",{class:"modeDiv",onClick:xt},[c("div",{class:at(g(X)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),c("div",{class:at(g(X)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),ot(c("div",Ga,[c("div",Ha,[g(q)?T("v-if",!0):(_(),j(M,{key:0,data:g(ue),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:k(()=>[C(w,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(_(!0),B(F,null,G(g(te),(s,d)=>(_(),j(w,{key:d,prop:s.value,label:d==0?s.lable:s.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),g(q)?(_(),j(w,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:k(s=>[c("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:d=>$e(s.row)}," \u4E0B\u8F7D ",8,Ja)]),_:1})):T("v-if",!0)]),_:1},8,["data"]))]),C(M,{data:g(Ce),"header-cell-style":{"text-align":"center"},height:"90%","highlight-current-row":"","header-row-class-name":"tabth"},{default:k(()=>[C(w,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Ct}),(_(!0),B(F,null,G(g(te),(s,d)=>(_(),j(w,{key:d,prop:s.value,label:d==0?s.lable:s.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),g(q)?(_(),j(w,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:k(s=>[c("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:d=>$e(s.row)}," \u4E0B\u8F7D ",8,Qa)]),_:1})):T("v-if",!0)]),_:1},8,["data"]),c("div",Ya,[V(" \u5171"+ee(Y.value.length)+"\u6761 ",1),C(D,{background:"",layout:"prev, pager, next",total:Y.value.length,"current-page":g(Q),"page-size":g($),onCurrentChange:kt},null,8,["total","current-page","page-size"])])],512),[[lt,g(X)]]),ot(c("div",Ua,[c("div",{ref_key:"chartModeDiv",ref:ie,class:"chartModeDiv"},null,512)],512),[[lt,!g(X)]])])])}}},bo=Rt(Za,[["__scopeId","data-v-076bbc79"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/classify/Classify.vue"]]);export{bo as default};