Agriculture-front-end/dist/assets/index.32d41fb6.js

14 lines
19 KiB
JavaScript
Raw Normal View History

2023-06-08 09:27:01 +08:00
import{_ as De,r as m,A as K,U as Me,V as Le,W as Z,d as b,o as L,c as z,l,e as f,w as y,m as k,g as A,x as I,L as Ie,N as Pe,f as N,k as Te,y as re,p as Ee,q as Fe}from"./index.9ec53a6c.js";import oe from"./downloads.e955445d.js";import{_ as Oe,a as ze,b as Ae,c as Ve,d as We,e as Be}from"./linesGL.90f708a5.js";import{i as ee}from"./index.c9f5bd8b.js";import{u as te}from"./useEcharts.ff70d170.js";import{g as Xe,a as Ze,b as Ne,c as Re}from"./classify.266268d4.js";const _=P=>(Ee("data-v-d061be2f"),P=P(),Fe(),P),Ue={class:"center"},Ge=_(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Qe={class:"rightWra"},qe={class:"rightTop"},je=_(()=>l("div",{class:"title"},[l("span",null,"\u4F4D\u7F6E\u5B9A\u4F4D")],-1)),Je=_(()=>l("div",{class:"depth"},[l("p",{class:"SelectedDiv"},"\u5730\u540D"),l("p",null,"\u884C\u653F\u533A"),l("p",null,"\u7ECF\u7EAC\u5EA6")],-1)),Ye={class:"seach_button"},$e={class:"rightbottom"},He=re('<div class="title" data-v-d061be2f><span data-v-d061be2f>\u4FE1\u606F\u7EDF\u8BA1</span></div><div class="overview" data-v-d061be2f><div class="overview_title" data-v-d061be2f>\u4FE1\u606F\u603B\u89C8</div><div class="overview_content" data-v-d061be2f><div data-v-d061be2f>\u533A\u5212</div><span data-v-d061be2f>\u9EC4\u5C9B\u533A</span></div><div class="overview_content" data-v-d061be2f><div data-v-d061be2f>\u57FA\u672C\u519C\u7530</div><span data-v-d061be2f>12364\u4EA9</span></div></div>',2),Ke={class:"chart_div"},et={class:"chart_div_title"},tt=_(()=>l("span",null,"\u57FA\u672C\u519C\u7530\u9762\u79EF\u53CA\u5360\u6BD4",-1)),rt=_(()=>l("img",{src:oe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ot={class:"chart_div"},at={class:"chart_div_title"},lt=_(()=>l("span",null,"\u4E24\u533A\u5212\u5B9A\u9762\u79EF\u53CA\u5360\u6BD4",-1)),st=_(()=>l("img",{src:oe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),nt=re('<div class="tool" data-v-d061be2f><span data-v-d061be2f><img src="'+Oe+'" alt="" data-v-d061be2f></span><span data-v-d061be2f><img src="'+ze+'" alt="" data-v-d061be2f></span><span data-v-d061be2f><img src="'+Ae+'" alt="" data-v-d061be2f></span><span data-v-d061be2f><img src="'+Ve+'" alt="" data-v-d061be2f></span><span data-v-d061be2f><img src="'+We+'" alt="" data-v-d061be2f></span><span data-v-d061be2f><img src="'+Be+'" alt="" data-v-d061be2f></span></div>',1),it={id:"popup"},dt={id:"pop"},ct={key:0},ut=_(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),pt={class:"mt-4"},mt={__name:"index",setup(P){let n=m(null);const ae=m("370211");m(null);let D=K({arr:[],brr:[],crr:[]});K({arr:[]});const R=m({name:"",value:""});m([]);const le=m([]),V=m(!1);m(!0);let W=m(!0);const U=m(""),G=m("null"),Q=m("null");Me(()=>D.arr,e=>{console.log("val:",e)});var q={title:[]};let B={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]};Le(()=>{fe(),he(),ge(),ve(),ne(),de(),ye(),_e()});const se={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 ne(){n=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,contex
{d}%`}},labelLine:{normal:{show:!1,length:3,length2:5}},data:[{value:36.7,name:"\u7CAE\u98DF\u751F\u4EA7\u529F\u80FD\u533A",selected:!0},{value:26.3,name:"\u91CD\u8981\u519C\u4EA7\u54C1\u751F\u4EA7\u4FDD\u62A4\u533A"}],itemStyle:{normal:{borderColor:"",borderWidth:2,shadowBlur:2,shadowOffsetX:0,shadowColor:"#00a5f4",opacity:1}}}]};t&&e.setOption(t,{notMerge:!0,grid:{bottom:20}}),te(e,t)}function Y(e,t){let r=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:e,parameters:{service:"WMS",format:"image/png",transparent:!0}});r.customName=t;let o=n.imageryLayers.addImageryProvider(r);t.indexOf("gbznt")>-1&&(n.imageryLayers.lowerToBottom(o),n.imageryLayers.raise(o))}function Ce(){w(["gbznt"],!0),Y("shuzisannong:huangdaoqu_town","tl"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),V.value=!1}function we(){let e=$.value;console.log("fl:",e),Z({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(t=>{console.log("res1111:",t),t.data.features.forEach((o,s)=>{const d=Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),c=Cesium.Rectangle.center(d);let p=Cesium.Math.toDegrees(c.longitude),u=Cesium.Math.toDegrees(c.latitude);o.properties.XZDM==="370211011"?(p=120.0863,u=35.941):o.properties.XZDM==="370211003"&&(p=120.243682,u=35.97123201);const i=e[o.properties.XZMC];let a=[];i&&(a=i.map((v,x)=>v.properties)),n.entities.add({name:"point"+o.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(p,u),point:new Cesium.PointGraphics({show:!0,pixelSize:10,color:Cesium.Color.fromCssColorString("rgba(255, 255, 26, 1)"),outlineColor:new Cesium.Color(0,0,0,0),outlineWidth:0,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}),info:{label:a,...o.properties,lon:p,lat:u}})})}).catch(t=>{})}let $=m({});function xe(){Z({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(e=>{let t=e.data.features,r={};t.forEach(o=>{let s=o.properties.town;r[s]?r[s].push(o):r[s]=[o]}),$.value=r,we()}).catch(e=>{})}function H(){if(g.value&&g.value.lon&&g.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(g.value.lon),Number(g.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(n.scene,t);if(Cesium.defined(e)){const r=document.getElementById("pop");r.style.top=e.y-10+"px",r.style.left=e.x+10+"px"}}}function X(){T="",E="",w(["village_CQL"]),w(["aaa"]),M("villageLine"),M("townLine");const e=document.getElementById("pop");e.style.display="none",n.scene.postRender.removeEventListener(H),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),w(["gbznt"],!0),V.value=!1}function Se(e){console.log(e);const t=document.getElementById("pop");t.style.display="block",t.style.position="absolute",t.style.top=e.y-10+"px",t.style.left=e.x+10+"px",t.style.zIndex=99}return(e,t)=>{const r=b("el-input"),o=b("el-button"),s=b("ArrowLeftBold"),d=b("el-icon"),c=b("el-checkbox"),p=b("el-checkbox-group"),u=b("el-collapse-item"),i=b("el-collapse");return L(),z("div",Ue,[Ge,l("div",Qe,[l("div",qe,[je,Je,f(r,{class:"seach_input",modelValue:U.value,"onUpdate:modelValue":t[0]||(t[0]=a=>U.value=a),placeholder:"\u8BF7\u8F93\u5165\u5730\u540D",clearable:""},null,8,["modelValue"]),l("div",Ye,[f(o,{class:"seach"},{default:y(()=>[k("\u67E5\u8BE2")]),_:1}),f(o,{class:"resetting"},{default:y(()=>[k("\u91CD\u7F6E")]),_:1})]),A(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),l("div",$e,[He,l("div",Ke,[l("div",et,[tt,l("p",{onClick:t[1]||(t[1]=a=>J("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[k(" \u4E0B\u8F7D \xA0 "),rt])]),l("div",{ref_key:"Farmland_area",ref:G,class:"Farmland_area"},null,512)]),l("div",ot,[l("div",at,[lt,l("p",{onClick:t[2]||(t[2]=a=>J("ht
2023-05-25 08:33:42 +08:00
v-for="(value, item, key) in dic"
:key="key"
:style="{
background: value.color,
border: \`1px solid \${value.color}\`,
width: \`100%\`,
}"
v-model="checked3"
:disabled="value.disabled"
:label="item"
/> `),f(c,{style:{background:"rgba(255, 238, 204, 1)",border:"1px solid rgba(251, 171, 60, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":t[5]||(t[5]=a=>e.checked3=a),label:"0-200"},null,8,["modelValue"]),f(c,{style:{background:"rgba(255, 220, 153, 1)",border:"1px solid rgba(251, 219, 13, 1)",width:"100%"},modelValue:e.checked4,"onUpdate:modelValue":t[6]||(t[6]=a=>e.checked4=a),label:"200-400"},null,8,["modelValue"]),f(c,{style:{background:"rgba(255, 203, 102, 1)",border:"1px solid rgba(244, 218, 136, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":t[7]||(t[7]=a=>e.checked3=a),label:"400-600"},null,8,["modelValue"]),f(c,{style:{background:"rgba(255, 185, 51, 1)",border:"1px solid rgba(174, 83, 110, 1)",width:"100%"},modelValue:e.checked4,"onUpdate:modelValue":t[8]||(t[8]=a=>e.checked4=a),label:"600-800"},null,8,["modelValue"]),f(c,{style:{background:"rgba(255, 168, 0, 1)",border:"1px solid rgba(242, 177, 167, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":t[9]||(t[9]=a=>e.checked3=a),label:"800-1000"},null,8,["modelValue"])]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1})])}}},_t=De(mt,[["__scopeId","data-v-d061be2f"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/plough/resources/index.vue"]]);export{_t as default};