Agriculture-front-end/dist/assets/Classify.996f9b7a.js
2023-06-22 06:50:23 +08:00

16 lines
44 KiB
JavaScript

import{_ as Ot,a as Rt,r as b,A as Ue,U as Ze,V as zt,W as At,d as P,o as w,c as L,l as c,m as z,L as H,N as F,x as Z,F as Me,f as m,e as x,w as S,g as T,k as A,G as Ye,C as Qe,D as Xe,y as Vt,a2 as qt,p as Ht,q as Ft}from"./index.9172db1d.js";import ge from"./downloads.e955445d.js";import{_ as $t}from"./crops.d314ada0.js";import{_ as be}from"./close1.45635d81.js";import{_ as jt,a as Gt,b as Jt,c as Ut,d as Zt,e as Yt}from"./linesGL.90f708a5.js";import{_ as Qt}from"./dow.f37c8d82.js";import{d as We}from"./download.f7ec50f1.js";import{i as Y,L as me}from"./index.c9f5bd8b.js";import{T as Xt}from"./TimeLine.6ff87a01.js";import{u as re}from"./useEcharts.963c5809.js";import{b as Ke,g as Kt,d as Ne,e as et,f as tt,h as ea,i as ta,c as at,j as aa}from"./classify.7a190974.js";import{u as Ie,w as oa}from"./xlsx.86b9426e.js";const R=ie=>(Ht("data-v-076bbc79"),ie=ie(),Ft(),ie),la={class:"fatherDiv"},ra={class:"centerBox"},ia=R(()=>c("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),sa={class:"leftWra"},na={class:"leftTop"},da={class:"title"},ca=R(()=>c("span",null,"\u4F5C\u7269\u5206\u7C7B\u9762\u79EF\u7EDF\u8BA1",-1)),ua=R(()=>c("img",{src:ge,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),fa={class:"leftbottom"},ha={class:"title"},pa=R(()=>c("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1",-1)),ma=R(()=>c("img",{src:ge,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ga={class:"tableDiv"},ba=R(()=>c("img",{src:$t,alt:""},null,-1)),va={key:0,src:be,alt:""},ya={key:0,class:"imgrotate",src:be,alt:""},wa={class:"rightWra"},_a={class:"rightTop"},xa={class:"title"},Sa=R(()=>c("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Ca=R(()=>c("img",{src:ge,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ka={class:"rightbottom"},Ma={class:"title"},Wa=R(()=>c("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Na=R(()=>c("img",{src:ge,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ia={key:0,src:be,alt:""},Ea={key:0,class:"imgrotate",src:be,alt:""},Da={class:"mt-4"},La={class:"bottom_center"},Ta=Vt('<div class="tool" data-v-076bbc79><span data-v-076bbc79><img src="'+jt+'" alt="" data-v-076bbc79></span><span data-v-076bbc79><img src="'+Gt+'" alt="" data-v-076bbc79></span><span data-v-076bbc79><img src="'+Jt+'" 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),Ba={id:"popup1"},Pa={class:"rowWra"},Oa=R(()=>c("span",null,"\u5730\u533A\uFF1A",-1)),Ra={class:"tabulation"},za={class:"searchDiv"},Aa=R(()=>c("img",{src:Qt,alt:""},null,-1)),Va={class:"tableBox"},qa={class:"tableBorder"},Ha=["onClick"],Fa=["onClick"],$a={class:"example-pagination-block"},ja={class:"chartMode"},Ga={__name:"Classify",setup(ie){const Ee=Rt();let g=b(null);const ve=b(null),De=b(null),Le=b(null),se=b(null),Te=b(null);let O=Ue({arr:[],brr:[],crr:[]}),ye=b([]);const I=b("370211"),Q=b({info:[]});let Be=b([]);const Pe=b(!1);let $=b(!1),j=b(!1),V=b(!0),G=b(1),q=b(14);const J=b([]);let Oe=b([]),we=b([]),U=b(!0),ne=b(null),Re=b(null),ot=b(""),ze=["\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"],X={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},_=b({yearMonth:"",flag:"2",divisions:""}),de=b([]);Ze(()=>V.value,(t,e)=>{t?window.document.querySelector(".tableBox").style.height="90%":window.document.querySelector(".tableBox").style.height="83%"});const _e=()=>{if(!_.value.yearMonth){qt.error("\u8BF7\u9009\u62E9\u65F6\u95F4");return}let t=[],e=[];ta({yearMonth:_.value.yearMonth,flag:_.value.flag===""?0:_.value.flag,divisions:_.value.divisions}).then(l=>{if(de.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"}],_.value.flag=="1")_.value.divisions="",ee.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=>{t.indexOf(r.region)==-1&&t.push(r.region)}),t.forEach(r=>{e.push(Object.create(null,{regio:{value:r}}))}),e.forEach(r=>{l.data.map(s=>{r.regio===s.region&&(r.region=s.region,r[s.name]=s.area)})}),V.value=!1;else if(_.value.flag=="2"){let r=[],s=[];Ne({divisions:_.value.divisions?_.value.divisions:"370211"}).then(d=>{d.data.forEach(p=>{r.indexOf(p.tomeName)==-1&&r.push(p.tomeName)}),r.forEach(p=>{s.push(Object.create(null,{regio:{value:p}}))}),s.forEach(p=>{d.data.map(h=>{p.regio===h.tomeName&&(p.region=h.tomeName,p[h.name]=h.area)})}),O.arr.forEach(p=>{if(_.value.divisions==p.tomeCode){s[0].region=p.tomeName,s[0].\u5408\u8BA1="\u5408\u8BA1";return}else p.tomeCode=="370211"&&(s[0].region="\u9EC4\u5C9B\u533A",s[0].\u5408\u8BA1="\u5408\u8BA1")}),de.value=s}),ee.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(d=>{t.indexOf(d.tomeName)==-1&&t.push(d.tomeName)}),t.forEach(d=>{e.push(Object.create(null,{regio:{value:d}}))}),e.forEach(d=>{l.data.map(p=>{d.regio===p.tomeName&&(d.region=p.tomeName,d[p.name]=p.area)})}),V.value=!1}else _.value.flag==0&&(V.value=!0,e=l.data,ee=b([{lable:"\u65F6\u95F4",value:"dateTime"},{lable:"\u6570\u636E\u540D\u79F0",value:"excelName"}]));J.value=e,xe.value=e.slice((G.value-1)*q.value,(G.value-1)*q.value+q.value);const a=se.value;a.style.width=window.innerWidth-100+"px",a.style.height=window.innerHeight-100+"px";const o=Y(a);window.addEventListener("resize",()=>{a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px",o.resize()}),Je()})},lt=()=>{_.yearMonth=we.value[0],_.flag=2,_.divisions="",V.value=!0,_e()};let ee=b([{lable:"\u65F6\u95F4",value:"dateTime"},{lable:"\u6570\u636E\u540D\u79F0",value:"excelName"}]),xe=b([]);const rt=t=>{Ne({divisions:I.value,whetherToDownload:!0}).then(e=>{We(e.data[e.data.length-1].downloadPath)})},it=t=>{et({divisions:I.value,whetherToDownload:!0}).then(e=>{We(e.data[e.data.length-1].downloadPath)})},st=t=>{tt({divisions:I.value,whetherToDownload:!1}).then(e=>{let l=[],a=[];e.data.forEach(o=>{l.indexOf(o.region)==-1&&l.push(o.region)}),l.forEach(o=>{a.push(Object.create(null,{regio:{value:o}}))}),a.forEach(o=>{e.data.map(r=>{o.regio===r.region&&(o.region=r.region,o[r.name]=r.area)})}),ce(a,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},nt=t=>{let e="";O.arr.forEach(l=>{l.subregion==I.value&&(e=l.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":l.subregionName)}),I.value==="370211"?Ke({divisions:I.value,whetherToDownload:!1}).then(l=>{let a=[],o=[];l.data.forEach(r=>{a.indexOf(r.tomeName)==-1&&a.push(r.tomeName)}),a.forEach(r=>{o.push(Object.create(null,{regio:{value:r}}))}),o.forEach(r=>{l.data.map(s=>{r.regio===s.tomeName&&(r.region=s.tomeName,r[s.name]=s.area)})}),ce(o,`${e}\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")}):at({divisions:I.value,whetherToDownload:!1}).then(l=>{let a=[],o=[];l.data.forEach(r=>{a.indexOf(r.tomeName)==-1&&a.push(r.tomeName)}),a.forEach(r=>{o.push(Object.create(null,{regio:{value:r}}))}),o.forEach(r=>{l.data.map(s=>{r.regio===s.tomeName&&(r.region=s.tomeName,r[s.name]=s.area)})}),ce(o,`${e}\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})},Ae=t=>{We(t.download)},dt=()=>{let t=JSON.parse(JSON.stringify(de.value[0]));t.region="\u5408\u8BA1",J.value.push(t),ce(J.value,"\u519C\u4F5C\u7269\u79CD\u690D\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},ct=(t,e)=>t.map(a=>{const o={};for(const r in a)e[r]&&(o[e[r]]=a[r]);return o}),ce=(t,e="\u7528\u6237\u5217\u8868",l="Sheet1")=>{const o=ct(t,{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=Ie.json_to_sheet(o),s=Ie.book_new();Ie.book_append_sheet(s,r,l),oa(s,`${e}.xlsx`)};let W={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},te={\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}},ae={\u5C0F\u9EA6:"xiaomai",\u5927\u8C46:"dadou",\u5730\u74DC:"digua",\u82B1\u751F:"huasheng",\u84DD\u8393:"lanmei",\u8336\u53F6:"chaye",\u5176\u4ED6:"qitanongzuowu"},oe=[{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}}],ue=Ue({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 fe=b([]),Se=b([]);zt(()=>{ut()});function ut(){qe("370211"),He("370211"),Dt(),Ve("370211"),ht(),ke(),je(),Ge(),pe(),Lt(),Tt();for(const l in te)te[l].disabled!==!0&&Oe.value.push(l);he.value=Oe.value;let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)");let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)",localStorage.setItem(Ee.currentRoute.value.path,!0)}At(()=>{localStorage.getItem(Ee.currentRoute.value.path)=="false"?document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F":document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F"});const ft={url:"http://{s}.tianditu.gov.cn/img_c/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=c&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=31091965e263284a501a723b8909f405",layer:"tdtCva",style:"default",format:"tiles",tileMatrixSetID:"c",subdomains:["t0","t1","t2","t3","t4","t5","t6","t7"],tilingScheme:new Cesium.GeographicTilingScheme,tileMatrixLabels:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],maximumLevel:18};Cesium.Ion.defaultAccessToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiYzcwZmJmNi02MzQ5LTQ1MGEtODgzMy0yZTZiZGExY2MzMGMiLCJpZCI6MTAxOTgsInNjb3BlcyI6WyJhc2wiLCJhc3IiLCJnYyJdLCJpYXQiOjE1ODEzMDgxNTR9.NeJU4yfUi-SnLrNDOBYsQgmiSh3B4axCTi1m84Qw99c";function ht(){g=new Cesium.Viewer("cesiumContainer",{baseLayerPicker:!1,shouldAnimate:!0,infoBox:!1,animation:!1,timeline:!1,geocoder:!1,homeButton:!1,navigationHelpButton:!1,selectionIndicator:!1,fullscreenButton:!1,terrainProvider:new Cesium.EllipsoidTerrainProvider({}),sceneModePicker:!1,contextOptions:{webgl:{alpha:!0}},imageryProvider:new Cesium.WebMapTileServiceImageryProvider({...ft})}),g.cesiumWidget.creditContainer.style.display="none",g.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),yt(g),g.scene.screenSpaceCameraController.minimumZoomDistance=450,g.scene.screenSpaceCameraController.maximumZoomDistance=72e4,g.scene.screenSpaceCameraController._minimumZoomRate=3e4,g.scene.screenSpaceCameraController._maximumZoomRate=5906376272e3,pt(),mt()}const pt=()=>{g.scene.preRender.addEventListener(()=>{g.camera.positionCartographic.height<=13e3?ne.show=!0:(ne.show=!1,Re.show=!0)})},mt=()=>{new Cesium.ScreenSpaceEventHandler(g.scene.canvas).setInputAction(e=>{var l=g.entities.getById("gaoliang"),a=g.entities.getById("gaoliangline");l&&(g.entities.remove(l),g.entities.remove(a),l=null,a=null);var o=g.camera.getPickRay(e.position),r=g.imageryLayers.pickImageryLayerFeatures(o,g.scene);Cesium.defined(r)?Promise.resolve(r).then(s=>{if(s.length>0){var d=s[0].data.outerHTML.indexOf("<gml:coordinates>"),p=s[0].data.outerHTML.indexOf("</gml:coordinates>"),h=s[0].data.outerHTML.substring(d+17,p),M=h.split(" ").map(D=>{const[E,n]=D.split(",");return Cesium.Cartesian3.fromDegrees(parseFloat(E),parseFloat(n),0)}),y=new Cesium.PolygonHierarchy(M);g.entities.add({id:"gaoliang",polygon:{hierarchy:y,material:Cesium.Color.YELLOW.withAlpha(0)}});let k=g.entities.getById("gaoliang");heightEntity=g.entities.add({id:"gaoliangline",polyline:{positions:k.polygon.hierarchy.getValue().positions,width:10,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.5,color:Cesium.Color.ORANGERED}),clampToGround:!0}})}}):console.log("No features picked.")},Cesium.ScreenSpaceEventType.LEFT_CLICK)},gt=()=>{var t=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/map-huangdaoqu_village/wms111/",layers:"huangdaoqu_village@huangdaoqu_village",tileWidth:"256",tileHeight:"256",enablePickFeatures:!0,parameters:{service:"WMS",format:"image/png",srs:"EPSG:4326",VERSION:"1.1.1",transparent:!0,exceptions:"application/vnd.ogc.se_inimage"}});ne=g.imageryLayers.addImageryProvider(t),ne.show=!1},bt=()=>{var t=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/map-huangdaoqu_town/wms111/",layers:"huangdaoqu_town@huangdaoqu_town",tileWidth:"256",tileHeight:"256",enablePickFeatures:!0,parameters:{service:"WMS",format:"image/png",srs:"EPSG:4326",VERSION:"1.1.1",transparent:!0,exceptions:"application/vnd.ogc.se_inimage"}});Re=g.imageryLayers.addImageryProvider(t)},he=b(["false"]);function vt(t,e){}function yt(t){t.screenSpaceEventHandler.setInputAction(e=>{const l=t.scene.camera.positionCartographic.height,a=Cesium.Math.sign(e)*l/Math.log(l);isNaN(a)||t.scene.camera.zoomIn(a)},Cesium.ScreenSpaceEventType.WHEEL)}Ze(()=>he.value,(t,e)=>{t.length>e.length?(t.filter(a=>{if(e.findIndex(r=>r===a)<0)return a}).forEach(a=>{ae[a]&&wt(ae[a],ae[a])}),gt(),bt()):t.length<e.length&&e.filter(a=>{if(t.findIndex(r=>r===a)<0)return a}).forEach(a=>{ae[a]&&Ce([ae[a]])})});function wt(t,e,l){let a=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+`/map-${t}/wms111/`,layers:t+"@"+t,parameters:{service:"WMS",format:"image/png",srs:"EPSG:4326",VERSION:"1.1.1",transparent:!0,exceptions:"application/vnd.ogc.se_inimage"}});a.customName=e;let o=g.imageryLayers.addImageryProvider(a);return l&&(g.imageryLayers.lowerToBottom(o),g.imageryLayers.raise(o)),a}function _t(t,e,l){t.forEach(a=>{let o=[];a[0].forEach(r=>{o.push(r[0]),o.push(r[1])}),g.entities.add({name:e,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(o),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:l?Cesium.Color.fromCssColorString(l):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function Ce(t,e){if(g){const l=g.imageryLayers._layers;for(let a=l.length-1;a>=0;a--)t.forEach(o=>{l[a]&&l[a]._imageryProvider&&l[a]._imageryProvider.customName&&(e?l[a]._imageryProvider.customName.indexOf(o)>-1&&g.imageryLayers.remove(l[a]+"@"+l[a]):l[a]._imageryProvider.customName===o&&g.imageryLayers.remove(l[a]))})}}function le(t){if(g){let l=g.entities._entities._array;for(var e=l.length-1;e>=0;e--)l[e]._name&&l[e]._name===t&&g.entities.remove(l[e])}}function xt(){if(Q.value&&Q.value.lon&&Q.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(Q.value.lon),Number(Q.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(g.scene,e);if(Cesium.defined(t)){const l=document.getElementById("popup1");l.style.top=t.y-10+"px",l.style.left=t.x+10+"px"}}}function St(){const t=document.getElementById("popup1");t.style.display="none",g.scene.postRender.removeEventListener(xt),I.value="370211",le("townLine"),$e()}function Ct(){U.value=!U.value;const t=se.value;t.style.width=window.innerWidth-100+"px",t.style.height=window.innerHeight-100+"px";const e=Y(t);window.addEventListener("resize",()=>{t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px",e.resize()}),Je()}b([]);const kt=t=>{G.value=t,xe.value=J.value.slice((G.value-1)*q.value,(G.value-1)*q.value+q.value)},Mt=t=>{const e=G.value,l=q.value;return t+1+(e-1)*l};function Wt(){I.value="370211",le("townLine"),g.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Pe.value=!1}function Nt(){if($.value=!$.value,$.value){let t=document.querySelector(".leftWra");t.style.transform="translate(0,0)"}else{let t=document.querySelector(".leftWra");t.style.transform="translate(-107%,0)"}}function It(){if(j.value=!j.value,j.value){let t=document.querySelector(".rightWra");t.style.transform="translate(0,0)"}else{let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"}}const Ve=t=>{W={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},Ke({divisions:t}).then(e=>{e.data.forEach((s,d)=>{for(let p=0;p<Object.values(s).length;p++)Object.values(s)[p]=="0.0"&&e.data.splice(d,1)}),O.brr=e.data,O.arr=e.data.sort((s,d)=>s.tomeName.length-d.tomeName.length),O.arr.unshift({tomeCode:"370211",tomeName:"\u5168\u90E8"});let l=[],a=[];O.arr.forEach(s=>{l.indexOf(s.tomeName)==-1&&(l.push(s.tomeName),a.push({tomeName:s.tomeName,tomeCode:s.tomeCode,area:s.area,type:s.type}))}),O.arr=a,ye.value=JSON.parse(JSON.stringify(O.arr)),ye.value[0].tomeCode="";let o=[...e.data],r=[];o.splice(0,1),o.forEach(s=>{r.indexOf(s.tomeName)==-1&&r.push(s.tomeName)}),K.title=[...Object.values(r)],K.title.forEach((s,d)=>{let p=e.data.map(h=>{if(s===h.tomeName)return h});Object.keys(W).forEach(h=>{p.findIndex(y=>y&&y.name===h)>-1?W[h].push(10):W[h].push(null)})}),pe()})},Et=t=>{W={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},at({divisions:t}).then(e=>{O.brr=e.data;let l=[...e.data],a=[];l.splice(0,1),l.forEach(o=>{a.indexOf(o.tomeName)==-1&&a.push(o.tomeName)}),K.title=[...Object.values(a)],K.title.forEach((o,r)=>{let s=e.data.map(d=>{if(o===d.tomeName)return d});Object.keys(W).forEach(d=>{s.findIndex(h=>h&&h.name===d&&Number(h.area)>0)>-1?W[d].push(1):W[d].push(null)})}),pe()})},Dt=()=>{Kt().then(t=>{t.features&&(O.crr=t.features,K.title.forEach((e,l)=>{let a=t.features.map(o=>{if(e===o.properties.town)return o.properties});Object.keys(W).forEach(o=>{a.findIndex(s=>s&&s.crop===o)>-1?W[o].push(1):W[o].push(null)})})),pe()})},qe=t=>{Ne({divisions:t}).then(e=>{e.data.forEach(l=>{fe.value.unshift(l.area),Se.value.unshift(l.name)}),ke()})},He=t=>{ue.arr=b([]),et({divisions:t}).then(e=>{let l=[];e.data.forEach(a=>{for(let o=0;o<oe.length;o++)if(a.name==oe[o].name){oe[o].area=a.area,oe[o].value=1;for(const r in te)r==a.name&&l.push({type:a.name,content:{value:a.area,percent:(a.areaB*100).toFixed(2)+"%",color:te[r].color}});ue.arr.push(oe[o])}Be.value=l}),je()})};let Fe=b([]);const Lt=()=>{tt().then(t=>{Fe.value=t.data,console.log(t.data),ze.forEach((e,l)=>{let a=t.data.map(o=>{if(e===o.region)return o});Object.keys(W).forEach(o=>{a.findIndex(s=>s&&s.name===o&&Number(s.area)>0)>-1?X[o].push(100):X[o].push(null)})}),Ge()})},$e=()=>{if(qe(I.value),He(I.value),fe=b([]),Se=b([]),I.value=="370211"){Ve("370211"),le("townLine"),Ce(["village_CQL"]);return}Et(I.value),ke(),aa().then(t=>{t.features.forEach(e=>{e.properties.XZDM==I.value&&(le("townLine"),_t(e.geometry.coordinates,"townLine","yellow"))})}),Ce(["village_CQL"]),le("townLine")},Tt=()=>{ea().then(t=>{we.value=t.data,_.value.yearMonth=t.data[0],Bt(t.data[0])})},Bt=t=>{_e()};function ke(){if(ve.value){const t=Y(ve.value);let e={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:Se.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:fe.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:fe.value,type:"pictorialBar",barMaxWidth:"20",symbolPosition:"end",symbol:"diamond",symbolOffset:[0,"-50%"],symbolSize:[30,12],zlevel:2}],tooltip:{show:!0,formatter:"\u9762\u79EF:{c0}"}};re(t,e)}}function je(){const t=Y(De.value);let e="",l="",a="",o=s(ue.arr,0);function r(d,p,h,M,y,k){const D=(d+p)/2,E=d*Math.PI*2,n=p*Math.PI*2,f=D*Math.PI*2;d===0&&p===1&&(h=!1),y=typeof y<"u"?y:1/3;const B=h?Math.cos(f)*.1:0,u=h?Math.sin(f)*.1:0,N=M?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(C,v){return C<E?B+Math.cos(E)*(1+Math.cos(v)*y)*N:C>n?B+Math.cos(n)*(1+Math.cos(v)*y)*N:B+Math.cos(C)*(1+Math.cos(v)*y)*N},y(C,v){return C<E?u+Math.sin(E)*(1+Math.cos(v)*y)*N:C>n?u+Math.sin(n)*(1+Math.cos(v)*y)*N:u+Math.sin(C)*(1+Math.cos(v)*y)*N},z(C,v){return C<-Math.PI*.5?Math.sin(C):C>Math.PI*2.5?Math.sin(C)*k*.1:Math.sin(v)>0?1*k*.1:-1}}}function s(d,p){const h=[];let M=0,y=0,k=0;const D=[],E=typeof p<"u"?(1-p)/(1+p):1/3;for(let f=0;f<d.length;f+=1){M+=d[f].value;const B={name:typeof d[f].name>"u"?`series${f}`:d[f].name,type:"surface",parametric:!0,wireframe:{show:!1},pieData:d[f],pieStatus:{selected:!1,hovered:!1,k:E}};if(typeof d[f].itemStyle<"u"){const{itemStyle:u}=d[f];typeof d[f].itemStyle.color<"u"&&(u.color=d[f].itemStyle.color),typeof d[f].itemStyle.opacity<"u"&&(u.opacity=d[f].itemStyle.opacity),B.itemStyle=u}h.push(B)}for(let f=0;f<h.length;f+=1)k=y+h[f].pieData.value,h[f].pieData.startRatio=y/M,h[f].pieData.endRatio=k/M,h[f].parametricEquation=r(h[f].pieData.startRatio,h[f].pieData.endRatio,!1,!1,E,h[f].pieData.value===h[0].pieData.value?35:10),y=k,D.push(h[f].name);return{legend:{show:!0,bottom:0,textStyle:{color:"rgba(255,255,255,.9)"}},tooltip:{formatter:f=>{if(f.seriesName!=="mouseoutSeries"){let B="";return ue.arr.forEach(u=>{u.name==f.seriesName&&(B=u.area)}),`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${f.color};"></span>${f.seriesName}:${Number(B)}\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}}t.on("mouseover",function(d){let p,h,M,y,k,D;a!==d.seriesIndex&&(a!==""&&(p=o.series[a].pieStatus.selected,h=!1,M=o.series[a].pieData.startRatio,y=o.series[a].pieData.endRatio,k=o.series[a].pieStatus.k,D=o.series[a].pieData.value===o.series[0].pieData.value?35:10,o.series[a].parametricEquation=r(M,y,p,h,k,D),o.series[a].pieStatus.hovered=h,a=""),d.seriesName!=="mouseoutSeries"&&(p=o.series[d.seriesIndex].pieStatus.selected,h=!0,M=o.series[d.seriesIndex].pieData.startRatio,y=o.series[d.seriesIndex].pieData.endRatio,k=o.series[d.seriesIndex].pieStatus.k,o.series[d.seriesIndex].parametricEquation=r(M,y,p,h,k,o.series[d.seriesIndex].pieData.value+5),o.series[d.seriesIndex].pieStatus.hovered=h,a=d.seriesIndex),t.setOption(o))}),t.on("globalout",function(){if(a!==""){e=o.series[a].pieStatus.selected,l=!1;let d=o.series[a].pieStatus.k;startRatio=o.series[a].pieData.startRatio,endRatio=o.series[a].pieData.endRatio,i=o.series[a].pieData.value===o.series[0].pieData.value?35:10,o.series[a].parametricEquation=r(startRatio,endRatio,e,l,d,i),o.series[a].pieStatus.hovered=l,a=""}t.setOption(o)}),re(t,o)}function Ge(){const t=Y(Le.value);let e={grid:{left:"3%",right:"4%",bottom:"3%",top:"10%",containLabel:!0},tooltip:{formatter:function(l){let a=0;return Fe.value.forEach(o=>{o.name==l.seriesName&&o.region==l.name&&(a=o.area)}),l.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,splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1},axisLabel:{interval:0,color:"rgba(255, 255, 255, 1)",fontSize:14},data:ze},series:[{name:"\u5C0F\u9EA6",type:"bar",barWidth:12,stack:"stack",data:X.\u5C0F\u9EA6,itemStyle:{normal:{barBorderRadius:0,color:new me(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:X.\u5927\u8C46,itemStyle:{normal:{barBorderRadius:0,color:new me(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:X.\u8336\u53F6,itemStyle:{normal:{barBorderRadius:0,color:new me(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:X.\u82B1\u751F,itemStyle:{normal:{barBorderRadius:0,color:new me(0,0,.9,0,[{offset:1,color:"rgba(255, 140, 255, 1)"},{offset:0,color:"rgba(255, 140, 255, 1)"}])}}}]};re(t,e)}function pe(){const t=Y(Te.value);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"6%",containLabel:!0},tooltip:{formatter:function(l){let a=0;return O.brr.forEach(o=>{o.name==l.seriesName&&o.tomeName==l.name&&(a=o.area)}),l.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:"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:W.\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:W.\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:W.\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:W.\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:W.\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:W.\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:W.\u5176\u4ED6}]};re(t,e)}function Je(){const t=Y(se.value);let e=[],l=[],a=[],o=[],r=[],s=[],d=[],p=[],h=[],M=[],y=[];J.value.forEach(u=>{e.push(u.region),u.\u5C0F\u9EA6!==void 0&&l.push(u.\u5C0F\u9EA6),u.\u7389\u7C73!==void 0&&a.push(u.\u7389\u7C73),u.\u5927\u8C46!==void 0&&o.push(u.\u5927\u8C46),u.\u5730\u74DC!==void 0&&r.push(u.\u5730\u74DC),u.\u82B1\u751F!==void 0&&s.push(u.\u82B1\u751F),u.\u84DD\u8393!==void 0&&d.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&&M.push(u.\u767D\u83DC\u548C\u841D\u535C),u.\u5176\u4ED6!==void 0&&y.push(u.\u5176\u4ED6)});let k=10/e.length*100,D={tooltip:{trigger:"axis",formatter:function(u){let N=u[0].axisValueLabel+"</br>",C=0;for(let v=0;v<u.length;v++)C+=u[v].value,u[v].seriesName!=="\u5408\u8BA1"&&(N+=u[v].seriesName+"\uFF1A"+u[v].value+"</br>");for(let v=0;v<u.length;v++)C+=Number(u[v].value),u[v].seriesName==="\u5408\u8BA1"&&(N+="\u5408\u8BA1\uFF1A"+C);return N},axisPointer:{type:"shadow"}},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"90%",start:0,end:k,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:e},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:a},{name:"\u5927\u8C46",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 184, 148, 1)"},data:o},{name:"\u5730\u74DC",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 18, 18, 1)"},data:r},{name:"\u82B1\u751F",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 140, 255, 1)"},data:s},{name:"\u84DD\u8393",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:" rgba(0, 153, 255, 1)"},data:d},{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:M},{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 E=D.series,n=D.tooltip;function f(u){let N=u[0].axisValueLabel+"</br>",C=0;for(let v=0;v<u.length;v++)if(u[v].seriesName!=="\u5408\u8BA1"){const Pt=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${u[v].color}"></span>`;C+=u[v].value,N+=Pt+u[v].seriesName+"\uFF1A"+u[v].value+"</br>"}for(let v=0;v<u.length;v++)u[v].seriesName==="\u5408\u8BA1"&&(N+="\u5408\u8BA1\uFF1A"+C);return N}n.formatter=f;function B(u){for(var N=0,C=0;C<E.length;C++)N+=E[C].data[u.dataIndex];return N}E[E.length-1].label.normal.formatter=B,re(t,D)}return(t,e)=>{const l=P("el-tooltip"),a=P("el-option"),o=P("el-select"),r=P("el-checkbox"),s=P("el-checkbox-group"),d=P("el-collapse-item"),p=P("el-collapse"),h=P("el-button"),M=P("el-form-item"),y=P("el-form"),k=P("el-table-column"),D=P("el-table"),E=P("el-pagination");return w(),L("div",la,[c("div",ra,[ia,c("div",sa,[c("div",na,[c("div",da,[ca,c("p",{onClick:e[0]||(e[0]=n=>rt())},[z(" \u4E0B\u8F7D \xA0 "),ua])]),c("div",{ref_key:"areaDiv",ref:ve,class:"areaDiv"},null,512)]),c("div",fa,[c("div",ha,[pa,c("p",{onClick:e[1]||(e[1]=n=>it())},[z(" \u4E0B\u8F7D \xA0 "),ma])]),c("div",{ref_key:"typesofDiv",ref:De,class:"typesofDiv"},null,512)]),c("div",ga,[c("div",null,[(w(!0),L(H,null,F(m(Be),(n,f)=>(w(),L("div",{key:f,class:"Crops"},[c("div",null,[ba,z(" "+Z(n.type),1)]),c("div",{style:Me({color:n.content.color})},Z(n.content.value)+"\u4EA9 ",5),c("div",{style:Me({color:n.content.color})},Z(n.content.percent),5)]))),128))])]),c("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=n=>Nt())},[x(l,{disabled:m($),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:S(()=>[T(' <el-icon v-if="!leftWraFlag"><ArrowRightBold /></el-icon> '),m($)?T("v-if",!0):(w(),L("img",va))]),_:1},8,["disabled"]),x(l,{disabled:!m($),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:S(()=>[T(' <el-icon v-if="leftWraFlag"><ArrowLeftBold /></el-icon> '),m($)?(w(),L("img",ya)):T("v-if",!0)]),_:1},8,["disabled"])])]),c("div",wa,[c("div",_a,[c("div",xa,[Sa,c("p",{onClick:e[3]||(e[3]=n=>st())},[z(" \u4E0B\u8F7D \xA0 "),Ca])]),c("div",{ref_key:"farmlandDiv",ref:Le,class:"farmlandDiv"},null,512),T(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),c("div",ka,[c("div",Ma,[Wa,c("p",{onClick:e[4]||(e[4]=n=>nt())},[z(" \u4E0B\u8F7D \xA0 "),Na])]),x(o,{"popper-class":"select_city",onChange:e[5]||(e[5]=n=>$e(t.item)),modelValue:I.value,"onUpdate:modelValue":e[6]||(e[6]=n=>I.value=n),placeholder:"\u5168\u90E8"},{default:S(()=>[(w(!0),L(H,null,F(m(O).arr,n=>(w(),A(a,{key:n.tomeCode,label:n.tomeName,value:n.tomeCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),c("div",{ref_key:"ASdivisionDiv",ref:Te,class:"ASdivision"},null,512)]),c("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=n=>It())},[x(l,{disabled:!m(j),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:S(()=>[m(j)?(w(),L("img",Ia)):T("v-if",!0)]),_:1},8,["disabled"]),x(l,{disabled:m(j),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:S(()=>[m(j)?T("v-if",!0):(w(),L("img",Ea))]),_:1},8,["disabled"])])]),x(p,{class:"legend",accordion:""},{default:S(()=>[x(d,{name:"1"},{title:S(()=>[z("\u56FE\u4F8B")]),default:S(()=>[c("div",Da,[x(s,{modelValue:he.value,"onUpdate:modelValue":e[8]||(e[8]=n=>he.value=n),onChange:vt},{default:S(()=>[(w(!0),L(H,null,F(m(te),(n,f,B)=>(w(),A(r,{key:B,style:Me({background:n.color,border:`1px solid ${n.color}`,width:"100%"}),"v-model":n.disabled,disabled:n.disabled,label:f},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),c("div",La,[x(Xt)]),Ta,c("div",Ba,[c("div",null,[c("div",Pa,[Oa,c("span",null,Z(m(ot)),1)]),(w(!0),L(H,null,F(Q.value.info,(n,f)=>(w(),L("div",{key:f,class:"rowWra"},[c("span",null,Z(n.name)+"\uFF1A",1),c("span",null,Z(n.area)+"\u4EA9",1)]))),128)),T(` <div class="rowWra">
<span>\u9762\u79EF\uFF1A</span>
<span>{{ item.area}} \u4EA9</span>
</div> `),T(` <div class="rowWra">
<span>\u9547\u540D\uFF1A</span>
<span>{{ item.town }}</span>
</div>
<div class="rowWra" v-if="item.village">
<span>\u6751\u540D\uFF1A</span>
<span>{{ item.village }}</span>
</div>
<div class="rowWra" v-if="item.people">
<span>\u571F\u5730\u6240\u6709\u4EBA\uFF1A</span>
<span>{{ item.people }}</span>
</div> `)]),c("div",{class:"cancel",onClick:St},"X")]),Pe.value?(w(),A(h,{key:0,class:"back_button",onClick:e[9]||(e[9]=n=>Wt())},{default:S(()=>[z("\u8FD4\u56DE")]),_:1})):T("v-if",!0)]),c("div",Ra,[c("div",za,[x(y,{inline:!0,model:m(_),class:"demo-form-inline"},{default:S(()=>[x(M,{label:"\u65F6\u95F4:"},{default:S(()=>[x(o,{"popper-class":"selectCity",modelValue:m(_).yearMonth,"onUpdate:modelValue":e[10]||(e[10]=n=>m(_).yearMonth=n),placeholder:"\u8BF7\u9009\u62E9"},{default:S(()=>[(w(!0),L(H,null,F(m(we),(n,f)=>(w(),A(a,{key:f,label:t.Zitem,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),x(M,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:S(()=>[x(o,{"popper-class":"selectCity",modelValue:m(_).flag,"onUpdate:modelValue":e[11]||(e[11]=n=>m(_).flag=n),placeholder:"\u8BF7\u9009\u62E9"},{default:S(()=>[x(a,{label:"\u884C\u653F\u533A\u5212",value:"2"}),x(a,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"1"})]),_:1},8,["modelValue"])]),_:1}),x(M,{label:"\u9547:"},{default:S(()=>[x(o,{modelValue:m(_).divisions,"onUpdate:modelValue":e[12]||(e[12]=n=>m(_).divisions=n),disabled:m(_).flag!="2",placeholder:m(_).flag=="2"?"\u5168\u90E8":"\u8BF7\u9009\u62E9","popper-class":"selectCity"},{default:S(()=>[(w(!0),L(H,null,F(m(ye),(n,f)=>(w(),A(a,{key:f,label:n.tomeName,value:n.tomeCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),x(M,null,{default:S(()=>[x(h,{type:"primary",onClick:_e},{default:S(()=>[z("\u67E5\u8BE2")]),_:1}),x(h,{plain:"",onClick:lt,disabled:!m(U)},{default:S(()=>[z(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),m(V)?T("v-if",!0):(w(),A(h,{key:0,type:"primary",text:"",onClick:dt},{default:S(()=>[Aa,z(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),c("div",{class:"modeDiv",onClick:Ct},[c("div",{class:Ye(m(U)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),c("div",{class:Ye(m(U)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),Qe(c("div",Va,[c("div",qa,[m(V)?T("v-if",!0):(w(),A(D,{key:0,data:m(de),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:S(()=>[x(k,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(w(!0),L(H,null,F(m(ee),(n,f)=>(w(),A(k,{key:f,prop:n.value,label:f==0?n.lable:n.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),m(V)?(w(),A(k,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:S(n=>[c("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:f=>Ae(n.row)}," \u4E0B\u8F7D ",8,Ha)]),_:1})):T("v-if",!0)]),_:1},8,["data"]))]),x(D,{data:m(xe),"header-cell-style":{"text-align":"center"},height:"90%","highlight-current-row":"","header-row-class-name":"tabth"},{default:S(()=>[x(k,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Mt}),(w(!0),L(H,null,F(m(ee),(n,f)=>(w(),A(k,{key:f,prop:n.value,label:f==0?n.lable:n.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),m(V)?(w(),A(k,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:S(n=>[c("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:f=>Ae(n.row)}," \u4E0B\u8F7D ",8,Fa)]),_:1})):T("v-if",!0)]),_:1},8,["data"]),c("div",$a,[z(" \u5171"+Z(J.value.length)+"\u6761 ",1),x(E,{background:"",layout:"prev, pager, next",total:J.value.length,"current-page":m(G),"page-size":m(q),onCurrentChange:kt},null,8,["total","current-page","page-size"])])],512),[[Xe,m(U)]]),Qe(c("div",ja,[c("div",{ref_key:"chartModeDiv",ref:se,class:"chartModeDiv"},null,512)],512),[[Xe,!m(U)]])])])}}},ro=Ot(Ga,[["__scopeId","data-v-076bbc79"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/classify/Classify.vue"]]);export{ro as default};