2 lines
22 KiB
JavaScript
2 lines
22 KiB
JavaScript
|
import{_ as e,a}from"./zhankaiss.6870329f.js";import{m as l,s as t,g as s,p as n,a as o,b as i,h as r,c,j as d,d as u,z as g,k as A,l as v}from"./information.2f37efab.js";import"./linesGL.76a64914.js";import"./moment.2cad4b18.js";import{_ as m,r as p,I as y,x as f,H as h,a8 as b,d as w,o as E,c as k,l as C,n as R,e as V,w as I,O as B,A as S,m as W,V as x,W as D,k as q,J as M,f as F,N as Q,q as U,s as Y}from"./index.e5c8b0d6.js";import"./linkSeriesData.e74eae00.js";const N=e=>(U("data-v-8a8c1fcd"),e=e(),Y(),e),Z={class:"center"},L=N((()=>C("div",{style:{width:"100%",height:"100%"},class:"cesiumContainer",id:"cesiumContainer"},null,-1))),H={class:"rightWra"},G={class:"farmlandHeader"},P={class:"text"},J={key:0,class:"holiday"},O={class:"rightTop"},z=N((()=>C("div",{class:"title"},[C("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}}),C("span",null,"预警信息发布")],-1))),K={class:"farmlandDiv"},T={class:"radioDiv"},X={class:"radioDiv"},j={class:"selectDiv"},_={class:"selectDiv",style:{"margin-top":"10px"}},$={class:"btws"},ee=N((()=>C("img",{src:e},null,-1))),ae=N((()=>C("img",{src:a},null,-1))),le={class:"mt-4"},te={class:"tuli"},se=N((()=>C("span",null," 是否确认发送预警短信? ",-1))),ne={class:"dialog-footer"},oe=m({__name:"index",setup(e){const a=p();p({name:"",value:""});let m=p(!1);p("");let U=p(!1),Y=p([]),N=y({lat:"",lan:"",name:""}),oe=p([]);const ie=p([]),re=p(5e3),ce=p(),de=p([]),ue=p([]),ge=p([]),Ae=p([]);let ve={"无预警":{color:"rgba(49, 235, 7, 1)",disabled:!1},"蓝色预警":{color:"rgba(9, 187, 222, 1)",disabled:!1},"黄色预警":{color:"rgba(255, 235, 59, 1)",disabled:!1},"橙色预警":{color:"rgba(234, 165, 93, 1)",disabled:!1},"红色预警":{color:"rgba(215, 25, 28, 1)",disabled:!1}};const me=p(),pe=p([]),ye=({dayjs:e})=>pe.value.includes(e.format("YYYY-MM-DD"));function fe(){qe()}function he(){re.value=5e3,xe.value="",me.value="",qe(),Fe()}const be=e=>{const a=new Date;return a.setHours(0,0,0,0),e.getTime()>a.getTime()&&{disabled:!0,style:{color:"red",textDecoration:"line-through"}}},we=[{label:"蓝色预警",flag:1},{label:"黄色预警",flag:2},{label:"橙色预警",flag:3},{label:"红色预警",flag:4}];y({power:[{required:!0,message:"Please select Activity zone",trigger:"change"}],count:[{required:!0,message:"Please select Activity count",trigger:"change"}],date1:[{type:"date",required:!0,message:"Please pick a date",trigger:"change"}],date2:[{type:"date",required:!0,message:"Please pick a time",trigger:"change"}],type:[{type:"array",required:!0,message:"Please select at least one activity type",trigger:"change"}],resource:[{required:!0,message:"Please select activity resource",trigger:"change"}],desc:[{required:!0,message:"Please input activity form",trigger:"blur"}]});const Ee=p(1),ke=p(6),Ce=p([]);function Re(e){Ee.value=e,Ve()}function Ve(){const e=(Ee.value-1)*ke.value,a=Ee.value*ke.value;Ce.value=ie.value.slice(e,a)}let Ie=p(null);let Be=p(null);f((()=>{Me(),a.value=(()=>{let e=new Date;return e.setDate(e.getDate()-1),e})().toJSON().substr(0,10),qe(),Ze(),Ne(),function(){var e=document.querySelector(".center"),a=document.getElementById("cesiumContainer");Ie=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.XYZ({url:`${serverAPI.tiandituLayers}`,projection:serverAPI.flag?"EPSG:4326":"EPSG:3857"}),preload:20})]}),Be=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"CJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999}),Ie.addLayer(Be),l=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"XJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999}),Ie.addLayer(l);var l;const t=new ol.Overlay({element:document.
|