2 lines
4.5 KiB
JavaScript
2 lines
4.5 KiB
JavaScript
import{K as I,_ as K,r as o,D as O,t as R,X,d as _,o as b,c as f,k as t,m as D,y as z,f as i,e as l,w as y,l as V,G as Z,H as j,p as Q,q as W}from"./index.1974707a.js";import{L as c,i as Y,_ as ee,a as te}from"./mark.1aa0c6ec.js";import"./index.e2d056fa.js";import{V as ae}from"./video.8b95db0a.js";import"./install.49294472.js";function oe(s){return I({url:"equipment/treeData",method:"get",params:s})}function ne(s){return I({url:"equipment/cameraName",method:"get",params:s})}const w=s=>(Q("data-v-f4b2a86a"),s=s(),W(),s),le={class:"fatherDiv"},se={class:"tabulation"},ie={class:"tabulationCente"},ce={class:"left"},de={style:{color:"rgba(100, 195, 164, 1)"}},re={class:"freckle"},ue={class:"chartModeFather"},_e={class:"tableBox"},pe=["onClick"],he={class:"example-pagination-block"},me={class:"centent"},ve={key:0},ge=w(()=>t("img",{style:{width:"300%"},src:ee},null,-1)),be=[ge],fe={key:1},ye=w(()=>t("img",{style:{width:"300%"},src:te},null,-1)),we=[ye],Ce={class:"cesiumContainersDiv"},Se=w(()=>t("div",{id:"cesiumContainers",class:"detailed"},null,-1)),xe=[Se],ke={class:"myVideo"},Ne={__name:"index",setup(s){let d=c.Map,p=o([]);o({});let C=o([]);o("");let h=o("\u5168\u90E8"),S=o([]);const m=o(!1);let T=o({yearMonth:"",flag:"",divisions:""}),u=o(!1),L=o(1),P=o(12),x=null;const v=o({}),k=O({videoSrc:"http://cmgw-vpc.lechange.com:8888/LCO/9C023C5FACFE48F/0/1/20230530T033445/a44e6e04b0608347f0209ab2b25aa258.m3u8"});R(()=>{A(),q(),N()}),X(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="none"});const q=()=>{d=c.map("cesiumContainers",{center:[36.4,119.166326],zoom:7,zoomControl:!1,doubleClickZoom:!1,attributionControl:!1}),c.tileLayer("http://t0.tianditu.com/DataServer?T=img_w&tk=5956e6519f2bb0ae8e57bc834298c9f1&x={x}&y={y}&l={z}").addTo(d),c.tileLayer("http://t0.tianditu.com/DataServer?T=cia_w&tk=5956e6519f2bb0ae8e57bc834298c9f1&x={x}&y={y}&l={z}").addTo(d),d._onResize()},A=()=>{oe({divisions:window.localStorage.getItem("deptName")}).then(e=>{e.data.forEach(n=>{C.value.push(n)})})},N=e=>{ne({name:e}).then(n=>{p.value=n.data,console.log(v.value),v.value.children!==null&&(S.value=n.data),n.data.forEach((a,r)=>{x=c.latLng(a.latitude,a.longitude),d.setView(x,17),c.marker([a.latitude,a.longitude],{icon:$}).addTo(d).bindPopup(`<b>${a.cameraName}</b><br><br>\u7ECF\u5EA6:${a.longitude}<br><br>\u7EAC\u5EA6:${a.latitude}`).openPopup()})})},M=(e,n,a,r)=>{h.value=e.label,T.value.flag="",v.value=e,N(h.value)},B=e=>{console.log(e),k.videoSrc=e.hdStreaming,m.value=!0},E=e=>{const n=L.value,a=P.value;return e+1+(n-1)*a};var F=c.Icon.extend({options:{iconSize:[50,50],shadowSize:[50,64],iconAnchor:[22,94],shadowAnchor:[4,62],popupAnchor:[0,-86]}}),$=new F({iconUrl:Y});const U=()=>{u.value=!u.value};return(e,n)=>{const a=_("el-tree"),r=_("el-table-column"),G=_("el-table"),H=_("el-pagination"),J=_("el-dialog");return b(),f("div",le,[t("div",se,[t("div",ie,[t("div",ce,[t("p",null,[D(" \u5F53\u524D\u9009\u62E9 \uFF1A "),t("span",de,z(i(h)),1)]),l(a,{data:i(C),props:e.defaultProps,onNodeClick:M},null,8,["data","props"])]),t("div",re,[t("div",ue,[t("div",_e,[l(G,{data:i(S),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},"header-row-class-name":"tabth",height:"80%","highlight-current-row":""},{default:y(()=>[l(r,{type:"index",width:"80",label:"\u5E8F\u53F7",index:E}),l(r,{prop:"village",label:"\u6751\u540D",width:"180"}),l(r,{prop:"cameraName",label:"\u6444\u50CF\u5934\u540D\u79F0",width:"180"}),l(r,{label:"\u64CD\u4F5C"},{default:y(g=>[t("span",{style:{color:"rgba(100, 195, 164, 1)",cursor:"pointer"},onClick:De=>B(g.row)}," \u64AD\u653E ",8,pe)]),_:1})]),_:1},8,["data"]),t("div",he,[D(" \u5171"+z(i(p).length)+"\u6761 ",1),l(H,{background:"",layout:"prev, pager, next",total:i(p).length,"current-page":e.tabulationcurrentPage,"page-size":e.tabulationpageSize,onCurrentChange:e.tabulationCurrentChange},null,8,["total","current-page","page-size","onCurrentChange"])])])])]),t("div",me,[t("div",{class:"arrow",onClick:U},[i(u)?V("",!0):(b(),f("p",ve,be)),i(u)?(b(),f("p",fe,we)):V("",!0)])]),Z(t("div",Ce,xe,512),[[j,!i(u)]])]),l(J,{modelValue:m.value,"onUpdate:modelValue":n[0]||(n[0]=g=>m.value=g),"append-to-body":"",class:"video","destroy-on-close":"",title:"\u5B9E\u65F6\u76D1\u63A7",width:"30%","before-close":e.handleClose},{default:y(()=>[t("div",ke,[l(ae,{videoSrc:k.videoSrc,autoPlay:""},null,8,["videoSrc"])])]),_:1},8,["modelValue","before-close"])])])}}},Pe=K(Ne,[["__scopeId","data-v-f4b2a86a"]]);export{Pe as default};
|