16 lines
44 KiB
JavaScript
16 lines
44 KiB
JavaScript
import{_ as Pt,a as zt,r as g,A as Qe,U as Xe,V as At,W as Vt,d as R,o as _,c as D,l as c,m as z,L as $,N as j,x as Q,F as Ne,f as m,e as x,w as S,g as L,k as A,G as Ye,C as Ke,D as et,y as qt,a2 as $t,p as jt,q as Ft}from"./index.3607d347.js";import ge from"./downloads.e955445d.js";import{_ as Ht}from"./crops.d314ada0.js";import{_ as ve}from"./close1.45635d81.js";import{_ as Jt,a as Zt,b as Gt,c as Ut,d as Qt,e as Xt}from"./linesGL.90f708a5.js";import{_ as Yt}from"./dow.f37c8d82.js";import{d as Ee}from"./download.0d201ed7.js";import{i as X,L as me}from"./index.c9f5bd8b.js";import{T as Kt}from"./TimeLine.531d10aa.js";import{u as re}from"./useEcharts.f73a23ae.js";import{d as be,b as tt,g as ea,e as at,f as ot,h as ta,i as aa,j as oa,c as lt}from"./classify.dabeca2f.js";import{u as De,w as la}from"./xlsx.86b9426e.js";const P=ie=>(jt("data-v-076bbc79"),ie=ie(),Ft(),ie),ra={class:"fatherDiv"},ia={class:"centerBox"},sa=P(()=>c("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),na={class:"leftWra"},da={class:"leftTop"},ca={class:"title"},ua=P(()=>c("span",null,"\u4F5C\u7269\u5206\u7C7B\u9762\u79EF\u7EDF\u8BA1",-1)),fa=P(()=>c("img",{src:ge,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),pa={class:"leftbottom"},ha={class:"title"},ma=P(()=>c("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1",-1)),ba=P(()=>c("img",{src:ge,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ga={class:"tableDiv"},va=P(()=>c("img",{src:Ht,alt:""},null,-1)),ya={key:0,src:ve,alt:""},_a={key:0,class:"imgrotate",src:ve,alt:""},wa={class:"rightWra"},xa={class:"rightTop"},Sa={class:"title"},Ca=P(()=>c("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),ka=P(()=>c("img",{src:ge,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ma={class:"rightbottom"},Wa={class:"title"},Na=P(()=>c("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Ea=P(()=>c("img",{src:ge,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Da={key:0,src:ve,alt:""},Ia={key:0,class:"imgrotate",src:ve,alt:""},La={class:"mt-4"},Ta={class:"bottom_center"},Ba=qt('<div class="tool" data-v-076bbc79><span data-v-076bbc79><img src="'+Jt+'" alt="" data-v-076bbc79></span><span data-v-076bbc79><img src="'+Zt+'" alt="" data-v-076bbc79></span><span data-v-076bbc79><img src="'+Gt+'" alt="" data-v-076bbc79></span><span data-v-076bbc79><img src="'+Ut+'" alt="" data-v-076bbc79></span><span data-v-076bbc79><img src="'+Qt+'" alt="" data-v-076bbc79></span><span data-v-076bbc79><img src="'+Xt+'" alt="" data-v-076bbc79></span></div><div id="pop" data-v-076bbc79></div>',2),Ra={id:"popup1"},Oa={class:"rowWra"},Pa=P(()=>c("span",null,"\u5730\u533A\uFF1A",-1)),za={class:"tabulation"},Aa={class:"searchDiv"},Va=P(()=>c("img",{src:Yt,alt:""},null,-1)),qa={class:"tableBox"},$a={class:"tableBorder"},ja=["onClick"],Fa=["onClick"],Ha={class:"example-pagination-block"},Ja={class:"chartMode"},Za={__name:"Classify",setup(ie){const Ie=zt();let b=g(null);const ye=g(null),Le=g(null),Te=g(null),se=g(null),Be=g(null);let O=Qe({arr:[],brr:[],crr:[]}),_e=g([]);const N=g("370211"),F=g({info:[]});let Re=g([]);const Oe=g(!1);let H=g(!1),J=g(!1),V=g(!0),Z=g(1),q=g(14);const G=g([]);let Pe=g([]),we=g([]),U=g(!0),ne=g(null),ze=g(null),Ae=g(""),Ve=["\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"],Y={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},w=g({yearMonth:"",flag:"2",divisions:""}),de=g([]);Xe(()=>V.value,(t,e)=>{t?window.document.querySelector(".tableBox").style.height="90%":window.document.querySelector(".tableBox").style.height="83%"});const xe=()=>{if(!w.value.yearMonth){$t.error("\u8BF7\u9009\u62E9\u65F6\u95F4");return}let t=[],e=[];oa({yearMonth:w.value.yearMonth,flag:w.value.flag===""?0:w.value.flag,divisions:w.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"}],w.value.flag=="1")w.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(w.value.flag=="2"){let r=[],s=[];be({divisions:w.value.divisions?w.value.divisions:"370211"}).then(d=>{d.data.forEach(h=>{r.indexOf(h.tomeName)==-1&&r.push(h.tomeName)}),r.forEach(h=>{s.push(Object.create(null,{regio:{value:h}}))}),s.forEach(h=>{d.data.map(u=>{h.regio===u.tomeName&&(h.region=u.tomeName,h[u.name]=u.area)})}),O.arr.forEach(h=>{if(w.value.divisions==h.tomeCode){s[0].region=h.tomeName,s[0].\u5408\u8BA1="\u5408\u8BA1";return}else h.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(h=>{d.regio===h.tomeName&&(d.region=h.tomeName,d[h.name]=h.area)})}),V.value=!1}else w.value.flag==0&&(V.value=!0,e=l.data,ee=g([{lable:"\u65F6\u95F4",value:"dateTime"},{lable:"\u6570\u636E\u540D\u79F0",value:"excelName"}]));G.value=e,Se.value=e.slice((Z.value-1)*q.value,(Z.value-1)*q.value+q.value);const o=se.value;o.style.width=window.innerWidth-100+"px",o.style.height=window.innerHeight-100+"px";const a=X(o);window.addEventListener("resize",()=>{o.style.width=window.innerWidth-200+"px",o.style.height=window.innerHeight-200+"px",a.resize()}),Ue()})},rt=()=>{w.yearMonth=we.value[0],w.flag=2,w.divisions="",V.value=!0,xe()};let ee=g([{lable:"\u65F6\u95F4",value:"dateTime"},{lable:"\u6570\u636E\u540D\u79F0",value:"excelName"}]),Se=g([]);const it=t=>{be({divisions:N.value,whetherToDownload:!0}).then(e=>{Ee(e.data[e.data.length-1].downloadPath)})},st=t=>{at({divisions:N.value,whetherToDownload:!0}).then(e=>{Ee(e.data[e.data.length-1].downloadPath)})},nt=t=>{ot({divisions:N.value,whetherToDownload:!1}).then(e=>{let l=[],o=[];e.data.forEach(a=>{l.indexOf(a.region)==-1&&l.push(a.region)}),l.forEach(a=>{o.push(Object.create(null,{regio:{value:a}}))}),o.forEach(a=>{e.data.map(r=>{a.regio===r.region&&(a.region=r.region,a[r.name]=r.area)})}),ce(o,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},dt=t=>{let e="";O.arr.forEach(l=>{l.subregion==N.value&&(e=l.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":l.subregionName)}),N.value==="370211"?tt({divisions:N.value,whetherToDownload:!1}).then(l=>{let o=[],a=[];l.data.forEach(r=>{o.indexOf(r.tomeName)==-1&&o.push(r.tomeName)}),o.forEach(r=>{a.push(Object.create(null,{regio:{value:r}}))}),a.forEach(r=>{l.data.map(s=>{r.regio===s.tomeName&&(r.region=s.tomeName,r[s.name]=s.area)})}),ce(a,`${e}\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")}):lt({divisions:N.value,whetherToDownload:!1}).then(l=>{let o=[],a=[];l.data.forEach(r=>{o.indexOf(r.tomeName)==-1&&o.push(r.tomeName)}),o.forEach(r=>{a.push(Object.create(null,{regio:{value:r}}))}),a.forEach(r=>{l.data.map(s=>{r.regio===s.tomeName&&(r.region=s.tomeName,r[s.name]=s.area)})}),ce(a,`${e}\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})},qe=t=>{Ee(t.download)},ct=()=>{let t=JSON.parse(JSON.stringify(de.value[0]));t.region="\u5408\u8BA1",G.value.push(t),ce(G.value,"\u519C\u4F5C\u7269\u79CD\u690D\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},ut=(t,e)=>t.map(o=>{const a={};for(const r in o)e[r]&&(a[e[r]]=o[r]);return a}),ce=(t,e="\u7528\u6237\u5217\u8868",l="Sheet1")=>{const a=ut(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=De.json_to_sheet(a),s=De.book_new();De.book_append_sheet(s,r,l),la(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=Qe({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=g([]),Ce=g([]);At(()=>{ft()});function ft(){Fe("370211"),He("370211"),Lt(),je("370211"),ht(),We(),Ze(),Ge(),he(),Tt(),Bt();for(const l in te)te[l].disabled!==!0&&Pe.value.push(l);pe.value=Pe.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(Ie.currentRoute.value.path,!0)}Vt(()=>{localStorage.getItem(Ie.currentRoute.value.path)=="false"?document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F":document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F"});const pt={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(){b=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({...pt})}),b.cesiumWidget.creditContainer.style.display="none",b.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),_t(b),b.scene.screenSpaceCameraController.minimumZoomDistance=450,b.scene.screenSpaceCameraController.maximumZoomDistance=72e4,b.scene.screenSpaceCameraController._minimumZoomRate=3e4,b.scene.screenSpaceCameraController._maximumZoomRate=5906376272e3,mt(),vt()}const mt=()=>{b.scene.preRender.addEventListener(()=>{b.camera.positionCartographic.height<=13e3?ne.show=!0:(ne.show=!1,ze.show=!0)})},bt=()=>{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=b.imageryLayers.addImageryProvider(t),ne.show=!1},gt=()=>{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"}});ze=b.imageryLayers.addImageryProvider(t)},vt=()=>{new Cesium.ScreenSpaceEventHandler(b.scene.canvas).setInputAction(e=>{let l=b.scene.globe.pick(b.camera.getPickRay(e.position),b.scene),a=b.scene.globe.ellipsoid.cartesianToCartographic(l),r=Cesium.Math.toDegrees(a.longitude),s=Cesium.Math.toDegrees(a.latitude);b.selectedEntity=void 0;var d=b.camera.getPickRay(e.position),h=b.imageryLayers.pickImageryLayerFeatures(d,b.scene);(async()=>{if(!Cesium.defined(h))console.log("No features picked.");else try{const u=await h;console.log(u),u[u.length-1].properties.XZQDM||(N.value=u[u.length-1].properties.XZDM,Ae.value=u[u.length-1].properties.XZMC,be({divisions:N.value}).then(k=>{F.value={info:k.data,lon:r,lat:s}}),console.log(111),Me()),Ct(e.position),b.scene.postRender.addEventListener($e)}catch(u){console.error("Error occurred:",u)}})()},Cesium.ScreenSpaceEventType.LEFT_CLICK)},pe=g(["false"]);function yt(t,e){}function _t(t){t.screenSpaceEventHandler.setInputAction(e=>{const l=t.scene.camera.positionCartographic.height,o=Cesium.Math.sign(e)*l/Math.log(l);isNaN(o)||t.scene.camera.zoomIn(o)},Cesium.ScreenSpaceEventType.WHEEL)}Xe(()=>pe.value,(t,e)=>{t.length>e.length?(t.filter(o=>{if(e.findIndex(r=>r===o)<0)return o}).forEach(o=>{ae[o]&&wt(ae[o],ae[o])}),bt(),gt()):t.length<e.length&&e.filter(o=>{if(t.findIndex(r=>r===o)<0)return o}).forEach(o=>{ae[o]&&ke([ae[o]])})});function wt(t,e,l){let o=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"}});o.customName=e;let a=b.imageryLayers.addImageryProvider(o);return l&&(b.imageryLayers.lowerToBottom(a),b.imageryLayers.raise(a)),o}function xt(t,e,l){t.forEach(o=>{let a=[];o[0].forEach(r=>{a.push(r[0]),a.push(r[1])}),b.entities.add({name:e,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(a),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:l?Cesium.Color.fromCssColorString(l):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function ke(t,e){if(b){const l=b.imageryLayers._layers;for(let o=l.length-1;o>=0;o--)t.forEach(a=>{l[o]&&l[o]._imageryProvider&&l[o]._imageryProvider.customName&&(e?l[o]._imageryProvider.customName.indexOf(a)>-1&&b.imageryLayers.remove(l[o]+"@"+l[o]):l[o]._imageryProvider.customName===a&&b.imageryLayers.remove(l[o]))})}}function le(t){if(b){let l=b.entities._entities._array;for(var e=l.length-1;e>=0;e--)l[e]._name&&l[e]._name===t&&b.entities.remove(l[e])}}function $e(){if(F.value&&F.value.lon&&F.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(F.value.lon),Number(F.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(b.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",b.scene.postRender.removeEventListener($e),N.value="370211",le("townLine"),Me()}function Ct(t){const e=document.getElementById("popup1");e.style.position="absolute",e.style.top=t.y-10+"px",e.style.left=t.x+10+"px",e.style.display="block",e.style.zIndex=99}function kt(){U.value=!U.value;const t=se.value;t.style.width=window.innerWidth-100+"px",t.style.height=window.innerHeight-100+"px";const e=X(t);window.addEventListener("resize",()=>{t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px",e.resize()}),Ue()}g([]);const Mt=t=>{Z.value=t,Se.value=G.value.slice((Z.value-1)*q.value,(Z.value-1)*q.value+q.value)},Wt=t=>{const e=Z.value,l=q.value;return t+1+(e-1)*l};function Nt(){N.value="370211",le("townLine"),b.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Oe.value=!1}function Et(){if(H.value=!H.value,H.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 Dt(){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 je=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:[]},tt({divisions:t}).then(e=>{e.data.forEach((s,d)=>{for(let h=0;h<Object.values(s).length;h++)Object.values(s)[h]=="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=[],o=[];O.arr.forEach(s=>{l.indexOf(s.tomeName)==-1&&(l.push(s.tomeName),o.push({tomeName:s.tomeName,tomeCode:s.tomeCode,area:s.area,type:s.type}))}),O.arr=o,_e.value=JSON.parse(JSON.stringify(O.arr)),_e.value[0].tomeCode="";let a=[...e.data],r=[];a.splice(0,1),a.forEach(s=>{r.indexOf(s.tomeName)==-1&&r.push(s.tomeName)}),K.title=[...Object.values(r)],K.title.forEach((s,d)=>{let h=e.data.map(u=>{if(s===u.tomeName)return u});Object.keys(W).forEach(u=>{h.findIndex(y=>y&&y.name===u)>-1?W[u].push(10):W[u].push(null)})}),he()})},It=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:[]},lt({divisions:t}).then(e=>{O.brr=e.data;let l=[...e.data],o=[];l.splice(0,1),l.forEach(a=>{o.indexOf(a.tomeName)==-1&&o.push(a.tomeName)}),K.title=[...Object.values(o)],K.title.forEach((a,r)=>{let s=e.data.map(d=>{if(a===d.tomeName)return d});Object.keys(W).forEach(d=>{s.findIndex(u=>u&&u.name===d&&Number(u.area)>0)>-1?W[d].push(1):W[d].push(null)})}),he()})},Lt=()=>{ea().then(t=>{t.features&&(O.crr=t.features,K.title.forEach((e,l)=>{let o=t.features.map(a=>{if(e===a.properties.town)return a.properties});Object.keys(W).forEach(a=>{o.findIndex(s=>s&&s.crop===a)>-1?W[a].push(1):W[a].push(null)})})),he()})},Fe=t=>{be({divisions:t}).then(e=>{e.data.forEach(l=>{fe.value.unshift(l.area),Ce.value.unshift(l.name)}),We()})},He=t=>{ue.arr=g([]),at({divisions:t}).then(e=>{let l=[];e.data.forEach(o=>{for(let a=0;a<oe.length;a++)if(o.name==oe[a].name){oe[a].area=o.area,oe[a].value=1;for(const r in te)r==o.name&&l.push({type:o.name,content:{value:o.area,percent:(o.areaB*100).toFixed(2)+"%",color:te[r].color}});ue.arr.push(oe[a])}Re.value=l}),Ze()})};let Je=g([]);const Tt=()=>{ot().then(t=>{Je.value=t.data,console.log(t.data),Ve.forEach((e,l)=>{let o=t.data.map(a=>{if(e===a.region)return a});Object.keys(W).forEach(a=>{o.findIndex(s=>s&&s.name===a&&Number(s.area)>0)>-1?Y[a].push(100):Y[a].push(null)})}),Ge()})},Me=()=>{if(Fe(N.value),He(N.value),fe=g([]),Ce=g([]),N.value=="370211"){je("370211"),le("townLine"),ke(["village_CQL"]);return}It(N.value),We(),ta().then(t=>{t.features.forEach(e=>{e.properties.XZDM==N.value&&(le("townLine"),xt(e.geometry.coordinates,"townLine","yellow"))})}),ke(["village_CQL"]),le("townLine")},Bt=()=>{aa().then(t=>{we.value=t.data,w.value.yearMonth=t.data[0],Rt(t.data[0])})},Rt=t=>{xe()};function We(){if(ye.value){const t=X(ye.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:Ce.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 Ze(){const t=X(Le.value);let e="",l="",o="",a=s(ue.arr,0);function r(d,h,u,k,y,M){const T=(d+h)/2,I=d*Math.PI*2,n=h*Math.PI*2,p=T*Math.PI*2;d===0&&h===1&&(u=!1),y=typeof y<"u"?y:1/3;const B=u?Math.cos(p)*.1:0,f=u?Math.sin(p)*.1:0,E=k?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<I?B+Math.cos(I)*(1+Math.cos(v)*y)*E:C>n?B+Math.cos(n)*(1+Math.cos(v)*y)*E:B+Math.cos(C)*(1+Math.cos(v)*y)*E},y(C,v){return C<I?f+Math.sin(I)*(1+Math.cos(v)*y)*E:C>n?f+Math.sin(n)*(1+Math.cos(v)*y)*E:f+Math.sin(C)*(1+Math.cos(v)*y)*E},z(C,v){return C<-Math.PI*.5?Math.sin(C):C>Math.PI*2.5?Math.sin(C)*M*.1:Math.sin(v)>0?1*M*.1:-1}}}function s(d,h){const u=[];let k=0,y=0,M=0;const T=[],I=typeof h<"u"?(1-h)/(1+h):1/3;for(let p=0;p<d.length;p+=1){k+=d[p].value;const B={name:typeof d[p].name>"u"?`series${p}`:d[p].name,type:"surface",parametric:!0,wireframe:{show:!1},pieData:d[p],pieStatus:{selected:!1,hovered:!1,k:I}};if(typeof d[p].itemStyle<"u"){const{itemStyle:f}=d[p];typeof d[p].itemStyle.color<"u"&&(f.color=d[p].itemStyle.color),typeof d[p].itemStyle.opacity<"u"&&(f.opacity=d[p].itemStyle.opacity),B.itemStyle=f}u.push(B)}for(let p=0;p<u.length;p+=1)M=y+u[p].pieData.value,u[p].pieData.startRatio=y/k,u[p].pieData.endRatio=M/k,u[p].parametricEquation=r(u[p].pieData.startRatio,u[p].pieData.endRatio,!1,!1,I,u[p].pieData.value===u[0].pieData.value?35:10),y=M,T.push(u[p].name);return{legend:{show:!0,bottom:0,textStyle:{color:"rgba(255,255,255,.9)"}},tooltip:{formatter:p=>{if(p.seriesName!=="mouseoutSeries"){let B="";return ue.arr.forEach(f=>{f.name==p.seriesName&&(B=f.area)}),`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${p.color};"></span>${p.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:u}}t.on("mouseover",function(d){let h,u,k,y,M,T;o!==d.seriesIndex&&(o!==""&&(h=a.series[o].pieStatus.selected,u=!1,k=a.series[o].pieData.startRatio,y=a.series[o].pieData.endRatio,M=a.series[o].pieStatus.k,T=a.series[o].pieData.value===a.series[0].pieData.value?35:10,a.series[o].parametricEquation=r(k,y,h,u,M,T),a.series[o].pieStatus.hovered=u,o=""),d.seriesName!=="mouseoutSeries"&&(h=a.series[d.seriesIndex].pieStatus.selected,u=!0,k=a.series[d.seriesIndex].pieData.startRatio,y=a.series[d.seriesIndex].pieData.endRatio,M=a.series[d.seriesIndex].pieStatus.k,a.series[d.seriesIndex].parametricEquation=r(k,y,h,u,M,a.series[d.seriesIndex].pieData.value+5),a.series[d.seriesIndex].pieStatus.hovered=u,o=d.seriesIndex),t.setOption(a))}),t.on("globalout",function(){if(o!==""){e=a.series[o].pieStatus.selected,l=!1;let d=a.series[o].pieStatus.k;startRatio=a.series[o].pieData.startRatio,endRatio=a.series[o].pieData.endRatio,i=a.series[o].pieData.value===a.series[0].pieData.value?35:10,a.series[o].parametricEquation=r(startRatio,endRatio,e,l,d,i),a.series[o].pieStatus.hovered=l,o=""}t.setOption(a)}),re(t,a)}function Ge(){const t=X(Te.value);let e={grid:{left:"3%",right:"4%",bottom:"3%",top:"10%",containLabel:!0},tooltip:{formatter:function(l){let o=0;return Je.value.forEach(a=>{a.name==l.seriesName&&a.region==l.name&&(o=a.area)}),l.seriesName+'<span style="font-size: 14px; color: #f00;">'+o+"</span>\u4EA9"}},xAxis:{type:"value",max:500,show:!1,axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},yAxis:{type:"category",inverse:!0,splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1},axisLabel:{interval:0,color:"rgba(255, 255, 255, 1)",fontSize:14},data:Ve},series:[{name:"\u5C0F\u9EA6",type:"bar",barWidth:12,stack:"stack",data:Y.\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:Y.\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:Y.\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:Y.\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 he(){const t=X(Be.value);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"6%",containLabel:!0},tooltip:{formatter:function(l){let o=0;return O.brr.forEach(a=>{a.name==l.seriesName&&a.tomeName==l.name&&(o=a.area)}),l.seriesName+'<span style="font-size: 14px; color: #f00;">'+o+"</span>\u4EA9"}},dataZoom:[{type:"slider",show:!1,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:10,startValue:0,endValue:4,handleIcon:"M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z",handleSize:"100%",handleStyle:{color:"#DBDBDB",height:"100%"},backgroundColor:"transparent",fillerColor:"#DBDBDB",textStyle:{color:"transparent"},dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:"transparent"}},borderColor:"transparent"},{type:"inside",id:"insideY",yAxisIndex:0,start:0,end:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(255, 255, 255, 1)",formatter:"{value}"},data:K.title,inverse:!0}],series:[{type:"bar",name:"\u8336\u53F6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u8336\u53F6",textStyle:{fontSize:12,fontWeight:"bolder",color:"black"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],borderWidth:1,borderColor:"rgba(0, 209, 195, 1)",color:{colorStops:[{offset:0,color:"rgba(0, 209, 195, 1)"},{offset:1,color:"rgba(0, 209, 195, 1)"}]}},data: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 Ue(){const t=X(se.value);let e=[],l=[],o=[],a=[],r=[],s=[],d=[],h=[],u=[],k=[],y=[];G.value.forEach(f=>{e.push(f.region),f.\u5C0F\u9EA6!==void 0&&l.push(f.\u5C0F\u9EA6),f.\u7389\u7C73!==void 0&&o.push(f.\u7389\u7C73),f.\u5927\u8C46!==void 0&&a.push(f.\u5927\u8C46),f.\u5730\u74DC!==void 0&&r.push(f.\u5730\u74DC),f.\u82B1\u751F!==void 0&&s.push(f.\u82B1\u751F),f.\u84DD\u8393!==void 0&&d.push(f.\u84DD\u8393),f.\u8336\u53F6!==void 0&&h.push(f.\u8336\u53F6),f.\u9A6C\u94C3\u85AF!==void 0&&u.push(f.\u9A6C\u94C3\u85AF),f.\u767D\u83DC\u548C\u841D\u535C!==void 0&&k.push(f.\u767D\u83DC\u548C\u841D\u535C),f.\u5176\u4ED6!==void 0&&y.push(f.\u5176\u4ED6)});let M=10/e.length*100,T={tooltip:{trigger:"axis",formatter:function(f){let E=f[0].axisValueLabel+"</br>",C=0;for(let v=0;v<f.length;v++)C+=f[v].value,f[v].seriesName!=="\u5408\u8BA1"&&(E+=f[v].seriesName+"\uFF1A"+f[v].value+"</br>");for(let v=0;v<f.length;v++)C+=Number(f[v].value),f[v].seriesName==="\u5408\u8BA1"&&(E+="\u5408\u8BA1\uFF1A"+C);return E},axisPointer:{type:"shadow"}},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"90%",start:0,end:M,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:o},{name:"\u5927\u8C46",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 184, 148, 1)"},data:a},{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:h},{name:"\u9A6C\u94C3\u85AF",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(253, 127, 1, 1)"},data:u},{name:"\u767D\u83DC\u548C\u841D\u535C",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(201, 255, 148, 1)"},data:k},{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 I=T.series,n=T.tooltip;function p(f){let E=f[0].axisValueLabel+"</br>",C=0;for(let v=0;v<f.length;v++)if(f[v].seriesName!=="\u5408\u8BA1"){const Ot=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${f[v].color}"></span>`;C+=f[v].value,E+=Ot+f[v].seriesName+"\uFF1A"+f[v].value+"</br>"}for(let v=0;v<f.length;v++)f[v].seriesName==="\u5408\u8BA1"&&(E+="\u5408\u8BA1\uFF1A"+C);return E}n.formatter=p;function B(f){for(var E=0,C=0;C<I.length;C++)E+=I[C].data[f.dataIndex];return E}I[I.length-1].label.normal.formatter=B,re(t,T)}return(t,e)=>{const l=R("el-tooltip"),o=R("el-option"),a=R("el-select"),r=R("el-checkbox"),s=R("el-checkbox-group"),d=R("el-collapse-item"),h=R("el-collapse"),u=R("el-button"),k=R("el-form-item"),y=R("el-form"),M=R("el-table-column"),T=R("el-table"),I=R("el-pagination");return _(),D("div",ra,[c("div",ia,[sa,c("div",na,[c("div",da,[c("div",ca,[ua,c("p",{onClick:e[0]||(e[0]=n=>it())},[z(" \u4E0B\u8F7D \xA0 "),fa])]),c("div",{ref_key:"areaDiv",ref:ye,class:"areaDiv"},null,512)]),c("div",pa,[c("div",ha,[ma,c("p",{onClick:e[1]||(e[1]=n=>st())},[z(" \u4E0B\u8F7D \xA0 "),ba])]),c("div",{ref_key:"typesofDiv",ref:Le,class:"typesofDiv"},null,512)]),c("div",ga,[c("div",null,[(_(!0),D($,null,j(m(Re),(n,p)=>(_(),D("div",{key:p,class:"Crops"},[c("div",null,[va,z(" "+Q(n.type),1)]),c("div",{style:Ne({color:n.content.color})},Q(n.content.value)+"\u4EA9 ",5),c("div",{style:Ne({color:n.content.color})},Q(n.content.percent),5)]))),128))])]),c("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=n=>Et())},[x(l,{disabled:m(H),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:S(()=>[L(' <el-icon v-if="!leftWraFlag"><ArrowRightBold /></el-icon> '),m(H)?L("v-if",!0):(_(),D("img",ya))]),_:1},8,["disabled"]),x(l,{disabled:!m(H),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:S(()=>[L(' <el-icon v-if="leftWraFlag"><ArrowLeftBold /></el-icon> '),m(H)?(_(),D("img",_a)):L("v-if",!0)]),_:1},8,["disabled"])])]),c("div",wa,[c("div",xa,[c("div",Sa,[Ca,c("p",{onClick:e[3]||(e[3]=n=>nt())},[z(" \u4E0B\u8F7D \xA0 "),ka])]),c("div",{ref_key:"farmlandDiv",ref:Te,class:"farmlandDiv"},null,512),L(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),c("div",Ma,[c("div",Wa,[Na,c("p",{onClick:e[4]||(e[4]=n=>dt())},[z(" \u4E0B\u8F7D \xA0 "),Ea])]),x(a,{"popper-class":"select_city",onChange:e[5]||(e[5]=n=>Me(t.item)),modelValue:N.value,"onUpdate:modelValue":e[6]||(e[6]=n=>N.value=n),placeholder:"\u5168\u90E8"},{default:S(()=>[(_(!0),D($,null,j(m(O).arr,n=>(_(),A(o,{key:n.tomeCode,label:n.tomeName,value:n.tomeCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),c("div",{ref_key:"ASdivisionDiv",ref:Be,class:"ASdivision"},null,512)]),c("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=n=>Dt())},[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)?(_(),D("img",Da)):L("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)?L("v-if",!0):(_(),D("img",Ia))]),_:1},8,["disabled"])])]),x(h,{class:"legend",accordion:""},{default:S(()=>[x(d,{name:"1"},{title:S(()=>[z("\u56FE\u4F8B")]),default:S(()=>[c("div",La,[x(s,{modelValue:pe.value,"onUpdate:modelValue":e[8]||(e[8]=n=>pe.value=n),onChange:yt},{default:S(()=>[(_(!0),D($,null,j(m(te),(n,p,B)=>(_(),A(r,{key:B,style:Ne({background:n.color,border:`1px solid ${n.color}`,width:"100%"}),"v-model":n.disabled,disabled:n.disabled,label:p},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),c("div",Ta,[x(Kt)]),Ba,c("div",Ra,[c("div",null,[c("div",Oa,[Pa,c("span",null,Q(m(Ae)),1)]),(_(!0),D($,null,j(F.value.info,(n,p)=>(_(),D("div",{key:p,class:"rowWra"},[c("span",null,Q(n.name)+"\uFF1A",1),c("span",null,Q(n.area)+"\u4EA9",1)]))),128)),L(` <div class="rowWra">
|
|
<span>\u9762\u79EF\uFF1A</span>
|
|
<span>{{ item.area}} \u4EA9</span>
|
|
</div> `),L(` <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")]),Oe.value?(_(),A(u,{key:0,class:"back_button",onClick:e[9]||(e[9]=n=>Nt())},{default:S(()=>[z("\u8FD4\u56DE")]),_:1})):L("v-if",!0)]),c("div",za,[c("div",Aa,[x(y,{inline:!0,model:m(w),class:"demo-form-inline"},{default:S(()=>[x(k,{label:"\u65F6\u95F4:"},{default:S(()=>[x(a,{"popper-class":"selectCity",modelValue:m(w).yearMonth,"onUpdate:modelValue":e[10]||(e[10]=n=>m(w).yearMonth=n),placeholder:"\u8BF7\u9009\u62E9"},{default:S(()=>[(_(!0),D($,null,j(m(we),(n,p)=>(_(),A(o,{key:p,label:t.Zitem,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),x(k,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:S(()=>[x(a,{"popper-class":"selectCity",modelValue:m(w).flag,"onUpdate:modelValue":e[11]||(e[11]=n=>m(w).flag=n),placeholder:"\u8BF7\u9009\u62E9"},{default:S(()=>[x(o,{label:"\u884C\u653F\u533A\u5212",value:"2"}),x(o,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"1"})]),_:1},8,["modelValue"])]),_:1}),x(k,{label:"\u9547:"},{default:S(()=>[x(a,{modelValue:m(w).divisions,"onUpdate:modelValue":e[12]||(e[12]=n=>m(w).divisions=n),disabled:m(w).flag!="2",placeholder:m(w).flag=="2"?"\u5168\u90E8":"\u8BF7\u9009\u62E9","popper-class":"selectCity"},{default:S(()=>[(_(!0),D($,null,j(m(_e),(n,p)=>(_(),A(o,{key:p,label:n.tomeName,value:n.tomeCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),x(k,null,{default:S(()=>[x(u,{type:"primary",onClick:xe},{default:S(()=>[z("\u67E5\u8BE2")]),_:1}),x(u,{plain:"",onClick:rt,disabled:!m(U)},{default:S(()=>[z(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),m(V)?L("v-if",!0):(_(),A(u,{key:0,type:"primary",text:"",onClick:ct},{default:S(()=>[Va,z(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),c("div",{class:"modeDiv",onClick:kt},[c("div",{class:Ye(m(U)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),c("div",{class:Ye(m(U)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),Ke(c("div",qa,[c("div",$a,[m(V)?L("v-if",!0):(_(),A(T,{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(M,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(_(!0),D($,null,j(m(ee),(n,p)=>(_(),A(M,{key:p,prop:n.value,label:p==0?n.lable:n.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),m(V)?(_(),A(M,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:S(n=>[c("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:p=>qe(n.row)}," \u4E0B\u8F7D ",8,ja)]),_:1})):L("v-if",!0)]),_:1},8,["data"]))]),x(T,{data:m(Se),"header-cell-style":{"text-align":"center"},height:"90%","highlight-current-row":"","header-row-class-name":"tabth"},{default:S(()=>[x(M,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Wt}),(_(!0),D($,null,j(m(ee),(n,p)=>(_(),A(M,{key:p,prop:n.value,label:p==0?n.lable:n.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),m(V)?(_(),A(M,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:S(n=>[c("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:p=>qe(n.row)}," \u4E0B\u8F7D ",8,Fa)]),_:1})):L("v-if",!0)]),_:1},8,["data"]),c("div",Ha,[z(" \u5171"+Q(G.value.length)+"\u6761 ",1),x(I,{background:"",layout:"prev, pager, next",total:G.value.length,"current-page":m(Z),"page-size":m(q),onCurrentChange:Mt},null,8,["total","current-page","page-size"])])],512),[[et,m(U)]]),Ke(c("div",Ja,[c("div",{ref_key:"chartModeDiv",ref:se,class:"chartModeDiv"},null,512)],512),[[et,!m(U)]])])])}}},io=Pt(Za,[["__scopeId","data-v-076bbc79"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/classify/Classify.vue"]]);export{io as default};
|