Agriculture-front-end/dist/assets/index.6820a257.js
2023-07-09 20:38:38 +08:00

15 lines
25 KiB
JavaScript

import{H as G,_ as Xe,a as Ke,r as s,A as et,V as tt,W as at,U as lt,d as b,o as m,c as _,l as a,m as D,e as c,w as p,f as r,g as x,k as E,x as M,L as j,N as R,G as ye,C as _e,D as we,y as ot,p as nt,q as st}from"./index.955aa49e.js";import ae from"./downloads.4cdbbcc5.js";import{_ as $}from"./close1.45635d81.js";import{_ as it,a as rt,b as ut,c as dt}from"./position.a021215f.js";import{_ as ct,a as pt}from"./TimeLine.vue_vue_type_style_index_0_scoped_26e8a223_lang.891b9335.js";import{_ as ht}from"./dow.2a8d74cb.js";import"./index.6098b0aa.js";import{T as mt}from"./TimeLine.c55795b7.js";import{u as ee,w as vt}from"./xlsx.86b9426e.js";import{u as te}from"./useEcharts.586cdb9c.js";import"./linesGL.306b5757.js";import{d as ft}from"./download.2f5946e0.js";import{i as B,L as xe}from"./install.6cb28b74.js";function Se(f){return G({url:"equipment/wheatTotalYearValue",method:"get",params:f})}function ke(f){return G({url:"equipment/wheatHeightStandardFarmland",method:"get",params:f})}function Ve(f){return G({url:"equipment/wheatGetAllTowns",method:"get",params:f})}function gt(f){return G({url:"equipment/wheatGetAllVillages",method:"get",params:f})}function bt(f){return G({url:"equipment/wheatYear",method:"get",params:f})}function yt(f){return G({url:"equipment/parameterEstimation",method:"get",params:f})}const S=f=>(nt("data-v-7527f9ca"),f=f(),st(),f),_t={class:"fatherDiv"},wt={class:"centerBox"},xt=S(()=>a("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),St={class:"leftWra"},kt={class:"leftTop"},Vt={class:"title"},Dt=S(()=>a("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),Ct=S(()=>a("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Lt={key:0,src:$,alt:""},zt={key:0,class:"imgrotate",src:$,alt:""},Ot={class:"rightWra"},Nt={class:"rightTop"},Tt={class:"title"},At=S(()=>a("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Wt=S(()=>a("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),qt={class:"rightbottom"},Et={class:"title"},It=S(()=>a("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Ut=S(()=>a("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Mt={key:0,src:$,alt:""},Bt={key:0,class:"imgrotate",src:$,alt:""},Gt={class:"bottom_center"},jt=ot('<div class="tool" data-v-7527f9ca><span data-v-7527f9ca><img src="'+it+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+rt+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+ut+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+ct+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+pt+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+dt+'" alt="" data-v-7527f9ca></span></div>',1),Rt={id:"popup"},Ft={id:"pop"},Ht={class:"rowWra"},Yt=S(()=>a("span",null,"\u5730\u533A\uFF1A",-1)),Pt=S(()=>a("span",null,"\u5355\u4EA7\u91CF\uFF1A",-1)),$t=S(()=>a("span",null,"\u603B\u4EA7\u91CF\uFF1A",-1)),Jt={class:"mt-4"},Qt={class:"tabulation"},Zt={class:"searchDiv"},Xt=S(()=>a("img",{src:ht,alt:""},null,-1)),Kt={class:"tableBox"},ea={class:"tableBorder"},ta={class:"example-pagination-block"},aa={class:"chartMode"},la={__name:"index",setup(f){const De=Ke();let J=s(null);const le=s(null),oe=s(null),ne=s(null),C=s("");let I=et({arr:[],brr:[],crr:[]});const L=s({name:"",value:""});s([]);const se=s(!1);let N=s(!0),T=s(!0),ie=s([]),re=s({}),ue=s([]);const A=s([]);let W=s(!0),de=s([]),z=s(1),O=s(12),Q=s([]),ce=s([]),pe=s([]);const Ce=s(1);let Z=s(!0);const F=s(null);let Le=s(""),X=s([]),U=s(""),w=s([{wheatUnitOutputValue:0,wheatOutput:0}]),y=s({time:"",statistical:"\u9547",droughtRating:"\u5C0F\u9EA6",area:Ce.value}),H=s(null);tt(()=>{ze()});function ze(){Ee(),Oe(),me(),ve()}at(()=>{localStorage.getItem(De.currentRoute.value.path)=="false"?document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F":document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F"}),lt(()=>U.value,(t,e)=>{C.value="370211",Ie(C.value,U.value.name),Ue(C.value,U.value.name),Me(C.value,U.value.name)});let k=s(null);s(null),s(null),s(null),s(null);function Oe(){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"})})]}),Ne(),Te(),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 n=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()})});n.observe(t)}const Ne=()=>{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)},Te=()=>{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 Ae(){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 We(){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 qe=()=>{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()}),fe()},Ee=()=>{bt().then(t=>{U.value={name:t.data[0]},t.data.forEach(e=>{X.value.push({name:e})}),y.value.time=t.data[t.data.length-1],de.value=t.data,he()})},Ie=(t,e)=>{Se({divisions:t,yearMonth:e}).then(n=>{re.value=n.data,$e()})},Ue=(t,e)=>{ke({divisions:t,yearMonth:e}).then(n=>{ie.value=n.data,me()})},Me=(t,e)=>{Ve({divisions:t,yearMonth:e}).then(n=>{ue.value=n.data,I.brr=JSON.parse(JSON.stringify(n.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,ve()})},Be=t=>{Se({divisions:C.value,whetherToDownload:!0}).then(e=>{ft(e.data[e.data.length-1].excelPath)})},Ge=t=>{ke().then(e=>{Y(e.data,"\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},je=t=>{C.value===""?Ve().then(e=>{Y(e.data,"\u884C\u653F\u533A\u5212","Sheet1")}):gt({divisions:C.value}).then(e=>{Y(e.data,"\u884C\u653F\u533A\u5212","Sheet1")})},Re=()=>{let t=JSON.parse(JSON.stringify(w.value[0]));console.log(t),A.value.push(t),Y(A.value,"\u5E72\u65F1\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},he=()=>{z.value=1,yt({year:y.value.time,statistical:y.value.statistical,type:y.value.droughtRating,area:y.value.area}).then(t=>{ce.value=[{lable:"\u5730\u533A",value:"subName"},{lable:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",value:"wheatUnitOutputValue"},{lable:"\u603B\u4EA7\u91CF(\u5428)",value:"wheatOutput"}],pe.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 n=B(e);window.addEventListener("resize",()=>{e.style.width=document.querySelector(".app-main").offsetWidth+"px",e.style.height=document.querySelector(".app-main").offsetHeight+"px",n.resize()}),fe()})},Fe=(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",n="Sheet1")=>{const d=Fe(t,{subName:"\u533A\u57DF\u540D\u79F0",wheatUnitOutputValue:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",wheatOutput:"\u603B\u4EA7\u91CF(\u5428)"}),o=ee.json_to_sheet(d),u=ee.book_new();ee.book_append_sheet(u,o,n),vt(u,`${e}.xlsx`)},He=t=>{z.value=t,Q.value=A.value.slice((z.value-1)*O.value,(z.value-1)*O.value+O.value)},Ye=t=>{const e=z.value,n=O.value;return t+1+(e-1)*n},Pe=t=>{U.value=t};function $e(){const t=B(le.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}]};re.value.forEach(l=>{e.xData.push(l.year),e.yData[0].data.push(l.wheatUnitOutputValue),e.yData[1].data.push(l.wheatOutput)});let n={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};n&&t.setOption(n),window.addEventListener("resize",function(){t.resize()})}function me(){const t=B(oe.value);let e=[],n=[],l=[];ie.value.forEach(o=>{e.push(o.subName),n.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,g=o.length;h<g;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:n,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}}),te(t,d)}function Je(){deleteEntityByName("townLine"),deleteEntityByName("villageLine"),J.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),se.value=!1}function ve(){const t=B(ne.value);let e=[],n=[],l=[];ue.value.forEach(v=>{e.push(v.subName),n.push(v.wheatUnitOutputValue),l.push(v.wheatOutput)});var d=e.sort((v,h)=>v.length-h.length),o=[n,l],u=[new xe(1,0,0,0,[{offset:0,color:"rgba(4, 247, 227, 1)"},{offset:1,color:"rgba(4, 247, 227, 1)"}],!1),new xe(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]}]};te(t,q)}function fe(){const t=B(F.value);let e=[],n=[],l=[];A.value.forEach(u=>{e.push(u.subName),u.wheatUnitOutputValue!==void 0?n.push(u.wheatUnitOutputValue):n.push(0),u.wheatOutput!==void 0?l.push(u.wheatOutput):l.push(0)});let d=10/e.length*100;te(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,g=0,K=u.length;g<K;g++)u[g].seriesType==="line"?h+="<br/>"+u[g].seriesName+" : "+(u[g].value?u[g].value:"-")+"h":h+="<br/>"+u[g].seriesName+" : "+(u[g].value?u[g].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:n},{name:"\u603B\u4EA7\u91CF(\u5428)",type:"bar",yAxisIndex:1,data:l}]})}s({});function Qe(){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 n=document.getElementById("pop");n.style.top=t.y-10+"px",n.style.left=t.x+10+"px"}}}function ge(){XZDM="",XZQDM="";const t=document.getElementById("pop");t.style.display="none",C.value="370211",J.scene.postRender.removeEventListener(Qe),deleteEntityByName("townLine")}return(t,e)=>{const n=b("el-tooltip"),l=b("el-button"),d=b("el-checkbox"),o=b("el-checkbox-group"),u=b("el-collapse-item"),q=b("el-collapse"),v=b("el-option"),h=b("el-select"),g=b("el-form-item"),K=b("el-form"),P=b("el-table-column"),be=b("el-table"),Ze=b("el-pagination");return m(),_("div",_t,[a("div",wt,[xt,a("div",St,[a("div",kt,[a("div",Vt,[Dt,a("p",{onClick:e[0]||(e[0]=i=>Be())},[D(" \u4E0B\u8F7D \xA0 "),Ct])]),a("div",{ref_key:"areaDiv",ref:le,class:"areaDiv"},null,512)]),a("div",{class:"leftFoldDiv",onClick:e[1]||(e[1]=i=>Ae())},[c(n,{class:"box-item","show-arrow":!1,disabled:r(N),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:p(()=>[r(N)?x("v-if",!0):(m(),_("img",Lt))]),_:1},8,["disabled"]),c(n,{disabled:!r(N),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:p(()=>[r(N)?(m(),_("img",zt)):x("v-if",!0)]),_:1},8,["disabled"])])]),a("div",Ot,[a("div",Nt,[a("div",Tt,[At,a("p",{onClick:e[2]||(e[2]=i=>Ge())},[D(" \u4E0B\u8F7D \xA0 "),Wt])]),a("div",{ref_key:"farmlandDiv",ref:oe,class:"farmlandDiv"},null,512),x(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),a("div",qt,[a("div",Et,[It,a("p",{onClick:e[3]||(e[3]=i=>je())},[D(" \u4E0B\u8F7D \xA0 "),Ut])]),a("div",{ref_key:"ASdivisionDiv",ref:ne,class:"ASdivision"},null,512)]),a("div",{class:"rightFoldDiv",onClick:e[4]||(e[4]=i=>We())},[c(n,{disabled:!r(T),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:p(()=>[r(T)?(m(),_("img",Mt)):x("v-if",!0)]),_:1},8,["disabled"]),c(n,{disabled:r(T),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:p(()=>[r(T)?x("v-if",!0):(m(),_("img",Bt))]),_:1},8,["disabled"])])]),a("div",Gt,[r(X).length>0?(m(),E(mt,{key:0,dataSource:r(X),onDataHandle:Pe},null,8,["dataSource"])):x("v-if",!0)]),jt,a("div",Rt,[a("div",null,M(L.value.name)+"\uFF1A",1),a("div",null,M(L.value.value)+"\u4EA9",1),a("div",{class:"cancel",onClick:ge},"X")]),a("div",Ft,[a("div",null,[a("div",Ht,[Yt,a("span",null,M(r(Le)),1)]),(m(!0),_(j,null,R(L.value.info,(i,V)=>(m(),_("div",{key:V,class:"rowWra"},[Pt,a("span",null,M(i.wheatUnitOutputValue)+"\u516C\u65A4/\u4EA9",1)]))),128)),(m(!0),_(j,null,R(L.value.info,(i,V)=>(m(),_("div",{key:V,class:"rowWra"},[$t,a("span",null,M(i.wheatOutput)+"\u4EA9",1)]))),128))]),a("div",{class:"cancel",onClick:ge},"X")]),se.value?(m(),E(l,{key:0,class:"back_button",onClick:e[5]||(e[5]=i=>Je())},{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",Jt,[c(o,{modelValue:t.checkList,"onUpdate:modelValue":e[11]||(e[11]=i=>t.checkList=i),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]=i=>t.checked3=i),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]=i=>t.checked4=i),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]=i=>t.checked3=i),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]=i=>t.checked4=i),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]=i=>t.checked3=i),label:"800-1000"},null,8,["modelValue"])]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1})]),a("div",Qt,[a("div",Zt,[c(K,{inline:!0,model:r(y),class:"demo-form-inline"},{default:p(()=>[c(g,{label:"\u65F6\u95F4:"},{default:p(()=>[c(h,{"popper-class":"selectCity",modelValue:r(y).time,"onUpdate:modelValue":e[12]||(e[12]=i=>r(y).time=i),placeholder:"\u8BF7\u9009\u62E9"},{default:p(()=>[(m(!0),_(j,null,R(r(de),(i,V)=>(m(),E(v,{key:V,label:t.Zitem,value:i},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),c(g,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:p(()=>[c(h,{"popper-class":"selectCity",modelValue:r(y).statistical,"onUpdate:modelValue":e[13]||(e[13]=i=>r(y).statistical=i),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(g,{label:"\u4F5C\u7269\u79CD\u7C7B"},{default:p(()=>[c(h,{modelValue:r(y).droughtRating,"onUpdate:modelValue":e[14]||(e[14]=i=>r(y).droughtRating=i),"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(g,null,{default:p(()=>[c(l,{type:"primary",onClick:he},{default:p(()=>[D("\u67E5\u8BE2")]),_:1}),c(l,{plain:"",onClick:t.resetForm,disabled:!r(W)},{default:p(()=>[D(" \u91CD\u7F6E ")]),_:1},8,["onClick","disabled"]),r(Z)?x("v-if",!0):(m(),E(l,{key:0,type:"primary",text:"",onClick:Re},{default:p(()=>[Xt,D(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),a("div",{class:"modeDiv",onClick:qe},[a("div",{class:ye(r(W)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),a("div",{class:ye(r(W)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),_e(a("div",Kt,[a("div",ea,[r(Z)?x("v-if",!0):(m(),E(be,{key:0,data:r(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),_(j,null,R(r(pe),(i,V)=>(m(),E(P,{key:V,prop:i.value,label:i.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),c(be,{data:r(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:Ye}),(m(!0),_(j,null,R(r(ce),(i,V)=>(m(),E(P,{key:V,prop:i.value,label:i.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]),a("div",ta,[D(" \u5171"+M(A.value.length)+"\u6761 ",1),c(Ze,{background:"",layout:"prev, pager, next",total:A.value.length,"current-page":r(z),"page-size":r(O),onCurrentChange:He},null,8,["total","current-page","page-size"])])],512),[[we,r(W)]]),_e(a("div",aa,[a("div",{ref_key:"chartModeDiv",ref:F,class:"chartModeDiv"},null,512)],512),[[we,!r(W)]])])])}}},ga=Xe(la,[["__scopeId","data-v-7527f9ca"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/output/wheat/index.vue"]]);export{ga as default};