2 lines
53 KiB
JavaScript
2 lines
53 KiB
JavaScript
import{_ as e,u as a,r as t,I as o,a2 as r,x as l,H as n,aa as i,S as s,d as u,o as d,c,l as m,O as g,f as h,K as f,M as p,n as v,m as b,k as y,w,V as S,W as x,e as k,N as z,A as E,a8 as _,q as $,s as M}from"./index.e5c8b0d6.js";import C from"./downloads.e955445d.js";import{_ as L}from"./qx.88a5ecd3.js";import{_ as W,a as A}from"./zhankaiss.6870329f.js";import{_ as N}from"./fh.7489c25e.js";import{_ as j}from"./dow.b4b83e88.js";import{d as T}from"./download.57166482.js";import"./index.2809c208.js";import"./linesGL.76a64914.js";import{T as B}from"./TimeLine.89abb5b7.js";import{u as O}from"./useEcharts.31b48034.js";import{g as I,c as D,d as P,a as V,e as q,f as G,h as R,i as F,j as J}from"./classify.05fc4497.js";import{u as Q,w as Y}from"./xlsx.881b8a71.js";import{e as U}from"./element-resize-detector.d4d1cd8d.js";import"./moment.2cad4b18.js";import{ai as X,aj as H}from"./linkSeriesData.e74eae00.js";/* empty css */import"./browser-detector.d146ab9e.js";const Z=e=>($("data-v-bb59c22b"),e=e(),M(),e),K={class:"fatherDiv"},ee={class:"centerBox"},ae=Z((()=>m("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1))),te={class:"rightWra"},oe={class:"tabar"},re={class:"rightTop"},le={class:"title"},ne=Z((()=>m("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1))),ie=Z((()=>m("span",null,"作物分类面积统计",-1))),se=Z((()=>m("img",{src:C,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),ue={key:0,class:"rightbottom"},de={class:"title"},ce=Z((()=>m("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1))),me=Z((()=>m("span",null,"作物类型统计",-1))),ge=Z((()=>m("img",{src:C,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),he={class:"rightTop"},fe={class:"title"},pe=Z((()=>m("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1))),ve=Z((()=>m("span",null,"作物类型统计-高标准农田",-1))),be=Z((()=>m("img",{src:C,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),ye={key:0},we=[Z((()=>m("img",{src:L},null,-1)))],Se={class:"rightbottom"},xe={class:"title"},ke=Z((()=>m("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1))),ze=Z((()=>m("span",null,"作物类型统计-行政区划",-1))),Ee=Z((()=>m("img",{src:C,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),_e={class:"el_select_div"},$e=Z((()=>m("img",{src:W},null,-1))),Me=Z((()=>m("img",{src:A},null,-1))),Ce=[Z((()=>m("img",{src:N},null,-1))),Z((()=>m("span",null,"返回",-1)))],Le={class:"mt-4"},We={class:"bottom_center"},Ae=Z((()=>m("div",{id:"pop"},null,-1))),Ne={id:"popup",class:"ol-popup"},je=Z((()=>m("div",{class:"pophead",style:{width:"100%"}},[m("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)"}}),m("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1))),Te={id:"popup-content",style:{padding:"30px"}},Be={class:"label"},Oe=Z((()=>m("div",{id:"popup-pagination"},null,-1))),Ie={class:"tabulation"},De={class:"searchDiv"},Pe=Z((()=>m("img",{src:j,alt:""},null,-1))),Ve=Z((()=>m("img",{src:j,alt:""},null,-1))),qe={class:"tableBox"},Ge={class:"tableBorder"},Re=["onClick"],Fe=["onClick"],Je={class:"example-pagination-block"},Qe={class:"chartMode"},Ye=e({__name:"Classify",setup(e){const $=a();let M=t(null);const C=t(null),L=t(null),W=t(null),A=t(null),N=t(null);let j=o({arr:[],brr:[],crr:[]}),Z=t([]);const Ye=t("");Ye.value=window.localStorage.getItem("divisions");let Ue=t("行政区划"),Xe=t([]);const He=t(!1);let Ze=t(!1),Ke=t(!0),ea=t(1),aa=t(14);const ta=t([]);let oa=t([]),ra=t([]),la=t(!0),na=t(null),ia=t([]),sa=t([]),ua=t([]),da=t(""),ca=t(""),ma=t(""),ga=t([]),ha=t(5),fa=t(!0),pa=!(window.localStorage.getItem("divisions").length>6),va=["2019年高标准农田片区1","2019年高标准农田片区2","2019年高标准农田片区3","2019年高标准农田片区4","2020年高标准农田片区","2021年高标准农田片区","2022年高标准农田片区1","2022年高标准农田片区2","2022年高标准农田片区3","2022年高标准农田片区4","2022年高标准农田片区5","2022年高标准农田片区6","2022年高标准农田片区7"],ba={"小麦":[],"玉米":[],"大豆":[],"地瓜":[],"花生":[],"蓝莓":[],"茶叶":[],"马铃薯":[]},ya=t({yearMonth:"",flag:"2",divisions:""}),wa=t([]);r((()=>Ue.value),((e,a)=>{bt(),vt()})),r((()=>Ke.value),((e,a)=>{window.document.querySelector(".tableBox").style.height=e?"90%":"83%"})),r((()=>$),((e,a)=>{"/crops/Classify"!==e.currentRoute._value.fullPath&&(X(L.value).dispose(),Da.value=!1)}),{deep:!0}),r((()=>da.value),((e,a)=>{Ye.value=window.localStorage.getItem("divisions"),nt(Ye.value,da.value.name),it(Ye.value,da.value.name),pa?rt(Ye.value,da.value.name):lt(Ye.value,da.value.name),ut(da.value.name);let t=da.value.name,o=t&&t.replace(/-/g,"_");t.match(/\d+/g);var r=t.match(/\d+/g).join("");Aa={"小麦":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_xiaomai`,time:`T${r}xiaomai${r}nongzuowufenlei`},"玉米":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_yumi`,time:`T${r}yumi${r}nongzuowufenlei`},"大豆":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_dadou`,time:`T${r}dadou${r}nongzuowufenlei`},"地瓜":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_digua`,time:`T${r}digua${r}nongzuowufenlei`},"花生":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_huasheng`,time:`T${r}huasheng${r}nongzuowufenlei`},"蓝莓":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_lanmei`,time:`T${r}lanmei${r}nongzuowufenlei`},"茶叶":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_chaye`,time:`T${r}chaye${r}nongzuowufenlei`},"马铃薯":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_malingshu`,time:`T${r}malingshu${r}nongzuowufenlei`}}}));const Sa=()=>{if(!ya.value.yearMonth)return void _.error("请选择时间");let e=[],a=[];F({yearMonth:ya.value.yearMonth,flag:""===ya.value.flag?0:ya.value.flag,divisions:1==ya.value.flag?"370211":ya.value.divisions}).then((o=>{if(wa.value=[{region:"高标准农田","地瓜":o.data[o.data.length-1].sweetPotatoSum,"大豆":o.data[o.data.length-1].soyBeanSum,"小麦":o.data[o.data.length-1].wheatSum,"花生":o.data[o.data.length-1].peanutSum,"茶叶":o.data[o.data.length-1].teaSum,"蓝莓":o.data[o.data.length-1].blueberrySum,"玉米":o.data[o.data.length-1].cronSum,"马铃薯":o.data[o.data.length-1].potatoSum,"合计":"合计"}],"1"==ya.value.flag)ya.value.divisions="",ka.value=[{lable:"区域名称",value:"region"},{lable:"小麦",value:"小麦"},{lable:"玉米",value:"玉米"},{lable:"大豆",value:"大豆"},{lable:"地瓜",value:"地瓜"},{lable:"花生",value:"花生"},{lable:"蓝莓",value:"蓝莓"},{lable:"茶叶",value:"茶叶"},{lable:"马铃薯",value:"马铃薯"}],o.data.forEach((a=>{-1==e.indexOf(a.region)&&e.push(a.region)})),e.forEach((e=>{a.push(Object.create(null,{regio:{value:e}}))})),a.forEach((e=>{o.data.map((a=>{e.regio===a.region&&(e.region=a.region,e[a.name]=a.area)}))})),Ke.value=!1;else if("2"==ya.value.flag){let t=[],r=[];q({divisions:ya.value.divisions?ya.value.divisions:window.localStorage.getItem("divisions"),yearMonth:ya.value.yearMonth}).then((e=>{e.data.forEach((e=>{-1==t.indexOf(e.tomeName)&&t.push(e.tomeName)})),t.forEach((e=>{r.push(Object.create(null,{regio:{value:e}}))})),r.forEach((a=>{e.data.map((e=>{a.regio===e.tomeName&&(a.region=e.tomeName,a[e.name]=e.area)}))})),j.arr.forEach((e=>{if(ya.value.divisions==e.tomeCode)return r[0].region=e.tomeName,void(r[0]["合计"]="合计");"370211"==e.tomeCode&&(r[0].region="黄岛区",r[0]["合计"]="合计")})),wa.value=r})),ka.value=[{lable:"区域名称",value:"region"},{lable:"小麦",value:"小麦"},{lable:"玉米",value:"玉米"},{lable:"大豆",value:"大豆"},{lable:"地瓜",value:"地瓜"},{lable:"花生",value:"花生"},{lable:"蓝莓",value:"蓝莓"},{lable:"茶叶",value:"茶叶"},{lable:"马铃薯",value:"马铃薯"}],o.data.forEach((a=>{-1==e.indexOf(a.tomeName)&&e.push(a.tomeName)})),e.forEach((e=>{a.push(Object.create(null,{regio:{value:e}}))})),a.forEach((e=>{o.data.map((a=>{e.regio===a.tomeName&&(e.region=a.tomeName,e[a.name]=a.area)}))})),Ke.value=!1}else 0==ya.value.flag&&(Ke.value=!0,a=o.data,ka=t([{lable:"时间",value:"dateTime"},{lable:"数据名称",value:"excelName"}]));ta.value=a,za.value=a.slice((ea.value-1)*aa.value,(ea.value-1)*aa.value+aa.value);const r=A.value;r.style.width=window.innerWidth-100+"px",r.style.height=window.innerHeight-100+"px";const l=X(r);window.addEventListener("resize",(()=>{r.style.width=window.innerWidth-200+"px",r.style.height=window.innerHeight-200+"px",l.resize()})),yt()}))},xa=()=>{ya.value.yearMonth=ra.value[ra.value.length-1],ya.value.flag="2",ya.value.divisions="",Ke.value=!0,Sa()};let ka=t([{lable:"时间",value:"dateTime"},{lable:"数据名称",value:"excelName"}]),za=t([]);const Ea=()=>{J({yearMonth:ya.value.yearMonth}).then((e=>{T(e.msg)}))},_a=e=>{T(e.download)},$a=()=>{let e=JSON.parse(JSON.stringify(wa.value[0]));e.region="合计",ta.value.push(e),Ma(ta.value,"农作物种植面积统计表","Sheet1")},Ma=(e,a="用户列表",t="Sheet1")=>{const o=((e,a)=>e.map((e=>{const t={};for(const o in e)a[o]&&(t[a[o]]=e[o]);return t})))(e,{region:"区域名称","小麦":"小麦(亩)","玉米":"玉米(亩)","大豆":"大豆(亩)","地瓜":"地瓜(亩)","花生":"花生(亩)","蓝莓":"蓝莓(亩)","茶叶":"茶叶(亩)","马铃薯":"马铃薯(亩)"}),r=Q.json_to_sheet(o),l=Q.book_new();Q.book_append_sheet(l,r,t),Y(l,`${a}.xlsx`)};let Ca={"小麦":[],"玉米":[],"大豆":[],"地瓜":[],"花生":[],"蓝莓":[],"茶叶":[],"马铃薯":[]},La=t(0),Wa=t({"小麦":{color:"rgba(119, 255, 51, 1)",disabled:!1},"玉米":{color:"rgba(97, 184, 51, 1)",disabled:!1},"大豆":{color:"rgba(217, 254, 140, 1)",disabled:!1},"地瓜":{color:"rgba(227, 60, 100, 1)",disabled:!1},"花生":{color:"rgba(255, 152, 153, 1)",disabled:!1},"蓝莓":{color:"rgba(50, 140, 254, 1)",disabled:!1},"茶叶":{color:"rgba(255, 204, 59, 1)",disabled:!1},"马铃薯":{color:"rgba(152, 255, 254, 1)",disabled:!1}}),Aa={},Na=[{name:"小麦",value:0,itemStyle:{opacity:.8,color:"rgba(254, 181, 98, 1)"},area:""},{name:"玉米",value:0,itemStyle:{opacity:.8,color:"rgba(142, 212, 200, 1)"},area:""},{name:"花生",area:"",value:0,itemStyle:{opacity:.8,color:"rgba(255, 156, 145, 1)"},label:{show:!0}},{name:"大豆",area:"",value:156,itemStyle:{opacity:.8,color:"rgba(255, 238, 112, 1)"},label:{show:!0}},{name:"地瓜",area:"",value:156,itemStyle:{opacity:.8,color:"rgba(192, 187, 220, 1)"},label:{show:!0}},{name:"蓝莓",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(129, 179, 212, 1)"},label:{show:!0}},{name:"茶叶",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(179, 224, 104, 1)"},label:{show:!0}},{name:"马铃薯",area:"",value:56,itemStyle:{opacity:.8,color:"rgba(253, 205, 230, 1)"},label:{show:!0}}],ja=o({arr:[]});var Ta={title:["区域一","区域二","区域三","区域四","区域五","区域六","区域七","区域八"]};let Ba=t([]),Oa=t([]),Ia="青岛西海岸新区"==window.localStorage.getItem("deptName")?"黄岛区":window.localStorage.getItem("deptName");l((()=>{!function(){mt(),e=document.querySelector(".centerBox"),a=document.getElementById("cesiumContainer"),Pa=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})]}),Pa.on("moveend",(function(e){var a=Pa.getView().getZoom();Pa.getView(),a>=13?na.setVisible(!0):na.setVisible(!1)})),Pa.on("singleclick",(function(e){var a=e.coordinate;if(pa){var t=a[0],o=a[1],r=Pa.getView(),l=Pa.getView().getZoom();r.animate({center:[t,o],duration:1e3});let n=!1;if(["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach((e=>{Pa.getLayers().getArray().forEach(((a,t)=>{e!=a.A.name||(n=!0)}))})),n)l>=13?Ya(e,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"村"):Ya(e,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"镇");else{let t=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,o=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"T2019_2022高标准农田片区@2019-2022gaobiaozhunnongtian",attributeFilter:`DKMC = '${ca.value}'`},datasetNames:["2019-2022gaobiaozhunnongtian:T2019_2022高标准农田片区"]});new ol.supermap.FeatureService(t).getFeaturesBySQL(o,(function(t){let o=(new ol.format.GeoJSON).readFeatures(t.result.features),r=new ol.source.Vector;r.addFeatures(o);let l=new ol.layer.Vector({source:r}).getSource().getFeatures();for(var n=0;n<l.length;n++)l[n].getGeometry().intersectsCoordinate(a)&&Ya(e,"T2019_2022高标准农田片区@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`,"高标准")}))}}else{let t=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,o=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"XJQY3702112019WGS84@huangdaoqu_bianjie",attributeFilter:`XJQYMC = '${Ia}'`},datasetNames:["huangdaoqu_bianjie:XJQY3702112019WGS84"]});new ol.supermap.FeatureService(t).getFeaturesBySQL(o,(function(t){let o=(new ol.format.GeoJSON).readFeatures(t.result.features),r=new ol.source.Vector;r.addFeatures(o);let l=new ol.layer.Vector({source:r}).getSource().getFeatures();for(var n=0;n<l.length;n++)if(l[n].getGeometry().intersectsCoordinate(a)){var i=a[0],s=a[1],u=Pa.getView(),d=Pa.getView().getZoom();u.animate({center:[i,s],duration:1e3});let t=!1;["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach((e=>{Pa.getLayers().getArray().forEach(((a,o)=>{e!=a.A.name||(t=!0)}))})),t?d>=13?Ya(e,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"村"):Ya(e,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"镇"):Ya(e,"T2019_2022高标准农田片区@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`,"高标准")}}))}})),new ResizeObserver((function(e){e.forEach((function(e){var t=e.contentRect.width,o=e.contentRect.height;a.style.width=t+"px",a.style.height=o+"px",Pa.updateSize()}))})).observe(e),function(e){let a="",t="",o="",r="",l="";t=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,a=e,o="XJQY3702112019WGS84",r="huangdaoqu_bianjie",l="XJQYMC";var n=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${o}@${r}`,attributeFilter:`${l} like '%${a}%'`},datasetNames:[`${r}:${o}`]});new ol.supermap.FeatureService(t).getFeaturesBySQL(n,(function(e){if(0!=e.result.featureCount){var a=Pa.getLayers().getArray().find((e=>"zhezhao"===e.get("id")));Pa.removeLayer(a);var t=Pa.getLayers().getArray().find((e=>"dianjigaoliang"===e.get("id")));Pa.removeLayer(t);var o=(new ol.format.GeoJSON).readFeatures(e.result.features);Ga(e.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var r=new ol.source.Vector;r.addFeatures(o);const n=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var l=new ol.layer.Vector({id:"dianjigaoliang",source:r});l.setStyle(n),Pa.addLayer(l),Pa.getView().fit(r.getExtent())}}))}(Ia),i.get("/json/huangdao.json").then((({data:e})=>{(new ol.format.GeoJSON).readFeatures(e)[0]})),ft(),Ua();var e,a;for(const t in Wa.value)!0!==Wa.value[t].disabled&&oa.value.push(t);Xa.value=oa.value,document.querySelector(".rightWra").style.transform="translate(101%,0)",localStorage.setItem($.currentRoute.value.path,!0)}()}));let Da=t(!1);n((()=>{"false"==localStorage.getItem($.currentRoute.value.path)?(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="地图模式",window.document.querySelector("#screenfull").style.display="none"):(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="列表模式",window.document.querySelector("#screenfull").style.display="block"),L.value&&(Da.value=!0)}));let Pa=t(null);t(null),t(null);let Va=t(null),qa=t(null);function Ga(e,a,t,o){let r=new ol.source.Vector;var l=new ol.layer.Vector({id:a||"zhezhao",source:r,zIndex:o||50,style:new ol.style.Style({fill:new ol.style.Fill({color:t||"rgba( 105, 105, 105, 0.9)"})})});const n=Ra(e),i=new ol.Feature({geometry:n});l.getSource().addFeature(i),Pa.addLayer(l)}function Ra(e){const a=ol.geom.Polygon.fromExtent([-180,-90,180,90]);return e.forEach((e=>{const t=new ol.geom.LinearRing(e[0]);a.appendLinearRing(t)})),a}const Fa=()=>{na=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}),Pa.addLayer(na)},Ja=()=>{var e=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});Pa.addLayer(e)},Qa=e=>{if(!e.time)return;let a=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+`/map-ugcv5-${e.time}/rest/maps/${e.name}@${e.setOf}`,cacheEnabled:!1}),name:e.name,projection:"EPSG:4326"});Pa.addLayer(a)};function Ya(e,a,o,r){let l=[];var n=new ol.geom.Point(e.coordinate),i=new ol.supermap.QueryByGeometryParameters({queryParams:{name:a},geometry:n});let s=document.querySelector("#popup-title"),u=t(null),d=t(null);new ol.supermap.QueryService(o).queryByGeometry(i,(function(e){d=Pa.getLayers().getArray().find((e=>"zhezhao"===e.get("id"))),Pa.removeLayer(d);let a="";if("镇"==r&&e.result.recordsets[0].features.features[0].properties.XJQYDM){let o=e.result.recordsets[0].features.features[0].properties.XJQYDM;Ye.value=o;let r=[];I({divisions:"370211",yearMonth:da.value.name}).then((e=>{e.data.forEach((e=>{e.tomeCode==o&&(a=e.tomeName,r.push(e))})),ia.value=r,t()}))}else if("村"==r&&e.result.recordsets[0].features.features[0].properties.CJQYDM){let o=e.result.recordsets[0].features.features[0].properties.CJQYDM,r=[];D({divisions:o,yearMonth:da.value.name}).then((e=>{e.data.forEach((e=>{r.push(e)})),a=e.data[0].tomeName,ia.value=r,t()}))}else if("高标准"==r&&e.result.recordsets[0].features.features[0].properties.DKMC){let o=e.result.recordsets[0].features.features[0].properties.DKMC,r=[];P({divisions:"370211",yearMonth:da.value.name}).then((e=>{e.data.forEach((e=>{e.region==o&&r.push(e)})),a=o,ia.value=r,t("gao")}))}function t(t){if(e.result.currentCount>0){e.result.recordsets[0].features&&(qa.setPosition(n.flatCoordinates),s.innerHTML=a),u=Pa.getLayers().getArray().find((e=>"dianjigaoliang"===e.get("id"))),Pa.removeLayer(u);var o=(new ol.format.GeoJSON).readFeatures(e.result.recordsets[0].features);l=e.result.recordsets[0].features.features[0].geometry.coordinates,Ga(e.result.recordsets[0].features.features[0].geometry.coordinates,t);var r=new ol.source.Vector;r.addFeatures(o);const d=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var i=new ol.layer.Vector({id:"dianjigaoliang",source:r,zIndex:9999});i.setStyle(d),Pa.addLayer(i)}}})),Va.addEventListener("click",(function(){d=Pa.getLayers().getArray().find((e=>"zhezhao"===e.get("id"))),Pa.removeLayer(d),Ra(l),Ye.value=window.localStorage.getItem("divisions"),u=Pa.getLayers().getArray().find((e=>"dianjigaoliang"===e.get("id"))),Pa.removeLayer(u),u=Pa.getLayers().getArray().find((e=>"gao"===e.get("id"))),Pa.removeLayer(u),qa.setPosition(void 0)}))}const Ua=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Va=document.getElementById("popup-closer"),qa=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),Pa.addOverlay(qa)},Xa=t(["false"]);let Ha=0;r((()=>Ye.value),(()=>{dt()}));const Za=()=>{La.value=0};function Ka(){la.value=!la.value;const e=A.value;e.style.width=window.innerWidth-100+"px",e.style.height=window.innerHeight-100+"px";const a=X(e);window.addEventListener("resize",(()=>{e.style.width=window.innerWidth-200+"px",e.style.height=window.innerHeight-200+"px",a.resize()})),yt()}r((()=>Xa.value),((e,a)=>{if(e.length>a.length&&La.value<1){e.filter((e=>{if(a.findIndex((a=>a===e))<0)return e})).forEach((e=>{Aa[e]&&Qa(Aa[e])}))}else if(e.length<a.length){a.filter((a=>{if(e.findIndex((e=>e===a))<0)return a})).forEach((e=>{Aa[e]&&(Pa.getLayers().getArray().indexOf(Aa[e].name),Pa.getLayers().getArray().forEach(((a,t)=>{a.A.name&&a.A.name==Aa[e].name&&Pa.getLayers().removeAt(t)})))}))}Ha++,1==Ha&&(Fa(),Ja())})),t([]);const et=e=>{ea.value=e,za.value=ta.value.slice((ea.value-1)*aa.value,(ea.value-1)*aa.value+aa.value)},at=e=>e+1+(ea.value-1)*aa.value;const tt=e=>{La.value+=1,oa.value=[];let a=[];for(const t in Aa)Pa.getLayers().getArray().forEach(((e,a)=>{e.A.name==Aa[t].name&&Pa.getLayers().removeAt(a)}));da.value=e,q({divisions:"370211",yearMonth:da.value.name}).then((e=>{e.data.forEach((e=>{Number(e.area)>1?Wa.value[e.name].disabled=!1:Wa.value[e.name].disabled=!0,a=Wa}));for(const t in a.value)!0!==a.value[t].disabled&&oa.value.push(t);Xa.value=oa.value,Xa.value.forEach((e=>{Qa(Aa[e])}))}))},ot=e=>{fa.value=e,e?ft():(vt(),bt())},rt=(e,a)=>{I({divisions:e,yearMonth:a}).then((e=>{Ca={"小麦":[],"玉米":[],"大豆":[],"地瓜":[],"花生":[],"蓝莓":[],"茶叶":[],"马铃薯":[]},e.data.forEach(((a,t)=>{for(let o=0;o<Object.values(a).length;o++)"0.0"==Object.values(a)[o]&&e.data.splice(t,1)})),j.brr=e.data,j.arr=e.data.sort(((e,a)=>e.tomeName.length-a.tomeName.length)),j.arr.unshift({tomeCode:"370211",tomeName:"全部"});let a=[],t=[];j.arr.forEach((e=>{-1==a.indexOf(e.tomeName)&&(a.push(e.tomeName),t.push({tomeName:e.tomeName,tomeCode:e.tomeCode,area:e.area,type:e.type}))})),j.arr=t,Z.value=JSON.parse(JSON.stringify(j.arr)),Z.value[0].tomeCode="";let o=[...e.data],r=[];o.splice(0,1),o.forEach((e=>{-1==r.indexOf(e.tomeName)&&r.push(e.tomeName)})),Ta.title=[...Object.values(r)],Ta.title.forEach(((a,t)=>{let o=e.data.map((e=>{if(a===e.tomeName)return e}));Object.keys(Ca).forEach((e=>{o.findIndex((a=>a&&a.name===e&&Number(a.area)>0))>-1?Ca[e].push(10):Ca[e].push(null)}))})),bt()}))},lt=(e,a)=>{V({divisions:e,yearMonth:a}).then((e=>{Ca={"小麦":[],"玉米":[],"大豆":[],"地瓜":[],"花生":[],"蓝莓":[],"茶叶":[],"马铃薯":[]},j.brr=e.data;let a=[...e.data],t=[];a.splice(0,1),a.forEach((e=>{-1==t.indexOf(e.tomeName)&&t.push(e.tomeName)})),Ta.title=[...Object.values(t)],Ta.title.forEach(((a,t)=>{let o=e.data.map((e=>{if(a===e.tomeName)return e}));Object.keys(Ca).forEach((e=>{o.findIndex((a=>a&&a.name===e&&Number(a.area)>0))>-1?Ca[e].push(1):Ca[e].push(null)}))})),bt()}))},nt=(e,a)=>{q({divisions:e,yearMonth:a}).then((e=>{e.data.forEach((e=>{Number(e.area)<1?Wa.value[e.name].disabled=!0:Wa.value[e.name].disabled=!1})),Ba=t([]),Oa=t([]),e.data.forEach((e=>{Ba.value.push(e.area),Oa.value.push(e.name)})),ft()}))},it=(e,a)=>{G({divisions:e,yearMonth:a}).then((e=>{ja.arr=[];let a=[];e.data.forEach((e=>{for(let t=0;t<Na.length;t++)if(e.name==Na[t].name){Na[t].area=e.area,Na[t].value=1;for(const t in Wa.value)t==e.name&&Number(e.area)>0&&a.push({type:e.name,content:{value:e.area,percent:e.areaB,color:Wa.value[t].color}});Number(Na[t].area)>0&&ja.arr.push(Na[t])}Xe.value=a})),pt()}))};let st=t([]);const ut=e=>{P({yearMonth:e,divisions:window.localStorage.getItem("divisions")}).then((e=>{ba={"小麦":[],"玉米":[],"大豆":[],"地瓜":[],"花生":[],"蓝莓":[],"茶叶":[],"马铃薯":[]},st.value=e.data,va.forEach(((a,t)=>{let o=e.data.map((e=>{if(a===e.region)return e}));Object.keys(Ca).forEach((e=>{o.findIndex((a=>a&&a.name===e&&Number(a.area)>0))>-1?ba[e].push(70):ba[e].push(null)}))})),e.data.length>0&&vt()}))},dt=()=>{if("370211"==Ye.value)return rt("370211",da.value.name),nt("370211",da.value.name),void it("370211",da.value.name);nt(Ye.value,da.value.name),it(Ye.value,da.value.name),lt(Ye.value,da.value.name)},ct=e=>{sa.value=ga.value.slice((e-1)*ha.value,e*ha.value)},mt=()=>{R().then((e=>{da.value={name:e.data[e.data.length-1]},ra.value=e.data,ya.value.yearMonth=e.data[e.data.length-1],gt(e.data[0]);let a=[];e.data.forEach((e=>{a.push({name:e})})),ga.value=a,ua.value=Math.ceil(ga.value.length/5),ma=Math.ceil(a.length/5),sa.value=ga.value.slice((ma-1)*ha.value,ma*ha.value);let t=da.value.name,o=t&&t.replace(/-/g,"_");var r=parseFloat(t);Aa={"小麦":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_xiaomai`,time:`T${r}xiaomai${r}nongzuowufenlei`},"玉米":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_yumi`,time:`T${r}yumi${r}nongzuowufenlei`},"大豆":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_dadou`,time:`T${r}dadou$${r}nongzuowufenlei`},"地瓜":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_digua`,time:`T${r}digua${r}nongzuowufenlei`},"花生":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_huasheng`,time:`T${r}huasheng${r}nongzuowufenlei`},"蓝莓":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_lanmei`,time:`T${r}lanmei${r}nongzuowufenlei`},"茶叶":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_chaye`,time:`T${r}chaye${r}nongzuowufenlei`},"其他":{setOf:`${da.value.name}-nongzuowufenlei`,name:`T${o}_qitanongzuowu`,time:`T${r}qitanongzuowu${r}nongzuowufenlei`}}}))},gt=e=>{Sa()};let ht=()=>{document.querySelector(".tool").style.display="none",Fa(),na.setVisible(!1),Ja();["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao","zhezhao"].forEach((e=>{Pa.getLayers().getArray().forEach(((a,t)=>{a.A.name!=e&&a.A.id!=e||Pa.getLayers().removeAt(t)}))})),Pa.getView().animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11})};function ft(){if(C.value){const a=X(C.value);let t=Oa.value,o=Ba.value,r=!1;r=o.length>14;var e={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"10%",right:"5%",left:"18%",bottom:"15%"},xAxis:[{type:"category",data:t,axisLine:{lineStyle:{color:"rgba(235, 238, 245, 1)"}},axisLabel:{interval:0,color:"rgba(153, 153, 153, 1)",formatter:function(e){var a="",t=e.length,o=Math.ceil(t/2);if(o>1){for(var r=0;r<o;r++){var l=2*r,n=l+2;a+=e.substring(l,n)+"\n"}return a}return e}},axisTick:{show:!1}}],yAxis:{name:"面积(亩)",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:r,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 H(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]}}}]};O(a,e),U().listenTo(C.value,(()=>{s((()=>{a.resize()}))}))}}function pt(){const e=X(L.value);let a=function(e,a){const o=[];let r=0,l=0,n=0;const i=[],s=void 0!==a?(1-a)/(1+a):1/3;for(let t=0;t<e.length;t+=1){r+=e[t].value;const a={name:void 0===e[t].name?`series${t}`:e[t].name,type:"surface",parametric:!0,wireframe:{show:!1},pieData:e[t],pieStatus:{selected:!1,hovered:!1,k:s}};if(void 0!==e[t].itemStyle){const{itemStyle:o}=e[t];void 0!==e[t].itemStyle.color&&(o.color=e[t].itemStyle.color),void 0!==e[t].itemStyle.opacity&&(o.opacity=e[t].itemStyle.opacity),a.itemStyle=o}o.push(a)}for(let u=0;u<o.length;u+=1)n=l+o[u].pieData.value,o[u].pieData.startRatio=l/r,o[u].pieData.endRatio=n/r,o[u].parametricEquation=t(o[u].pieData.startRatio,o[u].pieData.endRatio,!1,!1,s,o[u].pieData.value===o[0].pieData.value?35:10),l=n,i.push(o[u].name);return{legend:{show:!0,bottom:30,textStyle:{color:"rgba(51, 51, 51, 1)"}},tooltip:{formatter:e=>{if("mouseoutSeries"!==e.seriesName){let a="";return ja.arr.forEach((t=>{t.name==e.seriesName&&(a=t.area)})),`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${e.color};"></span>${e.seriesName}:${Number(a)}亩`}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:o}}(ja.arr,0);function t(e,a,t,o,r,l){const n=(e+a)/2,i=e*Math.PI*2,s=a*Math.PI*2,u=n*Math.PI*2;0===e&&1===a&&(t=!1),r=void 0!==r?r:1/3;const d=t?.1*Math.cos(u):0,c=t?.1*Math.sin(u):0,m=o?1.05:1;return{u:{min:-Math.PI,max:3*Math.PI,step:Math.PI/32},v:{min:0,max:2*Math.PI,step:Math.PI/20},x:(e,a)=>e<i?d+Math.cos(i)*(1+Math.cos(a)*r)*m:e>s?d+Math.cos(s)*(1+Math.cos(a)*r)*m:d+Math.cos(e)*(1+Math.cos(a)*r)*m,y:(e,a)=>e<i?c+Math.sin(i)*(1+Math.cos(a)*r)*m:e>s?c+Math.sin(s)*(1+Math.cos(a)*r)*m:c+Math.sin(e)*(1+Math.cos(a)*r)*m,z:(e,a)=>e<.5*-Math.PI?Math.sin(e):e>2.5*Math.PI?Math.sin(e)*l*.1:Math.sin(a)>0?1*l*.1:-1}}e.clear(),e.setOption(a),O(e,a)}function vt(){const e=X(W.value);let a=[];for(const o in ba)Ca[o].forEach((e=>{e&&a.push(o)}));let t={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:a},tooltip:{formatter:function(e){let a=0;return st.value.forEach((t=>{t.name==e.seriesName&&t.region==e.name&&(a=t.area)})),e.seriesName+'<span style="font-size: 14px; color: #f00;">'+a+"</span>亩"}},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:va},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:"小麦",type:"bar",barWidth:24,stack:"stack",data:ba.小麦,itemStyle:{normal:{barBorderRadius:0,color:new H(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:"小麦",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"大豆",type:"bar",barWidth:24,stack:"stack",data:ba.大豆,itemStyle:{normal:{barBorderRadius:0,color:new H(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:"大豆",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"茶叶",type:"bar",barWidth:24,stack:"stack",data:ba.茶叶,itemStyle:{normal:{barBorderRadius:0,color:new H(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:"茶叶",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"花生",type:"bar",barWidth:24,stack:"stack",data:ba.花生,itemStyle:{normal:{barBorderRadius:0,color:new H(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:"花生",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"蓝莓",type:"bar",barWidth:24,stack:"stack",data:ba.蓝莓,itemStyle:{normal:{barBorderRadius:0,color:new H(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:"蓝莓",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"地瓜",type:"bar",barWidth:24,stack:"stack",data:ba.地瓜,itemStyle:{normal:{barBorderRadius:0,color:new H(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:"地瓜",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"玉米",type:"bar",barWidth:24,stack:"stack",data:ba.玉米,itemStyle:{normal:{barBorderRadius:0,color:new H(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:"玉米",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}},{name:"马铃薯",type:"bar",barWidth:24,stack:"stack",data:ba.马铃薯,itemStyle:{normal:{barBorderRadius:0,color:new H(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:"马铃薯",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(119, 119, 119, 1)"}}}]};e.on("click",(function(e){var a=window.location.host;if(!/^(([-\u4E00-\u9FA5a-z0-9]{1,63})\.)+([\u4E00-\u9FA5a-z]{2,63})\.?$/.test(a)){document.querySelector(".tool").style.display="block",ca.value=e.name;let a=["XJQY3702112019WGS84","CJQY3702112019WGS84"];!function(e){let a="",t="",o="",r="",l="";t=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,a=e,o="T2019_2022高标准农田片区",r="2019-2022gaobiaozhunnongtian",l="DKMC";var n=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${o}@${r}`,attributeFilter:`DKMC like '%${a}%'`},datasetNames:[`${r}:${o}`]});new ol.supermap.FeatureService(t).getFeaturesBySQL(n,(function(e){if(0!=e.result.featureCount){var a=Pa.getLayers().getArray().find((e=>"zhezhao"===e.get("id")));Pa.removeLayer(a);var t=Pa.getLayers().getArray().find((e=>"gbz"===e.get("id")));Pa.removeLayer(t);var o=Pa.getLayers().getArray().find((e=>"dianjigaoliang"===e.get("id")));Pa.removeLayer(o);var r=Pa.getLayers().getArray().find((e=>"dianjigaoliangs"===e.get("id")));Pa.removeLayer(r);var l=(new ol.format.GeoJSON).readFeatures(e.result.features);Ga(e.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var n=new ol.source.Vector;n.addFeatures(l);const s=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var i=new ol.layer.Vector({id:"dianjigaoliang",source:n});i.setStyle(s),Pa.addLayer(i),Pa.getView().fit(n.getExtent())}}))}(e.name),a.forEach((e=>{Pa.getLayers().getArray().forEach(((a,t)=>{a.A.name==e&&Pa.getLayers().removeAt(t)}))})),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao"].forEach((e=>{Pa.getLayers().getArray().forEach(((a,t)=>{a.A.name!=e&&a.A.id!=e||Pa.getLayers().removeAt(t)}))})),na=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}),Pa.addLayer(na)}})),t&&e.setOption(t,{notMerge:!0,grid:{bottom:20}}),O(e,t),U().listenTo(W.value,(()=>{s((()=>{e.resize()}))}))}function bt(){const e=X(N.value);let a=[];for(const o in Ca)Ca[o].forEach((e=>{e&&a.push(o)}));var t={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:a},tooltip:{formatter:function(e){let a=0;return j.brr.forEach((t=>{t.name==e.seriesName&&t.tomeName==e.name&&(a=t.area)})),e.seriesName+'<span style="font-size: 14px; color: #f00;">'+a+"</span>亩"}},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:Ta.title,inverse:!0}],series:[{type:"bar",name:"茶叶",stack:"总量",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"茶叶",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:Ca.茶叶},{type:"bar",name:"地瓜",stack:"总量",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"地瓜",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:Ca.地瓜},{type:"bar",name:"大豆",stack:"总量",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"大豆",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:Ca.大豆},{type:"bar",name:"花生",stack:"总量",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"花生",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:Ca.花生},{type:"bar",name:"小麦",stack:"总量",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"小麦",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:Ca.小麦},{type:"bar",name:"蓝莓",stack:"总量",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"蓝莓",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:Ca.蓝莓},{type:"bar",name:"玉米",stack:"总量",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"玉米",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:Ca.玉米},{type:"bar",name:"马铃薯",stack:"总量",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"马铃薯",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:Ca.马铃薯}]};t&&e.setOption(t,{notMerge:!0,grid:{bottom:20}}),O(e,t),U().listenTo(N.value,(()=>{s((()=>{e.resize()}))}))}function yt(){const e=X(A.value);let a=[],t=[],o=[],r=[],l=[],n=[],i=[],s=[],u=[];ta.value.forEach((e=>{a.push(e.region),void 0!==e.小麦&&t.push(e.小麦),void 0!==e.玉米&&o.push(e.玉米),void 0!==e.大豆&&r.push(e.大豆),void 0!==e.地瓜&&l.push(e.地瓜),void 0!==e.花生&&n.push(e.花生),void 0!==e.蓝莓&&i.push(e.蓝莓),void 0!==e.茶叶&&s.push(e.茶叶),void 0!==e.马铃薯&&u.push(e.马铃薯)}));let d={tooltip:{trigger:"axis",formatter:function(e){let a=e[0].axisValueLabel+"</br>",t=0;for(let o=0;o<e.length;o++)t+=e[o].value,"合计"!==e[o].seriesName&&(a+=e[o].seriesName+":"+e[o].value+"</br>");for(let o=0;o<e.length;o++)t+=Number(e[o].value),"合计"===e[o].seriesName&&(a+="合计:"+t);return a},axisPointer:{type:"shadow"}},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"90%",start:0,end:10/a.length*100,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:"区域",axisLabel:{fontSize:12,interval:0,rotate:0},axisLine:{lineStyle:{}},data:a},yAxis:[{type:"value",name:"面积(亩)",axisLabel:{},axisLine:{lineStyle:{}},splitLine:{lineStyle:{},show:!0}}],series:[{name:"小麦",type:"bar",barWidth:13,stack:"分类",itemStyle:{color:"rgba(34, 252, 10, 1)"},data:t},{name:"玉米",type:"bar",barWidth:13,stack:"分类",itemStyle:{color:"rgba(255, 171, 87, 1)"},data:o},{name:"大豆",type:"bar",barWidth:13,stack:"分类",itemStyle:{color:"rgba(26, 255, 215, 1)"},data:r},{name:"地瓜",type:"bar",barWidth:13,stack:"分类",itemStyle:{color:"rgba(140, 26, 255, 1)"},data:l},{name:"花生",type:"bar",barWidth:13,stack:"分类",itemStyle:{color:"rgba(255, 55, 255, 1)"},data:n},{name:"蓝莓",type:"bar",barWidth:13,stack:"分类",itemStyle:{color:" rgba(23, 143, 255, 1)"},data:i},{name:"茶叶",type:"bar",barWidth:13,stack:"分类",itemStyle:{color:"rgba(255, 255, 26, 1)"},data:s},{name:"马铃薯",type:"bar",barWidth:13,stack:"分类",itemStyle:{color:"rgba(255, 18, 18, 1)"},data:u},{name:"合计",type:"bar",stack:"分类",label:{normal:{show:!0,position:"top",textStyle:{color:"#ffffff"},formatter:""}},data:[]}]};var c=d.series;d.tooltip.formatter=function(e){let a=e[0].axisValueLabel+"</br>",t=0;for(let o=0;o<e.length;o++)if("合计"!==e[o].seriesName){const r=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${e[o].color}"></span>`;t+=e[o].value,a+=r+e[o].seriesName+":"+e[o].value+"</br>"}for(let o=0;o<e.length;o++)"合计"===e[o].seriesName&&(a+="合计:"+t);return a},c[c.length-1].label.normal.formatter=function(e){for(var a=0,t=0;t<c.length;t++)a+=c[t].data[e.dataIndex];return a},O(e,d)}return r((()=>[L.value,Da.value]),(()=>{L.value&&Da.value&&pt()})),(e,a)=>{const t=u("el-option"),o=u("el-select"),r=u("el-icon"),l=u("el-tooltip"),n=u("el-checkbox"),i=u("el-checkbox-group"),s=u("el-collapse-item"),_=u("el-collapse"),$=u("el-button"),O=u("el-form-item"),D=u("el-form"),R=u("el-table-column"),F=u("el-table"),J=u("el-pagination");return d(),c("div",K,[m("div",ee,[ae,m("div",te,[m("div",oe,[m("div",{class:g(h(fa)?"tabarS":""),onClick:a[0]||(a[0]=e=>ot(!0))},"黄岛区",2),m("div",{class:g(h(fa)?"":"tabarS"),onClick:a[1]||(a[1]=e=>ot(!1))},"行政区",2)]),f(m("div",re,[m("div",le,[ne,ie,m("p",{onClick:a[2]||(a[2]=e=>{q({divisions:Ye.value,yearMonth:da.value.name,whetherToDownload:!0}).then((e=>{T(e.data[e.data.length-1].downloadPath)}))})},[v(" 下载 "),se])]),m("div",{ref_key:"areaDiv",ref:C,class:"areaDiv"},null,512)],512),[[p,h(fa)]]),h(fa)?(d(),c("div",ue,[m("div",de,[ce,me,m("p",{onClick:a[3]||(a[3]=e=>{G({divisions:Ye.value,yearMonth:da.value.name,whetherToDownload:!0}).then((e=>{T(e.data[e.data.length-1].downloadPath)}))})},[v(" 下载 "),ge])]),m("div",{ref_key:"typesofDiv",ref:L,class:"typesofDiv"},null,512)])):b("",!0),f(m("div",he,[m("div",fe,[pe,ve,h(pa)?(d(),c("p",{key:0,onClick:a[4]||(a[4]=e=>{P({divisions:Ye.value,yearMonth:da.value.name,whetherToDownload:!1}).then((e=>{let a=[],t=[];e.data.forEach((e=>{-1==a.indexOf(e.region)&&a.push(e.region)})),a.forEach((e=>{t.push(Object.create(null,{regio:{value:e}}))})),t.forEach((a=>{e.data.map((e=>{a.regio===e.region&&(a.region=e.region,a[e.name]=e.area)}))})),Ma(t,"作物类型统计-高标准农田","Sheet1")}))})},[v(" 下载 "),be])):b("",!0)]),f(m("div",{ref_key:"farmlandDiv",ref:W,class:"farmlandDiv"},null,512),[[p,h(pa)]]),h(pa)?b("",!0):(d(),c("div",ye,we))],512),[[p,!h(fa)]]),f(m("div",Se,[m("div",xe,[ke,ze,m("p",{onClick:a[5]||(a[5]=e=>(()=>{if("行政区划"==Ue.value){let e="";j.arr.forEach((a=>{a.subregion==Ye.value&&(e="全部"==a.subregionName?"黄岛区":a.subregionName)})),"370211"===Ye.value?I({divisions:Ye.value,yearMonth:da.value.name,whetherToDownload:!1}).then((a=>{let t=[],o=[];a.data.forEach((e=>{-1==t.indexOf(e.tomeName)&&t.push(e.tomeName)})),t.forEach((e=>{o.push(Object.create(null,{regio:{value:e}}))})),o.forEach((e=>{a.data.map((a=>{e.regio===a.tomeName&&(e.region=a.tomeName,e[a.name]=a.area)}))})),Ma(o,`${e}作物类型统计-行政区划`,"Sheet1")})):V({divisions:Ye.value,yearMonth:da.value.name,whetherToDownload:!1}).then((a=>{let t=[],o=[];a.data.forEach((e=>{-1==t.indexOf(e.tomeName)&&t.push(e.tomeName)})),t.forEach((e=>{o.push(Object.create(null,{regio:{value:e}}))})),o.forEach((e=>{a.data.map((a=>{e.regio===a.tomeName&&(e.region=a.tomeName,e[a.name]=a.area)}))})),Ma(o,`${e}作物类型统计-行政区划`,"Sheet1")}))}else"高标准农田"==Ue.value&&P({divisions:Ye.value,yearMonth:da.value.name,whetherToDownload:!1}).then((e=>{let a=[],t=[];e.data.forEach((e=>{-1==a.indexOf(e.region)&&a.push(e.region)})),a.forEach((e=>{t.push(Object.create(null,{regio:{value:e}}))})),t.forEach((a=>{e.data.map((e=>{a.regio===e.region&&(a.region=e.region,a[e.name]=e.area)}))})),Ma(t,"作物类型统计-高标准农田","Sheet1")}))})())},[v(" 下载 "),Ee])]),m("div",_e,[h(pa)?(d(),y(o,{key:0,"popper-class":"select_citys",style:{width:"300px"},modelValue:Ye.value,"onUpdate:modelValue":a[6]||(a[6]=e=>Ye.value=e),placeholder:"全部",disabled:"高标准农田"==h(Ue),teleported:"“false”"},{default:w((()=>[(d(!0),c(S,null,x(h(j).arr,(e=>(d(),y(t,{key:e.tomeCode,label:e.tomeName,value:e.tomeCode},null,8,["label","value"])))),128))])),_:1},8,["modelValue","disabled"])):b("",!0)]),f(m("div",{ref_key:"ASdivisionDiv",ref:N,class:"ASdivision"},null,512),[[p,"行政区划"==h(Ue)]])],512),[[p,!h(fa)]]),m("div",{class:"rightFoldDiv",onClick:a[7]||(a[7]=e=>(Ze.value=!Ze.value,void(Ze.value?document.querySelector(".rightWra").style.transform="translate(0,0)":document.querySelector(".rightWra").style.transform="translate(101%,0)")))},[k(l,{disabled:!h(Ze),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"收起",placement:"top"},{default:w((()=>[h(Ze)?(d(),y(r,{key:0},{default:w((()=>[$e])),_:1})):b("",!0)])),_:1},8,["disabled"]),k(l,{disabled:h(Ze),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"展开",placement:"top"},{default:w((()=>[h(Ze)?b("",!0):(d(),y(r,{key:0},{default:w((()=>[Me])),_:1}))])),_:1},8,["disabled"])]),m("div",{class:"tool",onClick:a[8]||(a[8]=e=>h(ht)())},Ce)]),k(_,{class:"legend",accordion:""},{default:w((()=>[k(s,{name:"1"},{title:w((()=>[v("图例")])),default:w((()=>[m("div",Le,[k(i,{modelValue:Xa.value,"onUpdate:modelValue":a[9]||(a[9]=e=>Xa.value=e),onChange:Za},{default:w((()=>[(d(!0),c(S,null,x(h(Wa),((e,a,t)=>(d(),y(n,{key:t,"v-model":e.disabled,disabled:e.disabled,label:a},{default:w((()=>[m("span",{style:z({background:e.color,border:`1px solid ${e.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),v(" "+E(a),1)])),_:2},1032,["v-model","disabled","label"])))),128))])),_:1},8,["modelValue"])])])),_:1})])),_:1}),m("div",We,[h(sa).length>0?(d(),y(B,{key:0,dataSource:h(sa),allCount:h(ua),onGetcurrentPage:ct,onDataHandle:tt},null,8,["dataSource","allCount"])):b("",!0)]),Ae,m("div",Ne,[je,m("div",Te,[(d(!0),c(S,null,x(h(ia),((e,a)=>(d(),c("p",{key:a},[m("div",Be,E(e.name)+":",1),m("span",null,E(e.area)+"(亩)",1)])))),128))]),Oe]),He.value?(d(),y($,{key:0,class:"back_button",onClick:a[10]||(a[10]=e=>(Ye.value="370211",deleteEntityByName("townLine"),M.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),void(He.value=!1)))},{default:w((()=>[v("返回")])),_:1})):b("",!0)]),m("div",Ie,[m("div",De,[k(D,{inline:!0,model:h(ya),class:"demo-form-inline"},{default:w((()=>[k(O,{label:"时间:"},{default:w((()=>[k(o,{"popper-class":"selectCity",modelValue:h(ya).yearMonth,"onUpdate:modelValue":a[11]||(a[11]=e=>h(ya).yearMonth=e),placeholder:"请选择"},{default:w((()=>[(d(!0),c(S,null,x(h(ra),((a,o)=>(d(),y(t,{key:o,label:e.Zitem,value:a},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),k(O,{label:"统计方式:"},{default:w((()=>[k(o,{"popper-class":"selectCity",modelValue:h(ya).flag,"onUpdate:modelValue":a[12]||(a[12]=e=>h(ya).flag=e),placeholder:"请选择"},{default:w((()=>[k(t,{label:"行政区划",value:"2"}),h(pa)?(d(),y(t,{key:0,label:"高标准农田",value:"1"})):b("",!0)])),_:1},8,["modelValue"])])),_:1}),k(O,{label:"镇:"},{default:w((()=>[k(o,{modelValue:h(ya).divisions,"onUpdate:modelValue":a[13]||(a[13]=e=>h(ya).divisions=e),disabled:"2"!=h(ya).flag,placeholder:"2"==h(ya).flag?"全部":"请选择","popper-class":"selectCity"},{default:w((()=>[(d(!0),c(S,null,x(h(Z),((e,a)=>(d(),y(t,{key:a,label:e.tomeName,value:e.tomeCode},null,8,["label","value"])))),128))])),_:1},8,["modelValue","disabled","placeholder"])])),_:1}),k(O,null,{default:w((()=>[k($,{type:"primary",onClick:Sa},{default:w((()=>[v("查询")])),_:1}),k($,{plain:"",onClick:xa},{default:w((()=>[v("重置")])),_:1}),h(Ke)?b("",!0):(d(),y($,{key:0,type:"primary",text:"",onClick:$a},{default:w((()=>[Pe,v(" 下载 ")])),_:1})),""==h(ya).divisions?(d(),y($,{key:1,type:"primary",text:"",onClick:Ea},{default:w((()=>[Ve,v(" 下载所有村数据 ")])),_:1})):b("",!0)])),_:1})])),_:1},8,["model"]),m("div",{class:"modeDiv",onClick:Ka},[m("div",{class:g(h(la)?"Selected":"")},"表格模式",2),m("div",{class:g(h(la)?"":"Selecteds")},"图表模式",2)])]),f(m("div",qe,[m("div",Ge,[h(Ke)?b("",!0):(d(),y(F,{key:0,data:h(wa),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:w((()=>[k(R,{align:"center",prop:"合计",width:"80"}),(d(!0),c(S,null,x(h(ka),((e,a)=>(d(),y(R,{key:a,prop:e.value,label:0==a?e.lable:e.lable+"(亩)",align:"center"},null,8,["prop","label"])))),128)),h(Ke)?(d(),y(R,{key:0,prop:"address",align:"center",label:"操作"},{default:w((e=>[m("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:a=>_a(e.row)}," 下载 ",8,Re)])),_:1})):b("",!0)])),_:1},8,["data"]))]),k(F,{data:h(za),"header-cell-style":{"text-align":"center"},height:"90%","highlight-current-row":"","header-row-class-name":"tabth"},{default:w((()=>[k(R,{type:"index",width:"80",align:"center",label:"序号",index:at}),(d(!0),c(S,null,x(h(ka),((e,a)=>(d(),y(R,{key:a,prop:e.value,label:0==a?e.lable:e.lable+"(亩)",align:"center"},null,8,["prop","label"])))),128)),h(Ke)?(d(),y(R,{key:0,prop:"address",align:"center",label:"操作"},{default:w((e=>[m("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:a=>_a(e.row)}," 下载 ",8,Fe)])),_:1})):b("",!0)])),_:1},8,["data"]),m("div",Je,[v(" 共"+E(ta.value.length)+"条 ",1),k(J,{background:"",layout:"prev, pager, next",total:ta.value.length,"current-page":h(ea),"page-size":h(aa),onCurrentChange:et},null,8,["total","current-page","page-size"])])],512),[[p,h(la)]]),f(m("div",Qe,[m("div",{ref_key:"chartModeDiv",ref:A,class:"chartModeDiv"},null,512)],512),[[p,!h(la)]])])])}}},[["__scopeId","data-v-bb59c22b"]]);export{Ye as default};
|