app.0da2868e.js 15 KB

12
  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(c,a)&&c[a]&&f.push(c[a][0]),c[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);b&&b(t);while(f.length)f.shift()();return o.push.apply(o,s||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,a=1;a<n.length;a++){var i=n[a];0!==c[i]&&(r=!1)}r&&(o.splice(t--,1),e=u(u.s=n[0]))}return e}var r={},a={app:0},c={app:0},o=[];function i(e){return u.p+"static/js/"+({}[e]||e)+"."+{"chunk-4b78c198":"eb4afbda","chunk-1c7ba3e5":"73dc2fe3","chunk-1c637405":"c0f935db","chunk-48c88b60":"292db9ff","chunk-71649a01":"c2d923aa","chunk-fd210a4a":"b9f968ee"}[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-1c637405":1,"chunk-48c88b60":1,"chunk-71649a01":1,"chunk-fd210a4a":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-4b78c198":"31d6cfe0","chunk-1c7ba3e5":"31d6cfe0","chunk-1c637405":"20a9bb40","chunk-48c88b60":"d26f264f","chunk-71649a01":"9f6a6d1c","chunk-fd210a4a":"82ba9f66"}[e]+".css",c=u.p+r,o=document.getElementsByTagName("link"),i=0;i<o.length;i++){var s=o[i],d=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===r||d===c))return t()}var f=document.getElementsByTagName("style");for(i=0;i<f.length;i++){s=f[i],d=s.getAttribute("data-href");if(d===r||d===c)return t()}var b=document.createElement("link");b.rel="stylesheet",b.type="text/css",b.onload=t,b.onerror=function(t){var r=t&&t.target&&t.target.src||c,o=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=r,delete a[e],b.parentNode.removeChild(b),n(o)},b.href=c;var O=document.getElementsByTagName("head")[0];O.appendChild(b)})).then((function(){a[e]=0})));var r=c[e];if(0!==r)if(r)t.push(r[2]);else{var o=new Promise((function(t,n){r=c[e]=[t,n]}));t.push(r[2]=o);var s,d=document.createElement("script");d.charset="utf-8",d.timeout=120,u.nc&&d.setAttribute("nonce",u.nc),d.src=i(e);var f=new Error;s=function(t){d.onerror=d.onload=null,clearTimeout(b);var n=c[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",f.name="ChunkLoadError",f.type=r,f.request=a,n[1](f)}c[e]=void 0}};var b=setTimeout((function(){s({type:"timeout",target:d})}),12e4);d.onerror=d.onload=s,document.head.appendChild(d)}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="/sk/",u.oe=function(e){throw e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],d=s.push.bind(s);s.push=t,s=s.slice();for(var f=0;f<s.length;f++)t(s[f]);var b=d;o.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 R})),n.d(t,"b",(function(){return k}));var r,a=n("5502"),c=(n("99af"),n("ade3"));(function(e){e["SET_ROUTES"]="SET_ROUTES"})(r||(r={}));var o,i=n("afbc"),u=Object(c["a"])({},r.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"));(function(e){e["ACTION_SET_ROUTES"]="ACTION_SET_ROUTES"})(o||(o={}));var d,f,b=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)}))},O=function e(t,n){var r=[];return t.forEach((function(t){var a=Object(s["a"])({},t);b(n,a)&&(a.children&&(a.children=e(a.children,n)),r.push(a))})),r},l=Object(c["a"])({},o.ACTION_SET_ROUTES,(function(e,t){var n,a=e.commit;n=t.includes("admin")?i["a"]:O(i["a"],t),a(r.SET_ROUTES,n)})),m={routes:[],dynamicRoutes:[]},p={state:m,mutations:u,actions:l},h=(n("b0c0"),n("66d6")),E=n("5581"),j={token:Object(E["d"])()||"",openid:h["a"].openid,userName:Object(E["c"])()?Object(E["c"])().name:"",userId:Object(E["c"])()?Object(E["c"])().id:"",userPhone:Object(E["c"])()?Object(E["c"])().phone:0,projectId:Object(E["b"])()?Object(E["b"])():"",companyId:"",mac:Object(E["a"])()?Object(E["a"])():"",remoteControl:!1};(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"})(d||(d={}));var T,_=(f={},Object(c["a"])(f,d.SET_TOKEN,(function(e,t){e.token=t})),Object(c["a"])(f,d.SET_USER_MAC,(function(e,t){e.mac=t})),Object(c["a"])(f,d.SET_USER_NAME,(function(e,t){e.userName=t})),Object(c["a"])(f,d.SET_USER_ID,(function(e,t){e.userId=t})),Object(c["a"])(f,d.SET_USER_PHONE,(function(e,t){e.userPhone=t})),Object(c["a"])(f,d.SET_PROJECT_ID,(function(e,t){Object(E["f"])(t),e.projectId=t})),Object(c["a"])(f,d.SET_COMPANY_ID,(function(e,t){e.companyId=t})),Object(c["a"])(f,d.SET_REMOTECONTROL,(function(e,t){e.remoteControl=t})),f),S=(n("96cf"),n("1da1"));(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"})(T||(T={}));n("e7e5");var v,N=(v={},Object(c["a"])(v,T.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(d.SET_TOKEN,"eyJhbGciOiJIUzI1NiJ9.eyJidWlsZGluZ19pZCI6ImZmZDc4OGIwOTQzNTQ4NTFiMDM0NTY2YzRkMTJkMTFjIiwidXNlcl9pZCI6IjYwMmVmNzA5YmViNjRhMWY5YTRiNmFmMjE5NmQwYWY3IiwidXNlcl9uYW1lIjpudWxsLCJvd25lcl9pZCI6IjkzNmE4ZWFlMDJmOTExZWNiNTQyMDJiNzIzZjVmYmQwIiwibXlfdGhpcmRfaWQiOiIyMGQ4Mzg0OTZjMGQ0ODk4YjFkN2MxNmRkZTc5ZGQwNiIsInRoaXJkX3BsYXRmb3JtX2lkIjoib3pUVGs1UFJSdUNIRUNqUXZKSXJyT3A1MkRuNCIsInNUaW1lIjoxNjQ2MDM1ODYzNTYwLCJleHAiOjE2NDYzOTU4NjM1NjAsInR5cGUiOiJ3ZWNoYXQiLCJhcHBfaWQiOiJ3eDNhZGQ2MzJmZDMxNDU3YzcifQ.C0khcRbjp_VuGF8gzr-cdybPhX1U1bSEk_48ypub6Y0");case 3:case"end":return t.stop()}}),t)})))()})),Object(c["a"])(v,T.ACTION_RESET_TOKEN,(function(e){var t=e.commit;Object(E["e"])(),t(d.SET_TOKEN,"")})),Object(c["a"])(v,T.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(E["g"])(JSON.stringify(r)),n(d.SET_USER_NAME,r.userName),n(d.SET_USER_PHONE,r.phone),n(d.SET_USER_ID,r.userId),a=Object(E["a"])(),n(d.SET_USER_MAC,a);case 8:case"end":return t.stop()}}),t)})))()})),Object(c["a"])(v,T.ACTION_CHANGE_ROLES,(function(e,t){return Object(S["a"])(regeneratorRuntime.mark((function n(){var r,a,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.commit,a=t+"-token",c=k(),r(d.SET_TOKEN,a),Object(E["h"])(a),n.next=7,c.dispatch(T.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"])(v,T.ACTION_LOGIN_OUT,(function(e){var t=e.commit;Object(E["e"])(),t(d.SET_TOKEN,""),Object(i["d"])()})),v),y={state:j,mutations:_,actions:N},I=!1,g=I?[Object(a["a"])({})]:[],R=Object(a["b"])({plugins:g,modules:{permission:p,user:y}});function k(){return R}},"314e":function(e,t,n){"use strict";n("921b")},5581:function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"f",(function(){return u})),n.d(t,"h",(function(){return s})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return b})),n.d(t,"g",(function(){return O}));var r=n("66d6"),a=n("a78e"),c=n.n(a),o=function(){return c.a.get(r["a"].tokenKey)},i=function(){return c.a.get(r["a"].projectId)},u=function(e){return c.a.set(r["a"].projectId,e)},s=function(e){return c.a.set(r["a"].tokenKey,e)},d=function(){return c.a.remove(r["a"].tokenKey)},f=function(){return c.a.get(r["a"].macKey)},b=function(){var e=sessionStorage.getItem(r["a"].userInfoKey);return e?JSON.parse(e):""},O=function(e){return sessionStorage.setItem(r["a"].userInfoKey,e)}},"66d6":function(e,t,n){"use strict";var r=n("d4ec"),a=n("ade3"),c=function e(){Object(r["a"])(this,e)};Object(a["a"])(c,"sidebarStatusKey","vue3-typescript-admin-sidebarStatusKey"),Object(a["a"])(c,"languageKey","vue3-typescript-admin-languageKey"),Object(a["a"])(c,"sizeKey","vue3-typescript-admin-sizeKey"),Object(a["a"])(c,"tokenKey","accessToken"),Object(a["a"])(c,"projectId","projectId"),Object(a["a"])(c,"aseKey","vue3-typescript-admin-ase-key"),Object(a["a"])(c,"companyKey","245e7060643811eb934c0237aedb39a6"),Object(a["a"])(c,"openid","602ef709beb64a1f9a4b6af2196d0af7"),Object(a["a"])(c,"pubname","sagacarepad"),Object(a["a"])(c,"pubname1","sagacareAndtenantslink"),Object(a["a"])(c,"storageSpaceKey","historySpace"),Object(a["a"])(c,"historySearchSpaceKey","historySearchSpace"),Object(a["a"])(c,"storageFloorKey","historyFloor"),Object(a["a"])(c,"storageSpaceInfoKey","storageSpaceInfo"),Object(a["a"])(c,"userInfoKey","userInfo"),Object(a["a"])(c,"macKey","mac"),t["a"]=c},"758b":function(e,t,n){n("b680"),n("ac1f"),n("466d"),function(e,t){var n,r=e.document,a=r.documentElement,c=r.querySelector('meta[name="viewport"]'),o=r.querySelector('meta[name="flexible"]'),i=0,u=0,s=t.flexible||(t.flexible={});if(c){var d=c.getAttribute("content").match(/initial\-scale=([\d\.]+)/);d&&(u=parseFloat(d[1]),i=parseInt(1/u))}else if(o){var f=o.getAttribute("content");if(f){var b=f.match(/initial\-dpr=([\d\.]+)/),O=f.match(/maximum\-dpr=([\d\.]+)/);b&&(i=parseFloat(b[1]),u=parseFloat((1/i).toFixed(2))),O&&(i=parseFloat(O[1]),u=parseFloat((1/i).toFixed(2)))}}if(!i&&!u){e.navigator.appVersion.match(/android/gi);var l=e.navigator.appVersion.match(/iphone/gi),m=e.devicePixelRatio;i=l?m>=3&&(!i||i>=3)?3:m>=2&&(!i||i>=2)?2:1:1,u=1/i}if(a.setAttribute("data-dpr",i),!c)if(c=r.createElement("meta"),c.setAttribute("name","viewport"),c.setAttribute("content","initial-scale="+u+", maximum-scale="+u+", minimum-scale="+u+", user-scalable=no"),a.firstElementChild)a.firstElementChild.appendChild(c);else{var p=r.createElement("div");p.appendChild(c),r.write(p.innerHTML)}function h(){var t=a.getBoundingClientRect().width;t/i>1920&&(t=1920*i);var n=t/10;a.style.fontSize=n+"px",s.rem=e.rem=n}e.addEventListener("resize",(function(){clearTimeout(n),n=setTimeout(h,300)}),!1),e.addEventListener("pageshow",(function(e){e.persisted&&(clearTimeout(n),n=setTimeout(h,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),h(),s.dpr=e.dpr=i,s.refreshRem=h,s.rem2px=function(e){var t=parseFloat(e)*this.rem;return"string"===typeof e&&e.match(/rem$/)&&(t+="px"),t},s.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){},ac06:function(e,t,n){},afbc:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return f}));n("d3b7");var r=n("6c02"),a=function(){return Promise.all([n.e("chunk-4b78c198"),n.e("chunk-fd210a4a")]).then(n.bind(null,"7abe"))},c=function(){return Promise.all([n.e("chunk-4b78c198"),n.e("chunk-71649a01")]).then(n.bind(null,"1b22"))},o=function(){return Promise.all([n.e("chunk-4b78c198"),n.e("chunk-1c7ba3e5"),n.e("chunk-48c88b60")]).then(n.bind(null,"5cd1"))},i=function(){return Promise.all([n.e("chunk-4b78c198"),n.e("chunk-1c7ba3e5"),n.e("chunk-1c637405")]).then(n.bind(null,"b4ae"))},u=[{path:"/",redirect:"/index",meta:{title:"首页",hideHeader:!0}},{path:"/index",component:c,name:"tiantan",meta:{title:"天团",hideHeader:!0}},{path:"/home",component:a,name:"home",meta:{title:"首页",hideHeader:!0}},{path:"/weather",component:o,name:"weather",meta:{title:"天气",hideHeader:!0}},{path:"/weather-test",component:i,name:"weatherTest",meta:{title:"天气",hideHeader:!0}}],s=[],d=Object(r["a"])({history:Object(r["b"])("/sk/"),routes:u});function f(){var e=d;d.matcher=e.matcher}t["c"]=d},b20f:function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},bdcd:function(e,t,n){"use strict";n("ac06")},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 c(e,t,n,c,o,i){var u=Object(r["D"])("router-view");return Object(r["x"])(),Object(r["e"])("div",a,[(Object(r["x"])(),Object(r["c"])(u,{key:e.route.fullPath}))])}var o=n("5530"),i={class:"header-title"};function u(e,t,n,a,c,o){var u=Object(r["D"])("VanIcon");return Object(r["x"])(),Object(r["e"])("div",{class:"ignore_com-top",id:"header",style:Object(r["r"])({background:e.color})},[Object(r["f"])("div",{class:"header",style:Object(r["r"])({background:e.color})},[Object(r["f"])("div",{class:"header-return",onClick:t[0]||(t[0]=function(){return e.goBack&&e.goBack.apply(e,arguments)})},[Object(r["i"])(u,{name:"arrow-left"})]),Object(r["f"])("div",i,[Object(r["f"])("span",null,Object(r["F"])(e.route.meta.title),1),Object(r["f"])("span",null,Object(r["F"])(e.route.meta.title1),1)]),e.metaObj.showLogoOut?(Object(r["x"])(),Object(r["e"])("div",{key:0,class:"return-login",onClick:t[1]||(t[1]=function(){return e.goLogin&&e.goLogin.apply(e,arguments)})}," 退出 ")):Object(r["d"])("",!0)],4)],4)}var s=n("ad06"),d=(n("c3a6"),n("6c02")),f=n("5581"),b=Object(r["j"])({props:{color:{type:String,default:function(){return"#fff"}},metaObj:{type:Object,default:function(){return{}}}},components:{VanIcon:s["a"]},setup:function(e){var t=Object(d["d"])(),n=Object(d["c"])(),a=Object(r["B"])({route:n,goBack:function(){n.meta.toName?t.push({name:n.meta.toName}):t.go(-1)},goLogin:function(){var e=Object(f["a"])();t.push({name:"home",query:{mac:e,type:"logoOut"}})}});return Object(r["v"])((function(){})),Object(o["a"])({},Object(r["G"])(a))}}),O=(n("314e"),n("6b0d")),l=n.n(O);const m=l()(b,[["render",u],["__scopeId","data-v-90cd68ae"]]);var p=m,h=Object(r["j"])({components:{Header:p},setup:function(){var e=Object(d["c"])(),t=Object(r["B"])({route:e});return Object(r["v"])((function(){})),Object(o["a"])({},Object(r["G"])(t))}});n("bdcd");const E=l()(h,[["render",c],["__scopeId","data-v-df9afb06"]]);var j=E,T=n("afbc"),_=n("0613"),S=(n("758b"),n("b20f"),n("96cf"),n("1da1"));T["c"].beforeEach(function(){var e=Object(S["a"])(regeneratorRuntime.mark((function e(t,n,r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r();case 1:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}()),T["c"].afterEach((function(e){}));var v=Object(r["b"])(j);v.use(_["a"]).use(T["c"]).mount("#app")}});
  2. //# sourceMappingURL=app.0da2868e.js.map