20 lines
20 KiB
JavaScript
20 lines
20 KiB
JavaScript
import{_ as oe}from"./linesGL.99030c5a.js";import{m as K,g as te,p as Ee,a as F,b as H,c as Re,d as Ue,z as ke,e as Ie}from"./information.0f83a772.js";import{_ as W}from"./icon.d0cb5387.js";import{_ as Ce,r as l,D as ae,t as Ne,X as We,d as v,o as U,c as N,k as d,m as f,e as n,w as u,P as T,Q as j,j as De,f as x,l as le,I as qe,y as Be,a2 as xe,p as Ye,q as Ve}from"./index.db81687b.js";import"./install.49294472.js";const Le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAA+CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAQ3SURBVHic7ZxPattAFMY/K7ZMsUtUlxYakdg9QcjG296gkEXpGbrpAUqXpQcovUUphl6hi4JKCDlAQYE60C5qGazWli2pC3nMaCyNLWv0X79VrBeHx4zem/e+mUljuly5qMmUpu0CH96/y9qPyvL6zVtITh0HmeK4gGQ7WbtRbWwHdSRkjRcJ9SRkil2no+yxHaAZlo663S7a7Xa6HglmsVhgNpttPv9RLnB38jwTX3rGNU7uvmw9r9NRDrBdQHLqdJQpjgNIttvI2o+dfH38CpZ0L2s3EsF2G8UoUZ3GUdYuJEbumjW9M4TeGW49v5h8huz82/pdQ1bTci0xctesDUwNU1ndGlwHku+ZIauYyioUa5y2i8Jx3LWAlyfOJ6PNz3pniNuuPzL6Mw0DU4NijdivFpJcN2tBEwAAt91ypCFC7tIRIWwCCDcPLlP0Jllyk44m7TMsIaOJFXoLfa/vGLKKI9iYtE4BAGfm9wQ9TA7b5cgWaWK0VPxt9SDbJnoLHdM9042NJlaSnLB3yeJFQg7WhKezb77PfVODIfNTDqmMFOtnYn6lQW7XhF30Z1rWLggjtwKeYo19pSprG5jlmQRvTchBOqLRO0MoyzEUa4xnvz5uOuiprKJvaps0pHeGpZiMtYAX74/wavYwmxHQFZPnbGk6ML3m7Hwy2uqQgySOouFJ2TEmQe8McfPgMrBu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div",{style:{width:"100%",height:"100%"},class:"cesiumContainer",id:"cesiumContainer"},null,-1)),Qe={class:"rightWra"},Ze={class:"farmlandHeader"},Oe={class:"rightTop"},Ke=ne(()=>d("div",{class:"title"},[d("span",null,"\u9884\u8B66\u4FE1\u606F\u53D1\u5E03")],-1)),Fe={class:"farmlandDiv"},He={class:"radioDiv"},Te={class:"selectDiv"},je={class:"selectDiv",style:{"margin-top":"10px"}},Xe={class:"btws"},$e={key:0,src:oe,alt:""},et={key:0,class:"imgrotate",src:oe,alt:""},tt={class:"mt-4"},at={class:"tuli"},lt={__name:"index",setup(Y){const h=l();l({name:"",value:""});let k=l(!1);l("");let p=l([]),m=ae({lat:"",lan:"",name:""}),g=l([]);const D=l([]),E=l(5e3),P=l([]),q=l([]),B=l([]),I=l([]);let se={\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 V=l();function re(){Z()}let ie=window.localStorage.getItem("deptName");function ce(){h.value=$().toJSON().substr(0,10),E.value=5e3,J.value="",V.value="",Z()}const ue=[{label:"\u8F7B\u5EA6\u5E72\u70ED\u98CE",flag:1},{label:"\u4E2D\u5EA6\u5E72\u70ED\u98CE",flag:2},{label:"\u91CD\u5EA6\u5E72\u70ED\u98CE",flag:3}];ae({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 L=l(1),Q=l(6),X=l([]);function de(e){L.value=e,_()}function _(){const e=(L.value-1)*Q.value,t=L.value*Q.value;X.value=D.value.slice(e,t)}function ge(e){if(e==="\u8F7B\u5EA6\u5E72\u65F1")return Le;if(e==="\u4E2D\u5EA6\u5E72\u65F1")return _e;if(e==="\u4E25\u91CD\u5E72\u65F1")return ze;if(e==="\u7279\u5927\u5E72\u65F1")return ganhan4;if(e==="\u65E0\u707E\u5BB3")return Je}const $=()=>{let e=new Date;return e.setDate(e.getDate()-1),e};let s=l(null);const pe=()=>{z=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84@huangdaoqu_bianjie",cacheEnabled:!1}),name:"huangdaoqu_village",projection:"EPSG:4326",zIndex:9999}),s.addLayer(z)},me=()=>{var e=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84@huangdaoqu_bianjie",cacheEnabled:!1}),projection:"EPSG:4326",zIndex:9999});s.addLayer(e)};let z=l(null);Ne(()=>{h.value=$().toJSON().substr(0,10),Z(),Ae(),O();let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"}),We(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="block"}),l([]);let ve=l([]);const ee=l([]),J=l("");function Z(){K({data:h.value,alertRange:E.value,flag:4,msName:J.value,warning:V.value}).then(e=>{D.value=e.data,_()})}function ye(){ke().then(e=>{ee.value=e.data})}ye();function Ae(){var e=document.querySelector(".center"),t=document.getElementById("cesiumContainer");s=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.Tianditu({layerType:"img",key:"1d109683f4d84198e37a38c442d68311"})})]}),pe(),me();const i=new ol.Overlay({element:document.createElement("div"),className:"overlay1",positioning:"bottom-center",offset:[0,-10],stopEvent:!0});s.on("moveend",function(){var r=s.getView().getZoom();r>=13?z.setVisible(!0):z.setVisible(!1)}),s.on("singleclick",function(r){l([]);const b=s.getEventPixel(r.originalEvent);var G=r.coordinate,A=G[0],y=G[1],R=s.getView();R.animate({center:[A,y],duration:1e3}),ve.value.forEach(o=>{layersDic[o]?QueryData(r,layersDic[o].setOf,`http://192.168.0.113:8090/iserver/services/${layersDic[o].name}/rest/maps/${layersDic[o].setOf}`,o):layersGbz[o]&&QueryData(r,layersGbz[o].setOf,`http://192.168.0.113:8090/iserver/services/${layersGbz[o].name}/rest/maps/${layersGbz[o].setOf}`,o)}),s.forEachFeatureAtPixel(b,o=>{R.animate({center:[A,y],duration:1e3,zoom:13});const S=o.get("id"),M=o.get("type");if(s.addOverlay(i),M==="1"){for(const a in p.value)S===p.value[a].msName&&(m.name=S,m.lon=p.value[a].msLongitude,m.lat=p.value[a].msLatitude);i.setPosition(o.getGeometry().getCoordinates()),i.getElement().innerHTML=`
|
|
<div class="info-window">
|
|
<div class="close-btn" ><span>\u7AD9\u70B9\u4FE1\u606F</span><img src="${te}" alt=""/> </div>
|
|
<div class="content" style="color:white;font-size: 16px">
|
|
<div class="line" style="margin-top: 10px"><img src="${W}" alt=""/> <span>\u540D\u79F0:</span><span>${m.name}</span></div>
|
|
<div class="line" style="margin-top: 10px"><img src="${W}" alt=""/> <span>\u7ECF\u5EA6:</span><span>${m.lon}</span></div>
|
|
<div class="line" style="margin-top: 10px"><img src="${W}" alt=""/> <span>\u7EF4\u5EA6:</span><span>${m.lat}</span></div>
|
|
</div>
|
|
</div>
|
|
`;const C=i.getElement().querySelector(".close-btn");C&&C.addEventListener("click",()=>{i.setPosition(void 0)})}else if(M==="0"){for(const a in g.value)S===g.value[a].contacts&&(m.name=S,m.phone=g.value[a].phone,m.region=g.value[a].region);i.setPosition(o.getGeometry().getCoordinates()),i.getElement().innerHTML=`
|
|
<div class="info-window" >
|
|
<div class="close-btn" ><span>\u4EBA\u5458\u4FE1\u606F</span><img src="${te}" alt=""/> </div>
|
|
<div class="content" style="color:white;font-size: 16px">
|
|
<div class="line" style="margin-top: 10px"><img src="${W}" alt=""/><span>\u59D3\u540D:</span><span>${m.name}</span></div>
|
|
<div class="line" style="margin-top: 10px"><img src="${W}" alt=""/><span>\u624B\u673A:</span><span>${m.phone}</span></div>
|
|
<div class="line" style="margin-top: 10px"><img src="${W}" alt=""/><span>\u4F4D\u7F6E:</span><span>${m.region}</span></div>
|
|
</div>
|
|
</div>
|
|
`,o.setStyle(new ol.style.Style({image:new ol.style.Icon({src:Ee,scale:.5})})),s.getLayers().forEach(function(a){if(a instanceof ol.layer.Vector){let c=a.getSource().getFeatures()[0];c.get("type")==="0"&&c!==o&&(c.get("warning")==="0"?c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:F,scale:.5})})):c.get("warning")==="1"&&c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:H,scale:.5})})))}});const C=i.getElement().querySelector(".close-btn");C&&C.addEventListener("click",()=>{i.setPosition(void 0),s.getLayers().forEach(function(a){if(a instanceof ol.layer.Vector){let c=a.getSource().getFeatures()[0];c.get("type")==="0"&&(c.get("warning")==="0"?c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:F,scale:.5})})):c.get("warning")==="1"&&c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:H,scale:.5})})))}})})}})});var w=new ResizeObserver(function(r){r.forEach(function(b){var G=b.contentRect.width,A=b.contentRect.height;t.style.width=G+"px",t.style.height=A+"px",s.updateSize()})});w.observe(e)}function fe(){if(k.value=!k.value,k.value){let e=document.querySelector(".rightWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"}}const he=()=>{O(),K({data:h.value,alertRange:E.value,flag:4}).then(e=>{D.value=e.data,_()})},O=()=>{for(const e in q.value)s.removeLayer(q.value[e]);q.value=[];for(const e in B.value)s.removeLayer(B.value[e]);B.value=[];for(const e in I.value)s.removeLayer(I.value[e]);I.value=[],Re({flag:4,data:h.value}).then(e=>{p.value=e.data;for(const t in p.value){const i=[parseFloat(p.value[t].msLongitude),parseFloat(p.value[t].msLatitude)],w=128,r=[];for(let R=0;R<w;R++){const o=2*Math.PI*R/w,S=ol.sphere.computeDestinationPoint(i,E.value,o);r.push(S)}const b=new ol.Feature({geometry:new ol.geom.Polygon([r])}),G=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgb(255,255,0)",width:2})});q.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[b]}),style:G}),p.value[t].warning!=="\u65E0\u707E\u5BB3"&&s.addLayer(q.value[t]);const A=new ol.geom.Point(i),y=new ol.Feature({geometry:A,id:p.value[t].msName,type:p.value[t].flag});y.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ge(p.value[t].warning),scale:.5})})),B.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[y]})}),s.addLayer(B.value[t])}}),Ue({flag:4,alertRange:E.value,data:h.value,divisions:ie}).then(e=>{g.value=e.data;for(const t in g.value){const i=[parseFloat(g.value[t].latitude),parseFloat(g.value[t].longitude)],w=new ol.geom.Point(i),r=new ol.Feature({geometry:w,id:g.value[t].contacts,type:g.value[t].flag,warning:g.value[t].earlyWarning});g.value[t].earlyWarning==="0"?(r.setStyle(new ol.style.Style({image:new ol.style.Icon({src:F,scale:.5})})),I.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[r]})}),s.addLayer(I.value[t])):g.value[t].earlyWarning==="1"&&(r.setStyle(new ol.style.Style({image:new ol.style.Icon({src:H,scale:.5})})),I.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[r]})}),s.addLayer(I.value[t]))}})},we=()=>{O(),K({data:h.value,alertRange:E.value,flag:4}).then(e=>{D.value=e.data,_()})},be=()=>{Ie(P.value).then(e=>{e.data.code=="OK"&&xe({message:"\u53D1\u9001\u6210\u529F",type:"success"})})},Ge=e=>{P.value=e};return(e,t)=>{const i=v("el-date-picker"),w=v("el-radio"),r=v("el-radio-group"),b=v("el-option"),G=v("el-select"),A=v("el-button"),y=v("el-table-column"),R=v("el-table"),o=v("el-pagination"),S=v("el-tooltip"),M=v("el-collapse-item"),C=v("el-collapse");return U(),N("div",Me,[Pe,d("div",Qe,[d("div",Ze,[f(" \u76D1\u6D4B\u65E5\u671F:\u2003 "),n(i,{"popper-class":"date_poper",class:"m-2",modelValue:h.value,"onUpdate:modelValue":t[0]||(t[0]=a=>h.value=a),onChange:we,format:"YYYY \u5E74 MM \u6708 DD \u65E5","value-format":"YYYY-MM-DD",type:"date",placeholder:"\u9009\u62E9\u65E5\u671F"},null,8,["modelValue"])]),d("div",Oe,[Ke,d("div",Fe,[d("div",He,[f(" \u9884\u8B66\u8303\u56F4\uFF1A "),n(r,{onChange:t[1]||(t[1]=a=>he()),modelValue:E.value,"onUpdate:modelValue":t[2]||(t[2]=a=>E.value=a),class:"ml-4"},{default:u(()=>[n(w,{label:5e3,size:"large",style:{color:"white"}},{default:u(()=>[f("5km")]),_:1}),n(w,{label:1e4,size:"large",style:{color:"white"}},{default:u(()=>[f(" 10km ")]),_:1})]),_:1},8,["modelValue"])]),d("div",Te,[f(" \u7AD9\u70B9\u540D\u79F0: "),n(G,{"popper-class":"select_city",modelValue:J.value,"onUpdate:modelValue":t[3]||(t[3]=a=>J.value=a),placeholder:"\u8BF7\u9009\u62E9"},{default:u(()=>[(U(!0),N(T,null,j(ee.value,a=>(U(),De(b,{key:a.msName,label:a.msName,value:a.msName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),d("div",je,[f(" \u9884\u8B66\u60C5\u51B5: "),n(G,{"popper-class":"select_city",modelValue:V.value,"onUpdate:modelValue":t[4]||(t[4]=a=>V.value=a),placeholder:"\u8BF7\u9009\u62E9"},{default:u(()=>[(U(),N(T,null,j(ue,a=>n(b,{key:a.flag,label:a.label,value:a.label},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),d("div",Xe,[n(A,{class:"bt1",onClick:re},{default:u(()=>[f("\u67E5\u8BE2")]),_:1}),n(A,{class:"bt2",onClick:ce},{default:u(()=>[f("\u91CD\u7F6E")]),_:1})]),n(R,{"cell-style":{textAlign:"center"},"header-cell-style":{"text-align":"center",color:"white"},data:X.value,style:{width:"100%"},"max-height":"470px",onSelectionChange:Ge},{default:u(()=>[n(y,{type:"selection",width:"20"}),n(y,{prop:"msName",width:"80",label:"\u7AD9\u70B9\u540D\u79F0"}),n(y,{prop:"warning",label:"\u9884\u8B66\u60C5\u51B5"}),n(y,{prop:"name",width:"80",label:"\u8054\u7CFB\u4EBA"}),n(y,{prop:"telephone",label:"\u8054\u7CFB\u7535\u8BDD"})]),_:1},8,["data"]),n(o,{small:"",style:{display:"flex","justify-content":"center","margin-top":"10px"},onCurrentChange:de,"current-page":L.value,"page-size":Q.value,layout:" prev, pager, next",total:D.value.length},null,8,["current-page","page-size","total"]),n(A,{class:"but",type:"primary",disabled:P.value.length<1,onClick:be},{default:u(()=>[f(" \u53D1\u5E03\u9884\u8B66\u77ED\u4FE1 ")]),_:1},8,["disabled"])])]),d("div",{class:"rightFoldDiv",onClick:t[5]||(t[5]=a=>fe())},[n(S,{disabled:!x(k),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:u(()=>[x(k)?(U(),N("img",$e)):le("",!0)]),_:1},8,["disabled"]),n(S,{disabled:x(k),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:u(()=>[x(k)?le("",!0):(U(),N("img",et))]),_:1},8,["disabled"])])]),n(C,{class:"legend",accordion:""},{default:u(()=>[n(M,{name:"1"},{title:u(()=>[f("\u56FE\u4F8B")]),default:u(()=>[d("div",tt,[d("div",at,[(U(!0),N(T,null,j(x(se),(a,c,Se)=>(U(),N("div",{key:Se,style:qe({backgroundColor:a.color,border:"1px solid value.color",width:"100%",height:"25px",marginTop:"5px",textAlign:"center"})},Be(c),5))),128))])])]),_:1})]),_:1})])}}},ct=Ce(lt,[["__scopeId","data-v-dbfe3bfa"]]);export{ct as default};
|