15 lines
25 KiB
JavaScript
15 lines
25 KiB
JavaScript
import{H as G,_ as et,a as tt,r as n,A as at,V as lt,W as ot,U as nt,d as y,o as m,c as _,l as a,m as D,e as c,w as p,f as i,g as x,k as E,x as M,L as R,N as j,G as we,C as xe,D as Se,y as st,p as rt,q as it}from"./index.afd881ee.js";import le from"./downloads.4cdbbcc5.js";import{_ as $}from"./close1.45635d81.js";import{_ as ut,a as dt,b as ct,c as pt}from"./position.a021215f.js";import{_ as ht,a as mt}from"./TimeLine.vue_vue_type_style_index_0_scoped_26e8a223_lang.891b9335.js";import{_ as vt}from"./dow.2a8d74cb.js";import"./index.6098b0aa.js";import{T as ft}from"./TimeLine.7d9e99e3.js";import{u as te,w as gt}from"./xlsx.86b9426e.js";import{u as ae}from"./useEcharts.a1c5140e.js";import"./linesGL.306b5757.js";import{d as bt}from"./download.5dddc0da.js";import{i as B,L as ke}from"./install.6cb28b74.js";function Ve(f){return G({url:"equipment/wheatTotalYearValue",method:"get",params:f})}function De(f){return G({url:"equipment/wheatHeightStandardFarmland",method:"get",params:f})}function Ce(f){return G({url:"equipment/wheatGetAllTowns",method:"get",params:f})}function yt(f){return G({url:"equipment/wheatGetAllVillages",method:"get",params:f})}function _t(f){return G({url:"equipment/wheatYear",method:"get",params:f})}function wt(f){return G({url:"equipment/parameterEstimation",method:"get",params:f})}const S=f=>(rt("data-v-7527f9ca"),f=f(),it(),f),xt={class:"fatherDiv"},St={class:"centerBox"},kt=S(()=>a("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Vt={class:"leftWra"},Dt={class:"leftTop"},Ct={class:"title"},Lt=S(()=>a("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),zt=S(()=>a("img",{src:le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ot={key:0,src:$,alt:""},Nt={key:0,class:"imgrotate",src:$,alt:""},Tt={class:"rightWra"},At={class:"rightTop"},Wt={class:"title"},qt=S(()=>a("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Et=S(()=>a("img",{src:le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),It={class:"rightbottom"},Ut={class:"title"},Mt=S(()=>a("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Bt=S(()=>a("img",{src:le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Gt={key:0,src:$,alt:""},Rt={key:0,class:"imgrotate",src:$,alt:""},jt={class:"bottom_center"},Ft=st('<div class="tool" data-v-7527f9ca><span data-v-7527f9ca><img src="'+ut+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+dt+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+ct+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+ht+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+mt+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+pt+'" alt="" data-v-7527f9ca></span></div>',1),Ht={id:"popup"},Yt={id:"pop"},Pt={class:"rowWra"},$t=S(()=>a("span",null,"\u5730\u533A\uFF1A",-1)),Jt=S(()=>a("span",null,"\u5355\u4EA7\u91CF\uFF1A",-1)),Qt=S(()=>a("span",null,"\u603B\u4EA7\u91CF\uFF1A",-1)),Zt={class:"mt-4"},Xt={class:"tabulation"},Kt={class:"searchDiv"},ea=S(()=>a("img",{src:vt,alt:""},null,-1)),ta={class:"tableBox"},aa={class:"tableBorder"},la={class:"example-pagination-block"},oa={class:"chartMode"},na={__name:"index",setup(f){const Le=tt();let J=n(null);const oe=n(null),ne=n(null),se=n(null),C=n("");let I=at({arr:[],brr:[],crr:[]});const L=n({name:"",value:""});n([]);const re=n(!1);let N=n(!0),T=n(!0),ie=n([]),ue=n({}),de=n([]);const A=n([]);let W=n(!0),ce=n([]),z=n(1),O=n(12),Q=n([]),pe=n([]),he=n([]);const me=n(1);let Z=n(!0);const F=n(null);let ze=n(""),X=n([]),U=n(""),w=n([{wheatUnitOutputValue:0,wheatOutput:0}]),ve=n(""),g=n({time:"",statistical:"\u9547",droughtRating:"\u5C0F\u9EA6",area:me.value}),H=n(null);lt(()=>{Oe()});function Oe(){Ue(),Ne(),fe(),ge()}ot(()=>{localStorage.getItem(Le.currentRoute.value.path)=="false"?(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F"):(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F")}),nt(()=>U.value,(t,e)=>{C.value="370211",Me(C.value,U.value.name),Be(C.value,U.value.name),Ge(C.value,U.value.name)});let k=n(null);n(null),n(null),n(null),n(null);function Ne(){var t=document.querySelector(".center"),e=document.getElementById("cesiumContainer");k=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.Tianditu({layerType:"img",key:"1d109683f4d84198e37a38c442d68311"})})]}),Te(),Ae(),k.on("moveend",function(l){var d=k.getView().getZoom();d>=13?H.setVisible(!0):H.setVisible(!1)}),k.on("singleclick",function(l){var d=l.coordinate,o=d[0],u=d[1],q=k.getView(),v=k.getView().getZoom();console.log(o,u),q.animate({center:[o,u],duration:1e3}),v>=13?QueryData(l,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):QueryData(l,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547")});var s=new ResizeObserver(function(l){l.forEach(function(d){var o=d.contentRect.width,u=d.contentRect.height;e.style.width=o+"px",e.style.height=u+"px",k.updateSize()})});s.observe(t)}const Te=()=>{H=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"huangdaoqu_village",projection:"EPSG:4326",zIndex:9999}),k.addLayer(H)},Ae=()=>{var t=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),projection:"EPSG:4326",zIndex:9999});k.addLayer(t)};function We(){if(N.value=!N.value,N.value){let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(0,0)")}else{let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)")}}function qe(){if(T.value=!T.value,T.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 Ee=()=>{W.value=!W.value;const t=F.value;t.style.width=document.querySelector(".chartMode").offsetWidth+"px",t.style.height=document.querySelector(".chartMode").offsetHeight+"px";const e=B(t);window.addEventListener("resize",()=>{t.style.width=document.querySelector(".chartMode").offsetWidth+"px",t.style.height=document.querySelector(".chartMode").offsetHeight+"px",e.resize()}),be()},Ie=()=>{g.value.year=ve.value,g.value.statistical="\u9547",g.value.droughtRating="\u5C0F\u9EA6",g.value.area=me.value,K()},Ue=()=>{_t().then(t=>{ve.value={name:t.data[0]},U.value={name:t.data[0]},t.data.forEach(e=>{X.value.push({name:e})}),g.value.time=t.data[t.data.length-1],ce.value=t.data,K()})},Me=(t,e)=>{Ve({divisions:t,yearMonth:e}).then(s=>{ue.value=s.data,Qe()})},Be=(t,e)=>{De({divisions:t,yearMonth:e}).then(s=>{ie.value=s.data,fe()})},Ge=(t,e)=>{Ce({divisions:t,yearMonth:e}).then(s=>{de.value=s.data,I.brr=JSON.parse(JSON.stringify(s.data)),I.arr=I.brr.sort((o,u)=>o.subName.length-u.subName.length),I.arr.unshift({subregion:"",subName:"\u5168\u90E8"});let l=[],d=[];I.arr.forEach(o=>{l.indexOf(o.subName)==-1&&(l.push(o.subName),d.push({subName:o.subName,subregion:o.subregion,area:o.area,type:o.type}))}),I.arr=d,ge()})},Re=t=>{Ve({divisions:C.value,whetherToDownload:!0}).then(e=>{bt(e.data[e.data.length-1].excelPath)})},je=t=>{De().then(e=>{Y(e.data,"\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},Fe=t=>{C.value===""?Ce().then(e=>{Y(e.data,"\u884C\u653F\u533A\u5212","Sheet1")}):yt({divisions:C.value}).then(e=>{Y(e.data,"\u884C\u653F\u533A\u5212","Sheet1")})},He=()=>{let t=JSON.parse(JSON.stringify(w.value[0]));A.value.push(t),Y(A.value,"\u5E72\u65F1\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},K=()=>{z.value=1,wt({year:g.value.time,statistical:g.value.statistical,type:g.value.droughtRating,area:g.value.area}).then(t=>{pe.value=[{lable:"\u5730\u533A",value:"subName"},{lable:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",value:"wheatUnitOutputValue"},{lable:"\u603B\u4EA7\u91CF(\u5428)",value:"wheatOutput"}],he.value=[{lable:"",value:"subName"},{lable:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",value:"wheatUnitOutputValue"},{lable:"\u603B\u4EA7\u91CF(\u5428)",value:"wheatOutput"}],Z.value=!1,A.value=t.data,Q.value=t.data.slice((z.value-1)*O.value,(z.value-1)*O.value+O.value),w.value[0].wheatUnitOutputValue=0,w.value[0].wheatOutput=0,w.value[0].subName="\u5408\u8BA1",t.data.forEach(l=>{l.wheatUnitOutputValue&&(w.value[0].wheatUnitOutputValue+=Number(l.wheatUnitOutputValue)!==NaN?Number(l.wheatUnitOutputValue):0),l.wheatOutput&&(w.value[0].wheatOutput+=Number(l.wheatOutput)!==NaN?Number(l.wheatOutput):0)});for(const l in w.value[0])w.value[0][l]!=="\u5408\u8BA1"&&(w.value[0][l]=w.value[0][l].toFixed(2));const e=F.value;e.style.width=document.querySelector(".app-main").offsetWidth-50+"px",e.style.height=document.querySelector(".app-main").offsetHeight+"px";const s=B(e);window.addEventListener("resize",()=>{e.style.width=document.querySelector(".app-main").offsetWidth+"px",e.style.height=document.querySelector(".app-main").offsetHeight+"px",s.resize()}),be()})},Ye=(t,e)=>t.map(l=>{const d={};for(const o in l)e[o]&&(d[e[o]]=l[o]);return d}),Y=(t,e="\u7528\u6237\u5217\u8868",s="Sheet1")=>{const d=Ye(t,{subName:"\u533A\u57DF\u540D\u79F0",wheatUnitOutputValue:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",wheatOutput:"\u603B\u4EA7\u91CF(\u5428)"}),o=te.json_to_sheet(d),u=te.book_new();te.book_append_sheet(u,o,s),gt(u,`${e}.xlsx`)},Pe=t=>{z.value=t,Q.value=A.value.slice((z.value-1)*O.value,(z.value-1)*O.value+O.value)},$e=t=>{const e=z.value,s=O.value;return t+1+(e-1)*s},Je=t=>{U.value=t};function Qe(){const t=B(oe.value);let e={title:["\u5355\u4EA7\u91CF","\u603B\u4EA7\u91CF"],xData:[],yData:[{data:[],name:"\u5355\u4EA7\u91CF",type:"line",yAxisIndex:0,symbolSize:2},{data:[],name:"\u603B\u4EA7\u91CF",type:"line",yAxisIndex:1,symbolSize:2}]};ue.value.forEach(l=>{e.xData.push(l.year),e.yData[0].data.push(l.wheatUnitOutputValue),e.yData[1].data.push(l.wheatOutput)});let s={grid:{left:"15%",right:"22%",bottom:"14%",top:"22%"},color:["rgba(205, 92, 92, 1)","rgba(0, 191, 255, 1)"],tooltip:{trigger:"axis",axisPointer:{}},legend:{icon:"rect",textStyle:{color:"rgba(255, 255, 255, 0.7)"},data:e.title,top:40,x:"center"},xAxis:[{type:"category",data:e.xData,axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)"}},axisTick:{show:!1},axisLabel:{textStyle:{color:"rgba(255, 255, 255, 0.7)"}},boundaryGap:!1}],yAxis:[{type:"value",name:"\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",axisLabel:{formatter:"{value}"},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)"}}},{type:"value",name:"\u4EA7\u91CF(\u5428)",axisLabel:{formatter:"{value}"},axisTick:{show:!1},splitLine:{lineStyle:{opacity:0}}}],series:e.yData};s&&t.setOption(s),window.addEventListener("resize",function(){t.resize()})}function fe(){const t=B(ne.value);let e=[],s=[],l=[];ie.value.forEach(o=>{e.push(o.subName),s.push(o.wheatUnitOutputValue),l.push(o.wheatOutput)});let d={tooltip:{trigger:"axis",formatter:function(o,u,q){for(var v=o[0].name,h=0,b=o.length;h<b;h++)o[h].seriesType==="line"?v+="<br/>"+o[h].seriesName+" : "+(o[h].value?o[h].value:"-")+"h":v+="<br/>"+o[h].seriesName+" : "+(o[h].value?o[h].value:"-");return v}},grid:{top:"15%",bottom:"15%",left:"15%",right:"20%"},legend:{data:["\u5355\u4EA7\u91CF","\u603B\u4EA7\u91CF"],textStyle:{color:"#fff",fontSize:12},type:"scroll",top:"3%"},xAxis:[{type:"category",nameTextStyle:{fontSize:12},axisLabel:{fontSize:14,relativeSize:-2,textStyle:{color:"rgba(255, 255, 255, 0.7)"}},splitLine:{show:!1},axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)"}},axisPointer:{type:"shadow"},data:e}],yAxis:[{type:"value",name:"\u4EA7\u91CF(\u5428)",splitLine:{show:!0},nameTextStyle:{fontSize:12},axisLabel:{fontSize:14,relativeSize:-2,formatter:"{value}"},axisLine:{lineStyle:{color:"#fff"}},splitLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)"}},min:0,position:"top"},{type:"value",name:"\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",min:0,position:"bottom",splitLine:{show:!1},nameTextStyle:{fontSize:12},axisLabel:{fontSize:14,relativeSize:-2,formatter:"{value}"},axisLine:{lineStyle:{color:"#fff"}}}],series:[{name:"\u5355\u4EA7\u91CF",type:"bar",barWidth:"10%",yAxisIndex:0,data:s,itemStyle:{normal:{barBorderRadius:2,color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(242, 252, 252, 1)"},{offset:.8,color:"rgba(242, 252, 252, 0.2)"},{offset:1,color:"rgba(242, 252, 252, 0.1)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}}},{name:"\u603B\u4EA7\u91CF",type:"bar",yAxisIndex:1,barWidth:"10%",data:l,itemStyle:{normal:{barBorderRadius:2,color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(143, 186, 243,1)"},{offset:.8,color:"rgba(143, 186, 243, 0.2)"},{offset:1,color:"rgba(143, 186, 243, 0.1)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}}}]};d&&t.setOption(d,{notMerge:!0,grid:{bottom:20}}),ae(t,d)}function Ze(){deleteEntityByName("townLine"),deleteEntityByName("villageLine"),J.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),re.value=!1}function ge(){const t=B(se.value);let e=[],s=[],l=[];de.value.forEach(v=>{e.push(v.subName),s.push(v.wheatUnitOutputValue),l.push(v.wheatOutput)});var d=e.sort((v,h)=>v.length-h.length),o=[s,l],u=[new ke(1,0,0,0,[{offset:0,color:"rgba(4, 247, 227, 1)"},{offset:1,color:"rgba(4, 247, 227, 1)"}],!1),new ke(1,0,0,0,[{offset:0,color:"rgba(33, 187, 251, 1)"},{offset:1,color:"rgba(33, 187, 251, 1)"}],!1)];let q={color:u,tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"5%",right:"2%",bottom:"3%",top:"10%",containLabel:!0},calculable:!0,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:100,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:[{type:"value",boundaryGap:[0,.01],axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1}}],yAxis:[{type:"category",name:"",inverse:!0,data:d,axisLabel:{textStyle:{fontSize:13,color:"rgba(255, 255, 255, 0.7)"}},axisTick:{show:!1},axisLine:{show:!1}}],series:[{name:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",type:"bar",barWidth:5,data:o[0]},{name:"\u603B\u4EA7\u91CF(\u5428)",type:"bar",barWidth:5,data:o[1]}]};ae(t,q)}function be(){const t=B(F.value);let e=[],s=[],l=[];A.value.forEach(u=>{e.push(u.subName),u.wheatUnitOutputValue!==void 0?s.push(u.wheatUnitOutputValue):s.push(0),u.wheatOutput!==void 0?l.push(u.wheatOutput):l.push(0)});let d=10/e.length*100;ae(t,{color:["rgba(4, 247, 227, 1)","rgba(33, 187, 251, 1)"],tooltip:{trigger:"axis",formatter:function(u,q,v){for(var h=u[0].name,b=0,ee=u.length;b<ee;b++)u[b].seriesType==="line"?h+="<br/>"+u[b].seriesName+" : "+(u[b].value?u[b].value:"-")+"h":h+="<br/>"+u[b].seriesName+" : "+(u[b].value?u[b].value:"-");return h}},grid:{top:"5%",bottom:"20%"},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"85%",start:0,end:d,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"}],xAxis:[{type:"category",nameTextStyle:{fontSize:12},axisLabel:{fontSize:14,relativeSize:-2},splitLine:{show:!1},axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(102, 102, 102, 1)"}},axisPointer:{type:"shadow"},data:e}],yAxis:[{type:"value",name:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",splitLine:{show:!0,lineStyle:{type:"dashed"}},nameTextStyle:{fontSize:12},axisLabel:{fontSize:14,relativeSize:-2,formatter:"{value}"},axisLine:{lineStyle:{color:"rgba(102, 102, 102, 1)"}},min:0,position:"top"},{type:"value",name:"\u603B\u4EA7\u91CF(\u5428)",min:0,position:"bottom",splitLine:{show:!1},nameTextStyle:{fontSize:12},axisLabel:{fontSize:14,relativeSize:-2,formatter:"{value}"},axisLine:{lineStyle:{color:"rgba(102, 102, 102, 1)"}}}],series:[{name:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",type:"bar",yAxisIndex:0,data:s},{name:"\u603B\u4EA7\u91CF(\u5428)",type:"bar",yAxisIndex:1,data:l}]})}n({});function Xe(){if(L.value.lon&&L.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(L.value.lon),Number(L.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(J.scene,e);if(Cesium.defined(t)){const s=document.getElementById("pop");s.style.top=t.y-10+"px",s.style.left=t.x+10+"px"}}}function ye(){XZDM="",XZQDM="";const t=document.getElementById("pop");t.style.display="none",C.value="370211",J.scene.postRender.removeEventListener(Xe),deleteEntityByName("townLine")}return(t,e)=>{const s=y("el-tooltip"),l=y("el-button"),d=y("el-checkbox"),o=y("el-checkbox-group"),u=y("el-collapse-item"),q=y("el-collapse"),v=y("el-option"),h=y("el-select"),b=y("el-form-item"),ee=y("el-form"),P=y("el-table-column"),_e=y("el-table"),Ke=y("el-pagination");return m(),_("div",xt,[a("div",St,[kt,a("div",Vt,[a("div",Dt,[a("div",Ct,[Lt,a("p",{onClick:e[0]||(e[0]=r=>Re())},[D(" \u4E0B\u8F7D \xA0 "),zt])]),a("div",{ref_key:"areaDiv",ref:oe,class:"areaDiv"},null,512)]),a("div",{class:"leftFoldDiv",onClick:e[1]||(e[1]=r=>We())},[c(s,{class:"box-item","show-arrow":!1,disabled:i(N),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:p(()=>[i(N)?x("v-if",!0):(m(),_("img",Ot))]),_:1},8,["disabled"]),c(s,{disabled:!i(N),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:p(()=>[i(N)?(m(),_("img",Nt)):x("v-if",!0)]),_:1},8,["disabled"])])]),a("div",Tt,[a("div",At,[a("div",Wt,[qt,a("p",{onClick:e[2]||(e[2]=r=>je())},[D(" \u4E0B\u8F7D \xA0 "),Et])]),a("div",{ref_key:"farmlandDiv",ref:ne,class:"farmlandDiv"},null,512),x(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),a("div",It,[a("div",Ut,[Mt,a("p",{onClick:e[3]||(e[3]=r=>Fe())},[D(" \u4E0B\u8F7D \xA0 "),Bt])]),a("div",{ref_key:"ASdivisionDiv",ref:se,class:"ASdivision"},null,512)]),a("div",{class:"rightFoldDiv",onClick:e[4]||(e[4]=r=>qe())},[c(s,{disabled:!i(T),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:p(()=>[i(T)?(m(),_("img",Gt)):x("v-if",!0)]),_:1},8,["disabled"]),c(s,{disabled:i(T),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:p(()=>[i(T)?x("v-if",!0):(m(),_("img",Rt))]),_:1},8,["disabled"])])]),a("div",jt,[i(X).length>0?(m(),E(ft,{key:0,dataSource:i(X),onDataHandle:Je},null,8,["dataSource"])):x("v-if",!0)]),Ft,a("div",Ht,[a("div",null,M(L.value.name)+"\uFF1A",1),a("div",null,M(L.value.value)+"\u4EA9",1),a("div",{class:"cancel",onClick:ye},"X")]),a("div",Yt,[a("div",null,[a("div",Pt,[$t,a("span",null,M(i(ze)),1)]),(m(!0),_(R,null,j(L.value.info,(r,V)=>(m(),_("div",{key:V,class:"rowWra"},[Jt,a("span",null,M(r.wheatUnitOutputValue)+"\u516C\u65A4/\u4EA9",1)]))),128)),(m(!0),_(R,null,j(L.value.info,(r,V)=>(m(),_("div",{key:V,class:"rowWra"},[Qt,a("span",null,M(r.wheatOutput)+"\u4EA9",1)]))),128))]),a("div",{class:"cancel",onClick:ye},"X")]),re.value?(m(),E(l,{key:0,class:"back_button",onClick:e[5]||(e[5]=r=>Ze())},{default:p(()=>[D("\u8FD4\u56DE")]),_:1})):x("v-if",!0),c(q,{class:"legend",accordion:""},{default:p(()=>[c(u,{name:"1"},{title:p(()=>[D("\u56FE\u4F8B")]),default:p(()=>[a("div",Zt,[c(o,{modelValue:t.checkList,"onUpdate:modelValue":e[11]||(e[11]=r=>t.checkList=r),onChange:t.change},{default:p(()=>[x(` <el-checkbox
|
|
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"
|
|
/> `),c(d,{style:{background:"rgba(255, 238, 204, 1)",border:"1px solid rgba(251, 171, 60, 1)",width:"100%"},modelValue:t.checked3,"onUpdate:modelValue":e[6]||(e[6]=r=>t.checked3=r),label:"0-200"},null,8,["modelValue"]),c(d,{style:{background:"rgba(255, 220, 153, 1)",border:"1px solid rgba(251, 219, 13, 1)",width:"100%"},modelValue:t.checked4,"onUpdate:modelValue":e[7]||(e[7]=r=>t.checked4=r),label:"200-400"},null,8,["modelValue"]),c(d,{style:{background:"rgba(255, 203, 102, 1)",border:"1px solid rgba(244, 218, 136, 1)",width:"100%"},modelValue:t.checked3,"onUpdate:modelValue":e[8]||(e[8]=r=>t.checked3=r),label:"400-600"},null,8,["modelValue"]),c(d,{style:{background:"rgba(255, 185, 51, 1)",border:"1px solid rgba(174, 83, 110, 1)",width:"100%"},modelValue:t.checked4,"onUpdate:modelValue":e[9]||(e[9]=r=>t.checked4=r),label:"600-800"},null,8,["modelValue"]),c(d,{style:{background:"rgba(255, 168, 0, 1)",border:"1px solid rgba(242, 177, 167, 1)",width:"100%"},modelValue:t.checked3,"onUpdate:modelValue":e[10]||(e[10]=r=>t.checked3=r),label:"800-1000"},null,8,["modelValue"])]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1})]),a("div",Xt,[a("div",Kt,[c(ee,{inline:!0,model:i(g),class:"demo-form-inline"},{default:p(()=>[c(b,{label:"\u65F6\u95F4:"},{default:p(()=>[c(h,{"popper-class":"selectCity",modelValue:i(g).time,"onUpdate:modelValue":e[12]||(e[12]=r=>i(g).time=r),placeholder:"\u8BF7\u9009\u62E9"},{default:p(()=>[(m(!0),_(R,null,j(i(ce),(r,V)=>(m(),E(v,{key:V,label:t.Zitem,value:r},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),c(b,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:p(()=>[c(h,{"popper-class":"selectCity",modelValue:i(g).statistical,"onUpdate:modelValue":e[13]||(e[13]=r=>i(g).statistical=r),placeholder:"\u8BF7\u9009\u62E9"},{default:p(()=>[c(v,{label:"\u9547\u7EA7",value:"\u9547"}),c(v,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})]),_:1},8,["modelValue"])]),_:1}),c(b,{label:"\u4F5C\u7269\u79CD\u7C7B"},{default:p(()=>[c(h,{modelValue:i(g).droughtRating,"onUpdate:modelValue":e[14]||(e[14]=r=>i(g).droughtRating=r),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:p(()=>[c(v,{label:"\u5C0F\u9EA6",value:"\u5C0F\u9EA6"}),x(` <el-option label="\u7389\u7C73" value="\u7389\u7C73" />
|
|
<el-option label="\u5927\u8C46" value="\u5927\u8C46" />
|
|
<el-option label="\u82B1\u751F" value="\u82B1\u751F" /> `)]),_:1},8,["modelValue"])]),_:1}),c(b,null,{default:p(()=>[c(l,{type:"primary",onClick:K},{default:p(()=>[D("\u67E5\u8BE2")]),_:1}),c(l,{plain:"",onClick:Ie,disabled:!i(W)},{default:p(()=>[D(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),i(Z)?x("v-if",!0):(m(),E(l,{key:0,type:"primary",text:"",onClick:He},{default:p(()=>[ea,D(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),a("div",{class:"modeDiv",onClick:Ee},[a("div",{class:we(i(W)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),a("div",{class:we(i(W)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),xe(a("div",ta,[a("div",aa,[i(Z)?x("v-if",!0):(m(),E(_e,{key:0,data:i(w),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:p(()=>[c(P,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(m(!0),_(R,null,j(i(he),(r,V)=>(m(),E(P,{key:V,prop:r.value,label:r.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),c(_e,{data:i(Q),"header-cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:p(()=>[c(P,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:$e}),(m(!0),_(R,null,j(i(pe),(r,V)=>(m(),E(P,{key:V,prop:r.value,label:r.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]),a("div",la,[D(" \u5171"+M(A.value.length)+"\u6761 ",1),c(Ke,{background:"",layout:"prev, pager, next",total:A.value.length,"current-page":i(z),"page-size":i(O),onCurrentChange:Pe},null,8,["total","current-page","page-size"])])],512),[[Se,i(W)]]),xe(a("div",oa,[a("div",{ref_key:"chartModeDiv",ref:F,class:"chartModeDiv"},null,512)],512),[[Se,!i(W)]])])])}}},ya=et(na,[["__scopeId","data-v-7527f9ca"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/output/wheat/index.vue"]]);export{ya as default};
|