3 lines
12 KiB
JavaScript
3 lines
12 KiB
JavaScript
|
import{H as F,_ as we,r as n,A as Se,V as xe,d as g,o as N,c as X,l as o,m as Y,x as P,f as l,e as i,w as f,B as ke,k as De,g as J,G as w,C as j,D as K,p as Ce,q as Te}from"./index.ae0c781d.js";import{_ as Le}from"./dow.f37c8d82.js";import{L as _,i as Me,_ as He,a as Ye}from"./mark.30b9f84d.js";import{i as ie}from"./index.c9f5bd8b.js";import{u as Ie}from"./useEcharts.dbdb546a.js";import{V as ze}from"./video.c1c1990a.js";import{h as E}from"./moment.9709ab41.js";import{d as Ve}from"./download.8084913c.js";function Ae(v){return F({url:"equipment/meteorological",method:"get",params:v})}function Ne(v){return F({url:"equipment/meteorology",method:"get",params:v})}function se(v){return F({url:"equipment/meteorologicals",method:"get",params:v})}function Pe(v){return F({url:"equipment/meteorologyTb",method:"get",params:v})}const $=v=>(Ce("data-v-2721e228"),v=v(),Te(),v),Ee={class:"fatherDiv"},Fe={class:"tabulation"},$e={class:"tabulationCente"},qe={class:"left"},Re={style:{color:"rgba(100, 195, 164, 1)"}},Be={class:"freckle"},Ue={class:"searchDiv"},We=$(()=>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=$(()=>o("img",{style:{width:"300%"},src:He},null,-1)),et=[Qe],tt={key:1},at=$(()=>o("img",{style:{width:"300%"},src:Ye},null,-1)),ot=[at],lt={class:"cesiumContainersDiv"},it=$(()=>o("div",{id:"cesiumContainers",class:"detailed"},null,-1)),st=[it],rt={class:"myVideo"},nt={__name:"index",setup(v){let b=_.Map,x=n([]);n({});let Q=n([]);n("");let T=n("\u5168\u90E8"),q=n([]);const R=n(null),ee=n(!1);let p=n(""),B=n({yearMonth:"",flag:"",divisions:""}),L=n(!1),k=n(1),S=n(9),I=null,t=n({airTemperature:[],airHumidity:[],windSpeed:[],windDirection:[],rainfall:[],atmosphericPressure:[],evaporation:[],lightIntensity:[],sunlightHours:[],photosyntheticEffectiveRadiation:[],dataTimeArr:[]}),U=n(""),D=n(!0);n(!0);let h=n("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=()=>{b=_.map("cesiumContainers",{center:[36.4,119.166326],zoom:7,zoomControl:!1,doubleClickZoom:!1,attributionControl:!1}),_.tileLayer("http://t0.tianditu.com/DataServer?T=vec_w&tk=5956e6519f2bb0ae8e57bc834298c9f1&x={x}&y={y}&l={z}").addTo(b),_.tileLayer("http://t0.tianditu.com/DataServer?T=cia_w&tk=5956e6519f2bb0ae8e57bc834298c9f1&x={x}&y={y}&l={z}").addTo(b),b._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]?E(p.value[0]).format("YYYY-MM-DD HH:mm:ss"):null,endTime:p.value[1]?E(p.value[1]).format("YYYY-MM-DD HH:mm:ss"):null}).then(a=>{x.value=a.data,q.value=a.data.slice((k.value-1)*S.value,(k.value-1)*S.value+S.value)}),se().then(a=>{a.data.forEach(e=>{I=_.latLng(e.msLatitude,e.msLongitude),b.setView(I,17),_.marker([e.msLatitude,e.msLongitude],{icon:ae}).addTo(b).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=[],Pe({name:U.value,whetherToDownload:!1,startTime:p.value[0]?E(p.value[0]).format("YYYY-MM-DD HH:mm:ss"):null,endTime:p.value[1]?E(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.photosyntheticEffectiveRadiati
|
||
|
`,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:r,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=g("el-tree"),u=g("el-date-picker"),r=g("el-form-item"),s=g("el-button"),z=g("el-form"),m=g("el-table-column"),M=g("el-table"),y=g("el-pagination"),H=g("el-dialog");return N(),X("div",Ee,[o("div",Fe,[o("div",$e,[o("div",qe,[o("p",null,[Y(" \u5F53\u524D\u9009\u62E9 \uFF1A "),o("span",Re,P(l(T)),1)]),i(d,{data:l(Q),props:a.defaultProps,onNodeClick:de},null,8,["data","props"])]),o("div",Be,[o("div",Ue,[i(z,{inline:!0,model:l(B),class:"demo-form-inline"},{default:f(()=>[i(r,{style:{width:"300px"},label:"\u76D1\u6D4B\u65F6\u95F4:"},{default:f(()=>[i(u,{modelValue:l(p),"onUpdate:modelValue":e[0]||(e[0]=c=>ke(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}),i(r,null,{default:f(()=>[i(s,{type:"primary",onClick:ue},{default:f(()=>[Y("\u67E5\u8BE2")]),_:1}),i(s,{plain:"",onClick:_e},{default:f(()=>[Y("\u91CD\u7F6E")]),_:1}),a.operate?J("v-if",!0):(N(),De(s,{key:0,type:"primary",text:"",onClick:be},{default:f(()=>[We,Y(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),o("div",{class:"modeDiv",onClick:me},[o("div",{class:w(l(D)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),o("div",{class:w(l(D)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),o("div",Ze,[j(o("div",Ge,[i(M,{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(m,{prop:"dataTime",label:"\u65E5\u671F",width:"150"},{default:f(c=>[o("div",null,P(ge(c.row.dataTime)),1),o("div",null,P(fe(c.row.dataTime)),1)]),_:1}),i(m,{prop:"airTemperature",label:"\u7A7A\u6C14\u6E29\u5EA6(\u2103)"}),i(m,{prop:"airHumidity",label:"\u7A7A\u6C14\u6E7F\u5EA6(%)"}),i(m,{prop:"windSpeed",label:"\u98CE\u901F(m/s)"}),i(m,{prop:"windDirection",label:"\u98CE\u5411(\xB0)"}),i(m,{prop:"rainfall",label:"\u96E8\u91CF(mm)"}),i(m,{prop:"atmosphericPressure",label:"\u5927\u6C14\u538B\u529B(hpa)"}),i(m,{prop:"evaporation",label:"\u84B8\u53D1(mm)"}),i(m,{prop:"lightIntensity",label:"\u5149\u7167\u5F3A\u5EA6(LUX)"}),i(m,{prop:"sunlightHours",label:"\u65E5\u7167\u65F6\u6570\uFF08h\uFF09"}),i(m,{prop:"photosyntheticEffectiveRadiation",label:"\u5149\u5408\u6709\u6548(umol)"})]),_:1},8,["data"]),o("div",Oe,[Y(" \u5171"+P(l(x).length)+"\u6761 ",1),i(y,{background:"",layout:"prev, pager, next",total:l(x).length,"current-page":l(k),"page-size":l(S),onCurrentChange:he},null,8,["total","current-page","page-size"])])],512),[[K,l(D)]]),j(o("div",Xe,[o("div",Je,[o("p",{class:w(l(h)=="1"?"SelectedDiv":""),onClick:e[1]||(e[1]=c=>C(1))}," \u6E29\u5EA6/\u6E7F\u5EA6 ",2),o("p",{class:w(l(h)=="2"?"SelectedDiv":""),onClick:e[2]||(e[2]=c=>C(2))}," \u98CE\u901F/\u98CE\u5411 ",2),o("p",{class:w(l(h)=="3"?"SelectedDiv":""),onClick:e[3]||(e[3]=c=>C(3))}," \u5149\u7167\u5F3A\u5EA6/\u5149\u5408\u6709\u6548 ",2),o("p",{class:w(l(h)=="4"?"SelectedDiv":""),onClick:e[4]||(e[4]=c=>C(4))}," \u65E5\u7167\u65F6\u6570 ",2),o("p",{class:w(l(h)=="5"?"SelectedDiv":""),onClick:e[5]||(e[5]=c=>C(5))}," \u96E8\u91CF/\u84B8\u53D1\u91CF ",2),o("p",{class:w(l(h)=="6"?"Selected
|