3 lines
12 KiB
JavaScript
3 lines
12 KiB
JavaScript
|
import{H as F,_ as we,r,A as Se,V as xe,d as v,o as N,c as X,l as o,m as Y,x as E,f as i,e as l,w as g,B as De,k as ke,g as J,G as S,C as j,D as K,p as Ce,q as Te}from"./index.9172db1d.js";import{_ as Le}from"./dow.f37c8d82.js";import{L as f,i as Me,_ as He,a as Ye}from"./mark.987e91b1.js";import{i as ie}from"./index.c9f5bd8b.js";import{u as Ie}from"./useEcharts.963c5809.js";import{V as ze}from"./video.ea53a9b5.js";import{h as P}from"./moment.9709ab41.js";import{d as Ve}from"./download.f7ec50f1.js";function Ae(h){return F({url:"equipment/meteorological",method:"get",params:h})}function Ne(h){return F({url:"equipment/meteorology",method:"get",params:h})}function se(h){return F({url:"equipment/meteorologicals",method:"get",params:h})}function Ee(h){return F({url:"equipment/meteorologyTb",method:"get",params:h})}const q=h=>(Ce("data-v-2721e228"),h=h(),Te(),h),Pe={class:"fatherDiv"},Fe={class:"tabulation"},qe={class:"tabulationCente"},$e={class:"left"},Re={style:{color:"rgba(100, 195, 164, 1)"}},Be={class:"freckle"},Ue={class:"searchDiv"},We=q(()=>o("img",{src:Le,alt:""},null,-1)),Ze={class:"chartModeFather"},Ge={class:"tableBox"},Oe={class:"example-pagination-block"},Xe={class:"chartMode"},Je={class:"depth"},je={class:"centent"},Ke={key:0},Qe=q(()=>o("img",{style:{width:"300%"},src:He},null,-1)),et=[Qe],tt={key:1},at=q(()=>o("img",{style:{width:"300%"},src:Ye},null,-1)),ot=[at],lt={class:"cesiumContainersDiv"},it=q(()=>o("div",{id:"cesiumContainers",class:"detailed"},null,-1)),st=[it],rt={class:"myVideo"},nt={__name:"index",setup(h){let _=f.Map,x=r([]);r({});let Q=r([]);r("");let C=r("\u5168\u90E8"),$=r([]);const R=r(null),ee=r(!1);let p=r(""),B=r({yearMonth:"",flag:"",divisions:""}),T=r(!1),D=r(1),w=r(9),I=null,t=r({airTemperature:[],airHumidity:[],windSpeed:[],windDirection:[],rainfall:[],atmosphericPressure:[],evaporation:[],lightIntensity:[],sunlightHours:[],photosyntheticEffectiveRadiation:[],dataTimeArr:[]}),U=r(""),k=r(!0);r(!0);let b=r("1");const re=Se({videoSrc:"http://cmgw-vpc.lechange.com:8888/LCO/9C023C5FACFE48F/0/1/20230530T033445/a44e6e04b0608347f0209ab2b25aa258.m3u8"});xe(()=>{ce(),ne(),W(),te()});const ne=()=>{_=f.map("cesiumContainers",{center:[36.4,119.166326],zoom:7,zoomControl:!1,doubleClickZoom:!1,attributionControl:!1}),f.tileLayer("http://t0.tianditu.com/DataServer?T=vec_w&tk=5956e6519f2bb0ae8e57bc834298c9f1&x={x}&y={y}&l={z}").addTo(_),f.tileLayer("http://t0.tianditu.com/DataServer?T=cia_w&tk=5956e6519f2bb0ae8e57bc834298c9f1&x={x}&y={y}&l={z}").addTo(_),_._onResize()},ce=()=>{Ae().then(a=>{console.log(a.data),a.data.forEach(e=>{Q.value.push(e)})})},W=()=>{Ne({name:U.value,whetherToDownload:!1,startTime:p.value[0]?P(p.value[0]).format("YYYY-MM-DD HH:mm:ss"):null,endTime:p.value[1]?P(p.value[1]).format("YYYY-MM-DD HH:mm:ss"):null}).then(a=>{x.value=a.data,$.value=a.data.slice((D.value-1)*w.value,(D.value-1)*w.value+w.value)}),se().then(a=>{a.data.forEach(e=>{I=f.latLng(e.msLatitude,e.msLongitude),_.setView(I,17),f.marker([e.msLatitude,e.msLongitude],{icon:ae}).addTo(_).bindPopup(`<b>${e.msName}</b><br><br>\u7ECF\u5EA6:${e.msLongitude}<br><br>\u7EAC\u5EA6:${e.msLatitude}`).openPopup()})})},te=()=>{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=[],Ee({name:U.value,whetherToDownload:!1,startTime:p.value[0]?P(p.value[0]).format("YYYY-MM-DD HH:mm:ss"):null,endTime:p.value[1]?P(p.value[1]).format("YYYY-MM-DD HH:mm:ss"):null}).then(a=>{a.data.forEach(e=>{t.value.airTemperature.push(e.airTemperature),t.value.airHumidity.push(e.airHumidity),t.value.windSpeed.push(e.windSpeed),t.value.windDirection.push(e.windDirection),t.value.rainfall.push(e.rainfall),t.value.atmosphericPressure.push(e.atmosphericPressure),t.value.evaporation.push(e.evaporation),t.value.lightIntensity.push(e.lightIntensity),t.value.sunlightHours.push(e.sunlightHours),t.value.photosyntheticEffectiveRadiation.pu
|
||
|
`,H+=G}else H=y;return H}},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:d,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:u,symbolSize:10,itemStyle:{},smooth:!0,yAxisIndex:0,showSymbol:!0,symbol:"circle",lineStyle:{width:3,color:s}},{name:d,type:"line",data:n,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)"}}]};M&&a.setOption(M,{notMerge:!0,grid:{bottom:20}}),Ie(a,M)}return(a,e)=>{const d=v("el-tree"),u=v("el-date-picker"),n=v("el-form-item"),s=v("el-button"),z=v("el-form"),m=v("el-table-column"),M=v("el-table"),y=v("el-pagination"),H=v("el-dialog");return N(),X("div",Pe,[o("div",Fe,[o("div",qe,[o("div",$e,[o("p",null,[Y(" \u5F53\u524D\u9009\u62E9 \uFF1A "),o("span",Re,E(i(C)),1)]),l(d,{data:i(Q),props:a.defaultProps,onNodeClick:de},null,8,["data","props"])]),o("div",Be,[o("div",Ue,[l(z,{inline:!0,model:i(B),class:"demo-form-inline"},{default:g(()=>[l(n,{style:{width:"300px"},label:"\u76D1\u6D4B\u65F6\u95F4:"},{default:g(()=>[l(u,{modelValue:i(p),"onUpdate:modelValue":e[0]||(e[0]=c=>De(p)?p.value=c:p=c),type:"daterange","range-separator":"\u27A1\uFE0F","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),l(n,null,{default:g(()=>[l(s,{type:"primary",onClick:ue},{default:g(()=>[Y("\u67E5\u8BE2")]),_:1}),l(s,{plain:"",onClick:_e},{default:g(()=>[Y("\u91CD\u7F6E")]),_:1}),a.operate?J("v-if",!0):(N(),ke(s,{key:0,type:"primary",text:"",onClick:be},{default:g(()=>[We,Y(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),o("div",{class:"modeDiv",onClick:me},[o("div",{class:S(i(k)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),o("div",{class:S(i(k)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),o("div",Ze,[j(o("div",Ge,[l(M,{data:i($),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},"header-row-class-name":"tabth",height:"80%","highlight-current-row":""},{default:g(()=>[l(m,{prop:"dataTime",label:"\u65E5\u671F",width:"150"},{default:g(c=>[o("div",null,E(ge(c.row.dataTime)),1),o("div",null,E(fe(c.row.dataTime)),1)]),_:1}),l(m,{prop:"airTemperature",label:"\u7A7A\u6C14\u6E29\u5EA6(\u2103)"}),l(m,{prop:"airHumidity",label:"\u7A7A\u6C14\u6E7F\u5EA6(%)"}),l(m,{prop:"windSpeed",label:"\u98CE\u901F(m/s)"}),l(m,{prop:"windDirection",label:"\u98CE\u5411(\xB0)"}),l(m,{prop:"rainfall",label:"\u96E8\u91CF(mm)"}),l(m,{prop:"atmosphericPressure",label:"\u5927\u6C14\u538B\u529B(hpa)"}),l(m,{prop:"evaporation",label:"\u84B8\u53D1(mm)"}),l(m,{prop:"lightIntensity",label:"\u5149\u7167\u5F3A\u5EA6(LUX)"}),l(m,{prop:"sunlightHours",label:"\u65E5\u7167\u65F6\u6570\uFF08h\uFF09"}),l(m,{prop:"photosyntheticEffectiveRadiation",label:"\u5149\u5408\u6709\u6548(umol)"})]),_:1},8,["data"]),o("div",Oe,[Y(" \u5171"+E(i(x).length)+"\u6761 ",1),l(y,{background:"",layout:"prev, pager, next",total:i(x).length,"current-page":i(D),"page-size":i(w),onCurrentChange:ve},null,8,["total","current-page","page-size"])])],512),[[K,i(k)]]),j(o("div",Xe,[o("div",Je,[o("p",{class:S(i(b)=="1"?"SelectedDiv":""),onClick:e[1]||(e[1]=c=>L(1))}," \u6E29\u5EA6/\u6E7F\u5EA6 ",2),o("p",{class:S(i(b)=="2"?"SelectedDiv":""),onClick:e[2]||(e[2]=c=>L(2))}," \u98CE\u901F/\u98CE\u5411 ",2),o("p",{class:S(i(b)=="3"?"SelectedDiv":""),onClick:e[3]||(e[3]=c=>L(3))}," \u5149\u7167\u5F3A\u5EA6/\u5149\u5408\u6709\u6548 ",2),o("p",{class:S(i(b)=="4"?"SelectedDiv":""),onClick:e[4]||(e[4]=c=>L(4))}," \u65E5\u7167\u65F6\u6570 ",2),o("p",{class:S(i(b)=="5"?"SelectedDiv":""),onClick:e[5]||(e[5]=c=>L(5))}," \u96E8\u91CF/\u84B8\u53D1\u91CF ",2)]),o("div",{ref_key:"chartDiv",ref:
|