Agriculture-front-end/dist/assets/Classify.a7820cdd.js

3 lines
58 KiB
JavaScript
Raw Normal View History

2023-09-19 14:34:21 +08:00
import{_ as Xa,u as Ha,r as m,D as pa,Y as fe,t as Za,C as Ka,a5 as et,N as Qe,d as N,o as k,c as P,k as d,K as $e,f as p,G as Q,H as J,m as j,l as D,j as T,w as E,Q as ee,R as ae,e as W,I as at,x as Ce,Z as tt,p as ot,q as rt}from"./index.42ab3fdc.js";import We from"./downloads.4cdbbcc5.js";import{_ as lt}from"./qx.88a5ecd3.js";import{_ as nt,a as it}from"./zhankaiss.dd067ea4.js";import{_ as st}from"./fh.7489c25e.js";import{_ as ut}from"./dow.b4b83e88.js";import{d as Je}from"./download.e798abeb.js";import"./index.b8675889.js";import"./linesGL.901ceb35.js";import{T as dt}from"./TimeLine.7eee9c20.js";import{u as ge}from"./useEcharts.5d95df8c.js";import{g as Ye,c as ct,d as Me,a as ba,e as Le,f as va,h as ft,i as gt}from"./classify.dd80b122.js";import{u as Ue,w as ht}from"./xlsx.86b9426e.js";import{e as Xe}from"./element-resize-detector.ff2fdb0d.js";import"./moment.9709ab41.js";import{i as te,ar as R}from"./install.5b5161c6.js";/* empty css */import"./browser-detector.e77caf03.js";const L=he=>(ot("data-v-176a26de"),he=he(),rt(),he),mt={class:"fatherDiv"},pt={class:"centerBox"},bt=L(()=>d("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),vt={class:"rightWra"},yt={class:"tabar"},wt={class:"rightTop"},St={class:"title"},_t=L(()=>d("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),xt=L(()=>d("span",null,"\u4F5C\u7269\u5206\u7C7B\u9762\u79EF\u7EDF\u8BA1",-1)),zt=L(()=>d("img",{src:We,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),kt={class:"rightbottom"},Et={class:"title"},$t=L(()=>d("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Ct=L(()=>d("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1",-1)),Mt=L(()=>d("img",{src:We,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Lt={class:"rightTop"},Wt={class:"title"},Tt=L(()=>d("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),At=L(()=>d("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Nt=L(()=>d("img",{src:We,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),It={key:0},Bt=L(()=>d("img",{src:lt},null,-1)),Dt=[Bt],Ot={class:"rightbottom"},Pt={class:"title"},jt=L(()=>d("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Rt=L(()=>d("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),qt=L(()=>d("img",{src:We,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Vt={class:"el_select_div"},Ft=L(()=>d("img",{src:nt},null,-1)),Gt=L(()=>d("img",{src:it},null,-1)),Qt=L(()=>d("img",{src:st},null,-1)),Jt=L(()=>d("span",null,"\u8FD4\u56DE",-1)),Yt=[Qt,Jt],Ut={class:"mt-4"},Xt={class:"bottom_center"},Ht=L(()=>d("div",{id:"pop"},null,-1)),Zt={id:"popup",class:"ol-popup"},Kt=L(()=>d("div",{class:"pophead",style:{width:"100%"}},[d("div",{id:"popup-title",style:{"font-size":"20px","font-weight":"400","letter-spacing":"1px","line-height":"42px","padding-left":"20px","border-radius":"8px",margin:"20px",background:"rgba(100, 195, 164, 0.05)"}}),d("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),eo={id:"popup-content",style:{padding:"30px"}},ao={class:"label"},to=L(()=>d("div",{id:"popup-pagination"},null,-1)),oo={class:"tabulation"},ro={class:"searchDiv"},lo=L(()=>d("img",{src:ut,alt:""},null,-1)),no={class:"tableBox"},io={class:"tableBorder"},so=["onClick"],uo=["onClick"],co={class:"example-pagination-block"},fo={class:"chartMode"},go={__name:"Classify",setup(he){const He=Ha();let ya=m(null);const me=m(null),Ze=m(null),Te=m(null),pe=m(null),Ae=m(null);let O=pa({arr:[],brr:[],crr:[]}),Ne=m([]);const $=m("");$.value=window.localStorage.getItem("divisions");let ie=m("\u884C\u653F\u533A\u5212"),wa=m([]);const Ke=m(!1);let Y=m(!1),F=m(!0),U=m(1),G=m(14);const X=m([]);let se=m([]),be=m([]),oe=m(!0),H=m(null),v
2023-09-11 21:56:39 +08:00
`,c+=x}return c}else return n}},axisTick:{show:!1}}],yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(153, 153, 153, 1)",fontSize:14},type:"value",axisLabel:{color:" rgba(153, 153, 153, 1)"},splitLine:{lineStyle:{type:"dashed",color:"rgba(235, 238, 245, 1)"},show:!0},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},dataZoom:[{show:e,zoomLock:!0,type:"slider",realtime:!0,startValue:0,endValue:14,xAxisIndex:[0],bottom:"10",left:"30",height:10,borderColor:"rgba(0,0,0,0)",textStyle:{color:"#05D5FF"}}],series:[{type:"bar",data:t,barWidth:"15",itemStyle:{normal:{color:new R(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]}}}]};ge(o,l),Xe().listenTo(me.value,()=>{Qe(()=>{o.resize()})})}}function Ja(){const l=te(Ze.value);let o=t(xe.arr,0);l.clear(),l.setOption(o);function r(e,a,n,c,u,v){const h=(e+a)/2,y=e*Math.PI*2,x=a*Math.PI*2,s=h*Math.PI*2;e===0&&a===1&&(n=!1),u=typeof u<"u"?u:1/3;const w=n?Math.cos(s)*.1:0,_=n?Math.sin(s)*.1:0,i=c?1.05:1;return{u:{min:-Math.PI,max:Math.PI*3,step:Math.PI/32},v:{min:0,max:Math.PI*2,step:Math.PI/20},x(S,f){return S<y?w+Math.cos(y)*(1+Math.cos(f)*u)*i:S>x?w+Math.cos(x)*(1+Math.cos(f)*u)*i:w+Math.cos(S)*(1+Math.cos(f)*u)*i},y(S,f){return S<y?_+Math.sin(y)*(1+Math.cos(f)*u)*i:S>x?_+Math.sin(x)*(1+Math.cos(f)*u)*i:_+Math.sin(S)*(1+Math.cos(f)*u)*i},z(S,f){return S<-Math.PI*.5?Math.sin(S):S>Math.PI*2.5?Math.sin(S)*v*.1:Math.sin(f)>0?1*v*.1:-1}}}function t(e,a){const n=[];let c=0,u=0,v=0;const h=[],y=typeof a<"u"?(1-a)/(1+a):1/3;for(let s=0;s<e.length;s+=1){c+=e[s].value;const w={name:typeof e[s].name>"u"?`series${s}`:e[s].name,type:"surface",parametric:!0,wireframe:{show:!1},pieData:e[s],pieStatus:{selected:!1,hovered:!1,k:y}};if(typeof e[s].itemStyle<"u"){const{itemStyle:_}=e[s];typeof e[s].itemStyle.color<"u"&&(_.color=e[s].itemStyle.color),typeof e[s].itemStyle.opacity<"u"&&(_.opacity=e[s].itemStyle.opacity),w.itemStyle=_}n.push(w)}for(let s=0;s<n.length;s+=1)v=u+n[s].pieData.value,n[s].pieData.startRatio=u/c,n[s].pieData.endRatio=v/c,n[s].parametricEquation=r(n[s].pieData.startRatio,n[s].pieData.endRatio,!1,!1,y,n[s].pieData.value===n[0].pieData.value?35:10),u=v,h.push(n[s].name);return{legend:{show:!0,bottom:30,textStyle:{color:"rgba(51, 51, 51, 1)"}},tooltip:{formatter:s=>{if(s.seriesName!=="mouseoutSeries"){let w="";return xe.arr.forEach(_=>{_.name==s.seriesName&&(w=_.area)}),`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${s.color};"></span>${s.seriesName}:${Number(w)}\u4EA9`}return""}},xAxis3D:{min:-1.5,max:1.5},yAxis3D:{min:-1.5,max:1.5},zAxis3D:{min:-1.5,max:1.5},grid3D:{show:!1,boxHeight:5,top:"-10%",viewControl:{alpha:35,beta:30,rotateSensitivity:1,zoomSensitivity:0,panSensitivity:0,autoRotate:!1,distance:300},postEffect:{enable:!0,bloom:{enable:!0,bloomIntensity:.1},SSAO:{enable:!0,quality:"medium",radius:2}}},series:n}}ge(l,o)}function Ge(){const l=te(Te.value);let o=[];for(const e in A)M[e].forEach(a=>{a&&o.push(e)});let r={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:o},tooltip:{formatter:function(e){let a=0;return ha.value.forEach(n=>{n.name==e.seriesName&&n.region==e.name&&(a=n.area)}),e.seriesName+'<span style="font-size: 14px; color: #f00;">'+a+"</span>\u4EA9"}},xAxis:{type:"value",max:500,show:!1,axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},yAxis:{type:"category",inverse:!0,offset:-160,splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1},axisLabel:{interval:0,color:"rgba(51, 51, 51, 1)",fontSize:14,verticalAlign:"bottom",lineHeight:42},data:ta},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.6s