Agriculture-front-end/dist/assets/index.908af11a.js

3 lines
12 KiB
JavaScript
Raw Normal View History

2023-07-24 18:07:54 +08:00
import{K as A,_ as Se,r as n,D as xe,t as ke,X as De,M as Te,d as h,o as E,c as Z,k as o,m as L,y as G,f as l,e as i,w as f,F as Ce,j as Le,l as J,J as w,G as j,H as K,p as He,q as Me}from"./index.db81687b.js";import{_ as Ye}from"./dow.b3cd2c30.js";import{L as g,i as Ie,_ as ze,a as Ne}from"./mark.0ee18794.js";import"./index.e2d056fa.js";import{u as Ve}from"./useEcharts.7cdde45a.js";import{V as Pe}from"./video.66f4593f.js";import{h as T}from"./moment.9709ab41.js";import{d as Ee}from"./download.67ee05d3.js";import{e as Ae}from"./element-resize-detector.d8720798.js";import{i as se}from"./install.49294472.js";function Fe(u){return A({url:"equipment/meteorological",method:"get",params:u})}function ne(u){return A({url:"equipment/meteorologyFtb",method:"get",params:u})}function re(u){return A({url:"equipment/meteorologicals",method:"get",params:u})}function qe(u){return A({url:"equipment/meteorologyTb",method:"get",params:u})}const F=u=>(He("data-v-d7f9eabf"),u=u(),Me(),u),$e={class:"fatherDiv"},Re={class:"tabulation"},Ue={class:"tabulationCente"},Be={class:"left"},We={style:{color:"rgba(100, 195, 164, 1)"}},Xe={class:"freckle"},Ze={class:"searchDiv"},Ge=F(()=>o("img",{src:Ye,alt:""},null,-1)),Je={class:"chartModeFather"},je={class:"tableBox"},Ke={class:"example-pagination-block"},Oe={class:"chartMode"},Qe={class:"depth"},et={class:"centent"},tt={key:0},at=F(()=>o("img",{style:{width:"300%"},src:ze},null,-1)),ot=[at],lt={key:1},it=F(()=>o("img",{style:{width:"300%"},src:Ne},null,-1)),st=[it],nt={class:"cesiumContainersDiv"},rt=F(()=>o("div",{id:"cesiumContainers",class:"detailed"},null,-1)),dt=[rt],ct={class:"myVideo"},ut={__name:"index",setup(u){let b=g.Map,H=n([]);n({});let O=n([]);n("");let M=n("\u5168\u90E8"),q=n([]);const Y=n(null);let de=window.localStorage.getItem("deptName");const Q=n(!1);let r=n(""),$=n({yearMonth:"",flag:"",divisions:""}),C=n(!1),x=n(1),S=n(11),I=null,t=n({airTemperature:[],airHumidity:[],windSpeed:[],windDirection:[],rainfall:[],atmosphericPressure:[],evaporation:[],lightIntensity:[],sunlightHours:[],photosyntheticEffectiveRadiation:[],dataTimeArr:[]}),z=n(""),k=n(!0);n(!0);let _=n("1");const ce=xe({videoSrc:"http://cmgw-vpc.lechange.com:8888/LCO/9C023C5FACFE48F/0/1/20230530T033445/a44e6e04b0608347f0209ab2b25aa258.m3u8"});ke(()=>{me(),ue(),R(),ee()}),De(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="none"});const ue=()=>{b=g.map("cesiumContainers",{center:[36.4,119.166326],zoom:7,zoomControl:!1,doubleClickZoom:!1,attributionControl:!1}),g.tileLayer("http://t0.tianditu.com/DataServer?T=img_w&tk=5956e6519f2bb0ae8e57bc834298c9f1&x={x}&y={y}&l={z}").addTo(b),g.tileLayer("http://t0.tianditu.com/DataServer?T=cia_w&tk=5956e6519f2bb0ae8e57bc834298c9f1&x={x}&y={y}&l={z}").addTo(b),b._onResize()},me=()=>{Fe({divisions:de}).then(a=>{a.data.forEach(e=>{O.value.push(e)})})},R=()=>{ne({name:z.value,whetherToDownload:!1,startTime:r.value[0]?T(r.value[0]).format("YYYY-MM-DD HH:mm:ss"):null,endTime:r.value[1]?T(r.value[1]).format("YYYY-MM-DD HH:mm:ss"):null,divisions:window.localStorage.getItem("divisions")}).then(a=>{H.value=a.data,q.value=a.data.slice((x.value-1)*S.value,(x.value-1)*S.value+S.value)}),re({divisions:window.localStorage.getItem("divisions")}).then(a=>{a.data.forEach(e=>{I=g.latLng(e.msLatitude,e.msLongitude),b.setView(I,17),g.marker([e.msLatitude,e.msLongitude],{icon:te}).addTo(b).bindPopup(`<b>${e.msName}</b><br><br>\u7ECF\u5EA6:${e.msLongitude}<br><br>\u7EAC\u5EA6:${e.msLatitude}`).openPopup()})})},ee=()=>{t.value.airTemperature=[],t.value.airHumidity=[],t.value.windSpeed=[],t.value.windDirection=[],t.value.rainfall=[],t.value.atmosphericPressure=[],t.value.evaporation=[],t.value.lightIntensity=[],t.value.sunlightHours=[],t.value.photosyntheticEffectiveRadiation=[],t.value.dataTimeArr=[],qe({name:z.value,whetherToDownload:!1,startTime:r.value[0]?T(r.value[0]).format("YYYY-MM-DD HH:mm:ss"):null,endTime:r.value[1]?T(r.value[1]).format("YYYY-MM-DD HH:mm:ss"):null}).then(a=>{a.data.forEach(e=>{t.value.airTemperature.unshift(e.airT
`,d+=W}else d=y;return d}},boundaryGap:!1,axisTick:{show:!1}}],yAxis:[{name:e,type:"value",axisLine:{show:!1,lineStyle:{color:"rgba(102, 102, 102, 1)"}},axisTick:{show:!1},axisLabel:{textStyle:{color:"rgba(102, 102, 102, 1)"}},splitLine:{show:!0,lineStyle:{color:"#ccc",type:"solid",opacity:1}}},{name:p,type:"value",axisLine:{show:!1,lineStyle:{color:"rgba(102, 102, 102, 1)"}},position:"right",axisTick:{show:!1},axisLabel:{textStyle:{color:"rgba(102, 102, 102, 1)"},formatter:"{value}"},splitLine:{show:!1}}],series:[{name:e,type:"line",data:v,symbolSize:10,itemStyle:{},smooth:!0,yAxisIndex:0,showSymbol:!0,symbol:"circle",lineStyle:{width:3,color:s}},{name:p,type:"line",data:m,symbolSize:10,yAxisIndex:1,itemStyle:{},label:{color:y=>y.color},smooth:!0,showSymbol:!0,symbol:"circle",lineStyle:{width:3,color:"rgba(199, 125, 231, 1)"}}]}),Ae().listenTo(Y.value,()=>{Te(()=>{a.resize()})})}return(a,e)=>{const p=h("el-tree"),v=h("el-date-picker"),m=h("el-form-item"),s=h("el-button"),N=h("el-form"),c=h("el-table-column"),oe=h("el-table"),le=h("el-pagination"),y=h("el-dialog");return E(),Z("div",$e,[o("div",Re,[o("div",Ue,[o("div",Be,[o("p",null,[L(" \u5F53\u524D\u9009\u62E9 \uFF1A "),o("span",We,G(l(M)),1)]),i(p,{data:l(O),props:a.defaultProps,onNodeClick:pe},null,8,["data","props"])]),o("div",Xe,[o("div",Ze,[i(N,{inline:!0,model:l($),class:"demo-form-inline"},{default:f(()=>[i(m,{style:{width:"300px"},label:"\u76D1\u6D4B\u65F6\u95F4:"},{default:f(()=>[i(v,{modelValue:l(r),"onUpdate:modelValue":e[0]||(e[0]=d=>Ce(r)?r.value=d:r=d),type:"daterange","range-separator":"\u27A1\uFE0F","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),i(m,null,{default:f(()=>[i(s,{type:"primary",onClick:ve},{default:f(()=>[L("\u67E5\u8BE2")]),_:1}),i(s,{plain:"",onClick:_e},{default:f(()=>[L("\u91CD\u7F6E")]),_:1}),a.operate?J("",!0):(E(),Le(s,{key:0,type:"primary",text:"",onClick:ye},{default:f(()=>[Ge,L(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),o("div",{class:"modeDiv",onClick:fe},[o("div",{class:w(l(k)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),o("div",{class:w(l(k)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),o("div",Je,[j(o("div",je,[i(oe,{data:l(q),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},"header-row-class-name":"tabth",height:"80%","highlight-current-row":""},{default:f(()=>[i(c,{prop:"dataTime",label:"\u65E5\u671F",width:"160"},{default:f(d=>[o("div",null,G(d.row.dataTime),1)]),_:1}),i(c,{prop:"airTemperature",label:"\u7A7A\u6C14\u6E29\u5EA6(\u2103)"}),i(c,{prop:"airHumidity",label:"\u7A7A\u6C14\u6E7F\u5EA6(%)"}),i(c,{prop:"windSpeed",label:"\u98CE\u901F(m/s)"}),i(c,{prop:"windDirection",label:"\u98CE\u5411(\xB0)"}),i(c,{prop:"rainfall",label:"\u96E8\u91CF(mm)"}),i(c,{prop:"atmosphericPressure",label:"\u5927\u6C14\u538B\u529B(hpa)"}),i(c,{prop:"evaporation",label:"\u84B8\u53D1(mm)"}),i(c,{prop:"lightIntensity",label:"\u5149\u7167\u5F3A\u5EA6(LUX)"}),i(c,{prop:"sunlightHours",label:"\u65E5\u7167\u65F6\u6570\uFF08h\uFF09"}),i(c,{prop:"photosyntheticEffectiveRadiation",label:"\u5149\u5408\u6709\u6548(umol)"})]),_:1},8,["data"]),o("div",Ke,[L(" \u5171"+G(l(H).length)+"\u6761 ",1),i(le,{background:"",layout:"prev, pager, next",total:l(H).length,"current-page":l(x),"page-size":l(S),onCurrentChange:be},null,8,["total","current-page","page-size"])])],512),[[K,l(k)]]),j(o("div",Oe,[o("div",Qe,[o("p",{class:w(l(_)=="1"?"SelectedDiv":""),onClick:e[1]||(e[1]=d=>D(1))}," \u6E29\u5EA6/\u6E7F\u5EA6 ",2),o("p",{class:w(l(_)=="2"?"SelectedDiv":""),onClick:e[2]||(e[2]=d=>D(2))}," \u98CE\u901F/\u98CE\u5411 ",2),o("p",{class:w(l(_)=="3"?"SelectedDiv":""),onClick:e[3]||(e[3]=d=>D(3))}," \u5149\u7167\u5F3A\u5EA6/\u5149\u5408\u6709\u6548 ",2),o("p",{class:w(l(_)=="4"?"SelectedDiv":""),onClick:e[4]||(e[4]=d=>D(4))}," \u65E5\u7167\u65F6\u6570 ",2),o("p",{class:w(l(_)=="5"?"SelectedDiv":""),onClick:e[5]||(e[5]=d=>D(5))}," \u96E8\u91CF/\u84B8\u53D1\u91CF ",2),o("p",{class:w(l(_)=="6"?"SelectedDiv":""),onClick:e[6]||(e[6]=d=>D(6))}," \u5927\