import{_ as Be,a as qe}from"./zhankaiss.dd067ea4.js";import{m as $,s as Le,g as de,p as ze,a as ee,b as te,h as Me,c as Pe,j as Je,d as Qe,z as Ze,k as Fe,l as Ke}from"./information.ef765d82.js";import"./linesGL.ef5bef0f.js";import{_ as Oe,r as o,G as ue,t as He,F as Te,a2 as z,d as m,o as U,c as N,k as n,m as g,e as l,w as s,N as je,y as ge,l as ae,U as le,V as oe,j as se,H as ne,f as V,M as Xe,p as $e,q as et}from"./index.9c864c60.js";import"./linkSeriesData.77e8a68a.js";const tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAA+CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAQ3SURBVHic7ZxPattAFMY/K7ZMsUtUlxYakdg9QcjG296gkEXpGbrpAUqXpQcovUUphl6hi4JKCDlAQYE60C5qGazWli2pC3nMaCyNLWv0X79VrBeHx4zem/e+mUljuly5qMmUpu0CH96/y9qPyvL6zVtITh0HmeK4gGQ7WbtRbWwHdSRkjRcJ9SRkil2no+yxHaAZlo663S7a7Xa6HglmsVhgNpttPv9RLnB38jwTX3rGNU7uvmw9r9NRDrBdQHLqdJQpjgNIttvI2o+dfH38CpZ0L2s3EsF2G8UoUZ3GUdYuJEbumjW9M4TeGW49v5h8huz82/pdQ1bTci0xctesDUwNU1ndGlwHku+ZIauYyioUa5y2i8Jx3LWAlyfOJ6PNz3pniNuuPzL6Mw0DU4NijdivFpJcN2tBEwAAt91ypCFC7tIRIWwCCDcPLlP0Jllyk44m7TMsIaOJFXoLfa/vGLKKI9iYtE4BAGfm9wQ9TA7b5cgWaWK0VPxt9SDbJnoLHdM9042NJlaSnLB3yeJFQg7WhKezb77PfVODIfNTDqmMFOtnYn6lQW7XhF30Z1rWLggjtwKeYo19pSprG5jlmQRvTchBOqLRO0MoyzEUa4xnvz5uOuiprKJvaps0pHeGpZiMtYAX74/wavYwmxHQFZPnbGk6ML3m7Hwy2uqQgySOouFJ2TEmQe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width:"100%",height:"100%"},class:"cesiumContainer",id:"cesiumContainer"},null,-1)),rt={class:"rightWra"},it={class:"farmlandHeader"},ct={class:"text"},dt={key:0,class:"holiday"},ut={class:"rightTop"},gt=M(()=>n("div",{class:"title"},[n("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}}),n("span",null,"\u9884\u8B66\u4FE1\u606F\u53D1\u5E03")],-1)),pt={class:"farmlandDiv"},vt={class:"radioDiv"},mt={class:"radioDiv"},yt={class:"selectDiv"},ft={class:"selectDiv",style:{"margin-top":"10px"}},At={class:"btws"},ht=M(()=>n("img",{src:Be},null,-1)),wt=M(()=>n("img",{src:qe},null,-1)),bt={class:"mt-4"},Gt={class:"tuli"},St=M(()=>n("span",null,"\u662F\u5426\u786E\u8BA4\u53D1\u9001\u9884\u8B66\u77ED\u4FE1?",-1)),Et={class:"dialog-footer"},Ut={__name:"index",setup(P){const R=o();o({name:"",value:""});let W=o(!1);o("");let h=o(!1),p=o([]),f=ue({lat:"",lan:"",name:""}),y=o([]);const Y=o([]),k=o(5e3),x=o(),H=o([]),B=o([]),q=o([]),I=o([]);let T={\u65E0\u9884\u8B66:{color:"rgba(49, 235, 7, 1)",disabled:!1},\u8F7B\u5EA6\u5E72\u70ED\u98CE:{color:"rgba(9, 187, 222, 1)",disabled:!1},\u4E2D\u5EA6\u5E72\u70ED\u98CE:{color:"rgba(255, 235, 59, 1)",disabled:!1},\u91CD\u5EA6\u5E72\u70ED\u98CE:{color:"rgba(234, 165, 93, 1)",disabled:!1}};const J=o(),re=o([]),pe=({dayjs:e})=>re.value.includes(e.format("YYYY-MM-DD"));function ve(){X()}let D=window.localStorage.getItem("deptName");function me(){k.value=5e3,K.value="",J.value="",X(),O()}const ye=[{label:"\u8F7B\u5EA6\u5E72\u70ED\u98CE",flag:1},{label:"\u4E2D\u5EA6\u5E72\u70ED\u98CE",flag:2},{label:"\u91CD\u5EA6\u5E72\u70ED\u98CE",flag:3}],fe=e=>{const t=new Date;return t.setHours(0,0,0,0),e.getTime()>t.getTime()?{disabled:!0,style:{color:"red",textDecoration:"line-through"}}:!1};ue({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 Q=o(1),j=o(6),ie=o([]);function Ae(e){Q.value=e,Z()}function Z(){const e=(Q.value-1)*j.value,t=Q.value*j.value;ie.value=Y.value.slice(e,t)}function he(e){if(e==="\u8F7B\u5EA6\u5E72\u70ED\u98CE")return tt;if(e==="\u4E2D\u5EA6\u5E72\u70ED\u98CE")return at;if(e==="\u4E25\u91CD\u5E72\u70ED\u98CE")return lt;if(e==="\u7279\u5927\u5E72\u70ED\u98CE")return ganhan4;if(e==="\u65E0\u707E\u5BB3")return ot}const we=()=>{let e=new Date;return e.setDate(e.getDate()-1),e};let i=o(null);const be=()=>{F=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}),i.addLayer(F)},Ge=()=>{var e=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});i.addLayer(e)};let F=o(null);He(()=>{Ue(),R.value=we().toJSON().substr(0,10),X(),Ve(),Ne(),ke(),O();let e=document.querySelector(".rightWra");e.style.transform="translate(101%,0)"}),Te(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="block"}),o([]);let Se=o([]);const ce=o([]),K=o("");function X(){$({data:R.value,alertRange:k.value,flag:4,msName:K.value,warning:J.value,divisions:D}).then(e=>{Y.value=e.data,Z()})}function Ee(){Ze({divisions:D}).then(e=>{ce.value=e.data})}Ee();const Ue=()=>{Le().then(e=>{x.value=Number(e.data[0].flag)})},Re=()=>{Fe({flag:x.value}).then(e=>{z({message:e.msg,type:"success"})})};function ke(){var e=document.querySelector(".center"),t=document.getElementById("cesiumContainer");i=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(),Ge();const d=new ol.Overlay({element:document.createElement("div"),className:"overlay1",positioning:"bottom-center",offset:[0,-10],stopEvent:!0});i.on("moveend",function(){var c=i.getView().getZoom();c>=13?F.setVisible(!0):F.setVisible(!1)}),i.on("singleclick",function(c){o([]);const G=i.getEventPixel(c.originalEvent);var S=c.coordinate,A=S[0],b=S[1],C=i.getView();C.animate({center:[A,b],duration:1e3}),Se.value.forEach(r=>{layersDic[r]?QueryData(c,layersDic[r].setOf,`http://192.168.0.113:8090/iserver/services/${layersDic[r].name}/rest/maps/${layersDic[r].setOf}`,r):layersGbz[r]&&QueryData(c,layersGbz[r].setOf,`http://192.168.0.113:8090/iserver/services/${layersGbz[r].name}/rest/maps/${layersGbz[r].setOf}`,r)}),i.forEachFeatureAtPixel(G,r=>{C.animate({center:[A,b],duration:1e3});const E=r.get("id"),L=r.get("type");if(i.addOverlay(d),L==="1"){for(const u in p.value)E===p.value[u].msName&&(f.name=E,f.lon=p.value[u].msLongitude,f.lat=p.value[u].msLatitude);d.setPosition(r.getGeometry().getCoordinates()),d.getElement().innerHTML=`
\u7AD9\u70B9\u4FE1\u606F
\u540D\u79F0:
${f.name}
\u7ECF\u5EA6:
${f.lon}
\u7EAC\u5EA6:
${f.lat}
`;const _=d.getElement().querySelector(".close-btn");_&&_.addEventListener("click",()=>{d.setPosition(void 0)})}else if(L==="0"){for(const u in y.value)E===y.value[u].contacts&&(f.name=E,f.phone=y.value[u].phone,f.region=y.value[u].region);d.setPosition(r.getGeometry().getCoordinates()),d.getElement().innerHTML=`
\u79CD\u7CAE\u5927\u6237\u4FE1\u606F
\u59D3\u540D:
${f.name}
\u624B\u673A:
${f.phone}
\u4F4D\u7F6E:
${f.region}
`,r.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ze,scale:.5})})),i.getLayers().forEach(function(u){if(u instanceof ol.layer.Vector){let v=u.getSource().getFeatures()[0];v.get("type")==="0"&&v!==r&&(v.get("warning")==="0"?v.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ee,scale:.5})})):v.get("warning")==="1"&&v.setStyle(new ol.style.Style({image:new ol.style.Icon({src:te,scale:.5})})))}});const _=d.getElement().querySelector(".close-btn");_&&_.addEventListener("click",()=>{d.setPosition(void 0),i.getLayers().forEach(function(u){if(u instanceof ol.layer.Vector){let v=u.getSource().getFeatures()[0];v.get("type")==="0"&&(v.get("warning")==="0"?v.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ee,scale:.5})})):v.get("warning")==="1"&&v.setStyle(new ol.style.Style({image:new ol.style.Icon({src:te,scale:.5})})))}})})}})});var w=new ResizeObserver(function(c){c.forEach(function(G){var S=G.contentRect.width,A=G.contentRect.height;t.style.width=S+"px",t.style.height=A+"px",i.updateSize()})});w.observe(e)}function De(){if(W.value=!W.value,W.value){let e=document.querySelector(".rightWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".rightWra");e.style.transform="translate(101%,0)"}}const Ce=()=>{O(),$({data:R.value,alertRange:k.value,flag:4,divisions:D}).then(e=>{Y.value=e.data,Z()})},O=()=>{for(const e in B.value)i.removeLayer(B.value[e]);B.value=[];for(const e in q.value)i.removeLayer(q.value[e]);q.value=[];for(const e in I.value)i.removeLayer(I.value[e]);I.value=[],Me({flag:4,data:R.value,divisions:D}).then(e=>{p.value=e.data;for(const t in p.value){const d=[parseFloat(p.value[t].msLongitude),parseFloat(p.value[t].msLatitude)],w=128,c=[];for(let C=0;C{y.value=e.data;for(const t in y.value){const d=[parseFloat(y.value[t].latitude),parseFloat(y.value[t].longitude)],w=new ol.geom.Point(d),c=new ol.Feature({geometry:w,id:y.value[t].contacts,type:y.value[t].flag,warning:y.value[t].earlyWarning});y.value[t].earlyWarning==="0"?(c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ee,scale:.5})})),I.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[c]})}),i.addLayer(I.value[t])):y.value[t].earlyWarning==="1"&&(c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:te,scale:.5})})),I.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[c]})}),i.addLayer(I.value[t]))}})},We=()=>{O(),$({data:R.value,alertRange:k.value,flag:4,divisions:D}).then(e=>{Y.value=e.data,Z()})},Ie=()=>{h.value=!1,Ke(H.value).then(e=>{e.code=="200"?z({message:"\u9884\u8B66\u77ED\u4FE1\u5DF2\u6210\u529F\u53D1\u9001",type:"success"}):z.error("\u53D1\u9001\u5931\u8D25")})},_e=e=>{H.value=e},Ne=()=>{Je({flag:4,divisions:D}).then(e=>{e.data.length<1?z({message:"\u8FD11\u5468\u6682\u65E0\u9884\u8B66",type:"success"}):z({message:`\u8FD11\u5468${e.data.length}\u6B21\u9884\u8B66`,type:"warning"})})},Ve=()=>{let e=[];Qe({flag:4,divisions:D}).then(t=>{e=[],t.data.forEach(d=>{e.push(d.dataTime)}),re.value=e})};return(e,t)=>{const d=m("el-date-picker"),w=m("el-radio"),c=m("el-radio-group"),G=m("el-option"),S=m("el-select"),A=m("el-button"),b=m("el-table-column"),C=m("el-table"),r=m("el-pagination"),E=m("el-icon"),L=m("el-tooltip"),_=m("el-collapse-item"),u=m("el-collapse"),v=m("el-dialog");return U(),N("div",st,[nt,n("div",rt,[n("div",it,[g(" \u76D1\u6D4B\u65E5\u671F:\u2003 "),l(d,{"popper-class":"date_poper",class:"m-2",modelValue:R.value,"onUpdate:modelValue":t[0]||(t[0]=a=>R.value=a),onChange:We,format:"YYYY \u5E74 MM \u6708 DD \u65E5","value-format":"YYYY-MM-DD",type:"date",placeholder:"\u9009\u62E9\u65E5\u671F",disabledDate:fe},{default:s(a=>[n("div",{class:je(["cell",{current:a.isCurrent}])},[n("span",ct,ge(a.text),1),pe(a)?(U(),N("span",dt)):ae("",!0)],2)]),_:1},8,["modelValue"])]),n("div",ut,[gt,n("div",pt,[n("div",vt,[g(" \u81EA\u52A8\u53D1\u9001\u9884\u8B66\u77ED\u4FE1\uFF1A "),l(c,{onChange:t[1]||(t[1]=a=>Re()),modelValue:x.value,"onUpdate:modelValue":t[2]||(t[2]=a=>x.value=a),class:"ml-4"},{default:s(()=>[l(w,{label:0,size:"large"},{default:s(()=>[g("\u662F")]),_:1}),l(w,{label:1,size:"large"},{default:s(()=>[g("\u5426")]),_:1})]),_:1},8,["modelValue"])]),n("div",mt,[g(" \u9884\u8B66\u8303\u56F4\uFF1A "),l(c,{onChange:t[3]||(t[3]=a=>Ce()),modelValue:k.value,"onUpdate:modelValue":t[4]||(t[4]=a=>k.value=a),class:"ml-4"},{default:s(()=>[l(w,{label:5e3,size:"large"},{default:s(()=>[g("5km")]),_:1}),l(w,{label:1e4,size:"large"},{default:s(()=>[g("10km")]),_:1})]),_:1},8,["modelValue"])]),n("div",yt,[g(" \u7AD9\u70B9\u540D\u79F0: "),l(S,{"popper-class":"select_city",style:{width:"76%"},modelValue:K.value,"onUpdate:modelValue":t[5]||(t[5]=a=>K.value=a),placeholder:"\u8BF7\u9009\u62E9",teleported:"false"},{default:s(()=>[(U(!0),N(le,null,oe(ce.value,a=>(U(),se(G,{key:a.msName,label:a.msName,value:a.msName,title:a.msName},null,8,["label","value","title"]))),128))]),_:1},8,["modelValue"])]),n("div",ft,[g(" \u9884\u8B66\u60C5\u51B5: "),l(S,{"popper-class":"select_city",style:{width:"76%"},modelValue:J.value,"onUpdate:modelValue":t[6]||(t[6]=a=>J.value=a),placeholder:"\u8BF7\u9009\u62E9"},{default:s(()=>[(U(),N(le,null,oe(ye,a=>l(G,{key:a.flag,label:a.label,value:a.label},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),n("div",At,[l(A,{class:"bt1",onClick:ve},{default:s(()=>[g("\u67E5\u8BE2")]),_:1}),l(A,{class:"bt2",onClick:me},{default:s(()=>[g("\u91CD\u7F6E")]),_:1})]),l(C,{"cell-style":{textAlign:"center"},"header-cell-style":{"text-align":"center",color:"rgba(102, 102, 102, 1)"},data:ie.value,style:{width:"100%"},onSelectionChange:_e},{default:s(()=>[l(b,{type:"selection",width:"20"}),l(b,{prop:"msName",width:"80",label:"\u7AD9\u70B9\u540D\u79F0"}),l(b,{prop:"warning",label:"\u9884\u8B66\u60C5\u51B5"}),l(b,{prop:"name",width:"80",label:"\u8054\u7CFB\u4EBA"}),l(b,{prop:"telephone",label:"\u8054\u7CFB\u7535\u8BDD"})]),_:1},8,["header-cell-style","data"]),l(r,{small:"",style:{display:"flex","justify-content":"center","margin-top":"10px"},onCurrentChange:Ae,"current-page":Q.value,"page-size":j.value,layout:" prev, pager, next",total:Y.value.length},null,8,["current-page","page-size","total"]),l(A,{class:"but",type:"primary",disabled:H.value.length<1||x.value==0,onClick:t[7]||(t[7]=a=>ne(h)?h.value=!0:h=!0)},{default:s(()=>[g(" \u53D1\u5E03\u9884\u8B66\u77ED\u4FE1 ")]),_:1},8,["disabled"])])]),n("div",{class:"rightFoldDiv",onClick:t[8]||(t[8]=a=>De())},[l(L,{disabled:!V(W),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:s(()=>[V(W)?(U(),se(E,{key:0},{default:s(()=>[ht]),_:1})):ae("",!0)]),_:1},8,["disabled"]),l(L,{disabled:V(W),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:s(()=>[V(W)?ae("",!0):(U(),se(E,{key:0},{default:s(()=>[wt]),_:1}))]),_:1},8,["disabled"])])]),l(u,{class:"legend",accordion:""},{default:s(()=>[l(_,{name:"1"},{title:s(()=>[g("\u56FE\u4F8B")]),default:s(()=>[n("div",bt,[n("div",Gt,[(U(!0),N(le,null,oe(V(T),(a,Ye,xe)=>(U(),N("div",{key:xe,style:Xe({backgroundColor:a.color,border:"1px solid value.color",width:"100%",height:"25px",marginTop:"5px",textAlign:"center"})},ge(Ye),5))),128))])])]),_:1})]),_:1}),l(v,{modelValue:V(h),"onUpdate:modelValue":t[10]||(t[10]=a=>ne(h)?h.value=a:h=a),title:"\u7CFB\u7EDF\u63D0\u793A",width:"30%",center:""},{footer:s(()=>[n("span",Et,[l(A,{onClick:t[9]||(t[9]=a=>ne(h)?h.value=!1:h=!1)},{default:s(()=>[g("\u53D6\u6D88")]),_:1}),l(A,{type:"primary",onClick:Ie},{default:s(()=>[g("\u786E\u5B9A")]),_:1})])]),default:s(()=>[St]),_:1},8,["modelValue"])])}}},It=Oe(Ut,[["__scopeId","data-v-2be0a61f"]]);export{It as default};