Agriculture-front-end/dist/assets/index.064336e8.js

2 lines
22 KiB
JavaScript
Raw Normal View History

import{_ as e,a}from"./zhankaiss.6870329f.js";import{m as l,g as t,p as s,a as n,b as o,s as i,h as r,c,j as d,d as u,z as A,k as g,l as v}from"./information.2f37efab.js";import"./linesGL.76a64914.js";import{_ as m,r as p,I as y,x as w,H as f,a8 as h,d as b,o as I,c as G,l as V,n as k,e as C,w as U,O as R,A as E,m as S,V as F,W as j,k as x,J as Y,f as M,N,q as z,s as B}from"./index.e5c8b0d6.js";import"./linkSeriesData.e74eae00.js";const H=e=>(z("data-v-c7cd85ef"),e=e(),B(),e),O={class:"center"},q=H((()=>V("div",{style:{width:"100%",height:"100%"},class:"cesiumContainer",id:"cesiumContainer"},null,-1))),Q={class:"rightWra"},T={class:"farmlandHeader"},L={class:"text"},P={key:0,class:"holiday"},K={class:"rightTop"},D=H((()=>V("div",{class:"title"},[V("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}}),V("span",null,"预警信息发布")],-1))),Z={class:"farmlandDiv"},W={class:"radioDiv"},X={class:"radioDiv"},J={class:"selectDiv"},_={class:"selectDiv",style:{"margin-top":"10px"}},$={class:"btws"},ee=H((()=>V("img",{src:e},null,-1))),ae=H((()=>V("img",{src:a},null,-1))),le={class:"mt-4"},te={class:"tuli"},se=H((()=>V("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 z=p(!1),B=p([]),H=y({lat:"",lan:"",name:""}),oe=p([]);const ie=p([]),re=p(5e3),ce=p(),de=p([]),ue=p([]),Ae=p([]),ge=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")),we=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 fe(){xe()}function he(){re.value=5e3,Fe.value="",me.value="",xe(),Me()}const be=[{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 Ie=p(1),Ge=p(6),Ve=p([]);function ke(e){Ie.value=e,Ce()}function Ce(){const e=(Ie.value-1)*Ge.value,a=Ie.value*Ge.value;Ve.value=ie.value.slice(e,a)}let Ue=p(null);let Re=p(null);w((()=>{Ye(),a.value=(()=>{let e=new Date;return e.setDate(e.getDate()-1),e})().toJSON().substr(0,10),xe(),He(),Oe(),function(){var e=document.querySelector(".center"),a=document.getElementById("cesiumContainer");Ue=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})]}),Re=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}),Ue.addLayer(Re),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}),Ue.addLayer(l);var l;const i=new ol.Overlay({element:document.createElement("div"),className:"ov