Agriculture-front-end/dist/assets/index.85bd6bfb.js
2023-04-23 09:41:12 +08:00

2 lines
12 KiB
JavaScript

import{_ as A,r,z as O,d as p,o as S,c as k,l,e as o,w as U,F as J,A as P,p as G,q as R,m as _}from"./index.b3c890dc.js";import V from"./downloads.e955445d.js";import{i as c,L as u}from"./index.b2678f26.js";import{u as b,T as N}from"./useEcharts.5be8131e.js";const n=m=>(G("data-v-b301384e"),m=m(),R(),m),E={class:"center"},Y=n(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Q={class:"leftWra"},Z={class:"leftTop"},q=n(()=>l("div",{class:"title"},[l("span",null,"\u4F5C\u7269\u5206\u7C7B\u9762\u79EF\u7EDF\u8BA1")],-1)),j={class:"leftbottom"},F=n(()=>l("div",{class:"title"},[l("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1")],-1)),X={class:"rightWra"},H={class:"rightTop"},K=n(()=>l("div",{class:"title"},[l("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530"),l("p",null,[_(" \u4E0B\u8F7D \xA0 "),l("img",{src:V,style:{width:"14px",height:"14px",cursor:"pointer"}})])],-1)),$={class:"rightbottom"},ee=n(()=>l("div",{class:"title"},[l("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212"),l("p",null,[_(" \u4E0B\u8F7D \xA0 "),l("img",{src:V,style:{width:"14px",height:"14px",cursor:"pointer"}})])],-1)),te={class:"legend"},le=n(()=>l("p",null,"\u56FE\u4F8B",-1)),ae={class:"mt-4"},oe={class:"bottom_center"},ie={__name:"index",setup(m){let f=r(null);const g=r(null),h=r(null),y=r(null),v=r(null),x=r(null),w=r("");r(null);var s={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"],corn:[333.3,null,500,500,333.3,null,333.3,500],soybean:[333.3,null,null,null,333.3,null,333.3,null],peanut:[333.3,500,500,null,333.3,500,333.3,null],wheat:[null,500,null,500,null,500,null,null],Blueberries:[null,null,null,null,null,null,null,500]};const L=[{value:"Option1",label:"Option1"},{value:"Option2",label:"Option2"}];O(()=>{T(),D(),M(),I(),z(),W(),document.querySelector(".headers")});const C={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 T(){f=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({...C})}),f.camera.flyTo({destination:new Cesium.Cartesian3.fromDegrees(104.9,36.35,8e6),duration:0},{offset:{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-25)}})}function D(){const t=c(g.value);var e={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",right:"3%",left:"16%",bottom:"12%"},xAxis:[{type:"category",data:["\u5C0F\u9EA6","\u7389\u7C73","\u5927\u8C46","\u82B1\u751F","\u84DD\u8393"],axisLine:{lineStyle:{color:"#C0C4CC",width:1}},axisTick:{show:!1},axisLabel:{margin:10,color:"rgba(255, 255, 255, 0.7)",textStyle:{fontSize:14}}}],yAxis:[{axisLabel:{formatter:"{value}",color:"rgba(255, 255, 255, 0.7)"},axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(192,196,204,1)",type:"dashed"}},name:"\u9762\u79EF(\u4EA9)"}],series:[{name:"\u9762\u79EF",type:"bar",data:[3598,1235,2354,3251,1652],barWidth:"14px",itemStyle:{normal:{color:new u(0,0,0,1,[{offset:0,color:"rgba(71,179,161,0.8)"},{offset:1,color:"rgba(212,236,89,1) "}],!1),barBorderRadius:[30,30,30,30],label:{show:!0,position:"top",formatter:"{c}",textStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:"14"}}}}}],legend:{right:0,top:14,data:["\u9762\u79EF"],textStyle:{color:" rgba(255,255,255,0.7)",fontSize:"14"}}};b(t,e)}function M(){const t=c(h.value);var e={tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},color:["rgba(212,236,89,0.8)","rgba(102,142,214,0.8)","rgba(156,220,130,0.8)","rgba(255,225,104,0.8)"],legend:{orient:"vertical",icon:"rect",x:"center",bottom:"bottom",data:["\u82B1\u751F","\u5C0F\u9EA6","\u5927\u8C46","\u7389\u7C73"],textStyle:{color:" rgba(255,255,255,0.7)",fontSize:"14"}},series:[{name:"\u5360\u6BD4",type:"pie",radius:["50%","70%"],avoidLabelOverlap:!0,label:{normal:{show:!0,position:"left",textStyle:{color:"rgba(41,255,219,1)"}},emphasis:{show:!0,textStyle:{fontSize:"30",fontWeight:"bold"}}},labelLine:{show:!0,normal:{show:!0}},data:[{value:25,name:"\u82B1\u751F"},{value:25,name:"\u5C0F\u9EA6"},{value:25,name:"\u5927\u8C46"},{value:25,name:"\u7389\u7C73"}]}]};b(t,e)}function I(){const t=c(y.value);var e={title:{text:"",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",left:"16%",bottom:"19%"},xAxis:{type:"category",data:["\u533A\u57DF\u4E00","\u533A\u57DF\u4E8C","\u533A\u57DF\u4E09","\u533A\u57DF\u56DB","\u533A\u57DF\u4E94"],axisLine:{lineStyle:{color:"#C0C4CC",width:1}},axisTick:{show:!1},axisLabel:{margin:10,color:"rgba(255, 255, 255, 0.7)",textStyle:{fontSize:14}}},yAxis:{type:"value",splitLine:{lineStyle:{color:"rgba(192,196,204,1)",type:"dashed"}},axisLabel:{margin:10,color:"rgba(255, 255, 255, 0.7)",textStyle:{fontSize:14}}},series:[{name:"\u751F\u6D3B",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:[1666,1666,1666,1666,1666],itemStyle:{normal:{color:new u(0,0,0,1,[{offset:0,color:"rgba(102, 142, 214, 0.8)"},{offset:1,color:"rgba(102, 142, 214, 0.8)"}])}}},{name:"\u5DE5\u4E1A",type:"bar",barWidth:30,stack:"\u6570\u91CF",data:[1666,1666,1666,1666,1666],itemStyle:{normal:{color:new u(0,0,0,1,[{offset:0,color:"rgba(255, 225, 104, 0.8)"},{offset:1,color:"rgba(255, 225, 104, 0.8)"}])}}},{name:"\u519C\u4E1A",type:"bar",barWidth:30,stack:"\u6570\u91CF",data:[1666,1666,1666,1666,1666],itemStyle:{normal:{color:new u(0,0,0,1,[{offset:0,color:"rgba(209, 91, 127, 0.8)"},{offset:1,color:"rgba(209, 91, 127, 0.8)"}])}}}]};e&&t.setOption(e,{notMerge:!0,grid:{bottom:20}}),b(t,e)}function z(){const t=c(v.value);var e={grid:{top:0,bottom:"10%",left:"10%",right:"10%"},xAxis:{show:!1,type:"value",boundaryGap:[0,0]},yAxis:[{type:"category",data:[""],axisLine:{show:!1},axisTick:[{show:!1}]}],series:[{name:"\u91D1\u989D",type:"bar",zlevel:1,itemStyle:{normal:{barBorderRadius:30,color:new u(1,0,0,1,[{offset:1,color:"rgba(7,99,84,0.95) "},{offset:0,color:"rgba(71,179,161,0.95)"}])}},barWidth:20,data:[10]},{name:"\u80CC\u666F",type:"bar",barWidth:20,barGap:"-100%",data:[20],itemStyle:{normal:{color:"rgba(255, 255, 255, 0.2)",barBorderRadius:50}}}]};e&&t.setOption(e),b(t,e)}function W(t){const e=c(x.value);var d={grid:{bottom:"8%",left:"10%",right:"6%",top:"6%",containLabel:!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:16,color:"rgba(255, 255, 255, 1)",formatter:"{value}"},data:s.title,inverse:!0}],series:[{type:"bar",name:"\u7389\u7C73",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u7389\u7C73",textStyle:{fontSize:14,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{color:"#fdad3c"},data:s.corn},{type:"bar",name:"\u5927\u8C46",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u5927\u8C46",textStyle:{fontSize:14,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{color:"rgba(156, 220, 130, 0.8)"},data:s.soybean},{type:"bar",name:"\u82B1\u751F",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u82B1\u751F",textStyle:{fontSize:14,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{color:"rgba(212, 236, 89, 0.8)"},data:s.peanut},{type:"bar",name:"\u5C0F\u9EA6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u5C0F\u9EA6",textStyle:{fontSize:14,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{color:"rgba(102, 142, 214, 0.8)"},data:s.wheat},{type:"bar",name:"\u84DD\u8393",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",formatter:"\u84DD\u8393",textStyle:{fontSize:14,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{color:"rgba(50, 211, 235, 0.8)"},data:s.Blueberries}]};d&&e.setOption(d),b(e,d)}return(t,e)=>{const d=p("el-option"),B=p("el-select"),i=p("el-checkbox");return S(),k("div",E,[Y,l("div",Q,[l("div",Z,[q,l("div",{ref_key:"areaDiv",ref:g,class:"areaDiv"},null,512)]),l("div",j,[F,l("div",{ref_key:"typesofDiv",ref:h,class:"typesofDiv"},null,512)])]),l("div",X,[l("div",H,[K,l("div",{ref_key:"farmlandDiv",ref:y,class:"farmlandDiv"},null,512),l("div",{ref_key:"ProgressBarDiv",ref:v,class:"ProgressBar"},null,512)]),l("div",$,[ee,o(B,{modelValue:w.value,"onUpdate:modelValue":e[0]||(e[0]=a=>w.value=a),clearable:"",placeholder:"Select"},{default:U(()=>[(S(),k(J,null,P(L,a=>o(d,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),l("div",{ref_key:"ASdivisionDiv",ref:x,class:"ASdivision"},null,512)])]),l("div",te,[le,l("div",ae,[o(i,{style:{background:"rgba(102, 142, 214, 0.8)",border:"1px solid rgba(102, 142, 214, 1)",width:"100%"},modelValue:t.checked3,"onUpdate:modelValue":e[1]||(e[1]=a=>t.checked3=a),label:"\u5C0F\u9EA6"},null,8,["modelValue"]),o(i,{style:{background:"rgba(255, 225, 104, 0.8)",border:"1px solid rgba(255, 225, 104, 1)",width:"100%"},modelValue:t.checked4,"onUpdate:modelValue":e[2]||(e[2]=a=>t.checked4=a),label:"\u7389\u7C73"},null,8,["modelValue"]),o(i,{style:{background:"rgba(156, 220, 130, 0.8)",border:"1px solid rgba(156, 220, 130, 1)",width:"100%"},modelValue:t.checked3,"onUpdate:modelValue":e[3]||(e[3]=a=>t.checked3=a),label:"\u5927\u8C46"},null,8,["modelValue"]),o(i,{style:{background:"rgba(209, 91, 127, 0.8)",border:"1px solid rgba(209, 91, 127, 1)",width:"100%"},modelValue:t.checked4,"onUpdate:modelValue":e[4]||(e[4]=a=>t.checked4=a),label:"\u5730\u74DC"},null,8,["modelValue"]),o(i,{style:{background:"rgba(212, 236, 89, 0.8)",border:"1px solid rgba(212, 236, 89, 1)",width:"100%"},modelValue:t.checked3,"onUpdate:modelValue":e[5]||(e[5]=a=>t.checked3=a),label:"\u82B1\u751F"},null,8,["modelValue"]),o(i,{style:{background:"rgba(50, 211, 235, 0.8)",border:"1px solid rgba(50, 211, 235, 1)",width:"100%"},modelValue:t.checked4,"onUpdate:modelValue":e[6]||(e[6]=a=>t.checked4=a),label:"\u84DD\u8393"},null,8,["modelValue"]),o(i,{style:{background:"rgba(91, 196, 159, 0.8)",border:"1px solid rgba(91, 196, 159, 1)",width:"100%"},modelValue:t.checked3,"onUpdate:modelValue":e[7]||(e[7]=a=>t.checked3=a),label:"\u8336\u53F6"},null,8,["modelValue"]),o(i,{style:{background:"rgba(254, 182, 77, 0.8)",border:"1px solid rgba(254, 182, 77, 1)",width:"100%"},modelValue:t.checked4,"onUpdate:modelValue":e[8]||(e[8]=a=>t.checked4=a),label:"\u9A6C\u94C3\u85AF"},null,8,["modelValue"]),o(i,{style:{background:"rgba(250, 129, 109, 0.8)",border:"1px solid rgba(250, 129, 109, 1)",width:"100%"},modelValue:t.checked3,"onUpdate:modelValue":e[9]||(e[9]=a=>t.checked3=a),label:"\u767D\u83DC\u548C\u841D\u535C"},null,8,["modelValue"])])]),l("div",oe,[o(N)])])}}},ce=A(ie,[["__scopeId","data-v-b301384e"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/index.vue"]]);export{ce as default};