1 |
- !function(e){function t(t){for(var r,a,i=t[0],u=t[1],s=t[2],d=0,f=[];d<i.length;d++)a=i[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&f.push(o[a][0]),o[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(l&&l(t);f.length;)f.shift()();return c.push.apply(c,s||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,a=1;a<n.length;a++){var u=n[a];0!==o[u]&&(r=!1)}r&&(c.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},a={app:0},o={app:0},c=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t,n,r,c,u,s=[],d=(a[e]?s.push(a[e]):0!==a[e]&&{"chunk-016ba2f5":1,"chunk-0f7bdb64":1,"chunk-a0b005b0":1,"chunk-a1ee0466":1,"chunk-2e62b616":1,"chunk-10ee235a":1,"chunk-1be83e5a":1,"chunk-287190ab":1,"chunk-2b270b5e":1,"chunk-3b59defb":1,"chunk-4f85f2e2":1,"chunk-75ae125c":1,"chunk-2e0a88af":1,"chunk-6919b5fa":1,"chunk-72e1d1ce":1,"chunk-87c37bec":1}[e]&&s.push(a[e]=new Promise((function(t,n){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-016ba2f5":"eb12a606","chunk-0f7bdb64":"024a04c0","chunk-a0b005b0":"7cf97247","chunk-a1ee0466":"2fac2e52","chunk-2e62b616":"21c73629","chunk-10ee235a":"e1f8e64c","chunk-1be83e5a":"c42b1165","chunk-287190ab":"7e76e03a","chunk-2b270b5e":"d6268229","chunk-3b59defb":"20a38813","chunk-4f85f2e2":"d269295d","chunk-75ae125c":"6974d508","chunk-bb545e94":"31d6cfe0","chunk-27676557":"31d6cfe0","chunk-2e0a88af":"4a0e7e5f","chunk-6919b5fa":"c371ac26","chunk-72e1d1ce":"5a2aad26","chunk-87c37bec":"b5271468"}[e]+".css",o=i.p+r,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var s=(d=c[u]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(s===r||s===o))return t()}var d,l=document.getElementsByTagName("style");for(u=0;u<l.length;u++)if((s=(d=l[u]).getAttribute("data-href"))===r||s===o)return t();var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){t=t&&t.target&&t.target.src||o;var r=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=t,delete a[e],f.parentNode.removeChild(f),n(r)},f.href=o,document.getElementsByTagName("head")[0].appendChild(f)})).then((function(){a[e]=0}))),o[e]);return 0!==d&&(d?s.push(d[2]):(u=new Promise((function(t,n){d=o[e]=[t,n]})),s.push(d[2]=u),(t=document.createElement("script")).charset="utf-8",t.timeout=120,i.nc&&t.setAttribute("nonce",i.nc),t.src=i.p+"static/js/"+({}[u=e]||u)+"."+{"chunk-016ba2f5":"8328af77","chunk-0f7bdb64":"c448b353","chunk-a0b005b0":"8cd55ce2","chunk-a1ee0466":"0f7721ca","chunk-2e62b616":"5beb0c3f","chunk-10ee235a":"970fe075","chunk-1be83e5a":"d3bafa09","chunk-287190ab":"f7c765b9","chunk-2b270b5e":"71d02e7c","chunk-3b59defb":"5ec3ce3a","chunk-4f85f2e2":"9b088082","chunk-75ae125c":"e2d7a3c3","chunk-bb545e94":"4bfcb9b8","chunk-27676557":"3e06b77e","chunk-2e0a88af":"6e61b16a","chunk-6919b5fa":"0a163d69","chunk-72e1d1ce":"f10de092","chunk-87c37bec":"aba32607"}[u]+".js",n=new Error,r=function(r){t.onerror=t.onload=null,clearTimeout(c);var a,i=o[e];0!==i&&(i&&(a=r&&("load"===r.type?"missing":r.type),r=r&&r.target&&r.target.src,n.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",n.name="ChunkLoadError",n.type=a,n.request=r,i[1](n)),o[e]=void 0)},c=setTimeout((function(){r({type:"timeout",target:t})}),12e4),t.onerror=t.onload=r,document.head.appendChild(t))),Promise.all(s)},i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/sgh5/",i.oe=function(e){throw e};var u=(s=window.webpackJsonp=window.webpackJsonp||[]).push.bind(s);s.push=t;for(var s=s.slice(),d=0;d<s.length;d++)t(s[d]);var l=u;c.push([0,"chunk-vendors"]),n()}({0:function(e,t,n){e.exports=n("cd49")},"0613":function(e,t,n){"use strict";function r(e,t){var n=[];return e.forEach((function(e){var a,o;e=Object(s.a)({},e);a=t,(o=e).meta&&o.meta.roles&&!a.some((function(e){var t;if(void 0!==(null==(t=o.meta)?void 0:t.roles))return o.meta.roles.includes(e)}))||(e.children&&(e.children=r(e.children,t)),n.push(e))})),n}n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return O}));t=n("5502");var a,o,c=(n("99af"),n("ade3")),i=((a=a||{}).SET_ROUTES="SET_ROUTES",n("afbc")),u=Object(c.a)({},a.SET_ROUTES,(function(e,t){e.routes=i.b.concat(t),e.dynamicRoutes=t})),s=(n("4160"),n("caad"),n("45fc"),n("2532"),n("159b"),n("5530")),d=(u=((o=o||{}).ACTION_SET_ROUTES="ACTION_SET_ROUTES",{state:{routes:[],dynamicRoutes:[]},mutations:u,actions:Object(c.a)({},o.ACTION_SET_ROUTES,(function(e,t){e=e.commit,t=t.includes("admin")?i.a:r(i.a,t),e(a.SET_ROUTES,t)}))}),n("66d6")),l=n("5581"),f=(d={token:Object(l.e)()||"",openid:d.a.openid,userName:Object(l.b)()?Object(l.b)():"admin",userId:Object(l.a)()?Object(l.a)():"admin",userPhone:Object(l.d)()?Object(l.d)().phone:0,projectId:Object(l.c)()?Object(l.c)():"",companyId:"",mac:Object(l.a)()?Object(l.a)():"",remoteControl:!1},n("a873")),m=(h={},Object(c.a)(h,f.a.SET_TOKEN,(function(e,t){e.token=t})),Object(c.a)(h,f.a.SET_USER_MAC,(function(e,t){e.mac=t})),Object(c.a)(h,f.a.SET_USER_NAME,(function(e,t){e.userName=t})),Object(c.a)(h,f.a.SET_USER_ID,(function(e,t){e.userId=t})),Object(c.a)(h,f.a.SET_USER_PHONE,(function(e,t){e.userPhone=t})),Object(c.a)(h,f.a.SET_PROJECT_ID,(function(e,t){Object(l.h)(t),e.projectId=t})),Object(c.a)(h,f.a.SET_COMPANY_ID,(function(e,t){e.companyId=t})),Object(c.a)(h,f.a.SET_REMOTECONTROL,(function(e,t){e.remoteControl=t})),n("96cf"),n("1da1")),b=n("d167"),p=(n("e7e5"),{});Object(c.a)(p,b.a.ACTION_LOGIN,(function(e,t){return Object(m.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(0,e.commit)(f.a.SET_TOKEN,"eyJhbGciOiJIUzI1NiJ9.eyJidWlsZGluZ19pZCI6ImZmZDc4OGIwOTQzNTQ4NTFiMDM0NTY2YzRkMTJkMTFjIiwidXNlcl9pZCI6IjYwMmVmNzA5YmViNjRhMWY5YTRiNmFmMjE5NmQwYWY3IiwidXNlcl9uYW1lIjpudWxsLCJvd25lcl9pZCI6IjkzNmE4ZWFlMDJmOTExZWNiNTQyMDJiNzIzZjVmYmQwIiwibXlfdGhpcmRfaWQiOiIyMGQ4Mzg0OTZjMGQ0ODk4YjFkN2MxNmRkZTc5ZGQwNiIsInRoaXJkX3BsYXRmb3JtX2lkIjoib3pUVGs1UFJSdUNIRUNqUXZKSXJyT3A1MkRuNCIsInNUaW1lIjoxNjQ2MDM1ODYzNTYwLCJleHAiOjE2NDYzOTU4NjM1NjAsInR5cGUiOiJ3ZWNoYXQiLCJhcHBfaWQiOiJ3eDNhZGQ2MzJmZDMxNDU3YzcifQ.C0khcRbjp_VuGF8gzr-cdybPhX1U1bSEk_48ypub6Y0");case 3:case"end":return t.stop()}}),t)})))()})),Object(c.a)(p,b.a.ACTION_RESET_TOKEN,(function(e){e=e.commit,Object(l.f)(),e(f.a.SET_TOKEN,"")})),Object(c.a)(p,b.a.ACTION_GET_USER_INFO,(function(e){return Object(m.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.commit,r={userName:Object(l.b)()?Object(l.b)():"admin",userPhone:11111111111,userId:Object(l.a)()?Object(l.a)():"admin"},Object(l.i)(JSON.stringify(r)),n(f.a.SET_USER_NAME,r.userName),n(f.a.SET_USER_PHONE,r.phone),n(f.a.SET_USER_ID,r.userId),r=Object(l.a)(),n(f.a.SET_USER_MAC,r);case 8:case"end":return t.stop()}}),t)})))()})),Object(c.a)(p,b.a.ACTION_CHANGE_ROLES,(function(e,t){return Object(m.a)(regeneratorRuntime.mark((function n(){var r,a,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,a=t+"-token",c=g,r(f.a.SET_TOKEN,a),Object(l.j)(a),n.next=7,c.dispatch(b.a.ACTION_GET_USER_INFO,void 0);case 7:c.dispatch(o.ACTION_SET_ROUTES,[]),c.state.permission.dynamicRoutes.forEach((function(e){i.c.addRoute(e)}));case 9:case"end":return n.stop()}}),n)})))()})),Object(c.a)(p,b.a.ACTION_LOGIN_OUT,(function(e){e=e.commit,Object(l.f)(),e(f.a.SET_TOKEN,""),Object(i.d)()}));d={state:d,mutations:h,actions:p};var h=n("d257");p={airConditioner:!Object(h.p)("portraitModule").airConditioner||Object(h.p)("portraitModule").airConditioner,light:!Object(h.p)("portraitModule").light||Object(h.p)("portraitModule").light},h=n("93da"),n={};Object(c.a)(n,h.a.SET_AIR,(function(e,t){e.airConditioner=t})),Object(c.a)(n,h.a.SET_LIGHT,(function(e,t){e.light=t}));c={state:p,mutations:n},h=[];var g=Object(t.b)({plugins:h,modules:{permission:u,user:d,portait:c}});function O(){return g}},"314e":function(e,t,n){"use strict";n("921b")},"3ba9":function(e,t,n){"use strict";var r=n("7a23"),a={class:"header-title"},o=n("5530"),c=n("ad06"),i=(n("c3a6"),n("6c02")),u=n("5581"),s=(c=Object(r.defineComponent)({props:{color:{type:String,default:function(){return"#fff"}},metaObj:{type:Object,default:function(){return{}}}},components:{VanIcon:c.b},setup:function(e){var t=Object(i.d)(),n=Object(i.c)(),a=Object(r.reactive)({route:n,goBack:function(){n.meta.toName?t.push({name:n.meta.toName}):t.go(-1)},goLogin:function(){var e=Object(u.a)();t.push({name:"home",query:{mac:e,type:"logoOut"}})}});return Object(r.onMounted)((function(){})),Object(o.a)({},Object(r.toRefs)(a))}}),n("314e"),n("6b0d"));n=n.n(s);t.a=n()(c,[["render",function(e,t,n,o,c,i){var u=Object(r.resolveComponent)("VanIcon");return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:"ignore_com-top",id:"header",style:Object(r.normalizeStyle)({background:e.color})},[Object(r.createElementVNode)("div",{class:"header",style:Object(r.normalizeStyle)({background:e.color})},[Object(r.createElementVNode)("div",{class:"header-return",onClick:t[0]||(t[0]=function(){return e.goBack&&e.goBack.apply(e,arguments)})},[Object(r.createVNode)(u,{name:"arrow-left"})]),Object(r.createElementVNode)("div",a,[Object(r.createElementVNode)("span",null,Object(r.toDisplayString)(e.route.meta.title),1),Object(r.createElementVNode)("span",null,Object(r.toDisplayString)(e.route.meta.title1),1)]),e.metaObj.showLogoOut?(Object(r.openBlock)(),Object(r.createElementBlock)("div",{key:0,class:"return-login",onClick:t[1]||(t[1]=function(){return e.goLogin&&e.goLogin.apply(e,arguments)})}," 退出 ")):Object(r.createCommentVNode)("",!0)],4)],4)}],["__scopeId","data-v-90cd68ae"]])},5581:function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"h",(function(){return i})),n.d(t,"j",(function(){return u})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return d})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"i",(function(){return b})),n("ac1f"),n("5319");var r=n("66d6"),a=(t=n("a78e"),n.n(t)),o=function(){return a.a.get(r.a.tokenKey)},c=function(){return a.a.get(r.a.projectId)},i=function(e){return a.a.set(r.a.projectId,e)},u=function(e){return a.a.set(r.a.tokenKey,e)},s=function(){return a.a.remove(r.a.tokenKey)},d=function(e){return a.a.set(r.a.macKey,e)},l=function(){return a.a.get(r.a.macKey)||localStorage.getItem("mac")},f=function(){var e=a.a.get(r.a.macKey);return(e=e||localStorage.getItem("mac"))&&e.replace(/:/g,"")},m=function(){var e=sessionStorage.getItem(r.a.userInfoKey);return e?JSON.parse(e):""},b=function(e){return sessionStorage.setItem(r.a.userInfoKey,e)}},"59b9":function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return g})),n("c975"),n("d3b7"),n("ac1f"),n("841c"),n("1276"),n("96cf");var r,a,o,c,i,u,s=n("1da1"),d=n("ba72"),l=(t=((t=r=r||{}).FORM="application/x-www-form-urlencoded",t.JSON="application/json; charset=utf-8",(a=a||{}).PC="PC",(t=o=o||{})[t.LOG=0]="LOG",t[t.TOAST=1]="TOAST",(t=c=c||{}).Development="development",t.Production="production",(t=i=i||{}).Frontend="frontend",t.Backend="backend",(u=u||{}).Hash="hash",(t=l=l||{}).LocalStorage="localStorage",t.Cookie="cookie",{title:"之江h5",baseURL:"/sgh5/",copyright:"zy",keepAliveMaxNum:99,routerMode:u.Hash,routesWhiteList:[],loadingText:"loading",tokenName:"token",tokenTableName:"token",storage:l.LocalStorage,recordRoute:!0,logo:"",errorLog:c.Development,loginInterception:!0,loginRSA:!1,routerSource:i.Backend,rolesControl:!0,uniqueOpened:!1,defaultOpeneds:["/vab"],debounce:["doEdit"],templateFolder:"project",openFirstMenu:!0,version:"1.0"}),{token:"",contentType:r.JSON,version:null!=(u=t.version)?u:"1.0",device:a.PC}),f={host:"/sgh5/",timeout:1e4,loading:!1,errorShowType:o.LOG,header:l,staticUrl:"https://brsg-test.tenants.link"},m=n("5581"),b=(n("e7e5"),n("d257")),p=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{timeout:""},t={baseURL:f.host,headers:{token:Object(m.e)(),"sso-token":Object(m.e)(),"X-Forwarded-Token":Object(m.e)()}};return e.timeout&&(t.timeout=e.timeout),(e=new d.c(t)).httpClient.interceptors.request.use((function(e){var t=Object(b.t)();t=Object(b.B)(t);return-1!=e.url.indexOf("?")?e.url=e.url+"&"+t:e.url=e.url+"?"+t,e}),(function(e){})),e},h=function(e,t){return p().httpClient.post(e,t).then((function(e){var t=JSON.parse(JSON.stringify(e.data));return 200<=e.status&&e.status<300?Promise.resolve(t):Promise.reject(t)})).catch(function(){var e=Object(s.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.reject(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},g=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"accessToken",t=location.search,n=new Object;if(-1!=t.indexOf("?"))for(var r=t.substr(1).split("&"),a=0;a<r.length;a++)n[r[a].split("=")[0]]=r[a].split("=")[1];return n[e]||""}},"5d4e":function(e,t,n){"use strict";n("6a36")},"66d6":function(e,t,n){"use strict";function r(){Object(a.a)(this,r)}var a=n("d4ec");n=n("ade3");Object(n.a)(r,"sidebarStatusKey","vue3-typescript-admin-sidebarStatusKey"),Object(n.a)(r,"languageKey","vue3-typescript-admin-languageKey"),Object(n.a)(r,"sizeKey","vue3-typescript-admin-sizeKey"),Object(n.a)(r,"tokenKey","accessToken"),Object(n.a)(r,"projectId","projectId"),Object(n.a)(r,"aseKey","vue3-typescript-admin-ase-key"),Object(n.a)(r,"companyKey","245e7060643811eb934c0237aedb39a6"),Object(n.a)(r,"openid","602ef709beb64a1f9a4b6af2196d0af7"),Object(n.a)(r,"pubname","sagacarepad"),Object(n.a)(r,"pubname1","sagacareAndtenantslink"),Object(n.a)(r,"storageSpaceKey","historySpace"),Object(n.a)(r,"historySearchSpaceKey","historySearchSpace"),Object(n.a)(r,"storageFloorKey","historyFloor"),Object(n.a)(r,"storageSpaceInfoKey","storageSpaceInfo"),Object(n.a)(r,"userInfoKey","userInfo"),Object(n.a)(r,"macKey","mac"),t.a=r},"6a36":function(e,t,n){},"758b":function(e,t,n){function r(){var e=i.getBoundingClientRect().width;e=(e=1366<e/d?1366*d:e)/10;i.style.fontSize=e+"px",f.rem=a.rem=e}var a,o,c,i,u,s,d,l,f;n("b680"),n("ac1f"),n("466d"),a=window,n=window.lib||(window.lib={}),c=a.document,i=c.documentElement,u=c.querySelector('meta[name="viewport"]'),s=c.querySelector('meta[name="flexible"]'),l=d=0,f=n.flexible||(n.flexible={}),u?(n=u.getAttribute("content").match(/initial\-scale=([\d\.]+)/))&&(l=parseFloat(n[1]),d=parseInt(1/l)):s&&(n=s.getAttribute("content"))&&(s=n.match(/initial\-dpr=([\d\.]+)/),n=n.match(/maximum\-dpr=([\d\.]+)/),s&&(d=parseFloat(s[1]),l=parseFloat((1/d).toFixed(2))),n&&(d=parseFloat(n[1]),l=parseFloat((1/d).toFixed(2)))),d||l||(a.navigator.appVersion.match(/android/gi),s=a.navigator.appVersion.match(/iphone/gi),n=a.devicePixelRatio,l=1/(d=s?3<=n&&(!d||3<=d)?3:2<=n&&(!d||2<=d)?2:1:1)),i.setAttribute("data-dpr",d),u||((u=c.createElement("meta")).setAttribute("name","viewport"),u.setAttribute("content","initial-scale="+l+", maximum-scale="+l+", minimum-scale="+l+", user-scalable=no"),i.firstElementChild?i.firstElementChild.appendChild(u):((s=c.createElement("div")).appendChild(u),c.write(s.innerHTML))),a.addEventListener("resize",(function(){clearTimeout(o),o=setTimeout(r,300)}),!1),a.addEventListener("pageshow",(function(e){e.persisted&&(clearTimeout(o),o=setTimeout(r,300))}),!1),"complete"===c.readyState?c.body.style.fontSize=12*d+"px":c.addEventListener("DOMContentLoaded",(function(e){c.body.style.fontSize=12*d+"px"}),!1),r(),f.dpr=a.dpr=d,f.refreshRem=r,f.rem2px=function(e){var t=parseFloat(e)*this.rem;return"string"==typeof e&&e.match(/rem$/)&&(t+="px"),t},f.px2rem=function(e){var t=parseFloat(e)/this.rem;return"string"==typeof e&&e.match(/px$/)&&(t+="rem"),t}},"921b":function(e,t,n){},"93da":function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),(n=r=r||{}).SET_AIR="SET_AIR",n.SET_LIGHT="SET_LIGHT"},a873:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),(n=r=r||{}).SET_TOKEN="SET_TOKEN",n.SET_USER_NAME="SET_USER_NAME",n.SET_USER_ID="SET_USER_ID",n.SET_USER_PHONE="SET_USER_PHONE",n.SET_PROJECT_ID="SET_PROJECT_ID",n.SET_COMPANY_ID="SET_COMPANY_ID",n.SET_REMOTECONTROL="SET_REMOTECONTROL",n.SET_USER_MAC="SET_USER_MAC"},afbc:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return i})),n("d3b7");var r=n("6c02"),a=[{path:"/",redirect:"/taigu/index",meta:{title:"首页",hideHeader:!0}},{path:"/taigu/index",component:function(){return Promise.all([n.e("chunk-bb545e94"),n.e("chunk-87c37bec")]).then(n.bind(null,"c177"))},name:"taiguHome",meta:{title:"会议室控制",color:"#F5F5F5",hideHeader:!0}},{path:"/error",component:function(){return n.e("chunk-2b270b5e").then(n.bind(null,"52cd"))},name:"error",meta:{title:"错误页面",color:"#F5F5F5",hideHeader:!0}}],o=[],c=Object(r.a)({history:Object(r.b)("/sgh5/"),routes:a});function i(){c.matcher=c.matcher}t.c=c},b20f:function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},cd49:function(e,t,n){"use strict";n.r(t),n("e260"),n("e6cf"),n("cca6"),n("a79d");var r=n("7a23"),a={class:"home"},o=n("5530"),c=(t=n("3ba9"),n("6c02")),i=n("bc3a"),u=n.n(i),s=(i=Object(r.defineComponent)({components:{Header:t.a},setup:function(){var e=Object(c.c)(),t=Object(r.reactive)({route:e,transitionName:"slide-right",showHeader:!1,isRouterAlive:!0,reload:function(){t.isRouterAlive=!1,Object(r.nextTick)((function(){t.isRouterAlive=!0}))},itervel:null,getPadVersion:function(){u.a.get("/sgh5/pad_mtime").then((function(e){e=(e.data||{}).pad_mtime;var t=localStorage.getItem("pad_mtime");t&&t!==e?(localStorage.setItem("pad_mtime",e),window.location.reload()):localStorage.setItem("pad_mtime",e)}))},timerPadVersion:function(){t.itervel=setInterval((function(){t.getPadVersion()}),3e5)}});return Object(r.nextTick)((function(){var e=window.document;e.addEventListener("touchstart",(function(e){1<e.touches.length&&e.preventDefault()})),e.addEventListener("gesturestart",(function(e){e.preventDefault()}))})),Object(r.onBeforeUnmount)((function(){clearInterval(t.itervel)})),Object(r.onMounted)((function(){})),Object(o.a)({},Object(r.toRefs)(t))}}),t=(n("5d4e"),n("6b0d")),t=n.n(t)()(i,[["render",function(e,t,n,o,c,i){var u=Object(r.resolveComponent)("Header"),s=Object(r.resolveComponent)("router-view");return Object(r.openBlock)(),Object(r.createElementBlock)("div",a,[e.route.meta&&!e.route.meta.hideHeader?(Object(r.openBlock)(),Object(r.createBlock)(u,{key:0,color:e.route.meta.color,metaObj:e.route.meta},null,8,["color","metaObj"])):Object(r.createCommentVNode)("",!0),Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(e.route.meta.hideHeader?"":"ptheader"),style:Object(r.normalizeStyle)({background:e.route.meta.color})},null,6),(Object(r.openBlock)(),Object(r.createBlock)(s,{key:e.route.fullPath+"f"}))])}],["__scopeId","data-v-61b6472a"]]),i=n("afbc"),n("0613")),d=(n("758b"),n("b20f"),n("d399")),l=(n("e7e5"),n("ad06")),f=(n("c3a6"),n("0b33")),m=(n("da3c"),n("5e46")),b=(n("bda7"),n("543e")),p=(n("ac1e"),n("e41f")),h=(n("8a58"),n("96cf"),n("1da1")),g=n("d167"),O=n("5581"),T=n("59b9");i.c.beforeEach(function(){var e=Object(h.a)(regeneratorRuntime.mark((function e(t,n,r){var a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Object(s.b)(),(o=Object(T.a)("mac"))&&"null"!=o&&"NULL"!=o&&(Object(O.g)(o),localStorage.setItem("mac",o)),e.next=5,a.dispatch(g.a.ACTION_GET_USER_INFO,void 0);case 5:r();case 6:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}()),i.c.afterEach((function(e){})),n("840a"),n=Object(r.createApp)(t);n.config.globalProperties.$imgUrl="http://api.sagacloud.cn/dp-auxiliary/image-service/common/image_get?systemId=dataPlatform",n.config.globalProperties.$fileUrl="http://api.sagacloud.cn/dp-auxiliary/image-service/common/file_get?systemId=dataPlatform",n.config.globalProperties.$toast=d.a,n.config.globalProperties.$loadingStart=function(){d.a.loading({duration:0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,forbidClick:!0})},n.config.globalProperties.$loadinngEnd=function(){d.a.clear()},n.use(d.a).use(l.b).use(m.a).use(f.a).use(b.b).use(p.b).use(s.a).use(i.c).mount("#app")},d167:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),(n=r=r||{}).ACTION_LOGIN="ACTION_LOGIN",n.ACTION_RESET_TOKEN="ACTION_RESET_TOKEN",n.ACTION_GET_USER_INFO="ACTION_GET_USER_INFO",n.ACTION_CHANGE_ROLES="ACTION_CHANGE_ROLES",n.ACTION_LOGIN_OUT="ACTION_LOGIN_OUT",n.SET_USER_MAC="SET_USER_MAC",n.ACTION_GET_WORKSPACE="ACTION_GET_WORKSPACE"},d257:function(e,t,n){"use strict";n.d(t,"B",(function(){return o})),n.d(t,"t",(function(){return c})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return u})),n.d(t,"s",(function(){return s})),n.d(t,"i",(function(){return d})),n.d(t,"y",(function(){return l})),n.d(t,"g",(function(){return f})),n.d(t,"n",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"C",(function(){return g})),n.d(t,"p",(function(){return O})),n.d(t,"z",(function(){return T})),n.d(t,"w",(function(){return v})),n.d(t,"q",(function(){return j})),n.d(t,"v",(function(){return S})),n.d(t,"k",(function(){return E})),n.d(t,"A",(function(){return _})),n.d(t,"j",(function(){return k})),n.d(t,"u",(function(){return y})),n.d(t,"m",(function(){return N})),n.d(t,"h",(function(){return I})),n.d(t,"r",(function(){return M})),n.d(t,"l",(function(){return C})),n.d(t,"o",(function(){return R})),n.d(t,"e",(function(){return w})),n.d(t,"x",(function(){return D})),n.d(t,"f",(function(){return A})),n.d(t,"a",(function(){return Y})),n("99af"),n("c975"),n("d81d"),n("b680"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),n("4d90"),n("5319"),n("1276"),n("53ca");var r=n("0613"),a=n("66d6"),o=(n("a78e"),function(e){var t,n="";for(t in e)-1!==e[t]&&(n+=t+"="+e[t]+"&");return n.substring(0,n.length-1)}),c=function(){var e=r.a.state.user,t={openid:e.openid,userId:e.userId,mac:e.mac,pubname:a.a.pubname,projectId:e.projectId};return e.userName&&(t.userName=e.userName),e.userPhone&&(t.userPhone=e.userPhone),t},i=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"YYYYMMDD",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new Date,n=(t=t||new Date,t.getFullYear()),r=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=t.getHours()<10?"0"+t.getHours():t.getHours(),c=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes();t=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return"YYYY年MM月DD日"===e?n+"年"+r+"月"+a+"日":"YYYY.MM"===e?n+"."+r:"YYYYMM"===e?n+""+r:"YYYY-MM-DD"===e?n+"-"+r+"-"+a:"YYYY.MM.DD HH:mm"===e?n+"."+r+"."+a+" "+o+":"+c:"YYYY.MM.DD HH:mm:ss"===e?n+"."+r+"."+a+" "+o+":"+c+":"+t:n+""+r+a},u=function(e){return e?e.replace(/^(\d{4})(\d{2})(\d{2})$/,"$1-$2-$3"):""},s=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=new Date;return t.setTime(t.getTime()+864e5),t.getFullYear()+e+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+e+(t.getDate()<10?"0"+t.getDate():t.getDate())};function d(){return(new Date).getHours()}function l(e,t){return t?"".concat("/sgh5/","images/").concat(e,"/").concat(t):""}function f(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=new Date;t.setFullYear(t.getFullYear()+e),e=t.getFullYear(),t=t.getMonth()+1;return new Date(e+"/"+t)}function m(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=new Date,n=t.getFullYear();t=t.getMonth();return 0===t&&(t=12,n-=1),t<10&&(t="0"+t),"YYYY.MM"===e?n+"."+t:"YYYY年MM月"===e?n+"年"+t+"月":n+""+t}function b(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";n&&(n instanceof Object?(e=JSON.stringify(n),localStorage.setItem(t,e)):localStorage.setItem(t,n))}function p(e){return(e=e&&localStorage.getItem(e))?JSON.parse(e):""}var h=function(e){e=e?new Date(e):new Date;var t=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,n=e.getDate()<10?"0"+e.getDate():e.getDate();return[e.getFullYear()+"年"+t+"月",t+"月"+n+"日",(e.getHours()<10?"0"+e.getHours():e.getHours())+":"+(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())]},g=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";t&&(t=JSON.stringify(t),sessionStorage.setItem(e,t))},O=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return e&&(e=sessionStorage.getItem(e),e)?JSON.parse(e):""},T=function(e){b(a.a.storageSpaceInfoKey,e)},v=function(e,t,n){var r=p(a.a.storageSpaceKey)?p(a.a.storageSpaceKey):{};r["".concat(e,",").concat(t)]=n,b(a.a.storageSpaceKey,r)},j=function(){return p(a.a.storageSpaceKey)},S=function(e,t){var n=p(a.a.storageFloorKey)?p(a.a.storageFloorKey):{};n[e]=t,b(a.a.storageFloorKey,n)},E=function(){return p(a.a.storageFloorKey)},_=function(e){var t=p(a.a.historySearchSpaceKey),n=!1;(t=t||[]).map((function(t){t.id===e.id&&(n=!0)})),n||t.push(e),b(a.a.historySearchSpaceKey,t)},k=function(){return p(a.a.historySearchSpaceKey)?p(a.a.historySearchSpaceKey):[]},y=function(e){return new Array("周日","周一","周二","周三","周四","周五","周六")[e]},N=function(){var e=(new Date).getDay();return y(e)},I=function(e){return e.getDate()<10?"0"+e.getDate():e.getDate()},M=function(){for(var e=new Array,t=0;t<=24;t++){var n="00";n=t<10?"0"+t:t;e.push(n+":00"),t<24&&e.push(n+":30")}return e},C=function(){var e=new Date,t=e.getHours(),n=e.getMinutes();e=e.getHours();return n<30?(t+=":00",e*=2):(t+=":30",e=2*e+1),[t,e]},R=function(){var e=new Date,t=e.getHours();e=e.getMinutes();return(t=t<10?"0"+t:t)+""+(e=e<10?"0"+e:e)+"00"},w=function(e){return e?(e/1e4).toFixed(2).replace(".",":"):""},D=function(e,t,n){return n+""+Math.round(Math.random()*(t-e)+e)},A=function e(){var t,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,r=1<arguments.length?arguments[1]:void 0,a=2<arguments.length?arguments[2]:void 0,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1,c=4<arguments.length&&void 0!==arguments[4]?arguments[4]:[],s=5<arguments.length?arguments[5]:void 0,d=new Date,l=(d=new Date(d.setTime(d.getTime()+864e5)),i("YYYY-MM-DD")),f=i("YYYY-MM-DD",d),m=(c.map((function(e){var t=u(e.date),n=y(new Date(t).getDay());t==l?n="今日":t==f&&(n="次日"),e.week=n})),""),b=c[n].cusStartTime,p=c[n].cusEndTime;return 1===o?"240000"===a?(d=null!=(o=null==(d=c[n])?void 0:d.customSceneList)?o:[],"000000"===b&&(m=c[n].week,a=p),d.map((function(e){"000000"!==e.startTime&&a!==e.startTime||(m=c[n].week,a=e.endTime),a===b&&(m=c[n].week,a=p)})),m?(o=n+1,s.text=m,o<c.length-1?e(o,r,a,1,c,s):{text:s.text,startTime:r,endTime:a}):{text:s.text,startTime:r,endTime:a}):{text:s.text,startTime:r,endTime:a}:(t=C()[0].replace(":","")+"00",(null!=(o=null==(d=c[n])?void 0:d.customSceneList)?o:[]).map((function(e){0===n?t<e.startTime&&(r&&a||(r=e.startTime,a=e.endTime,m=c[n].week)):r&&a?"240000"==a?"000000"==e.startTime&&(a=e.endTime,m=c[n].week):a===e.startTime&&(a=e.endTime,m=c[n].week):(r=e.startTime,a=e.endTime,m=c[n].week),s.text?(e=s.text.split("~")[0],s.text=e,m&&m!=e&&(s.text=e+"~"+m)):s.text=m})),r&&a?"240000"==a&&(d=n+1)<c.length-1?e(d,r,a,2,c,s):{text:s.text,startTime:r,endTime:a}:(o=n+1)<c.length-1?e(o,r,a,2,c,s):{text:s.text,startTime:r,endTime:a})},Y=function(e){if(parseInt(e)==e)return parseFloat(e);for(var t=1;parseInt(e)!=e;)e*=10,t*=10;var n=Math.abs(1==t?0:e%10),r=e-n;return(r+(0<=n&&n<5?5:10))/t}}});
|