12 |
- (function(e){function t(t){for(var r,a,i=t[0],u=t[1],d=t[2],s=0,l=[];s<i.length;s++)a=i[s],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&l.push(o[a][0]),o[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);f&&f(t);while(l.length)l.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 i=n[a];0!==o[i]&&(r=!1)}r&&(c.splice(t--,1),e=u(u.s=n[0]))}return e}var r={},a={app:0},o={app:0},c=[];function i(e){return u.p+"static/js/"+({}[e]||e)+"."+{"chunk-016ba2f5":"147571af","chunk-10ee235a":"d819c2a4","chunk-2bb42bd0":"b5572c4d","chunk-3f722bdb":"f1080f07","chunk-4fc65864":"63329f74","chunk-6637d5f0":"3b6b765b","chunk-778a7e22":"59747439","chunk-8c8fb174":"1d5d4292","chunk-c71b77a0":"40b67b76","chunk-390d4e2b":"869c5079","chunk-6c149b5a":"76accdaa","chunk-7f684f10":"88e144cc","chunk-c761207a":"aa4786c0","chunk-d758a428":"b3f2cd06","chunk-095f9bd6":"e40df808","chunk-3f89b088":"1a3d74f8","chunk-a8bcba9c":"4a39a0fd","chunk-bd36926a":"101bad5c","chunk-ee9621f0":"a4572576","chunk-3250642b":"4a7f75f2","chunk-2e62b616":"365d2f32","chunk-dcd3755c":"0153469a"}[e]+".js"}function u(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,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={"chunk-016ba2f5":1,"chunk-10ee235a":1,"chunk-2bb42bd0":1,"chunk-3f722bdb":1,"chunk-4fc65864":1,"chunk-6637d5f0":1,"chunk-778a7e22":1,"chunk-8c8fb174":1,"chunk-390d4e2b":1,"chunk-7f684f10":1,"chunk-c761207a":1,"chunk-d758a428":1,"chunk-095f9bd6":1,"chunk-3f89b088":1,"chunk-a8bcba9c":1,"chunk-bd36926a":1,"chunk-ee9621f0":1,"chunk-3250642b":1,"chunk-2e62b616":1,"chunk-dcd3755c":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-016ba2f5":"4a73993b","chunk-10ee235a":"9a5e75f1","chunk-2bb42bd0":"ce7b5faf","chunk-3f722bdb":"d1a2980e","chunk-4fc65864":"3f811f34","chunk-6637d5f0":"04f8821e","chunk-778a7e22":"511b2a9b","chunk-8c8fb174":"04ba9ab1","chunk-c71b77a0":"31d6cfe0","chunk-390d4e2b":"1f89dc11","chunk-6c149b5a":"31d6cfe0","chunk-7f684f10":"30bbd0a7","chunk-c761207a":"bdd3dcd5","chunk-d758a428":"08b1c5ab","chunk-095f9bd6":"8c62f976","chunk-3f89b088":"f033670c","chunk-a8bcba9c":"b9e4ad4b","chunk-bd36926a":"e080073e","chunk-ee9621f0":"bff743c7","chunk-3250642b":"d0a2a98e","chunk-2e62b616":"21c73629","chunk-dcd3755c":"e3100eed"}[e]+".css",o=u.p+r,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var d=c[i],s=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(s===r||s===o))return t()}var l=document.getElementsByTagName("style");for(i=0;i<l.length;i++){d=l[i],s=d.getAttribute("data-href");if(s===r||s===o)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var r=t&&t.target&&t.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=r,delete a[e],f.parentNode.removeChild(f),n(c)},f.href=o;var m=document.getElementsByTagName("head")[0];m.appendChild(f)})).then((function(){a[e]=0})));var r=o[e];if(0!==r)if(r)t.push(r[2]);else{var c=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=c);var d,s=document.createElement("script");s.charset="utf-8",s.timeout=120,u.nc&&s.setAttribute("nonce",u.nc),s.src=i(e);var l=new Error;d=function(t){s.onerror=s.onload=null,clearTimeout(f);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",l.name="ChunkLoadError",l.type=r,l.request=a,n[1](l)}o[e]=void 0}};var f=setTimeout((function(){d({type:"timeout",target:s})}),12e4);s.onerror=s.onload=d,document.head.appendChild(s)}return Promise.all(t)},u.m=e,u.c=r,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)u.d(n,r,function(t){return e[t]}.bind(null,r));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/sgipad/",u.oe=function(e){throw e};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],s=d.push.bind(d);d.push=t,d=d.slice();for(var l=0;l<d.length;l++)t(d[l]);var f=s;c.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("cd49")},"0613":function(e,t,n){"use strict";n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return Y}));var r,a=n("5502"),o=(n("99af"),n("ade3"));(function(e){e["SET_ROUTES"]="SET_ROUTES"})(r||(r={}));var c,i=n("afbc"),u=Object(o["a"])({},r.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"));(function(e){e["ACTION_SET_ROUTES"]="ACTION_SET_ROUTES"})(c||(c={}));var s,l,f,m=function(e,t){return!t.meta||!t.meta.roles||e.some((function(e){var n;if(void 0!==(null===(n=t.meta)||void 0===n?void 0:n.roles))return t.meta.roles.includes(e)}))},h=function e(t,n){var r=[];return t.forEach((function(t){var a=Object(d["a"])({},t);m(n,a)&&(a.children&&(a.children=e(a.children,n)),r.push(a))})),r},b=Object(o["a"])({},c.ACTION_SET_ROUTES,(function(e,t){var n,a=e.commit;n=t.includes("admin")?i["a"]:h(i["a"],t),a(r.SET_ROUTES,n)})),p={routes:[],dynamicRoutes:[]},g={state:p,mutations:u,actions:b},O=(n("b0c0"),n("66d6")),v=n("5581"),E={token:Object(v["d"])()||"",openid:O["a"].openid,userName:Object(v["c"])()?Object(v["c"])().name:"",userId:Object(v["c"])()?Object(v["c"])().id:"",userPhone:Object(v["c"])()?Object(v["c"])().phone:0,projectId:Object(v["b"])()?Object(v["b"])():"",companyId:"",mac:Object(v["a"])()?Object(v["a"])():"",remoteControl:!1},T=n("a873"),k=(s={},Object(o["a"])(s,T["a"].SET_TOKEN,(function(e,t){e.token=t})),Object(o["a"])(s,T["a"].SET_USER_MAC,(function(e,t){e.mac=t})),Object(o["a"])(s,T["a"].SET_USER_NAME,(function(e,t){e.userName=t})),Object(o["a"])(s,T["a"].SET_USER_ID,(function(e,t){e.userId=t})),Object(o["a"])(s,T["a"].SET_USER_PHONE,(function(e,t){e.userPhone=t})),Object(o["a"])(s,T["a"].SET_PROJECT_ID,(function(e,t){Object(v["g"])(t),e.projectId=t})),Object(o["a"])(s,T["a"].SET_COMPANY_ID,(function(e,t){e.companyId=t})),Object(o["a"])(s,T["a"].SET_REMOTECONTROL,(function(e,t){e.remoteControl=t})),s),S=(n("96cf"),n("1da1")),j=n("d167"),y=(n("e7e5"),l={},Object(o["a"])(l,j["a"].ACTION_LOGIN,(function(e,t){return Object(S["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.commit,n(T["a"].SET_TOKEN,"eyJhbGciOiJIUzI1NiJ9.eyJidWlsZGluZ19pZCI6ImZmZDc4OGIwOTQzNTQ4NTFiMDM0NTY2YzRkMTJkMTFjIiwidXNlcl9pZCI6IjYwMmVmNzA5YmViNjRhMWY5YTRiNmFmMjE5NmQwYWY3IiwidXNlcl9uYW1lIjpudWxsLCJvd25lcl9pZCI6IjkzNmE4ZWFlMDJmOTExZWNiNTQyMDJiNzIzZjVmYmQwIiwibXlfdGhpcmRfaWQiOiIyMGQ4Mzg0OTZjMGQ0ODk4YjFkN2MxNmRkZTc5ZGQwNiIsInRoaXJkX3BsYXRmb3JtX2lkIjoib3pUVGs1UFJSdUNIRUNqUXZKSXJyT3A1MkRuNCIsInNUaW1lIjoxNjQ2MDM1ODYzNTYwLCJleHAiOjE2NDYzOTU4NjM1NjAsInR5cGUiOiJ3ZWNoYXQiLCJhcHBfaWQiOiJ3eDNhZGQ2MzJmZDMxNDU3YzcifQ.C0khcRbjp_VuGF8gzr-cdybPhX1U1bSEk_48ypub6Y0");case 3:case"end":return t.stop()}}),t)})))()})),Object(o["a"])(l,j["a"].ACTION_RESET_TOKEN,(function(e){var t=e.commit;Object(v["e"])(),t(T["a"].SET_TOKEN,"")})),Object(o["a"])(l,j["a"].ACTION_GET_USER_INFO,(function(e){return Object(S["a"])(regeneratorRuntime.mark((function t(){var n,r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.commit,r={userName:"admin",userPhone:11111111111,userId:"admin"},Object(v["h"])(JSON.stringify(r)),n(T["a"].SET_USER_NAME,r.userName),n(T["a"].SET_USER_PHONE,r.phone),n(T["a"].SET_USER_ID,r.userId),a=Object(v["a"])(),n(T["a"].SET_USER_MAC,a);case 8:case"end":return t.stop()}}),t)})))()})),Object(o["a"])(l,j["a"].ACTION_CHANGE_ROLES,(function(e,t){return Object(S["a"])(regeneratorRuntime.mark((function n(){var r,a,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.commit,a=t+"-token",o=Y(),r(T["a"].SET_TOKEN,a),Object(v["i"])(a),n.next=7,o.dispatch(j["a"].ACTION_GET_USER_INFO,void 0);case 7:o.dispatch(c.ACTION_SET_ROUTES,[]),o.state.permission.dynamicRoutes.forEach((function(e){i["c"].addRoute(e)}));case 9:case"end":return n.stop()}}),n)})))()})),Object(o["a"])(l,j["a"].ACTION_LOGIN_OUT,(function(e){var t=e.commit;Object(v["e"])(),t(T["a"].SET_TOKEN,""),Object(i["d"])()})),l),_={state:E,mutations:k,actions:y},N=n("d257"),I={airConditioner:!Object(N["o"])("portraitModule").airConditioner||Object(N["o"])("portraitModule").airConditioner,light:!Object(N["o"])("portraitModule").light||Object(N["o"])("portraitModule").light},w=n("93da"),M=(f={},Object(o["a"])(f,w["a"].SET_AIR,(function(e,t){e.airConditioner=t})),Object(o["a"])(f,w["a"].SET_LIGHT,(function(e,t){e.light=t})),f),C={state:I,mutations:M},R=!1,D=R?[Object(a["a"])({})]:[],A=Object(a["b"])({plugins:D,modules:{permission:g,user:_,portait:C}});function Y(){return A}},"0915":function(e,t,n){"use strict";n("66fb")},"314e":function(e,t,n){"use strict";n("921b")},"3ba9":function(e,t,n){"use strict";var r=n("7a23"),a={class:"header-title"};function o(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)}var c=n("5530"),i=n("ad06"),u=(n("c3a6"),n("6c02")),d=n("5581"),s=Object(r["defineComponent"])({props:{color:{type:String,default:function(){return"#fff"}},metaObj:{type:Object,default:function(){return{}}}},components:{VanIcon:i["b"]},setup:function(e){var t=Object(u["d"])(),n=Object(u["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(d["a"])();t.push({name:"home",query:{mac:e,type:"logoOut"}})}});return Object(r["onMounted"])((function(){})),Object(c["a"])({},Object(r["toRefs"])(a))}}),l=(n("314e"),n("6b0d")),f=n.n(l);const m=f()(s,[["render",o],["__scopeId","data-v-90cd68ae"]]);t["a"]=m},5581:function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return i})),n.d(t,"g",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return m})),n.d(t,"h",(function(){return h}));var r=n("66d6"),a=n("a78e"),o=n.n(a),c=function(){return o.a.get(r["a"].tokenKey)},i=function(){return o.a.get(r["a"].projectId)},u=function(e){return o.a.set(r["a"].projectId,e)},d=function(e){return o.a.set(r["a"].tokenKey,e)},s=function(){return o.a.remove(r["a"].tokenKey)},l=function(e){return o.a.set(r["a"].macKey,e)},f=function(){return o.a.get(r["a"].macKey)},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 E})),n.d(t,"c",(function(){return T})),n.d(t,"a",(function(){return k}));n("c975"),n("d3b7"),n("ac1f"),n("841c"),n("1276"),n("96cf");var r,a,o,c,i,u,d,s=n("1da1"),l=n("ba72");(function(e){e["FORM"]="application/x-www-form-urlencoded",e["JSON"]="application/json; charset=utf-8"})(r||(r={})),function(e){e["PC"]="PC"}(a||(a={})),function(e){e[e["LOG"]=0]="LOG",e[e["TOAST"]=1]="TOAST"}(o||(o={})),function(e){e["Development"]="development",e["Production"]="production"}(c||(c={})),function(e){e["Frontend"]="frontend",e["Backend"]="backend"}(i||(i={})),function(e){e["Hash"]="hash"}(u||(u={})),function(e){e["LocalStorage"]="localStorage",e["Cookie"]="cookie"}(d||(d={}));var f,m={title:"之江h5",baseURL:"/sgipad/",copyright:"zy",keepAliveMaxNum:99,routerMode:u.Hash,routesWhiteList:[],loadingText:"loading",tokenName:"token",tokenTableName:"token",storage:d.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"},h=m,b={token:"",contentType:r.JSON,version:null!==(f=h.version)&&void 0!==f?f:"1.0",device:a.PC},p={host:"/sgipad/",timeout:1e4,loading:!1,errorShowType:o.LOG,header:b,staticUrl:"https://brsg-test.tenants.link"},g=p,O=n("5581"),v=(n("e7e5"),n("d257")),E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{timeout:""},t={baseURL:g.host,headers:{token:Object(O["d"])(),"sso-token":Object(O["d"])(),"X-Forwarded-Token":Object(O["d"])()}};e.timeout&&(t.timeout=e.timeout);var n=new l["c"](t);return n.httpClient.interceptors.request.use((function(e){var t=Object(v["s"])(),n=Object(v["A"])(t),r=e.url;return-1!=r.indexOf("?")?e.url=e.url+"&"+n:e.url=e.url+"?"+n,e}),(function(e){})),n},T=function(e,t){return E().httpClient.post(e,t).then((function(e){var t=JSON.parse(JSON.stringify(e.data));return e.status>=200&&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){while(1)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)}}())},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"accessToken",t=location.search,n=new Object;if(-1!=t.indexOf("?"))for(var r=t.substr(1),a=r.split("&"),o=0;o<a.length;o++)n[a[o].split("=")[0]]=a[o].split("=")[1];var c=n[e]||"";return c}},"66d6":function(e,t,n){"use strict";var r=n("d4ec"),a=n("ade3"),o=function e(){Object(r["a"])(this,e)};Object(a["a"])(o,"sidebarStatusKey","vue3-typescript-admin-sidebarStatusKey"),Object(a["a"])(o,"languageKey","vue3-typescript-admin-languageKey"),Object(a["a"])(o,"sizeKey","vue3-typescript-admin-sizeKey"),Object(a["a"])(o,"tokenKey","accessToken"),Object(a["a"])(o,"projectId","projectId"),Object(a["a"])(o,"aseKey","vue3-typescript-admin-ase-key"),Object(a["a"])(o,"companyKey","245e7060643811eb934c0237aedb39a6"),Object(a["a"])(o,"openid","602ef709beb64a1f9a4b6af2196d0af7"),Object(a["a"])(o,"pubname","sagacarepad"),Object(a["a"])(o,"pubname1","sagacareAndtenantslink"),Object(a["a"])(o,"storageSpaceKey","historySpace"),Object(a["a"])(o,"historySearchSpaceKey","historySearchSpace"),Object(a["a"])(o,"storageFloorKey","historyFloor"),Object(a["a"])(o,"storageSpaceInfoKey","storageSpaceInfo"),Object(a["a"])(o,"userInfoKey","userInfo"),Object(a["a"])(o,"macKey","mac"),t["a"]=o},"66fb":function(e,t,n){},"758b":function(e,t,n){n("b680"),n("ac1f"),n("466d"),function(e,t){var n,r=e.document,a=r.documentElement,o=r.querySelector('meta[name="viewport"]'),c=r.querySelector('meta[name="flexible"]'),i=0,u=0,d=t.flexible||(t.flexible={});if(o){var s=o.getAttribute("content").match(/initial\-scale=([\d\.]+)/);s&&(u=parseFloat(s[1]),i=parseInt(1/u))}else if(c){var l=c.getAttribute("content");if(l){var f=l.match(/initial\-dpr=([\d\.]+)/),m=l.match(/maximum\-dpr=([\d\.]+)/);f&&(i=parseFloat(f[1]),u=parseFloat((1/i).toFixed(2))),m&&(i=parseFloat(m[1]),u=parseFloat((1/i).toFixed(2)))}}if(!i&&!u){e.navigator.appVersion.match(/android/gi);var h=e.navigator.appVersion.match(/iphone/gi),b=e.devicePixelRatio;i=h?b>=3&&(!i||i>=3)?3:b>=2&&(!i||i>=2)?2:1:1,u=1/i}if(a.setAttribute("data-dpr",i),!o)if(o=r.createElement("meta"),o.setAttribute("name","viewport"),o.setAttribute("content","initial-scale="+u+", maximum-scale="+u+", minimum-scale="+u+", user-scalable=no"),a.firstElementChild)a.firstElementChild.appendChild(o);else{var p=r.createElement("div");p.appendChild(o),r.write(p.innerHTML)}function g(){var t=a.getBoundingClientRect().width;t/i>1366&&(t=1366*i);var n=t/10;a.style.fontSize=n+"px",d.rem=e.rem=n}e.addEventListener("resize",(function(){clearTimeout(n),n=setTimeout(g,300)}),!1),e.addEventListener("pageshow",(function(e){e.persisted&&(clearTimeout(n),n=setTimeout(g,300))}),!1),"complete"===r.readyState?r.body.style.fontSize=12*i+"px":r.addEventListener("DOMContentLoaded",(function(e){r.body.style.fontSize=12*i+"px"}),!1),g(),d.dpr=e.dpr=i,d.refreshRem=g,d.rem2px=function(e){var t=parseFloat(e)*this.rem;return"string"===typeof e&&e.match(/rem$/)&&(t+="px"),t},d.px2rem=function(e){var t=parseFloat(e)/this.rem;return"string"===typeof e&&e.match(/px$/)&&(t+="rem"),t}}(window,window["lib"]||(window["lib"]={}))},"921b":function(e,t,n){},"93da":function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e["SET_AIR"]="SET_AIR",e["SET_LIGHT"]="SET_LIGHT"}(r||(r={}))},a873:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e["SET_TOKEN"]="SET_TOKEN",e["SET_USER_NAME"]="SET_USER_NAME",e["SET_USER_ID"]="SET_USER_ID",e["SET_USER_PHONE"]="SET_USER_PHONE",e["SET_PROJECT_ID"]="SET_PROJECT_ID",e["SET_COMPANY_ID"]="SET_COMPANY_ID",e["SET_REMOTECONTROL"]="SET_REMOTECONTROL",e["SET_USER_MAC"]="SET_USER_MAC"}(r||(r={}))},afbc:function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return O}));n("d3b7");var r=n("6c02"),a=function(){return n.e("chunk-4fc65864").then(n.bind(null,"7abe"))},o=function(){return Promise.all([n.e("chunk-d758a428"),n.e("chunk-c71b77a0"),n.e("chunk-ee9621f0"),n.e("chunk-390d4e2b"),n.e("chunk-3250642b")]).then(n.bind(null,"7f3f"))},c=function(){return Promise.all([n.e("chunk-c71b77a0"),n.e("chunk-390d4e2b"),n.e("chunk-6c149b5a")]).then(n.bind(null,"cda6"))},i=function(){return n.e("chunk-2bb42bd0").then(n.bind(null,"a89b"))},u=function(){return Promise.all([n.e("chunk-c71b77a0"),n.e("chunk-7f684f10")]).then(n.bind(null,"f299"))},d=function(){return n.e("chunk-c761207a").then(n.bind(null,"44dd"))},s=function(){return n.e("chunk-dcd3755c").then(n.bind(null,"c676"))},l=function(){return n.e("chunk-8c8fb174").then(n.bind(null,"f093"))},f=function(){return n.e("chunk-10ee235a").then(n.bind(null,"161f"))},m=function(){return n.e("chunk-016ba2f5").then(n.bind(null,"116c"))},h=function(){return Promise.all([n.e("chunk-d758a428"),n.e("chunk-ee9621f0"),n.e("chunk-2e62b616")]).then(n.bind(null,"09de"))},b=[{path:"/",redirect:"/home",meta:{title:"首页",hideHeader:!0}},{path:"/home",component:a,name:"home",meta:{title:"首页",hideHeader:!0}},{path:"/envmonitor",component:o,name:"envmonitor",meta:{title:"环境控制",hideHeader:!0}},{path:"/envmonitor-detail",component:c,name:"envmonitorDetail",meta:{title:"环境详情",color:"#fff",hideHeader:!0}},{path:"/user-portrait",component:i,name:"userPortrait",meta:{title:"节能评分",color:"#FFE823",hideHeader:!0}},{path:"/energy-savig",component:u,name:"energySavig",meta:{title:"我的节能",color:"#ECEFF4",hideHeader:!0}},{path:"/energy-detail",component:d,name:"energyDetail",meta:{title:"我的节能详情 ",color:"#E5E5E5",hideHeader:!0}},{path:"/today-energy-detail",component:s,name:"todayEnergyDetail",meta:{title:"今天新增 ",color:"#E5E5E5",hideHeader:!0}},{path:"/energy-rank",component:l,name:"energyRank",meta:{title:"节能排名 ",color:"#E5E5E5",hideHeader:!0}},{path:"/integral-desc",component:f,name:"integralDesc",meta:{title:"积分说明 ",color:"#E5E5E5",hideHeader:!0}},{path:"/record",component:m,name:"Record",meta:{title:"调节记录 ",color:"#E5E5E5",hideHeader:!0}},{path:"/mySpace",component:h,name:"mySpace",meta:{title:"切换空间",color:"#f7f8fa",hideHeader:!0}},{path:"/choice-project",component:function(){return Promise.all([n.e("chunk-d758a428"),n.e("chunk-bd36926a")]).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-d758a428"),n.e("chunk-095f9bd6")]).then(n.bind(null,"bd1a"))},name:"choiceSpace",meta:{title:"选择办公空间",color:"#F5F5F5",hideHeader:!1}},{path:"/set-main-space",component:function(){return n.e("chunk-3f722bdb").then(n.bind(null,"2804"))},name:"setMainSpace",meta:{title:"设置主空间",title1:"左滑动可删除空间",color:"#F5F5F5",hideHeader:!1}},{path:"/map-data",component:function(){return n.e("chunk-778a7e22").then(n.bind(null,"aa6b"))},name:"mapData",meta:{title:"处理地图数据",color:"#F5F5F5",hideHeader:!1}},{path:"/map-data-util",component:function(){return n.e("chunk-6637d5f0").then(n.bind(null,"4be3"))},name:"mapDataold",meta:{title:"处理地图数据",color:"#F5F5F5",hideHeader:!1}},{path:"/map-data-new",component:function(){return Promise.all([n.e("chunk-d758a428"),n.e("chunk-a8bcba9c")]).then(n.bind(null,"1d69"))},name:"mapDataNew",meta:{title:"地图数据处理",color:"#F5F5F5",hideHeader:!1}},{path:"/map-sichuan",component:function(){return Promise.all([n.e("chunk-d758a428"),n.e("chunk-3f89b088")]).then(n.bind(null,"e615"))},name:"map-sichuan",meta:{title:"四川大厦地图",color:"#F5F5F5",hideHeader:!1}}],p=[],g=Object(r["a"])({history:Object(r["b"])("/sgipad/"),routes:b});function O(){var e=g;g.matcher=e.matcher}t["c"]=g},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"};function o(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}))])}var c=n("5530"),i=n("3ba9"),u=n("6c02"),d=n("bc3a"),s=n.n(d),l=Object(r["defineComponent"])({components:{Header:i["a"]},setup:function(){var e=Object(u["c"])(),t=Object(r["reactive"])({route:e,transitionName:"slide-right",showHeader:!1,getPadVersion:function(){s.a.get("/sgipad/pad_mtime").then((function(e){var t=e.data||{},n=t.pad_mtime,r=localStorage.getItem("pad_mtime");r&&r!==n?(localStorage.setItem("pad_mtime",n),window.location.reload()):localStorage.setItem("pad_mtime",n)}))},timerPadVersion:function(){setInterval((function(){t.getPadVersion()}),5e3)}});return Object(r["nextTick"])((function(){var e=window.document;e.addEventListener("touchstart",(function(e){e.touches.length>1&&e.preventDefault()})),e.addEventListener("gesturestart",(function(e){e.preventDefault()}))})),Object(r["onMounted"])((function(){t.timerPadVersion()})),Object(c["a"])({},Object(r["toRefs"])(t))}}),f=(n("0915"),n("6b0d")),m=n.n(f);const h=m()(l,[["render",o],["__scopeId","data-v-4f0c3717"]]);var b=h,p=n("afbc"),g=n("0613"),O=(n("758b"),n("b20f"),n("d399")),v=(n("e7e5"),n("ad06")),E=(n("c3a6"),n("0b33")),T=(n("da3c"),n("5e46")),k=(n("bda7"),n("543e")),S=(n("ac1e"),n("e41f")),j=(n("8a58"),n("96cf"),n("1da1")),y=n("d167"),_=n("5581"),N=n("59b9");p["c"].beforeEach(function(){var e=Object(j["a"])(regeneratorRuntime.mark((function e(t,n,r){var a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=Object(g["b"])(),o=Object(N["a"])("mac"),o&&Object(_["f"])(o),e.next=5,a.dispatch(y["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)}}()),p["c"].afterEach((function(e){}));var I=Object(r["createApp"])(b),w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;O["a"].loading({duration:e,forbidClick:!0})},M=function(){O["a"].clear()};I.config.globalProperties.$imgUrl="http://api.sagacloud.cn/dp-auxiliary/image-service/common/image_get?systemId=dataPlatform",I.config.globalProperties.$fileUrl="http://api.sagacloud.cn/dp-auxiliary/image-service/common/file_get?systemId=dataPlatform",I.config.globalProperties.$toast=O["a"],I.config.globalProperties.$loadingStart=w,I.config.globalProperties.$loadinngEnd=M,I.use(O["a"]).use(v["b"]).use(T["a"]).use(E["a"]).use(k["b"]).use(S["b"]).use(g["a"]).use(p["c"]).mount("#app")},d167:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e["ACTION_LOGIN"]="ACTION_LOGIN",e["ACTION_RESET_TOKEN"]="ACTION_RESET_TOKEN",e["ACTION_GET_USER_INFO"]="ACTION_GET_USER_INFO",e["ACTION_CHANGE_ROLES"]="ACTION_CHANGE_ROLES",e["ACTION_LOGIN_OUT"]="ACTION_LOGIN_OUT",e["SET_USER_MAC"]="SET_USER_MAC",e["ACTION_GET_WORKSPACE"]="ACTION_GET_WORKSPACE"}(r||(r={}))},d257:function(e,t,n){"use strict";n.d(t,"A",(function(){return o})),n.d(t,"s",(function(){return c})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return u})),n.d(t,"r",(function(){return d})),n.d(t,"h",(function(){return s})),n.d(t,"x",(function(){return l})),n.d(t,"f",(function(){return f})),n.d(t,"m",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"B",(function(){return b})),n.d(t,"o",(function(){return p})),n.d(t,"y",(function(){return v})),n.d(t,"v",(function(){return E})),n.d(t,"p",(function(){return T})),n.d(t,"u",(function(){return k})),n.d(t,"j",(function(){return S})),n.d(t,"z",(function(){return j})),n.d(t,"i",(function(){return y})),n.d(t,"t",(function(){return _})),n.d(t,"l",(function(){return N})),n.d(t,"g",(function(){return I})),n.d(t,"q",(function(){return w})),n.d(t,"k",(function(){return M})),n.d(t,"n",(function(){return C})),n.d(t,"d",(function(){return R})),n.d(t,"w",(function(){return D})),n.d(t,"e",(function(){return A}));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="";for(var n in e)-1!==e[n]&&(t+=n+"="+e[n]+"&");return t=t.substring(0,t.length-1),t}),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=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"YYYYMMDD",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=t||new Date,r=n.getFullYear(),a=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),c=n.getHours()<10?"0"+n.getHours():n.getHours(),i=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes();return"YYYY年MM月DD日"===e?r+"年"+a+"月"+o+"日":"YYYY.MM"===e?r+"."+a:"YYYYMM"===e?r+""+a:"YYYY-MM-DD"===e?r+"-"+a+"-"+o:"YYYY.MM.DD HH:mm"===e?r+"."+a+"."+o+" "+c+":"+i:r+""+a+o},u=function(e){return e?e.replace(/^(\d{4})(\d{2})(\d{2})$/,"$1-$2-$3"):""},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=new Date;t.setTime(t.getTime()+864e5);var n=t.getFullYear(),r=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate();return n+e+r+e+a};function s(){return(new Date).getHours()}function l(e,t){return t?"".concat("/sgipad/","images/").concat(e,"/").concat(t):""}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=new Date;t.setFullYear(t.getFullYear()+e);var n=t.getFullYear(),r=t.getMonth()+1;return new Date(n+"/"+r)}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=new Date,n=t.getFullYear(),r=t.getMonth();return 0===r&&(r=12,n-=1),r<10&&(r="0"+r),"YYYY.MM"===e?n+"."+r:"YYYY年MM月"===e?n+"年"+r+"月":n+""+r}var h=function(e){var t=e?new Date(e):new Date,n=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,r=t.getDate()<10?"0"+t.getDate():t.getDate(),a=t.getFullYear(),o=t.getHours()<10?"0"+t.getHours():t.getHours(),c=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes();return[a+"年"+n+"月",n+"月"+r+"日",o+":"+c]},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t){var n=JSON.stringify(t);sessionStorage.setItem(e,n)}},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e){var t=sessionStorage.getItem(e);if(t)return JSON.parse(t)}return""},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t)if(t instanceof Object){var n=JSON.stringify(t);localStorage.setItem(e,n)}else localStorage.setItem(e,t)},O=function(e){if(e){var t=localStorage.getItem(e);return t?JSON.parse(t):""}return""},v=function(e){g(a["a"].storageSpaceInfoKey,e)},E=function(e,t,n){var r=O(a["a"].storageSpaceKey)?O(a["a"].storageSpaceKey):{},o="".concat(e,",").concat(t);r[o]=n,g(a["a"].storageSpaceKey,r)},T=function(){var e=O(a["a"].storageSpaceKey);return e},k=function(e,t){var n=O(a["a"].storageFloorKey)?O(a["a"].storageFloorKey):{};n[e]=t,g(a["a"].storageFloorKey,n)},S=function(){var e=O(a["a"].storageFloorKey);return e},j=function(e){var t=O(a["a"].historySearchSpaceKey),n=!1;t=t||[],t.map((function(t){t.id===e.id&&(n=!0)})),n||t.push(e),g(a["a"].historySearchSpaceKey,t)},y=function(){return O(a["a"].historySearchSpaceKey)?O(a["a"].historySearchSpaceKey):[]},_=function(e){var t=new Array("周日","周一","周二","周三","周四","周五","周六"),n=t[e];return n},N=function(){var e=new Date,t=e.getDay(),n=_(t);return n},I=function(e){return e.getDate()<10?"0"+e.getDate():e.getDate()},w=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},M=function(){var e=new Date,t=e.getHours(),n=e.getMinutes(),r=e.getHours();return n<30?(t+=":00",r*=2):(t+=":30",r=2*r+1),[t,r]},C=function(){var e=new Date,t=e.getHours(),n=e.getMinutes();return t<10&&(t="0"+t),n<10&&(n="0"+n),t+""+n+"00"},R=function(e){if(e){var t=(e/1e4).toFixed(2);return t=t.replace(".",":"),t}return""},D=function(e,t,n){return n+""+Math.round(Math.random()*(t-e)+e)},A=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],c=arguments.length>5?arguments[5]:void 0,d=new Date,s=new Date(d.setTime(d.getTime()+864e5)),l=i("YYYY-MM-DD"),f=i("YYYY-MM-DD",s);o.map((function(e){var t=u(e.date),n=_(new Date(t).getDay());t==l?n="今日":t==f&&(n="次日"),e.week=n}));var m="",h=o[t].cusStartTime,b=o[t].cusEndTime;if(1===a){if("240000"===r){var p,g,O=null!==(p=null===(g=o[t])||void 0===g?void 0:g.customSceneList)&&void 0!==p?p:[];if("000000"===h&&(m=o[t].week,r=b),O.map((function(e){("000000"===e.startTime||r===e.startTime)&&(m=o[t].week,r=e.endTime),r===h&&(m=o[t].week,r=b)})),m){var v=t+1;return c.text=m,v<o.length-1?e(v,n,r,1,o,c):{text:c.text,startTime:n,endTime:r}}return{text:c.text,startTime:n,endTime:r}}return{text:c.text,startTime:n,endTime:r}}var E,T,k=M()[0].replace(":","")+"00",S=null!==(E=null===(T=o[t])||void 0===T?void 0:T.customSceneList)&&void 0!==E?E:[];if(S.map((function(e){if(0===t?k<e.startTime&&(n&&r||(n=e.startTime,r=e.endTime,m=o[t].week)):n&&r?"240000"==r?"000000"==e.startTime&&(r=e.endTime,m=o[t].week):r===e.startTime&&(r=e.endTime,m=o[t].week):(n=e.startTime,r=e.endTime,m=o[t].week),c.text){var a=c.text.split("~")[0];c.text=a,m&&m!=a&&(c.text=a+"~"+m)}else c.text=m})),n&&r){if("240000"==r){var j=t+1;return j<o.length-1?e(j,n,r,2,o,c):{text:c.text,startTime:n,endTime:r}}return{text:c.text,startTime:n,endTime:r}}var y=t+1;return y<o.length-1?e(y,n,r,2,o,c):{text:c.text,startTime:n,endTime:r}}}});
- //# sourceMappingURL=app.9049908c.js.map
|