app.2be0b23e.js 31 KB

1
  1. !function(e){function t(t){for(var r,a,i=t[0],u=t[1],d=t[2],s=0,f=[];s<i.length;s++)a=i[s],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,d||[]),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,d=[],s=(a[e]?d.push(a[e]):0!==a[e]&&{"chunk-016ba2f5":1,"chunk-056e1da2":1,"chunk-13878cc1":1,"chunk-434a8406":1,"chunk-147a1e52":1,"chunk-1632204a":1,"chunk-1f824794":1,"chunk-d7519354":1,"chunk-09f4d4ca":1,"chunk-10ee235a":1,"chunk-16b431d8":1,"chunk-287190ab":1,"chunk-2b270b5e":1,"chunk-3b59defb":1,"chunk-44358777":1,"chunk-75ae125c":1,"chunk-cbb2f044":1,"chunk-decdd57a":1}[e]&&d.push(a[e]=new Promise((function(t,n){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-016ba2f5":"eb12a606","chunk-056e1da2":"04801d31","chunk-13878cc1":"14d02dd8","chunk-434a8406":"cac0627f","chunk-147a1e52":"21c73629","chunk-5f29ed8e":"31d6cfe0","chunk-1632204a":"5a2aad26","chunk-1f824794":"6c5af106","chunk-d7519354":"d6c89c93","chunk-09f4d4ca":"c42b1165","chunk-10ee235a":"e1f8e64c","chunk-16b431d8":"766da635","chunk-287190ab":"7e76e03a","chunk-2b270b5e":"d6268229","chunk-3b59defb":"20a38813","chunk-6c149b5a":"31d6cfe0","chunk-44358777":"c371ac26","chunk-75ae125c":"6974d508","chunk-cbb2f044":"d269295d","chunk-decdd57a":"51316af5"}[e]+".css",o=i.p+r,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var d=(s=c[u]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===r||d===o))return t()}var s,l=document.getElementsByTagName("style");for(u=0;u<l.length;u++)if((d=(s=l[u]).getAttribute("data-href"))===r||d===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!==s&&(s?d.push(s[2]):(u=new Promise((function(t,n){s=o[e]=[t,n]})),d.push(s[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-056e1da2":"b2765eab","chunk-13878cc1":"f03918b6","chunk-434a8406":"a814ba07","chunk-147a1e52":"8ffa1835","chunk-5f29ed8e":"11f7d870","chunk-1632204a":"706c5ff3","chunk-1f824794":"dcb696b5","chunk-d7519354":"7463bbc4","chunk-09f4d4ca":"b2e21f88","chunk-10ee235a":"970fe075","chunk-16b431d8":"c0ef6a31","chunk-287190ab":"f7c765b9","chunk-2b270b5e":"71d02e7c","chunk-3b59defb":"5ec3ce3a","chunk-6c149b5a":"2bd64766","chunk-44358777":"2eaeac28","chunk-75ae125c":"e2d7a3c3","chunk-cbb2f044":"7903b537","chunk-decdd57a":"b3cd245e"}[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(d)},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="/sgipad/",i.oe=function(e){throw e};var u=(d=window.webpackJsonp=window.webpackJsonp||[]).push.bind(d);d.push=t;for(var d=d.slice(),s=0;s<d.length;s++)t(d[s]);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(d.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})),d=(n("4160"),n("caad"),n("45fc"),n("2532"),n("159b"),n("5530")),s=(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=(s={token:Object(l.e)()||"",openid:s.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=(b={},Object(c.a)(b,f.a.SET_TOKEN,(function(e,t){e.token=t})),Object(c.a)(b,f.a.SET_USER_MAC,(function(e,t){e.mac=t})),Object(c.a)(b,f.a.SET_USER_NAME,(function(e,t){e.userName=t})),Object(c.a)(b,f.a.SET_USER_ID,(function(e,t){e.userId=t})),Object(c.a)(b,f.a.SET_USER_PHONE,(function(e,t){e.userPhone=t})),Object(c.a)(b,f.a.SET_PROJECT_ID,(function(e,t){Object(l.h)(t),e.projectId=t})),Object(c.a)(b,f.a.SET_COMPANY_ID,(function(e,t){e.companyId=t})),Object(c.a)(b,f.a.SET_REMOTECONTROL,(function(e,t){e.remoteControl=t})),n("96cf"),n("1da1")),h=n("d167"),p=(n("e7e5"),{});Object(c.a)(p,h.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,h.a.ACTION_RESET_TOKEN,(function(e){e=e.commit,Object(l.f)(),e(f.a.SET_TOKEN,"")})),Object(c.a)(p,h.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,h.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(h.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,h.a.ACTION_LOGIN_OUT,(function(e){e=e.commit,Object(l.f)(),e(f.a.SET_TOKEN,""),Object(i.d)()}));s={state:s,mutations:b,actions:p};var b=n("d257");p={airConditioner:!Object(b.p)("portraitModule").airConditioner||Object(b.p)("portraitModule").airConditioner,light:!Object(b.p)("portraitModule").light||Object(b.p)("portraitModule").light},b=n("93da"),n={};Object(c.a)(n,b.a.SET_AIR,(function(e,t){e.airConditioner=t})),Object(c.a)(n,b.a.SET_LIGHT,(function(e,t){e.light=t}));c={state:p,mutations:n},b=[];var g=Object(t.b)({plugins:b,modules:{permission:u,user:s,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"),d=(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(d);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 d})),n.d(t,"g",(function(){return s})),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 h})),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)},d=function(){return a.a.remove(r.a.tokenKey)},s=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):""},h=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 b})),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,d=n("1da1"),s=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:"/sgipad/",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:"/sgipad/",timeout:1e4,loading:!1,errorShowType:o.LOG,header:l,staticUrl:"https://brsg-test.tenants.link"},m=n("5581"),h=(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 s.c(t)).httpClient.interceptors.request.use((function(e){var t=Object(h.t)();t=Object(h.B)(t);return-1!=e.url.indexOf("?")?e.url=e.url+"&"+t:e.url=e.url+"?"+t,e}),(function(e){})),e},b=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(d.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]||""}},"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},"758b":function(e,t,n){function r(){var e=i.getBoundingClientRect().width;e=(e=1366<e/s?1366*s:e)/10;i.style.fontSize=e+"px",f.rem=a.rem=e}var a,o,c,i,u,d,s,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"]'),d=c.querySelector('meta[name="flexible"]'),l=s=0,f=n.flexible||(n.flexible={}),u?(n=u.getAttribute("content").match(/initial\-scale=([\d\.]+)/))&&(l=parseFloat(n[1]),s=parseInt(1/l)):d&&(n=d.getAttribute("content"))&&(d=n.match(/initial\-dpr=([\d\.]+)/),n=n.match(/maximum\-dpr=([\d\.]+)/),d&&(s=parseFloat(d[1]),l=parseFloat((1/s).toFixed(2))),n&&(s=parseFloat(n[1]),l=parseFloat((1/s).toFixed(2)))),s||l||(a.navigator.appVersion.match(/android/gi),d=a.navigator.appVersion.match(/iphone/gi),n=a.devicePixelRatio,l=1/(s=d?3<=n&&(!s||3<=s)?3:2<=n&&(!s||2<=s)?2:1:1)),i.setAttribute("data-dpr",s),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):((d=c.createElement("div")).appendChild(u),c.write(d.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*s+"px":c.addEventListener("DOMContentLoaded",(function(e){c.body.style.fontSize=12*s+"px"}),!1),r(),f.dpr=a.dpr=s,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}},"803f":function(e,t,n){"use strict";n("aef2")},"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"},aef2:function(e,t,n){},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:"/home",meta:{title:"首页",hideHeader:!0}},{path:"/home",component:function(){return n.e("chunk-decdd57a").then(n.bind(null,"7abe"))},name:"home",meta:{title:"首页",hideHeader:!0}},{path:"/envmonitor",component:function(){return Promise.all([n.e("chunk-056e1da2"),n.e("chunk-5f29ed8e"),n.e("chunk-434a8406"),n.e("chunk-1632204a"),n.e("chunk-1f824794")]).then(n.bind(null,"7f3f"))},name:"envmonitor",meta:{title:"环境控制",hideHeader:!0}},{path:"/envmonitor-detail",component:function(){return Promise.all([n.e("chunk-5f29ed8e"),n.e("chunk-1632204a"),n.e("chunk-6c149b5a")]).then(n.bind(null,"cda6"))},name:"envmonitorDetail",meta:{title:"环境详情",color:"#fff",hideHeader:!0}},{path:"/user-portrait",component:function(){return n.e("chunk-75ae125c").then(n.bind(null,"a89b"))},name:"userPortrait",meta:{title:"节能评分",color:"#FFE823",hideHeader:!0}},{path:"/energy-savig",component:function(){return Promise.all([n.e("chunk-5f29ed8e"),n.e("chunk-44358777")]).then(n.bind(null,"f299"))},name:"energySavig",meta:{title:"我的节能",color:"#ECEFF4",hideHeader:!0}},{path:"/energy-detail",component:function(){return n.e("chunk-3b59defb").then(n.bind(null,"44dd"))},name:"energyDetail",meta:{title:"我的节能详情 ",color:"#E5E5E5",hideHeader:!0}},{path:"/today-energy-detail",component:function(){return n.e("chunk-287190ab").then(n.bind(null,"c676"))},name:"todayEnergyDetail",meta:{title:"今天新增 ",color:"#E5E5E5",hideHeader:!0}},{path:"/energy-rank",component:function(){return n.e("chunk-cbb2f044").then(n.bind(null,"f093"))},name:"energyRank",meta:{title:"节能排名 ",color:"#E5E5E5",hideHeader:!0}},{path:"/integral-desc",component:function(){return n.e("chunk-10ee235a").then(n.bind(null,"161f"))},name:"integralDesc",meta:{title:"积分说明 ",color:"#E5E5E5",hideHeader:!0}},{path:"/record",component:function(){return n.e("chunk-016ba2f5").then(n.bind(null,"116c"))},name:"Record",meta:{title:"调节记录 ",color:"#E5E5E5",hideHeader:!0}},{path:"/mySpace",component:function(){return Promise.all([n.e("chunk-056e1da2"),n.e("chunk-434a8406"),n.e("chunk-147a1e52")]).then(n.bind(null,"09de"))},name:"mySpace",meta:{title:"切换空间",color:"#f7f8fa",hideHeader:!0}},{path:"/choice-project",component:function(){return Promise.all([n.e("chunk-056e1da2"),n.e("chunk-d7519354")]).then(n.bind(null,"6e1d"))},name:"choiceProject",meta:{title:"选择所属公司名称",toName:"home",color:"#fff",hideHeader:!1,showLogoOut:!0}},{path:"/choice-space",component:function(){return Promise.all([n.e("chunk-056e1da2"),n.e("chunk-13878cc1")]).then(n.bind(null,"bd1a"))},name:"choiceSpace",meta:{title:"选择办公空间",color:"#F5F5F5",hideHeader:!1}},{path:"/set-main-space",component:function(){return n.e("chunk-09f4d4ca").then(n.bind(null,"2804"))},name:"setMainSpace",meta:{title:"设置主空间",title1:"左滑动可删除空间",color:"#F5F5F5",hideHeader:!1}},{path:"/map-data-util",component:function(){return n.e("chunk-16b431d8").then(n.bind(null,"4be3"))},name:"mapDataold",meta:{title:"处理地图数据",color:"#F5F5F5",hideHeader:!1}},{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)("/sgipad/"),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),d=(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("/sgipad/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("803f"),n("6b0d")),t=n.n(t)()(i,[["render",function(e,t,n,o,c,i){var u=Object(r.resolveComponent)("Header"),d=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)(d,{key:e.route.fullPath+"f"}))])}],["__scopeId","data-v-2ddd63b0"]]),i=n("afbc"),n("0613")),s=(n("758b"),n("b20f"),n("d399")),l=(n("e7e5"),n("ad06")),f=(n("c3a6"),n("0b33")),m=(n("da3c"),n("5e46")),h=(n("bda7"),n("543e")),p=(n("ac1e"),n("e41f")),b=(n("8a58"),n("96cf"),n("1da1")),g=n("d167"),O=n("5581"),E=n("59b9");i.c.beforeEach(function(){var e=Object(b.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(d.b)(),(o=Object(E.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=s.a,n.config.globalProperties.$loadingStart=function(){s.a.loading({duration:0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,forbidClick:!0})},n.config.globalProperties.$loadinngEnd=function(){s.a.clear()},n.use(s.a).use(l.b).use(m.a).use(f.a).use(h.b).use(p.b).use(d.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 d})),n.d(t,"i",(function(){return s})),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 b})),n.d(t,"C",(function(){return g})),n.d(t,"p",(function(){return O})),n.d(t,"z",(function(){return E})),n.d(t,"w",(function(){return T})),n.d(t,"q",(function(){return v})),n.d(t,"v",(function(){return S})),n.d(t,"k",(function(){return j})),n.d(t,"A",(function(){return k})),n.d(t,"j",(function(){return y})),n.d(t,"u",(function(){return _})),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 R})),n.d(t,"o",(function(){return C})),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"):""},d=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 s(){return(new Date).getHours()}function l(e,t){return t?"".concat("/sgipad/","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 h(){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 b=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):""},E=function(e){h(a.a.storageSpaceInfoKey,e)},T=function(e,t,n){var r=p(a.a.storageSpaceKey)?p(a.a.storageSpaceKey):{};r["".concat(e,",").concat(t)]=n,h(a.a.storageSpaceKey,r)},v=function(){return p(a.a.storageSpaceKey)},S=function(e,t){var n=p(a.a.storageFloorKey)?p(a.a.storageFloorKey):{};n[e]=t,h(a.a.storageFloorKey,n)},j=function(){return p(a.a.storageFloorKey)},k=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),h(a.a.historySearchSpaceKey,t)},y=function(){return p(a.a.historySearchSpaceKey)?p(a.a.historySearchSpaceKey):[]},_=function(e){return new Array("周日","周一","周二","周三","周四","周五","周六")[e]},N=function(){var e=(new Date).getDay();return _(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},R=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]},C=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]:[],d=5<arguments.length?arguments[5]:void 0,s=new Date,l=(s=new Date(s.setTime(s.getTime()+864e5)),i("YYYY-MM-DD")),f=i("YYYY-MM-DD",s),m=(c.map((function(e){var t=u(e.date),n=_(new Date(t).getDay());t==l?n="今日":t==f&&(n="次日"),e.week=n})),""),h=c[n].cusStartTime,p=c[n].cusEndTime;return 1===o?"240000"===a?(s=null!=(o=null==(s=c[n])?void 0:s.customSceneList)?o:[],"000000"===h&&(m=c[n].week,a=p),s.map((function(e){"000000"!==e.startTime&&a!==e.startTime||(m=c[n].week,a=e.endTime),a===h&&(m=c[n].week,a=p)})),m?(o=n+1,d.text=m,o<c.length-1?e(o,r,a,1,c,d):{text:d.text,startTime:r,endTime:a}):{text:d.text,startTime:r,endTime:a}):{text:d.text,startTime:r,endTime:a}:(t=R()[0].replace(":","")+"00",(null!=(o=null==(s=c[n])?void 0:s.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),d.text?(e=d.text.split("~")[0],d.text=e,m&&m!=e&&(d.text=e+"~"+m)):d.text=m})),r&&a?"240000"==a&&(s=n+1)<c.length-1?e(s,r,a,2,c,d):{text:d.text,startTime:r,endTime:a}:(o=n+1)<c.length-1?e(o,r,a,2,c,d):{text:d.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}}});