20 lines
22 KiB
JavaScript
20 lines
22 KiB
JavaScript
import{_ as Me,a as Le}from"./zhankaiss.dd067ea4.js";import{m as j,g as ce,p as _e,a as $,b as ee,c as qe,d as Qe,e as Ue,f as Ye,z as Te,h as Ne}from"./information.28c899cc.js";import"./linesGL.901ceb35.js";import"./moment.9709ab41.js";import{_ as Ze,r as l,D as de,t as Pe,C as ze,Z as O,d as v,o as k,c as F,k as i,m as f,e as s,w as n,K as He,x as ue,l as te,Q as ae,R as le,j as se,F as oe,f as M,I as Oe,p as Ge,q as Ke}from"./index.4144b0df.js";import"./install.5b5161c6.js";const Je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAA+CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAO0SURBVHic7Zs7bttAEIZ/CTJdWIBpNwbCQr6BkUbHCOAitzBygCBlkAPkGikM5AZu1Ri+gVjQZUwDIkBQ4jKFOPSIWkoUX8vHfoAh2SZHi/l3Z2eGq9H7ehNBo5RJGAG/f/1UPY7B8u37D4yFXgdKEREwDoXqYQybUECvBNVsV4IWQSmhDkfqCQUwyQpH0+kU5+fnzY6oYnzfh+d5ye//zM94/fRFyViu3Wd8ev2793cdjlpAGAFjocORUoQAxmE0Uj2OQRNGI52iqkYXay1AF2stQGl25BoWXq7u1Xx4i1BarL1c3WshoDAccccPXQgl4YhWAEcmxNPNA55uHnov0LZYa1AEmQDEUFdEoynq8mKeKQDhGhaWF/NmBtQSDjbwqmR5MYc9zefcvNf1hUb2hFMEIIYkRO0NvCICDI24gVePcS1APmrLjqoUoO+bdS3ZkWtYla8AezrvrRBh1eGozly/r0JUGo6aKLb6KERl4ajJardvQlTWwLMbdkqfhBBRfCC4DK5h4TJwcBk4eDeso62JssxWi53PNgOn1s+rmzACJkKUe9BvBk7iiCWO94fKcustjl/UIYQY6XNHqmm8la3ZR5+2aAH6tEULqCQ7KgplOU1kVG0mjIBJk+FotlrsZzfxoWnXsGDnePrWN0qFo1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xA3/mMJKfQbDXt9XRX/T1B0lYYd3BSyNFiXFsBgIJPW5CjyHH01WX7SMB+OKHfmWYun9lZbQ1rLgBQICdw+IylvaNkuMnisKSoAHLbqhMaCmd5TtaSYYOEoFlLM3e4fT3NYaZYz8UAsLOVtoLqvpOqykjMwP/V0D2SICme0zUnrdI6ZmsZhLie3tZWiNw5gSfmtGTKydKIZbFjslX7xFwkJyR7Au5EIF4tpllPMZ2uTTaSdgDswhy3dUywOlD4ZM2UTNOOHQ8lVN5jcCHSoO66CZT2QDAXg8/WPJWMyRa9v0lVEVFKicopMzTUPcxkRQ51PGArgvxHv0s0tJysuUbJ5x25R3KCBxzsE6IoQhRFlodULb3nAXrPA9fD2ONgn6CUrBAbyGfgeYDkBA+Qj9rxAL1ROPn4+718YLlj/gHgcPHpWCtfPgAAAABJRU5ErkJggg==";const U=Y=>(Ge("data-v-932d0f68"),Y=Y(),Ke(),Y),tt={class:"center"},at=U(()=>i("div",{style:{width:"100%",height:"100%"},class:"cesiumContainer",id:"cesiumContainer"},null,-1)),lt={class:"rightWra"},st={class:"farmlandHeader"},ot={class:"text"},nt={key:0,class:"holiday"},it={class:"rightTop"},rt=U(()=>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,"\u9884\u8B66\u4FE1\u606F\u53D1\u5E03")],-1)),ct={class:"farmlandDiv"},dt={class:"radioDiv"},ut={class:"selectDiv"},gt={class:"selectDiv",style:{"margin-top":"10px"}},At={class:"btws"},vt=U(()=>i("img",{src:Me},null,-1)),pt=U(()=>i("img",{src:Le},null,-1)),mt={class:"mt-4"},yt={class:"tuli"},ft=U(()=>i("span",null," \u662F\u5426\u786E\u8BA4\u53D1\u9001\u9884\u8B66\u77ED\u4FE1? ",-1)),ht={class:"dialog-footer"},wt={__name:"index",setup(Y){const S=l();l({name:"",value:""});let W=l(!1);l("");let h=l(!1),g=l([]),m=de({lat:"",lan:"",name:""}),p=l([]);const L=l([]),I=l(5e3),G=l([]),_=l([]),q=l([]),B=l([]);let K={\u65E0\u9884\u8B66:{color:"rgba(49, 235, 7, 1)",disabled:!1},\u84DD\u8272\u9884\u8B66:{color:"rgba(9, 187, 222, 1)",disabled:!1},\u9EC4\u8272\u9884\u8B66:{color:"rgba(255, 235, 59, 1)",disabled:!1},\u6A59\u8272\u9884\u8B66:{color:"rgba(234, 165, 93, 1)",disabled:!1},\u7EA2\u8272\u9884\u8B66:{color:"rgba(215, 25, 28, 1)",disabled:!1}};const T=l(),ne=l([]),ge=({dayjs:e})=>ne.value.includes(e.format("YYYY-MM-DD"));function Ae(){X()}function ve(){I.value=5e3,z.value="",T.value="",X(),H()}const pe=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},me=[{label:"\u84DD\u8272\u9884\u8B66",flag:1},{label:"\u9EC4\u8272\u9884\u8B66",flag:2},{label:"\u6A59\u8272\u9884\u8B66",flag:3},{label:"\u7EA2\u8272\u9884\u8B66",flag:4}];de({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 N=l(1),J=l(6),ie=l([]);function ye(e){N.value=e,Z()}function Z(){const e=(N.value-1)*J.value,t=N.value*J.value;ie.value=L.value.slice(e,t)}function fe(e){if(e==="\u84DD\u8272\u9884\u8B66")return Je;if(e==="\u9EC4\u8272\u9884\u8B66")return Xe;if(e==="\u6A59\u8272\u9884\u8B66")return je;if(e==="\u7EA2\u8272\u9884\u8B66")return $e;if(e==="\u65E0\u707E\u5BB3")return et}const he=()=>{let e=new Date;return e.setDate(e.getDate()-1),e};let r=l(null);const we=()=>{P=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}),r.addLayer(P)},be=()=>{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});r.addLayer(e)};let P=l(null);Pe(()=>{S.value=he().toJSON().substr(0,10),X(),Be(),We(),Re(),H();let e=document.querySelector(".rightWra");e.style.transform="translate(101%,0)"}),ze(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="block"}),l([]);let Ee=l([]);const re=l([]),z=l("");let V=window.localStorage.getItem("deptName");function X(){j({data:S.value,alertRange:I.value,flag:3,msName:z.value,warning:T.value,divisions:V}).then(e=>{L.value=e.data,Z()})}function Ce(){Te({divisions:V}).then(e=>{re.value=e.data})}Ce();function Re(){var e=document.querySelector(".center"),t=document.getElementById("cesiumContainer");r=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.tiandituLayers=="http://59.206.203.34/tileservice/SdRasterPubMap?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=sdimg2017&STYLE=default&TILEMATRIXSET=img2017&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=application%2Fpng"?"EPSG:4326":"EPSG:3857"}),preload:20})]}),we(),be();const c=new ol.Overlay({element:document.createElement("div"),className:"overlay1",positioning:"bottom-center",offset:[0,-10],stopEvent:!0});r.on("moveend",function(){var d=r.getView().getZoom();d>=13?P.setVisible(!0):P.setVisible(!1)}),r.on("singleclick",function(d){l([]);const E=r.getEventPixel(d.originalEvent);var C=d.coordinate,y=C[0],w=C[1],x=r.getView();x.animate({center:[y,w],duration:1e3}),Ee.value.forEach(o=>{layersDic[o]?QueryData(d,layersDic[o].setOf,`http://192.168.0.113:8090/iserver/services/${layersDic[o].name}/rest/maps/${layersDic[o].setOf}`,o):layersGbz[o]&&QueryData(d,layersGbz[o].setOf,`http://192.168.0.113:8090/iserver/services/${layersGbz[o].name}/rest/maps/${layersGbz[o].setOf}`,o)}),r.forEachFeatureAtPixel(E,o=>{x.animate({center:[y,w],duration:1e3});const R=o.get("id"),Q=o.get("type");if(r.addOverlay(c),Q==="1"){for(const u in g.value)R===g.value[u].msName&&(m.name=R,m.lon=g.value[u].msLongitude,m.lat=g.value[u].msLatitude);c.setPosition(o.getGeometry().getCoordinates()),c.getElement().innerHTML=`
|
|
<div class="info-window">
|
|
<div class="close-btn" ><span>\u7AD9\u70B9\u4FE1\u606F</span><img src="${ce}" alt=""/> </div>
|
|
<div class="content" style="color:white;font-size: 16px">
|
|
<div class="line" style="margin-top: 10px"><div class="label">\u540D\u79F0:</div><span>${m.name}</span></div>
|
|
<div class="line" style="margin-top: 10px"><div class="label">\u7ECF\u5EA6:</div><span>${m.lon}</span></div>
|
|
<div class="line" style="margin-top: 10px"><div class="label">\u7EAC\u5EA6:</div><span>${m.lat}</span></div>
|
|
</div>
|
|
</div>
|
|
`;const D=c.getElement().querySelector(".close-btn");D&&D.addEventListener("click",()=>{c.setPosition(void 0)})}else if(Q==="0"){for(const u in p.value)R===p.value[u].contacts&&(m.name=R,m.phone=p.value[u].phone,m.region=p.value[u].region);c.setPosition(o.getGeometry().getCoordinates()),c.getElement().innerHTML=`
|
|
<div class="info-window" >
|
|
<div class="close-btn" ><span>\u79CD\u7CAE\u5927\u6237\u4FE1\u606F</span><img src="${ce}" alt=""/> </div>
|
|
<div class="content" style="color:white;font-size: 16px">
|
|
<div class="line" style="margin-top: 10px"><div class="label">\u59D3\u540D:</div><span>${m.name}</span></div>
|
|
<div class="line" style="margin-top: 10px"><div class="label">\u624B\u673A:</div><span>${m.phone}</span></div>
|
|
<div class="line" style="margin-top: 10px"><div class="label">\u4F4D\u7F6E:</div><span>${m.region}</span></div>
|
|
</div>
|
|
</div>
|
|
`,o.setStyle(new ol.style.Style({image:new ol.style.Icon({src:_e,scale:.5})})),r.getLayers().forEach(function(u){if(u instanceof ol.layer.Vector){let A=u.getSource().getFeatures()[0];A.get("type")==="0"&&A!==o&&(A.get("warning")==="0"?A.setStyle(new ol.style.Style({image:new ol.style.Icon({src:$,scale:.5})})):A.get("warning")==="1"&&A.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ee,scale:.5})})))}});const D=c.getElement().querySelector(".close-btn");D&&D.addEventListener("click",()=>{c.setPosition(void 0),r.getLayers().forEach(function(u){if(u instanceof ol.layer.Vector){let A=u.getSource().getFeatures()[0];A.get("type")==="0"&&(A.get("warning")==="0"?A.setStyle(new ol.style.Style({image:new ol.style.Icon({src:$,scale:.5})})):A.get("warning")==="1"&&A.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ee,scale:.5})})))}})})}})});var b=new ResizeObserver(function(d){d.forEach(function(E){var C=E.contentRect.width,y=E.contentRect.height;t.style.width=C+"px",t.style.height=y+"px",r.updateSize()})});b.observe(e)}function ke(){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 Se=()=>{H(),j({data:S.value,alertRange:I.value,flag:3,divisions:V}).then(e=>{L.value=e.data,Z()})},H=()=>{for(const e in _.value)r.removeLayer(_.value[e]);_.value=[];for(const e in q.value)r.removeLayer(q.value[e]);q.value=[];for(const e in B.value)r.removeLayer(B.value[e]);B.value=[],qe({flag:3,data:S.value,divisions:V}).then(e=>{g.value=e.data;for(const t in g.value){const c=[parseFloat(g.value[t].msLongitude),parseFloat(g.value[t].msLatitude)],b=128,d=[];for(let x=0;x<b;x++){const o=2*Math.PI*x/b,R=ol.sphere.computeDestinationPoint(c,I.value,o);d.push(R)}const E=new ol.Feature({geometry:new ol.geom.Polygon([d])}),C=new ol.style.Style({stroke:new ol.style.Stroke({color:K[g.value[t].warning]&&K[g.value[t].warning].color,width:2})});_.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[E]}),style:C}),g.value[t].warning!=="\u65E0\u707E\u5BB3"&&r.addLayer(_.value[t]);const y=new ol.geom.Point(c),w=new ol.Feature({geometry:y,id:g.value[t].msName,type:g.value[t].flag});w.setStyle(new ol.style.Style({image:new ol.style.Icon({src:fe(g.value[t].warning),scale:.5})})),q.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[w]})}),r.addLayer(q.value[t])}}),Qe({flag:3,alertRange:I.value,data:S.value,divisions:V}).then(e=>{p.value=e.data;for(const t in p.value){const c=[parseFloat(p.value[t].latitude),parseFloat(p.value[t].longitude)],b=new ol.geom.Point(c),d=new ol.Feature({geometry:b,id:p.value[t].contacts,type:p.value[t].flag,warning:p.value[t].earlyWarning});p.value[t].earlyWarning==="0"?(d.setStyle(new ol.style.Style({image:new ol.style.Icon({src:$,scale:.5})})),B.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[d]})}),r.addLayer(B.value[t])):p.value[t].earlyWarning==="1"&&(d.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ee,scale:.5})})),B.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[d]})}),r.addLayer(B.value[t]))}})},Ie=()=>{H(),j({data:S.value,alertRange:I.value,flag:3,divisions:V}).then(e=>{L.value=e.data,Z()})},Ve=()=>{h.value=!1,Ne(G.value).then(e=>{e.code=="200"?O({message:"\u53D1\u9001\u6210\u529F",type:"success"}):O.error("\u53D1\u9001\u5931\u8D25")})},xe=e=>{G.value=e},We=()=>{Ue({flag:3,divisions:V}).then(e=>{e.data.length<1?O({message:"\u8FD11\u5468\u6682\u65E0\u9884\u8B66",type:"success"}):O({message:`\u8FD11\u5468${e.data.length}\u6B21\u9884\u8B66`,type:"warning"})})},Be=()=>{let e=[];Ye({flag:3,divisions:V}).then(t=>{e=[],t.data.forEach(c=>{e.push(c.dataTime)}),ne.value=e})};return(e,t)=>{const c=v("el-date-picker"),b=v("el-radio"),d=v("el-radio-group"),E=v("el-option"),C=v("el-select"),y=v("el-button"),w=v("el-table-column"),x=v("el-table"),o=v("el-pagination"),R=v("el-icon"),Q=v("el-tooltip"),D=v("el-collapse-item"),u=v("el-collapse"),A=v("el-dialog");return k(),F("div",tt,[at,i("div",lt,[i("div",st,[f(" \u76D1\u6D4B\u65E5\u671F:\u2003 "),s(c,{"popper-class":"date_poper",class:"m-2",modelValue:S.value,"onUpdate:modelValue":t[0]||(t[0]=a=>S.value=a),onChange:Ie,format:"YYYY \u5E74 MM \u6708 DD \u65E5","value-format":"YYYY-MM-DD",type:"date",placeholder:"\u9009\u62E9\u65E5\u671F",disabledDate:pe},{default:n(a=>[i("div",{class:He(["cell",{current:a.isCurrent}])},[i("span",ot,ue(a.text),1),ge(a)?(k(),F("span",nt)):te("",!0)],2)]),_:1},8,["modelValue"])]),i("div",it,[rt,i("div",ct,[i("div",dt,[f(" \u9884\u8B66\u8303\u56F4\uFF1A "),s(d,{onChange:t[1]||(t[1]=a=>Se()),modelValue:I.value,"onUpdate:modelValue":t[2]||(t[2]=a=>I.value=a),class:"ml-4"},{default:n(()=>[s(b,{label:5e3,size:"large"},{default:n(()=>[f("5km")]),_:1}),s(b,{label:1e4,size:"large"},{default:n(()=>[f("10km")]),_:1})]),_:1},8,["modelValue"])]),i("div",ut,[f(" \u7AD9\u70B9\u540D\u79F0: "),s(C,{"popper-class":"select_city",modelValue:z.value,"onUpdate:modelValue":t[3]||(t[3]=a=>z.value=a),placeholder:"\u8BF7\u9009\u62E9",style:{width:"76%"},teleported:"false"},{default:n(()=>[(k(!0),F(ae,null,le(re.value,a=>(k(),se(E,{key:a.msName,label:a.msName,value:a.msName,title:a.msName},null,8,["label","value","title"]))),128))]),_:1},8,["modelValue"])]),i("div",gt,[f(" \u9884\u8B66\u60C5\u51B5: "),s(C,{"popper-class":"select_city",modelValue:T.value,"onUpdate:modelValue":t[4]||(t[4]=a=>T.value=a),placeholder:"\u8BF7\u9009\u62E9",style:{width:"76%"}},{default:n(()=>[(k(),F(ae,null,le(me,a=>s(E,{key:a.flag,label:a.label,value:a.label},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),i("div",At,[s(y,{class:"bt1",onClick:Ae},{default:n(()=>[f("\u67E5\u8BE2")]),_:1}),s(y,{class:"bt2",onClick:ve},{default:n(()=>[f("\u91CD\u7F6E")]),_:1})]),s(x,{"cell-style":{textAlign:"center"},"header-cell-style":{"text-align":"center",color:"rgba(102, 102, 102, 1)"},data:ie.value,style:{width:"100%"},onSelectionChange:xe},{default:n(()=>[s(w,{type:"selection",width:"20"}),s(w,{prop:"msName",width:"80",label:"\u7AD9\u70B9\u540D\u79F0"}),s(w,{prop:"warning",label:"\u9884\u8B66\u60C5\u51B5"}),s(w,{prop:"name",width:"80",label:"\u8054\u7CFB\u4EBA"}),s(w,{prop:"telephone",label:"\u8054\u7CFB\u7535\u8BDD"})]),_:1},8,["header-cell-style","data"]),s(o,{small:"",style:{display:"flex","justify-content":"center","margin-top":"10px"},onCurrentChange:ye,"current-page":N.value,"page-size":J.value,layout:" prev, pager, next",total:L.value.length},null,8,["current-page","page-size","total"]),s(y,{class:"but",type:"primary",disabled:G.value.length<1,onClick:t[5]||(t[5]=a=>oe(h)?h.value=!0:h=!0)},{default:n(()=>[f(" \u53D1\u5E03\u9884\u8B66\u77ED\u4FE1 ")]),_:1},8,["disabled"])])]),i("div",{class:"rightFoldDiv",onClick:t[6]||(t[6]=a=>ke())},[s(Q,{disabled:!M(W),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:n(()=>[M(W)?(k(),se(R,{key:0},{default:n(()=>[vt]),_:1})):te("",!0)]),_:1},8,["disabled"]),s(Q,{disabled:M(W),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:n(()=>[M(W)?te("",!0):(k(),se(R,{key:0},{default:n(()=>[pt]),_:1}))]),_:1},8,["disabled"])])]),s(u,{class:"legend",accordion:""},{default:n(()=>[s(D,{name:"1"},{title:n(()=>[f("\u56FE\u4F8B")]),default:n(()=>[i("div",mt,[i("div",yt,[(k(!0),F(ae,null,le(M(K),(a,De,Fe)=>(k(),F("div",{key:Fe,style:Oe({backgroundColor:a.color,border:"1px solid value.color",width:"100%",height:"25px",marginTop:"5px",textAlign:"center"})},ue(De),5))),128))])])]),_:1})]),_:1}),s(A,{modelValue:M(h),"onUpdate:modelValue":t[8]||(t[8]=a=>oe(h)?h.value=a:h=a),title:"\u7CFB\u7EDF\u63D0\u793A",width:"30%",center:""},{footer:n(()=>[i("span",ht,[s(y,{onClick:t[7]||(t[7]=a=>oe(h)?h.value=!1:h=!1)},{default:n(()=>[f("\u53D6\u6D88")]),_:1}),s(y,{type:"primary",onClick:Ve},{default:n(()=>[f(" \u786E\u5B9A ")]),_:1})])]),default:n(()=>[ft]),_:1},8,["modelValue"])])}}},It=Ze(wt,[["__scopeId","data-v-932d0f68"]]);export{It as default};
|