(function(e){function n(n){for(var c,a,u=n[0],i=n[1],s=n[2],d=0,f=[];d4&&void 0!==arguments[4]?arguments[4]:[];return{platformType:e,orgId:n,orgLogo:c,orgName:t,accessList:a}}var r={CompanyConsole:"company_console",ProjectManager:"project_manager"};function o(e,n){return-1!==e.indexOf(n)}},"3de1":function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return o})),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 r(e){return Object.entries(e).reduce((function(e,n){var t=Object(c["a"])(n,2),a=t[0],r=t[1];return e["".concat(a[0].toLocaleLowerCase()).concat(a.slice(1))]=r,e}),{})}function o(e){return Object.entries(e).reduce((function(e,n){var t=Object(c["a"])(n,2),a=t[0],r=t[1];return e["".concat(a[0].toLocaleUpperCase()).concat(a.slice(1))]=r,e}),{})}var u=function(e){return new Promise((function(n){return setTimeout(n,e)}))},i={success:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"恭喜您";a["default"].prototype.$notify({title:n,message:e,type:"success",offset:100,duration:2500})},error:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"温馨提示";a["default"].prototype.$notify({title:n,message:e,type:"error",offset:100,duration:2500})},info:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"温馨提示";a["default"].prototype.$notify({title:n,message:e,type:"info",offset:100,duration:2500})},warning:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"温馨提示";a["default"].prototype.$notify({title:n,message:e,type:"warning",offset:100,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"),r={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 o=new a["a"]({mode:"hash",routes:[{path:"/",name:"login",component:function(){return t.e("chunk-208845cb").then(t.bind(null,"9ed6"))}},{path:"/demo",name:"demo",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-1a95cc71"),t.e("chunk-1383cec2")]).then(t.bind(null,"46a4"))}},{path:"/platform",name:"platform",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-1a95cc71"),t.e("chunk-546c3053")]).then(t.bind(null,"0a7f"))}},{path:"/index",name:"index",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-1a95cc71"),t.e("chunk-5df381e2")]).then(t.bind(null,"011a"))}},{path:"/projnotice",name:"projnotice",component:function(){return t.e("chunk-cf33d61a").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-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-1a95cc71"),t.e("chunk-18b7f164")]).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-bd5a3f5c"),t.e("chunk-7e121d7a")]).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-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-1a95cc71"),t.e("chunk-9b3a1c08")]).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-bd5a3f5c"),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-405a8914")]).then(t.bind(null,"29c0"))}},{path:"project",name:"company_project",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-578abaf6")]).then(t.bind(null,"e984"))}},{path:"template",name:"company_template",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),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-bd5a3f5c"),t.e("chunk-2d207f39")]).then(t.bind(null,"a35f"))}},{path:"setting",name:"company_setting",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-1fe39068")]).then(t.bind(null,"cda4"))}},{path:"app",name:"company_app",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-2d0b3688")]).then(t.bind(null,"27f3"))}}]},{path:"/template",name:"template",component:function(e){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-1a95cc71"),t.e("chunk-025ce042")]).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-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-1a95cc71"),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-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-1a95cc71"),t.e("chunk-7a01996c")]).then(t.bind(null,"f364"))},redirect:{name:"system_customer"},children:[{path:"customer",name:"system_customer",component:function(){return t.e("chunk-0e5df840").then(t.bind(null,"f851"))}},{path:"template",name:"system_template",component:function(){return t.e("chunk-418d307b").then(t.bind(null,"81b5"))}},{path:"runmanage",name:"system_runmanage",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-14e61ccb")]).then(t.bind(null,"d798"))}},{path:"template/matrix",name:"system_template_matrix",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-1a95cc71"),t.e("chunk-d9ac4dc2")]).then(t.bind(null,"2275"))}},{path:"template/mind",name:"system_template_mind",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-1a95cc71"),t.e("chunk-71c746dc")]).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-bd5a3f5c"),t.e("chunk-2d0e148e")]).then(t.bind(null,"7a7e"))}},{path:"appinfo",name:"system_appinfo",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-2d21b850")]).then(t.bind(null,"bfb8"))}},{path:"setting",name:"system_setting",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),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"))}}]});o.beforeEach((function(e,n,t){"/"===e.path||sessionStorage.getItem("userId")?t():t({path:"/"})})),o.afterEach((function(e){window.document.title=r[e.name]||"LOCKING | 云建筑"}));n["a"]=o},"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",attrs:{id:"bigbody"}})],1)},r=[],o=(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=o,i=(t("5c0b"),t("2877")),s=Object(i["a"])(u,a,r,!1,null,null,null),d=s.exports,f=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"),g=function(){return{isLogin:!1,accountId:void 0,accountName:void 0,userName:void 0,platformList:[],currentPlatform:{},currentCompanyId:void 0,avator:void 0,userInfo:{}}},y=function(){var e=g();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=g()}return e},v={state:y(),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,r,o,u,i,s,d,f,l,h,p,g,y,v,O,C,_,N,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,r=0===a.Code,r){c.next=6;break}return c.abrupt("return",a);case 6:if(t.state.isLogin=!0,o=Object(k["b"])(a.Data||{}),delete o.userExt,u=o.companyId,i=o.cnName,s=o.id,d=o.permission,f=o.backgroundPermission,l=[],h={accountId:s,accountName:e,userName:i,platformList:l,userInfo:o},p=3===f,g=2===f,!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(y=c.sent,0===y.Code){c.next=23;break}return c.abrupt("return",y);case 23:v=y.Data,O=void 0===v?{}:v,C=O.company,_=C.LogoUrl,N=C.CompanyName,I=[],g&&I.push(b["a"].CompanyConsole),1===d&&I.push(b["a"].ProjectManager),l.push(Object(b["d"])(b["b"].COMPANY,u,N,_,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=g(),Object(m["b"])("authentication/loginOut"),sessionStorage.clear()}},O=t("2f62"),C=t("a78e"),_=t.n(C),N=t("5ab9"),I=function(e){return Object(N["a"])(e)||"/static/img/avator_default.svg"},w=function(e,n){var t="avator"===n?"/static/img/avator_default.svg":"";return Object(N["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"}]})},E=[],x={props:{src:String}},G=x,K=Object(i["a"])(G,S,E,!1,null,null,null),T=K.exports;t("856b"),t("d903"),t("c610"),t("935a"),t("53be");c["default"].use(h.a),c["default"].use(L["a"]),c["default"].use(O["a"]),c["default"].prototype.$cookie=_.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",w),c["default"].filter("resolveAvator",I),c["default"].use(j.a),c["default"].config.productionTip=!1,new c["default"]({router:f["a"],store:v,render:function(e){return e(d)}}).$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 f}));t("99af"),t("c975"),t("ac1f"),t("1276"),t("96cf");var c=t("1da1"),a=t("9b15"),r=t("2ef0"),o=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 d.apply(this,arguments)}function d(){return d=Object(c["a"])(regeneratorRuntime.mark((function e(n,t){var c,a,r,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,o.multipartUpload(a,t,c);case 5:return r=e.sent,e.abrupt("return",r);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]])}))),d.apply(this,arguments)}var f=Object(r["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,r=o.signatureUrl(t,{expires:a,response:{"content-disposition":'attachment; filename="'.concat(c,'"')}});return setTimeout((function(){f.cache.delete(e)}),1e3*a),r}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 f}));t("99af"),t("c975"),t("fb6a"),t("d3b7"),t("ac1f"),t("1276"),t("96cf");var c=t("3835"),a=t("1da1"),r=t("bc3a"),o=t.n(r),u=t("41cb"),i=t("3de1");function s(e,n,t){return d.apply(this,arguments)}function d(){return d=Object(a["a"])(regeneratorRuntime.mark((function e(n,t,a){var r,u,i,s,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=l(n),u=Object(c["a"])(r,2),i=u[0],s=u[1],e.prev=1,e.next=4,"GET"===i?o.a.get(s,{params:t},a):o.a.post(s,t,a);case 4:return d=e.sent,e.abrupt("return",d.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]])}))),d.apply(this,arguments)}function f(e){return 0!==e.Code&&i["d"].error(e.Msg),e}function l(e){var n=e.split("/"),t=Object(c["a"])(n,1),a=t[0],r=-1!==["template","project","folder","file"].indexOf(a)?"pms":"cms",o="api/".concat(r,"/").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,o]}o.a.defaults.withCredentials=!0,o.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)})),o.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"]=o.a},c610:function(e,n,t){},d903:function(e,n,t){}}); //# sourceMappingURL=app.ed03fcd1.js.map