Files
2022-11-14 16:31:47 +08:00

2 lines
7.4 KiB
JavaScript

(function(){"use strict";var e={246:function(e,t,n){var r=n(9242),o=n(3396),i=(n(1936),{__name:"App",setup(e){return(e,t)=>{const n=(0,o.up)("RouterView");return(0,o.wg)(),(0,o.j4)(n)}}});const a=i;var u=a,c=n(2483);const s=[{path:"/amap",component:()=>Promise.all([n.e(70),n.e(253)]).then(n.bind(n,2253))},{path:"/",component:()=>Promise.resolve().then(n.bind(n,1936)),children:[{path:"",component:()=>Promise.all([n.e(70),n.e(247),n.e(988)]).then(n.bind(n,988))},{path:"monitor",component:()=>Promise.all([n.e(70),n.e(552),n.e(247),n.e(19)]).then(n.bind(n,6442))},{path:"/monitor/detail",component:()=>Promise.all([n.e(552),n.e(513)]).then(n.bind(n,6371))}]}],l=(0,c.p7)({history:(0,c.r5)(),routes:s});var f=l;(0,r.ri)(u).use(f).mount("#app")},1936:function(e,t,n){n.r(t),n.d(t,{default:function(){return E}});var r=n(3396),o=n(7139),i=n(4870),a=n(4806);const u={style:{"background-color":"#000",height:"100%",width:"100%"}};var c={__name:"ScaleBox",setup(e){const t=(0,i.iH)(0),n=(0,i.iH)(1920),c=(0,i.iH)(1080),s=(0,i.iH)(),l=()=>{const e=window.innerHeight/c.value,t=window.innerWidth/n.value;return t<e?t:e},f=()=>{t.value=l(),s.value&&s.value.style.setProperty("--scale",t.value)};return(0,r.bv)((()=>{f(),window.addEventListener("resize",(0,a.debounce)(f,200))})),(e,t)=>((0,r.wg)(),(0,r.iD)("div",u,[(0,r._)("div",{class:"ScaleBox",ref_key:"scaleBoxRef",ref:s,style:(0,o.j5)({width:n.value+"px",height:c.value+"px"})},[(0,r.WI)(e.$slots,"default")],4)]))}};const s=c;var l=s;const f=e=>((0,r.dD)("data-v-3c60fd72"),e=e(),(0,r.Cn)(),e),d={class:"screen-header"},p={class:"nav-bar"},v={class:"nav-links h-full flex items-center"},h=(0,r.Uk)(" 项目导览 "),m=(0,r.Uk)(" 视频监控 "),b=f((()=>(0,r._)("div",{class:"title absolute left-0 top-0 flex justify-center items-center"}," 航天科工六院智慧工地 ",-1)));function g(e,t){const n=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("div",d,[(0,r._)("div",p,[(0,r._)("div",v,[(0,r.Wm)(n,{class:"nav-link flex justify-center items-center mr-8",to:"/"},{default:(0,r.w5)((()=>[h])),_:1}),(0,r.Wm)(n,{class:"nav-link flex justify-center items-center",to:"/monitor"},{default:(0,r.w5)((()=>[m])),_:1})])]),b])}var y=n(89);const w={},_=(0,y.Z)(w,[["render",g],["__scopeId","data-v-3c60fd72"]]);var k=_;const j={class:"screen-layout h-full w-full bg-slate-200"};var x={__name:"Layout",setup(e){return(e,t)=>{const n=(0,r.up)("router-view");return(0,r.wg)(),(0,r.j4)(l,null,{default:(0,r.w5)((()=>[(0,r._)("div",j,[(0,r.Wm)(k),(0,r.Wm)(n)])])),_:1})}}};const O=(0,y.Z)(x,[["__scopeId","data-v-3526c17c"]]);var E=O}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,function(){var e=[];n.O=function(t,r,o,i){if(!r){var a=1/0;for(l=0;l<e.length;l++){r=e[l][0],o=e[l][1],i=e[l][2];for(var u=!0,c=0;c<r.length;c++)(!1&i||a>=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(u=!1,i<a&&(a=i));if(u){e.splice(l--,1);var s=o();void 0!==s&&(t=s)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))}}(),function(){n.u=function(e){return"../apps/com.awspaas.user.apps.cmp/screen/js/"+e+"."+{19:"a26c6889",70:"805995c3",247:"1a16414c",253:"3a284f19",513:"3f0571ff",552:"0b2e0beb",988:"dc712af0"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"../apps/com.awspaas.user.apps.cmp/screen/css/"+e+"."+{19:"2f2d77ab",253:"acfc2f5c",513:"07ea7585",988:"52086834"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.hmd=function(e){return e=Object.create(e),e.children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e}}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="data_visual_webpack:";n.l=function(r,o,i,a){if(e[r])e[r].push(o);else{var u,c;if(void 0!==i)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var f=s[l];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+i){u=f;break}}u||(c=!0,u=document.createElement("script"),u.charset="utf-8",u.timeout=120,n.nc&&u.setAttribute("nonce",n.nc),u.setAttribute("data-webpack",t+i),u.src=r),e[r]=[o];var d=function(t,n){u.onerror=u.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((function(e){return e(n)})),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=d.bind(null,u.onerror),u.onload=d.bind(null,u.onload),c&&document.head.appendChild(u)}}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){n.p=""}(),function(){var e=function(e,t,n,r){var o=document.createElement("link");o.rel="stylesheet",o.type="text/css";var i=function(i){if(o.onerror=o.onload=null,"load"===i.type)n();else{var a=i&&("load"===i.type?"missing":i.type),u=i&&i.target&&i.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+u+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=a,c.request=u,o.parentNode.removeChild(o),r(c)}};return o.onerror=o.onload=i,o.href=t,document.head.appendChild(o),o},t=function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=n[r],i=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(i===e||i===t))return o}var a=document.getElementsByTagName("style");for(r=0;r<a.length;r++){o=a[r],i=o.getAttribute("data-href");if(i===e||i===t)return o}},r=function(r){return new Promise((function(o,i){var a=n.miniCssF(r),u=n.p+a;if(t(a,u))return o();e(r,u,o,i)}))},o={143:0};n.f.miniCss=function(e,t){var n={19:1,253:1,513:1,988:1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=r(e).then((function(){o[e]=0}),(function(t){throw delete o[e],t})))}}(),function(){var e={143:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise((function(n,r){o=e[t]=[n,r]}));r.push(o[2]=i);var a=n.p+n.u(t),u=new Error,c=function(r){if(n.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;u.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",u.name="ChunkLoadError",u.type=i,u.request=a,o[1](u)}};n.l(a,c,"chunk-"+t,t)}},n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,i,a=r[0],u=r[1],c=r[2],s=0;if(a.some((function(t){return 0!==e[t]}))){for(o in u)n.o(u,o)&&(n.m[o]=u[o]);if(c)var l=c(n)}for(t&&t(r);s<a.length;s++)i=a[s],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(l)},r=self["webpackChunkdata_visual_webpack"]=self["webpackChunkdata_visual_webpack"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var r=n.O(void 0,[998],(function(){return n(246)}));r=n.O(r)})();
//# sourceMappingURL=app.98c67eda.js.map