14 lines
20 KiB
JavaScript
14 lines
20 KiB
JavaScript
|
import{_ as Le,r as f,A as K,U as Ie,V as Pe,X as Z,d as b,o as L,c as z,l as o,e as g,w as _,m as k,g as A,x as I,L as Te,N as Ee,f as N,k as Fe,y as re,p as Oe,q as ze}from"./index.9172db1d.js";import ae from"./downloads.e955445d.js";import{_ as Ae,a as Ve,b as We,c as Xe,d as Be,e as Ze}from"./linesGL.90f708a5.js";import{i as ee}from"./index.c9f5bd8b.js";import{u as te}from"./useEcharts.963c5809.js";import{a as Ne,b as Re,c as Ue,g as Ge}from"./classify.7a190974.js";const C=P=>(Oe("data-v-d061be2f"),P=P(),ze(),P),Qe={class:"center"},qe=C(()=>o("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),je={class:"rightWra"},Je={class:"rightTop"},Ye=C(()=>o("div",{class:"title"},[o("span",null,"\u4F4D\u7F6E\u5B9A\u4F4D")],-1)),$e=C(()=>o("div",{class:"depth"},[o("p",{class:"SelectedDiv"},"\u5730\u540D"),o("p",null,"\u884C\u653F\u533A"),o("p",null,"\u7ECF\u7EAC\u5EA6")],-1)),He={class:"seach_button"},Ke={class:"rightbottom"},et=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),tt={class:"chart_div"},rt={class:"chart_div_title"},at=C(()=>o("span",null,"\u57FA\u672C\u519C\u7530\u9762\u79EF\u53CA\u5360\u6BD4",-1)),ot=C(()=>o("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),lt={class:"chart_div"},st={class:"chart_div_title"},nt=C(()=>o("span",null,"\u4E24\u533A\u5212\u5B9A\u9762\u79EF\u53CA\u5360\u6BD4",-1)),it=C(()=>o("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),dt=re('<div class="tool" data-v-d061be2f><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="'+Xe+'" alt="" data-v-d061be2f></span><span data-v-d061be2f><img src="'+Be+'" alt="" data-v-d061be2f></span><span data-v-d061be2f><img src="'+Ze+'" alt="" data-v-d061be2f></span></div>',1),ct={id:"popup"},ut={id:"pop"},pt={key:0},mt=C(()=>o("div",null,"\u6751\u540D\uFF1A",-1)),ft={class:"mt-4"},gt={class:"treeDiv"},vt={__name:"index",setup(P){let n=f(null);const oe=f("370211");f(null);let D=K({arr:[],brr:[],crr:[]});K({arr:[]});const R=f({name:"",value:""});f([]);const le=f([]),V=f(!1);f(!0);let W=f(!0);const U=f(""),G=f("null"),Q=f("null"),se={children:"children",label:"label"};Ie(()=>D.arr,e=>{console.log("val:",e)});var q={title:[]};let X={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]};const ne=[{label:"\u9AD8\u6807\u51C6\u519C\u7530",children:[{label:"\u9AD8\u6807\u51C6\u519C\u7530"}]},{label:"\u6C38\u4E45\u57FA\u672C\u519C\u7530",children:[{label:"\u6C38\u4E45\u57FA\u672C\u519C\u7530"}]},{label:"\u8015\u5730",children:[{label:"\u8015\u5730"}]},{label:"\u7CAE\u98DF\u529F\u80FD\u533A",children:[{label:"\u7247\u5757\u4FE1\u606F"},{label:"\u5730\u5757\u4FE1\u606F"}]},{label:"\u571F\u5730\u786E\u6743",children:[{label:"\u571F\u5730\u786E\u6743"}]}];Pe(()=>{ve(),ye(),he(),be(),de(),ue(),Ce(),we()});const ie={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.def
|
||
|
{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 a=n.imageryLayers.addImageryProvider(r);t.indexOf("gbznt")>-1&&(n.imageryLayers.lowerToBottom(a),n.imageryLayers.raise(a))}function xe(){x(["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 Se(){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((a,l)=>{const d=Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),c=Cesium.Rectangle.center(d);let m=Cesium.Math.toDegrees(c.longitude),p=Cesium.Math.toDegrees(c.latitude);a.properties.XZDM==="370211011"?(m=120.0863,p=35.941):a.properties.XZDM==="370211003"&&(m=120.243682,p=35.97123201);const i=e[a.properties.XZMC];let u=[];i&&(u=i.map((s,y)=>s.properties)),n.entities.add({name:"point"+a.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(m,p),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:u,...a.properties,lon:m,lat:p}})})}).catch(t=>{})}let $=f({});function ke(){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(a=>{let l=a.properties.town;r[l]?r[l].push(a):r[l]=[a]}),$.value=r,Se()}).catch(e=>{})}function H(){if(v.value&&v.value.lon&&v.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(v.value.lon),Number(v.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 B(){T="",E="",x(["village_CQL"]),x(["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}),x(["gbznt"],!0),V.value=!1}function De(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"),a=b("el-button"),l=b("ArrowLeftBold"),d=b("el-icon"),c=b("el-checkbox"),m=b("el-checkbox-group"),p=b("el-collapse-item"),i=b("el-collapse"),u=b("el-tree");return L(),z("div",Qe,[qe,o("div",je,[o("div",Je,[Ye,$e,g(r,{class:"seach_input",modelValue:U.value,"onUpdate:modelValue":t[0]||(t[0]=s=>U.value=s),placeholder:"\u8BF7\u8F93\u5165\u5730\u540D",clearable:""},null,8,["modelValue"]),o("div",He,[g(a,{class:"seach"},{default:_(()=>[k("\u67E5\u8BE2")]),_:1}),g(a,{class:"resetting"},{default:_(()=>[k("\u91CD\u7F6E")]),_:1})]),A(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),o("div",Ke,[et,o("div",tt,[o("div",rt,[at,o("p",{onClick:t[1]||(t[1]=s=>J("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[k(" \u4E0B\u8F7D \xA0 "),ot])]),o("div",{ref_key:"Farmland_area",ref:G,class:"Farmland_area"},null,512)]),o("div",lt,[o("div",st,[nt,o("p",{onClick:t[2]|
|
||
|
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"
|
||
|
/> `),g(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]=s=>e.checked3=s),label:"0-200"},null,8,["modelValue"]),g(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]=s=>e.checked4=s),label:"200-400"},null,8,["modelValue"]),g(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]=s=>e.checked3=s),label:"400-600"},null,8,["modelValue"]),g(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]=s=>e.checked4=s),label:"600-800"},null,8,["modelValue"]),g(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]=s=>e.checked3=s),label:"800-1000"},null,8,["modelValue"])]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),o("div",gt,[g(u,{props:se,data:ne,"show-checkbox":""})])])}}},xt=Le(vt,[["__scopeId","data-v-d061be2f"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/plough/resources/index.vue"]]);export{xt as default};
|