2 lines
20 KiB
JavaScript
2 lines
20 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 u,d,k as g,z as v,l as A}from"./information.2f37efab.js";import"./linesGL.76a64914.js";import{_ as m,r as p,I as y,x as h,H as w,a8 as f,d as b,o as S,c as C,l as I,n as E,e as V,w as k,O as R,A as U,m as x,V as T,W as Y,k as N,J as q,f as G,N as W,q as H,s as D}from"./index.e5c8b0d6.js";import"./linkSeriesData.e74eae00.js";const Z=e=>(H("data-v-9e68befe"),e=e(),D(),e),O={class:"center"},J=Z((()=>I("div",{style:{width:"100%",height:"100%"},class:"cesiumContainer",id:"cesiumContainer"},null,-1))),Q={class:"rightWra"},M={class:"farmlandHeader"},P={class:"text"},F={key:0,class:"holiday"},L={class:"rightTop"},X=Z((()=>I("div",{class:"title"},[I("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}}),I("span",null,"预警信息发布")],-1))),z={class:"farmlandDiv"},j={class:"radioDiv"},B={class:"radioDiv"},K={class:"selectDiv"},_={class:"selectDiv",style:{"margin-top":"10px"}},$={class:"btws"},ee=Z((()=>I("img",{src:e},null,-1))),ae=Z((()=>I("img",{src:a},null,-1))),le={class:"mt-4"},te={class:"tuli"},se=Z((()=>I("span",null," 是否确认发送预警短信? ",-1))),ne={class:"dialog-footer"},oe=m({__name:"index",setup(e){const a=p();p({name:"",value:""});let m=p(!1),H=p(!1),D=window.localStorage.getItem("deptName");p("");let Z=p([]),oe=y({lat:"",lan:"",name:""}),ie=p([]);const re=p([]),ce=p(5e3),ue=p(),de=p([]),ge=p([]),ve=p([]),Ae=p([]);let me={"无预警":{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}};const pe=p(),ye=p([]),he=({dayjs:e})=>ye.value.includes(e.format("YYYY-MM-DD"));function we(){Ne()}const fe=e=>{const a=new Date;return a.setHours(0,0,0,0),e.getTime()>a.getTime()&&{disabled:!0,style:{color:"red",textDecoration:"line-through"}}};function be(){ce.value=5e3,Ye.value="",pe.value="",Ne(),Ge()}const Se=[{label:"轻度冻害",flag:1},{label:"中度冻害",flag:2},{label:"重度冻害",flag:3}];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 Ce=p(1),Ie=p(6),Ee=p([]);function Ve(e){Ce.value=e,ke()}function ke(){const e=(Ce.value-1)*Ie.value,a=Ce.value*Ie.value;Ee.value=re.value.slice(e,a)}let Re=p(null);let Ue=p(null);h((()=>{qe(),a.value=(()=>{let e=new Date;return e.setDate(e.getDate()-1),e})().toJSON().substr(0,10),Ne(),Oe(),Ze(),function(){var e=document.querySelector(".center"),a=document.getElementById("cesiumContainer");Re=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})]}),Ue=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}),Re.addLayer(Ue),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}),Re.addLayer(l);var l;const t=new ol.Overlay({element:document.createElement("div"),className:"overlay1",positioning:"bottom-center",off
|