You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

2 lines
27 KiB

  1. (function(e){function n(n){for(var c,a,u=n[0],i=n[1],s=n[2],f=0,d=[];f<u.length;f++)a=u[f],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&d.push(o[a][0]),o[a]=0;for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c]);l&&l(n);while(d.length)d.shift()();return r.push.apply(r,s||[]),t()}function t(){for(var e,n=0;n<r.length;n++){for(var t=r[n],c=!0,a=1;a<t.length;a++){var u=t[a];0!==o[u]&&(c=!1)}c&&(r.splice(n--,1),e=i(i.s=t[0]))}return e}var c={},a={app:0},o={app:0},r=[];function u(e){return i.p+"static/js/"+({}[e]||e)+"."+{"chunk-05a1125b":"f6c42bae","chunk-0d3a42ee":"192952df","chunk-1ee9f93c":"ba521ac7","chunk-2d0c061a":"88b4c16d","chunk-2d224b2b":"b6c4488a","chunk-2d226007":"9b7f4b69","chunk-2d22fcc4":"9b6ec127","chunk-3fe09320":"f76e025f","chunk-3fe478f8":"88da90da","chunk-5acb4ad4":"94bdc5a0","chunk-6610d797":"001c8e88","chunk-a57ac5ae":"e3a15080","chunk-b5d13ce8":"175e2b6b","chunk-ea6236fc":"e3af02a0","chunk-14e61ccb":"5d8a55e0","chunk-1fe39068":"a2424213","chunk-1fe40532":"5bf10451","chunk-2d0b3688":"ce3dcf9d","chunk-2d0cf6a4":"5db3cb21","chunk-2d0dddf0":"4593b876","chunk-2d0e148e":"cba5b2de","chunk-2d207f39":"b7b4c7a1","chunk-2d21b850":"5fed1b8d","chunk-578abaf6":"d4c104e0","chunk-0f09bee9":"94908814","chunk-f6418e24":"a4806ce0","chunk-385437ae":"120f207a","chunk-08ae55de":"00dbf51a","chunk-0edf1e34":"9ac29810","chunk-1480e558":"dd5c3d17","chunk-2027ffed":"9bae38e5","chunk-3904fda1":"d6261e63","chunk-4022a95c":"673a43a8","chunk-43839702":"ec37848e","chunk-355b8107":"494cbcb5","chunk-5cefa2e4":"01bd63cf","chunk-74b26ff1":"6dd5963a","chunk-c1adec5a":"b938c7fa","chunk-c44fae9e":"b0a975dc","chunk-ef8ce8b2":"0b6478d2","chunk-f8710098":"952452f7","chunk-eb6bd3dc":"c2fb356c","chunk-7b17780a":"831332db","chunk-fa61d866":"35914497"}[e]+".js"}function i(n){if(c[n])return c[n].exports;var t=c[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-05a1125b":1,"chunk-0d3a42ee":1,"chunk-1ee9f93c":1,"chunk-6610d797":1,"chunk-ea6236fc":1,"chunk-0f09bee9":1,"chunk-385437ae":1,"chunk-08ae55de":1,"chunk-0edf1e34":1,"chunk-1480e558":1,"chunk-2027ffed":1,"chunk-3904fda1":1,"chunk-4022a95c":1,"chunk-43839702":1,"chunk-355b8107":1,"chunk-5cefa2e4":1,"chunk-74b26ff1":1,"chunk-c1adec5a":1,"chunk-c44fae9e":1,"chunk-ef8ce8b2":1,"chunk-f8710098":1,"chunk-7b17780a":1};a[e]?n.push(a[e]):0!==a[e]&&t[e]&&n.push(a[e]=new Promise((function(n,t){for(var c="static/css/"+({}[e]||e)+"."+{"chunk-05a1125b":"0cea0e94","chunk-0d3a42ee":"74b1f484","chunk-1ee9f93c":"697caf2e","chunk-2d0c061a":"31d6cfe0","chunk-2d224b2b":"31d6cfe0","chunk-2d226007":"31d6cfe0","chunk-2d22fcc4":"31d6cfe0","chunk-3fe09320":"31d6cfe0","chunk-3fe478f8":"31d6cfe0","chunk-5acb4ad4":"31d6cfe0","chunk-6610d797":"0c46bf74","chunk-a57ac5ae":"31d6cfe0","chunk-b5d13ce8":"31d6cfe0","chunk-ea6236fc":"946d3591","chunk-14e61ccb":"31d6cfe0","chunk-1fe39068":"31d6cfe0","chunk-1fe40532":"31d6cfe0","chunk-2d0b3688":"31d6cfe0","chunk-2d0cf6a4":"31d6cfe0","chunk-2d0dddf0":"31d6cfe0","chunk-2d0e148e":"31d6cfe0","chunk-2d207f39":"31d6cfe0","chunk-2d21b850":"31d6cfe0","chunk-578abaf6":"31d6cfe0","chunk-0f09bee9":"64c8ed61","chunk-f6418e24":"31d6cfe0","chunk-385437ae":"e17a55c4","chunk-08ae55de":"a9192e1b","chunk-0edf1e34":"52b4af07","chunk-1480e558":"1dfaa181","chunk-2027ffed":"9ae5818a","chunk-3904fda1":"90cc45f5","chunk-4022a95c":"d1325668","chunk-43839702":"8ab88330","chunk-355b8107":"d7c3bb13","chunk-5cefa2e4":"74f669f0","chunk-74b26ff1":"351d7309","chunk-c1adec5a":"9fbf18ee","chunk-c44fae9e":"d20bd789","chunk-ef8ce8b2":"65074e9d","chunk-f8710098":"1bc94422","chunk-eb6bd3dc":"31d6cfe0","chunk-7b17780a":"028d6876","chunk-fa61d866":"31d6cfe0"}[e]+".css",o=i.p+c,r=document.getElementsByTagName("link"),u=0;u<r.length;u++){var s=r[u],f=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===c||f===o))return n()}var d=document.getElementsByTagName("style");for(u=0;u<d.length;u++){s=d[u],f=s.getAttribute("data-href");if(f===c||f===o)return n()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=n,l.onerror=function(n){var c=n&&n.target&&n.target.src||o,r=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=c,delete a[e],l.parentNode.removeChild(l),t(r)},l.href=o;var h=document.getElementsByTagName("head")[0];h.appendChild(l)})).then((function(){a[e]=0})));var c=o[e];if(0!==c)if(c)n.push(c[2]);else{var r=new Promise((function(n,t){c=o[e]=[n,t]}));n.push(c[2]=r);var s,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=u(e);var d=new Error;s=function(n){f.onerror=f.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var c=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;d.message="Loading chunk "+e+" failed.\n("+c+": "+a+")",d.name="ChunkLoadError",d.type=c,d.request=a,t[1](d)}o[e]=void 0}};var l=setTimeout((function(){s({type:"timeout",target:f})}),12e4);f.onerror=f.onload=s,document.head.appendChild(f)}return Promise.all(n)},i.m=e,i.c=c,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},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,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var c in e)i.d(t,c,function(n){return e[n]}.bind(null,c));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="/",i.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],f=s.push.bind(s);s.push=n,s=s.slice();for(var d=0;d<s.length;d++)n(s[d]);var l=f;r.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("56d7")},"0f13":function(e,n,t){"use strict";t.d(n,"b",(function(){return c})),t.d(n,"d",(function(){return a})),t.d(n,"a",(function(){return o})),t.d(n,"c",(function(){return r}));t("c975");var c={MANAGE_CENTER:"MANAGE_CENTER",COMPANY:"COMPANY",TEMPLATE_CONSOLE:"TEMPLATE_CONSOLE"};function a(e,n,t,c){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return{platformType:e,orgId:n,orgLogo:c,orgName:t,accessList:a}}var o={CompanyConsole:"company_console",ProjectManager:"project_manager"};function r(e,n){return-1!==e.indexOf(n)}},"3de1":function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return r})),t.d(n,"e",(function(){return u})),t.d(n,"d",(function(){return i})),t.d(n,"a",(function(){return s}));t("99af"),t("13d5"),t("fb6a"),t("4fad"),t("d3b7");var c=t("3835"),a=t("2b0e");function o(e){return Object.entries(e).reduce((function(e,n){var t=Object(c["a"])(n,2),a=t[0],o=t[1];return e["".concat(a[0].toLocaleLowerCase()).concat(a.slice(1))]=o,e}),{})}function r(e){return Object.entries(e).reduce((function(e,n){var t=Object(c["a"])(n,2),a=t[0],o=t[1];return e["".concat(a[0].toLocaleUpperCase()).concat(a.slice(1))]=o,e}),{})}var u=function(e){return new Promise((function(n){return setTimeout(n,e)}))},i={success:function(e){a["default"].prototype.$notify({message:e,type:["success"],duration:2500})},error:function(e){a["default"].prototype.$notify({message:e,type:["error"],duration:2500})},info:function(e){a["default"].prototype.$notify({message:e,type:"info",offset:100,duration:2500})},warning:function(e){a["default"].prototype.$notify({message:e,type:["warning"],duration:2500})}};function s(e,n){var t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},"41cb":function(e,n,t){"use strict";t("b0c0"),t("d3b7");var c=t("2b0e"),a=t("8c4f"),o={login:"LOCKING | 登录",project:"LOCKING | 项目编辑",platform:"LOCKING | 平台选择",template:"LOCKING | 模板控制台",projnotice:"LOCKING | 更新提醒",notFound:"404 | 未找到该页面",workspace:"LOCKING | 项目详情",search:"LOCKING | 搜索",recycle:"LOCKING | 回收站",cloud:"LOCKING | 云盘",cloudrecycle:"LOCKING | 云回收站",cloudsource:"LOCKING | 云资源管理器",company:"LOCKING | 企业后台",message2:"LOCKING | 企业后台",company_message:"LOCKING | 平台消息",company_user:"LOCKING | 通讯录",company_project:"LOCKING | 项目管理",company_template:"LOCKING | 模板与应用",company_setting:"LOCKING | 通用设置",company_template_detail:"LOCKING | 模板查看",company_app:"LOCKING | 应用",company_template_market:"LOCKING | 应用市场",system:"LOCKING | 总后台",system_template:"LOCKING | 流程模板",system_template_mind:"LOCKING | 思维导图",system_template_matrix:"LOCKING | 矩阵模板",system_runmanage:"LOCKING | 运行管理",system_appcenter:"LOCKING | 应用管理",system_setting:"LOCKING | 总体权限",system_appinfo:"LOCKING | 应用介绍",system_template_file:"流程模板 | 样板文件"};c["default"].use(a["a"]);var r=new a["a"]({mode:"hash",routes:[{path:"/",name:"login",component:function(){return Promise.all([t.e("chunk-5acb4ad4"),t.e("chunk-6610d797")]).then(t.bind(null,"9ed6"))}},{path:"/demo",name:"demo",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-f6418e24"),t.e("chunk-385437ae"),t.e("chunk-43839702")]).then(t.bind(null,"46a4"))}},{path:"/projdetail",name:"projdetail",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-f6418e24"),t.e("chunk-385437ae"),t.e("chunk-c44fae9e")]).then(t.bind(null,"612e"))}},{path:"/watch",name:"watch",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-f6418e24"),t.e("chunk-385437ae"),t.e("chunk-c1adec5a")]).then(t.bind(null,"1670"))}},{path:"/notification",name:"notification",component:function(){return Promise.resolve().then(t.bind(null,"d2ad"))}},{path:"/newproject",name:"newproject",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-f6418e24"),t.e("chunk-385437ae"),t.e("chunk-08ae55de")]).then(t.bind(null,"a341"))}},{path:"/watchlink",name:"watchlink",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-f6418e24"),t.e("chunk-385437ae"),t.e("chunk-3904fda1")]).then(t.bind(null,"80fb"))}},{path:"/platform",name:"platform",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-f6418e24"),t.e("chunk-385437ae"),t.e("chunk-4022a95c")]).then(t.bind(null,"0a7f"))}},{path:"/index",name:"index",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-f6418e24"),t.e("chunk-385437ae"),t.e("chunk-f8710098")]).then(t.bind(null,"011a"))}},{path:"/projnotice",name:"projnotice",component:function(){return Promise.all([t.e("chunk-5acb4ad4"),t.e("chunk-a57ac5ae")]).then(t.bind(null,"00ec"))}},{path:"/email",name:"email",component:function(){return t.e("chunk-fa61d866").then(t.bind(null,"19a0"))}},{path:"/workspace",name:"workspace",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-f6418e24"),t.e("chunk-385437ae"),t.e("chunk-5acb4ad4"),t.e("chunk-355b8107")]).then(t.bind(null,"11f4"))}},{path:"/project",name:"project",component:function(){return t.e("chunk-0d3a42ee").then(t.bind(null,"47c5"))}},{path:"/recycle",name:"recycle",component:function(){return t.e("chunk-2d22fcc4").then(t.bind(null,"ea0b"))}},{path:"/search",name:"search",component:function(){return t.e("chunk-2d226007").then(t.bind(null,"e798"))}},{path:"/cloud",name:"cloud",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-5acb4ad4"),t.e("chunk-0f09bee9")]).then(t.bind(null,"4488"))}},{path:"/cloudrecycle",name:"cloudrecycle",component:function(){return t.e("chunk-2d224b2b").then(t.bind(null,"e0f0"))}},{path:"/cloudsource",name:"cloudsource",component:function(){return t.e("chunk-2d0c061a").then(t.bind(null,"4217"))}},{path:"/company",name:"company",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-f6418e24"),t.e("chunk-385437ae"),t.e("chunk-1480e558")]).then(t.bind(null,"db21"))},redirect:{name:"company_home"},children:[{path:"home",name:"company_home",component:function(){return t.e("chunk-3fe09320").then(t.bind(null,"345a"))}},{path:"message",name:"company_message",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-2d0cf6a4")]).then(t.bind(null,"642b"))}},{path:"user",name:"company_user",component:function(){return Promise.all([t.e("chunk-f6418e24"),t.e("chunk-7b17780a")]).then(t.bind(null,"29c0"))}},{path:"project",name:"company_project",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-578abaf6")]).then(t.bind(null,"e984"))}},{path:"template",name:"company_template",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-2d0dddf0")]).then(t.bind(null,"82dd"))}},{path:"template/detail",name:"company_template_detail",component:function(){return t.e("chunk-b5d13ce8").then(t.bind(null,"ce1d"))}},{path:"template/market",name:"company_template_market",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-2d207f39")]).then(t.bind(null,"a35f"))}},{path:"setting",name:"company_setting",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-1fe39068")]).then(t.bind(null,"cda4"))}},{path:"app",name:"company_app",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-2d0b3688")]).then(t.bind(null,"27f3"))}}]},{path:"/template",name:"template",component:function(e){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-f6418e24"),t.e("chunk-385437ae"),t.e("chunk-ef8ce8b2")]).then(function(){var n=[t("65b7")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/template/create",name:"template_create",component:function(e){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-f6418e24"),t.e("chunk-385437ae"),t.e("chunk-74b26ff1")]).then(function(){var n=[t("d235")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/system",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-f6418e24"),t.e("chunk-385437ae"),t.e("chunk-0edf1e34")]).then(t.bind(null,"f364"))},redirect:{name:"system_customer"},children:[{path:"customer",name:"system_customer",component:function(){return t.e("chunk-eb6bd3dc").then(t.bind(null,"f851"))}},{path:"template",name:"system_template",component:function(){return t.e("chunk-1ee9f93c").then(t.bind(null,"81b5"))}},{path:"runmanage",name:"system_runmanage",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-14e61ccb")]).then(t.bind(null,"d798"))}},{path:"template/matrix",name:"system_template_matrix",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-f6418e24"),t.e("chunk-385437ae"),t.e("chunk-2027ffed")]).then(t.bind(null,"2275"))}},{path:"template/mind",name:"system_template_mind",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-f6418e24"),t.e("chunk-385437ae"),t.e("chunk-5cefa2e4")]).then(t.bind(null,"bccc"))}},{path:"template/tempfile",name:"system_template_file",component:function(){return t.e("chunk-3fe478f8").then(t.bind(null,"f1f7"))}},{path:"appcenter",name:"system_appcenter",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-2d0e148e")]).then(t.bind(null,"7a7e"))}},{path:"appinfo",name:"system_appinfo",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-2d21b850")]).then(t.bind(null,"bfb8"))}},{path:"setting",name:"system_setting",component:function(){return Promise.all([t.e("chunk-ea6236fc"),t.e("chunk-1fe40532")]).then(t.bind(null,"ddca"))}},{path:"*",redirect:{name:"system_customer"}}]},{path:"*",name:"notfound",component:function(){return t.e("chunk-05a1125b").then(t.bind(null,"9403"))}}]});r.beforeEach((function(e,n,t){"/"===e.path||sessionStorage.getItem("userId")?t():t({path:"/"})})),r.afterEach((function(e){window.document.title=o[e.name]||"LOCKING | 云建筑"}));n["a"]=r},"53be":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("4de4"),t("e260"),t("e6cf"),t("cca6"),t("a79d");var c=t("2b0e"),a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{id:"app"}},[t("router-view",{ref:"mainpage",staticClass:"mt-48",class:{"workspace-bigbody":e.$route.path.indexOf("/workspace")>=0},attrs:{id:"bigbody"}})],1)},o=[],r=(t("b0c0"),{components:{},name:"App",data:function(){return{header_show:!0,companyName:"",mypath:"/",showIndexOption:!1,showHelpPage:!1,searchName:"",isShowOutWorkSpace:!1,outWorkSpace:!1}},created:function(){null!=document.getElementById("Loading")&&null!=document.getElementById("Loading").nodeName&&""!=document.getElementById("Loading").nodeName&&document.body.removeChild(document.getElementById("Loading")),"login"!=this.$route.name&&"notfound"!=this.$route.name&&"platform"!==this.$route.name||(this.header_show=!1)},mounted:function(){window.addEventListener("scroll",this.handleScroll,!0)},methods:{handleScroll:function(){},showOption:function(){this.showIndexOption=!0},showHelp:function(){this.showHelpPage=!0},closeShowOption:function(){this.showIndexOption=!1,this.showHelpPage=!1},closeWorkSet:function(){"workspace"==this.$route.name&&this.$refs["mainpage"].closeAppManagePain()},getSearchName:function(e){this.searchName=e},getIsShowOutWorkSpace:function(e){this.outWorkSpace=!1,this.isShowOutWorkSpace=e},getOutWorkSpace:function(e){this.outWorkSpace=e}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)},watch:{$route:function(e){this.mypath=e.path}}}),u=r,i=(t("5c0b"),t("2877")),s=Object(i["a"])(u,a,o,!1,null,null,null),f=s.exports,d=t("41cb"),l=t("5c96"),h=t.n(l),p=(t("0fae"),t("96cf"),t("1da1")),m=t("b775"),b=t("0f13"),k=t("3de1"),y=function(){return{isLogin:!1,accountId:void 0,accountName:void 0,userName:void 0,platformList:[],currentPlatform:{},currentCompanyId:void 0,avator:void 0,userInfo:{}}},g=function(){var e=y();try{var n=JSON.parse(sessionStorage.getItem("user")),t=sessionStorage.getItem("companyId"),c=JSON.parse(sessionStorage.getItem("platform")||"{}");n&&n.accountId&&(e.isLogin=!0,Object.assign(e,n),e.currentCompanyId=t,e.currentPlatform=c)}catch(a){console.log("加载session数据失败"),e=y()}return e},v={state:g(),setCurrentPlatform:function(e){this.state.currentPlatform=e,this.state.currentCompanyId=e.orgId,sessionStorage.companyId=e.orgId,sessionStorage.platform=JSON.stringify(e)},login:function(e,n){var t=this;return Object(p["a"])(regeneratorRuntime.mark((function c(){var a,o,r,u,i,s,f,d,l,h,p,y,g,v,O,_,C,w,I;return regeneratorRuntime.wrap((function(c){while(1)switch(c.prev=c.next){case 0:return c.next=2,Object(m["b"])("authentication/login",{UserName:e,PassWord:n});case 2:if(a=c.sent,o=0===a.Code,o){c.next=6;break}return c.abrupt("return",a);case 6:if(t.state.isLogin=!0,r=Object(k["b"])(a.Data||{}),delete r.userExt,u=r.companyId,i=r.cnName,s=r.id,f=r.permission,d=r.backgroundPermission,l=[],h={accountId:s,accountName:e,userName:i,platformList:l,userInfo:r},p=3===d,y=2===d,!p){c.next=18;break}l.push(Object(b["d"])(b["b"].MANAGE_CENTER,u,"LOCKING 总后台",void 0,[])),c.next=29;break;case 18:return c.next=20,Object(m["b"])("company/queryFrontDeskCompanyById",{id:u});case 20:if(g=c.sent,0===g.Code){c.next=23;break}return c.abrupt("return",g);case 23:v=g.Data,O=void 0===v?{}:v,_=O.company,C=_.LogoUrl,w=_.CompanyName,I=[],y&&I.push(b["a"].CompanyConsole),1===f&&I.push(b["a"].ProjectManager),l.push(Object(b["d"])(b["b"].COMPANY,u,w,C,I));case 29:return t.state.isLogin=!0,Object.assign(t.state,h),sessionStorage.userId=s,sessionStorage.accountId=s,sessionStorage.user=JSON.stringify(h),c.abrupt("return",{Code:a.Code,Data:h});case 35:case"end":return c.stop()}}),c)})))()},logout:function(){this.state=y(),Object(m["b"])("authentication/loginOut"),sessionStorage.clear()}},O=t("2f62"),_=t("a78e"),C=t.n(_),w=t("5ab9"),I=function(e){return Object(w["a"])(e)||"/static/img/avator_default.svg"},N=function(e,n){var t="avator"===n?"/static/img/avator_default.svg":"";return Object(w["a"])(e)||t},L=t("caf9"),P=t("32ed"),j=t.n(P),S=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.src,expression:"src"}]})},x=[],E={props:{src:String}},G=E,K=Object(i["a"])(G,S,x,!1,null,null,null),T=K.exports,A=(t("856b"),t("d903"),t("c610"),t("935a"),t("53be"),t("1f94"),t("d2ad")),$=c["default"].extend(A["default"]),M=document.createElement("div");M.style="position: fixed; right: 0px; top: 48px;z-index:999",document.body.appendChild(M);var D=function(e){var n=new $({propsData:e});n.vm=n.$mount(),M.appendChild(n.vm.$el)},B=D;c["default"].use(h.a),c["default"].use(L["a"]),c["default"].use(O["a"]),c["default"].prototype.$cookie=C.a,c["default"].component("ImgLazy",T),c["default"].prototype.$axios=m["a"],c["default"].prototype.$fetch=m["a"],c["default"].prototype.$fetchApi=m["b"],c["default"].filter("resolveImg",N),c["default"].filter("resolveAvator",I),c["default"].prototype.$bus=new c["default"],c["default"].prototype.$notify=B,c["default"].use(j.a),c["default"].config.productionTip=!1,new c["default"]({router:d["a"],store:v,render:function(e){return e(f)}}).$mount("#app")},"5ab9":function(e,n,t){"use strict";t.d(n,"c",(function(){return i})),t.d(n,"b",(function(){return s})),t.d(n,"a",(function(){return d}));t("99af"),t("c975"),t("ac1f"),t("1276"),t("96cf");var c=t("1da1"),a=t("9b15"),o=t("2ef0"),r=new a({region:"oss-cn-hangzhou",accessKeyId:"LTAI4G2BEDNpfdLmquYYMaMV",accessKeySecret:"tPhAL3qAgF9Tq67h73snAmwu8iPZ5t",bucket:"yiyun-client-files",secure:!0}),u=function(e){return"".concat((new Date).getTime(),"/").concat(e)},i=function(e){return"oss://".concat(e)};function s(e,n){return f.apply(this,arguments)}function f(){return f=Object(c["a"])(regeneratorRuntime.mark((function e(n,t){var c,a,o,i=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return c=i.length>2&&void 0!==i[2]?i[2]:{},e.prev=1,a=u(n),e.next=5,r.multipartUpload(a,t,c);case 5:return o=e.sent,e.abrupt("return",o);case 9:return e.prev=9,e.t0=e["catch"](1),console.error("file upload failed:",e.t0),e.abrupt("return",null);case 13:case"end":return e.stop()}}),e,null,[[1,9]])}))),f.apply(this,arguments)}var d=Object(o["memoize"])((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;if(0!==e.indexOf("oss://"))return e;var t=e.substr(6),c=n||t.split("/").pop();try{var a=3600,o=r.signatureUrl(t,{expires:a,response:{"content-disposition":'attachment; filename="'.concat(c,'"')}});return setTimeout((function(){d.cache.delete(e)}),1e3*a),o}catch(u){return null}}))},"5c0b":function(e,n,t){"use strict";var c=t("9c0c"),a=t.n(c);a.a},"856b":function(e,n,t){},"935a":function(e,n,t){},"9c0c":function(e,n,t){},b775:function(e,n,t){"use strict";t.d(n,"b",(function(){return s})),t.d(n,"c",(function(){return d}));t("99af"),t("c975"),t("fb6a"),t("d3b7"),t("ac1f"),t("25f0"),t("1276"),t("96cf");var c=t("3835"),a=t("1da1"),o=t("bc3a"),r=t.n(o),u=t("41cb"),i=t("3de1");function s(e,n,t){return f.apply(this,arguments)}function f(){return f=Object(a["a"])(regeneratorRuntime.mark((function e(n,t,a){var o,u,i,s,f;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=l(n),u=Object(c["a"])(o,2),i=u[0],s=u[1],e.prev=1,e.next=4,"GET"===i?r.a.get(s,{params:t},a):r.a.post(s,t,a);case 4:return f=e.sent,e.abrupt("return",f.data);case 8:if(e.prev=8,e.t0=e["catch"](1),!e.t0.response||!e.t0.response.status){e.next=16;break}e.t1=e.t0.response.status,e.next=404===e.t1?14:15;break;case 14:return e.abrupt("return",{Code:404,Msg:"找不到指定的服务。"});case 15:return e.abrupt("return",{Code:503,Msg:"服务异常,请稍后再试。"});case 16:return console.error(e.t0),e.abrupt("return",{Code:503,Msg:"服务异常,请稍后再试。"});case 18:case"end":return e.stop()}}),e,null,[[1,8]])}))),f.apply(this,arguments)}function d(e){if(0!==e.Code){var n=e.Code.toString(),t="error";404===e.Code&&(t="warning"),this.$notify({message:e.Msg,title:n+"错误",type:t})}return e}function l(e){var n=e.split("/"),t=Object(c["a"])(n,1),a=t[0],o=-1!==["template","project","folder","file"].indexOf(a)?"pms":"cms",r="api/".concat(o,"/").concat("authentication"===a?"":"v1/").concat(e),u="GET";switch(e){case"authentication/login":case"company/addCompany":case"company/queryGeneralOverview":case"company/queryProviceTree":case"company/updateCompanyById":case"dept/addDept":case"dept/updateDept":case"user/addUser":case"user/resetPassWord":case"user/updateUser":case"template/createTemplate":case"template/fileExchange":case"template/updateTemplate":case"template/uploadingXmind":case"template/addTemplateNodeModelFile":case"template/createNestedRelevance":case"template/deleteNestedRelevance":case"folder/createSubfolder":case"project/createProject":case"project/editProject":case"project/assignedWork":case"file/addArchMilesStone":case"file/addFile":case"file/updateFile":case"file/fileCoordinationChange":u="POST";break;default:u="GET";break}return[u,r]}r.a.defaults.withCredentials=!0,r.a.interceptors.request.use((function(e){return 0===e.url.indexOf("api/")&&(e.url="".concat("/api/").concat(e.url.slice(4))),e}),(function(e){return Promise.reject(e)})),r.a.interceptors.response.use((function(e){return e}),(function(e){if(e.response)switch(e.response.status){case 401:"/"!=u["a"].currentRoute.fullPath&&(i["d"].error("登录超时,请重新登录"),sessionStorage.clear(),u["a"].push({path:"/"}));break}return Promise.reject(e)})),n["a"]=r.a},c610:function(e,n,t){},d2ad:function(e,n,t){"use strict";t.r(n);var c=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("transition",{attrs:{name:"fade"}},[e.show?t("div",{staticClass:"notification_box"},[Array.isArray(e.type)?t("div",{staticClass:"notification_img"},[t("img",{class:e.type[1]?"leftIcon":""+e.typeList[e.type[0]].class,attrs:{src:e.typeList[e.type[0]].imgSrc,alt:""}}),e.type[1]?t("img",{staticClass:"righticon",attrs:{src:e.typeList[e.type[1]].imgSrc,alt:""}}):e._e()]):t("div",{staticClass:"notification_img"},[t("img",{class:e.typeList[e.type].class,attrs:{src:e.typeList[e.type].imgSrc,alt:""}})]),t("div",{staticClass:"notification_msg"},[t("div",{staticClass:"notification_msg_content"},[t("div",{staticClass:"notification_title",class:{hidden:!e.title}},[e._v(e._s(e.title))]),t("div",{staticClass:"notification_context",class:{middle:!e.title}},[e._v(e._s(e.message))])]),t("p",{staticClass:"closeBtn",attrs:{href:""},on:{click:e.handleClose}},[t("img",{attrs:{src:"/static/img/删除.svg",alt:""}})])])]):e._e()])},a=[],o=(t("a9e3"),function(e,n){return{imgSrc:"/static/img/"+e,class:n}}),r={success:o("success.svg","notifyIcon"),error:o("严重警示.svg","notifyIcon"),warning:o("事件警示.svg","notifyIcon"),"file-txt":o("file_txt.png","fileIcon"),"file-pdf":o("file_pdf.png","fileIcon"),"file-word":o("file_word.png","fileIcon"),"file-excel":o("file_excel.png","fileIcon"),"file-ppt":o("file_ppt.png","fileIcon"),upload:o("upload.png","notifyIcon"),download:o("download.svg","notifyIcon"),cooperation:o("download.svg","notifyIcon")},u={name:"Notification",props:{type:{},inItem:{type:Boolean,defalt:!1},offset:{type:Number,default:100},title:{type:String,default:""},message:{type:String,default:""},duration:{type:Number,default:3e3}},data:function(){return{show:!1,typeList:r,timer:""}},methods:{handleClose:function(){this.show=!1}},created:function(){var e=this;this.timer=setTimeout((function(){e.show=!1}),this.duration)},mounted:function(){this.show=!0},beforeDestroy:function(){clearTimeout(this.timer)}},i=u,s=(t("e997"),t("2877")),f=Object(s["a"])(i,c,a,!1,null,"36a6fbb3",null);n["default"]=f.exports},d553:function(e,n,t){},d903:function(e,n,t){},e997:function(e,n,t){"use strict";var c=t("d553"),a=t.n(c);a.a}});
  2. //# sourceMappingURL=app.fbc262c7.js.map