(function(e){function n(n){for(var r,a,i=n[0],u=n[1],s=n[2],d=0,l=[];d4&&void 0!==arguments[4]?arguments[4]:[],c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return Object(r["a"])({platformType:e,orgId:n,orgLogo:a,orgName:t,accessList:o},c)}var c={CompanyConsole:"company_console",ProjectManager:"project_manager"};function i(e,n){return-1!==e.indexOf(n)}},"1d40":function(e,n,t){"use strict";(function(e){t("99af"),t("4de4"),t("7db0"),t("c975"),t("a15b"),t("d81d"),t("fb6a"),t("b0c0"),t("d3b7"),t("07ac"),t("ac1f"),t("5319"),t("1276");var r=t("5530"),a=(t("96cf"),t("1da1")),o=t("3835"),c=t("b775"),i=t("3de1"),u=t("2ef0"),s=t("2b0e"),d=!!e.electron,l=5,f=5,p=[],h=[],m=[],b=[],k=function(){p=[],h=[],m=[],b=[]},g=function(){},y=function(e){var n=new WebSocket("ws://127.0.0.1:7777/".concat(e));return n.on=n.addEventListener,n},v=function(e,n){return new Promise((function(t,r){e.on("open",(function(){e.send(n)})),e.on("message",(function(n){t(n),e.close()})),e.on("error",(function(e){return r(e)}))}))},w=function(e){return d?e:g},O={isClient:d,init:w((function(){console.log("客户端 electron API 检测:",e.electron)})),keepLiveTest:w((function(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u["identity"],a=y("keeplive"),o=1,c=null,i=e.electron.ipcRenderer;function s(){n(!0),a.send(o)}i.on("detectWindowSize",(function(){t((arguments.length<=1?void 0:arguments[1])||!1)})),a.on("open",(function(){c=setInterval(s,2e3)})),a.on("close",(function(){clearInterval(c),n(!1)})),a.on("error",(function(){r(),n(!1)}))})),subscribeGatewayMessage:w((function(){var e=y("messageNotify");e.on("message",(function(e){var n=e.data;try{var t=n.split("\n"),r=Object(o["a"])(t,2),a=r[0],c=r[1];i["d"].warning(c,a)}catch(u){console.error("gateway message error:",n,u)}}))})),shrinkBrowserWindow:w(Object(a["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("shrink-browser-window");case 3:case"end":return n.stop()}}),n)})))),enlargeBrowserWindow:w(Object(a["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("enlarge-browser-window");case 3:case"end":return n.stop()}}),n)})))),unmaxBrowserWindow:w(Object(a["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("unmax-browser-window");case 3:case"end":return n.stop()}}),n)})))),closeBrowserWindow:w(Object(a["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("close-browser-window");case 3:case"end":return n.stop()}}),n)})))),isMaxWindowNow:w(Object(a["a"])(regeneratorRuntime.mark((function n(){var t,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("is-max-window-now");case 3:return r=n.sent,n.abrupt("return",r);case 5:case"end":return n.stop()}}),n)})))),initClientConfig:w((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["identity"],t=y("initClientConfig");t.on("open",(function(){t.send(e)})),t.on("message",(function(e){if("-1"===e.data)return s["default"].prototype.$notify({message:"请联系企业管理员检查存储节点配置项。",type:["error"]}),void n(e)}))})),checkForUpdates:w((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u["identity"],n=y("checkForUpdates"),t=1;n.on("open",(function(){n.send(t)})),n.on("message",(function(n){if("-1"===n.data)return s["default"].prototype.$notify({message:"已是最新版本。",type:["success"]}),void e(n)}))})),clientOpenFileWith:w((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["identity"],t=y("openFileWith");t.on("open",(function(){t.send(e)})),t.on("message",(function(e){if("-1"===e.data)return s["default"].prototype.$notify({message:"服务端出现错误, 请稍后重试。",type:["error"]}),void n(e)})),t.on("error",n)})),login:function(){},logout:function(){},entryProject:w(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(n,t,r,a,o,c){var i,s,d,l=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=l.length>6&&void 0!==l[6]?l[6]:u["identity"],e.next=3,v(y("init"),[r,t,n].join("|"));case 3:s=e.sent,o(s.data),d=y("subscriptionFileChange"),d.on("open",(function(){d.send(n)})),d.on("message",a),d.on("error",i),c(d);case 10:case"end":return e.stop()}}),e)})));return function(n,t,r,a,o,c){return e.apply(this,arguments)}}()),leaveProject:w((function(e){e.close(),k()})),downloadFile:w((function(e,n,t,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:u["identity"],d=function u(){var d=y("download"),l={API:"download",Action:"下载文件",CompanyName:sessionStorage.CompanyName,Subject:t,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(c["b"])("operation/record",l),d.on("open",(function(){var a={API:"open",Action:"打开文件",CompanyName:sessionStorage.CompanyName,Subject:t,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(c["b"])("operation/record",a),d.send([e,n,t,r].join("|"))})),d.on("message",(function(e){return"-1"===e.data?(s["default"].prototype.$notify({message:"".concat(t,",网络请求失败。"),type:["warning","download"],title:"文件下载失败"}),void o(e)):"-2"===e.data?(i["d"].error("请先关闭本地文件后再下载"),void o(e)):void a(e,d)})),d.on("error",(function(e){o(e)})),d.on("close",(function(){if(m=m.filter((function(e){return e!==u})),b.length){var e=b.shift();m.push(e),e()}}))};m.length>=f?b.push(d):(m.push(d),d())})),analyzeSystemPath:w(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(n){var t,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,v(y("getFolderFileInfo"),n);case 2:return t=e.sent,e.prev=3,r=JSON.parse(t.data),a=Object.values(r).map((function(e){var n=e.name,t=e.extension,r=e.relativePath,a=e.absolutePath,o=0===t.indexOf(".")?t.slice(1):t,c=n.slice(0,-t.length);return{fileName:c,extension:o,relativePath:r.split("\\").filter(u["identity"]).join("/"),fullPath:a}})),e.abrupt("return",a);case 9:return e.prev=9,e.t0=e["catch"](3),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(n){return e.apply(this,arguments)}}()),chooseFiles:w(Object(a["a"])(regeneratorRuntime.mark((function n(){var t,r,a,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("project-choose-files");case 3:if(r=n.sent,a=r.canceled,o=r.filePaths,!a){n.next=7;break}return n.abrupt("return",null);case 7:return n.abrupt("return",o);case 8:case"end":return n.stop()}}),n)})))),chooseFolders:w(Object(a["a"])(regeneratorRuntime.mark((function n(){var t,r,a,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("project-choose-folders");case 3:if(r=n.sent,a=r.canceled,o=r.filePaths,!a){n.next=7;break}return n.abrupt("return",null);case 7:return n.abrupt("return",o);case 8:case"end":return n.stop()}}),n)})))),uploadFile:w(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(n){var t,o,d,f,m,b,k,g,v,w,O,C,j,I,N,S,x,P,_,L,E,R,A,G,T;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=n.creator,o=n.projectId,d=n.projectName,f=n.folderId,m=n.folderName,b=n.folderLevelId,k=n.distFileRelativePath,g=void 0===k?"":k,v=n.fileName,w=n.fileExtension,O=n.sourceFilePath,C=n.fileList,j=n.onSuccess,I=n.onProgress,N=void 0===I?u["identity"]:I,S=n.onError,x=void 0===S?u["identity"]:S,P=n.successAllHandler,_=n.totalReadyUploadNum,L=n.tempNumWrap,E=w?"".concat(v,".").concat(w):v,R="".concat(m).concat(g?"/".concat(g):""),A=C.find((function(e){return g===e.relativePath&&"".concat(e.archName).concat(e.extension?".".concat(e.extension):"")===E})),G=A?Object(i["c"])(Object(r["a"])(Object(r["a"])({},A),{},{ModifyUserId:sessionStorage.userId})):{ArchName:v,CreateUserId:sessionStorage.userId,Extension:w,FolderId:f,FolderLevelId:b,Id:"upload:".concat("".concat(Math.random()).slice(2,8)),ProjId:o,RelativePath:g,Status:1,Version:1},N({process:0},G),T=function e(){var n=function(){if(p=p.filter((function(n){return n!==e})),h.length){var n=h.shift();p.push(n),n()}x.apply(void 0,arguments)},o=function(){if(p=p.filter((function(n){return n!==e})),h.length){var n=h.shift();p.push(n),n()}j.apply(void 0,arguments)},u=y("upload"),l="";u.on("open",Object(a["a"])(regeneratorRuntime.mark((function e(){var n,r,a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!A){e.next=5;break}return e.next=3,Object(c["b"])("file/queryProjArchiveHistoryTbByArchId",{archId:A.id});case 3:n=e.sent,l=Object(i["b"])(n.Data||{}).currentIpfsCid||"";case 5:r="",a=!1,o=[O,E,d,R.replace(/\//g,"\\"),l,r,t,a].join("|"),u.send(o),N({process:0},G);case 9:case"end":return e.stop()}}),e)})))),u.on("message",function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t){var a,d,f,p,h,m,b,k;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("-1"!==t.data){e.next=4;break}return i["d"].error("文件上传失败"),n(t,G),e.abrupt("return");case 4:if("-2"!==t.data){e.next=8;break}return i["d"].error("请先关闭本地文件后再上传"),n(t,G),e.abrupt("return");case 8:if(e.prev=8,a=JSON.parse(t.data),d=a.size,f=a.process,p=a.hash,h=a.commitHistoryHash,m=a.version,N(a,G),100===f&&p){e.next=14;break}return e.abrupt("return");case 14:return u.close(),G.FileSize=+d,G.IpfsCid=p,b=Object(r["a"])({},G),A||delete b.Id,A?(b.HistoryCurrentIpfsCid=h,b.HistoryPreIpfsCid=l,b.Version=m):b.HistoryCurrentIpfsCid=h,e.next=22,Object(c["b"])("file/".concat(A?"updateFile":"addFile"),b);case 22:if(k=e.sent,Object(c["c"])(k),0===k.Code){e.next=27;break}return n(k,G),e.abrupt("return");case 27:L.tempNumCount+=1,L.tempNumCount==_&&(s["default"].prototype.$notify({type:["success","upload"],title:"文件上传成功",message:"".concat(G.ArchName)}),P()),o(G),e.next=36;break;case 32:e.prev=32,e.t0=e["catch"](8),console.error("socket-upload-file parse data have error:",e.t0),n(e.t0,G);case 36:case"end":return e.stop()}}),e,null,[[8,32]])})));return function(n){return e.apply(this,arguments)}}()),u.on("error",(function(e){n(e,G)}))},p.length>=l?h.push(T):(p.push(T),T());case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),updateFile:w((function(e){var n=e.file,t=e.localFilePathPrefix,r=e.projectName,o=e.relativePath,s=e.historyPreIpfsCid,d=e.note,l=e.creator,f=e.milestone,p=e.isConflict,h=e.onSuccessHandler,m=e.onProgressHandler,b=void 0===m?u["identity"]:m,k=e.onErrorHandler,g=void 0===k?u["identity"]:k,v=y("upload"),w=n.archName,O=n.extension,C=(n.id,"".concat(w).concat(O?".".concat(O):"")),j="".concat(t,"\\").concat(o,"\\").concat(C);v.on("open",(function(){var e=[j,C,r,o,s,d,l,f].join("|");v.send(e)})),v.on("message",function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t){var r,a,o,d,l,f,m,k;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("-1"!==t.data){e.next=4;break}return i["d"].error("文件上传失败"),g(t),e.abrupt("return");case 4:if("-2"!==t.data){e.next=8;break}return i["d"].error("请先关闭本地文件后再上传"),g(t),e.abrupt("return");case 8:if(e.prev=8,r=JSON.parse(t.data),console.log("progressData"),a=r.size,o=r.process,d=r.hash,l=r.commitHistoryHash,f=r.version,b(r),100===o&&d){e.next=15;break}return e.abrupt("return");case 15:return v.close(),m=Object(i["c"])(Object(u["cloneDeep"])(n)),m.ModifyUserId=sessionStorage.userId,m.HistoryPreIpfsCid=s,m.HistoryCurrentIpfsCid=l,p||(m.Size=+a,m.IpfsCid=d,m.Version=f),e.next=23,Object(c["b"])("file/updateFile",m);case 23:return k=e.sent,Object(c["c"])(k),p&&(m.Size=+a,m.IpfsCid=d,m.Version=f),h(m),e.abrupt("return");case 30:e.prev=30,e.t0=e["catch"](8),console.error("socket-update-file parse data have error:",t);case 33:case"end":return e.stop()}}),e,null,[[8,30]])})));return function(n){return e.apply(this,arguments)}}()),v.on("error",(function(e){g(e,n)}))})),queryCommitHistory:w((function(e,n,t){var r=y("queryCommitHistory");r.on("open",(function(){r.send([e,n].join("|"))})),r.on("message",(function(e){if("-1"===e.data)return i["d"].error("查询历史文件失败"),void t([]);var n=JSON.parse(e.data),r=Object.values(n);t(r)}))})),editCommitHistoryMilestone:w((function(e,n,t,r,a){var o=y("editCommitHistoryMilestone");o.on("open",(function(){o.send([e,n,t,r].join("|"))})),o.on("message",(function(e){if("-1"!==e.data){var n=e.data;console.log("lcb",n),a(n)}else i["d"].error("设置里程碑失败")}))})),openFile:w((function(n){var t=e.electron.shell;t.openPath(n)})),openFolder:w((function(n){var t=e.electron.shell;t.showItemInFolder(n)}))};n["a"]=O}).call(this,t("c8ba"))},"1f09":function(e,n,t){},"3de1":function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return c})),t.d(n,"d",(function(){return i})),t.d(n,"a",(function(){return u}));t("99af"),t("13d5"),t("fb6a"),t("4fad"),t("d3b7");var r=t("3835"),a=t("2b0e");function o(e){return Object.entries(e).reduce((function(e,n){var t=Object(r["a"])(n,2),a=t[0],o=t[1];return e["".concat(a[0].toLocaleLowerCase()).concat(a.slice(1))]=o,e}),{})}function c(e){return Object.entries(e).reduce((function(e,n){var t=Object(r["a"])(n,2),a=t[0],o=t[1];return e["".concat(a[0].toLocaleUpperCase()).concat(a.slice(1))]=o,e}),{})}var i={success:function(e,n){a["default"].prototype.$notify({title:n,message:e,type:["success"],duration:2500})},error:function(e,n){a["default"].prototype.$notify({title:n,message:e,type:["error"],duration:2500})},warning:function(e,n){a["default"].prototype.$notify({title:n,message:e,type:["warning"],duration:2500})}};function u(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 r=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:"流程模板 | 样板文件"};r["default"].use(a["a"]);var c=new a["a"]({mode:"hash",routes:[{path:"/",name:"login",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-8252b0ee")]).then(t.bind(null,"9ed6"))}},{path:"/demo",name:"demo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-1f4d12f6")]).then(t.bind(null,"46a4"))}},{path:"/projdetail",name:"projdetail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-57cedbde"),t.e("chunk-6e4601e4"),t.e("chunk-09fc4146")]).then(t.bind(null,"6e0a"))}},{path:"/watch",name:"watch",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-1165d335")]).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-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-541eb54c")]).then(t.bind(null,"a341"))}},{path:"/watchlink",name:"watchlink",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-60c8f103")]).then(t.bind(null,"80fb"))}},{path:"/platform",name:"platform",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-6f87105f")]).then(t.bind(null,"0a7f"))}},{path:"/index",name:"index",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-57cedbde"),t.e("chunk-6e4601e4"),t.e("chunk-661e2326")]).then(t.bind(null,"47c5"))}},{path:"/projnotice",name:"projnotice",component:function(){return t.e("chunk-2d0a3394").then(t.bind(null,"00ec"))}},{path:"/email",name:"email",component:function(){return t.e("chunk-2d0ac90d").then(t.bind(null,"19a0"))}},{path:"/workspace",name:"workspace",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-57cedbde"),t.e("chunk-d7352fc8"),t.e("chunk-2396940e")]).then(t.bind(null,"3b2f"))}},{path:"/recycle",name:"recycle",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-4a29caee")]).then(t.bind(null,"c11e"))}},{path:"/history",name:"history",component:function(){return Promise.all([t.e("chunk-d7352fc8"),t.e("chunk-2faa6b7a")]).then(t.bind(null,"a2d2"))}},{path:"/company",name:"company",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-2627340f")]).then(t.bind(null,"db21"))},redirect:{name:"company_home"},children:[{path:"home",name:"company_home",component:function(){return t.e("chunk-309e49e4").then(t.bind(null,"345a"))}},{path:"message",name:"company_message",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0cf6a4")]).then(t.bind(null,"642b"))}},{path:"user",name:"company_user",component:function(){return t.e("chunk-0dd08121").then(t.bind(null,"29c0"))}},{path:"project",name:"company_project",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-038ce22f")]).then(t.bind(null,"e984"))}},{path:"template",name:"company_template",component:function(){return t.e("chunk-84f66ece").then(t.bind(null,"4083"))}},{path:"template/detail",name:"company_template_detail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-1387bf96")]).then(t.bind(null,"df39"))}},{path:"template/market",name:"company_template_market",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-d1bd5818")]).then(t.bind(null,"be38"))}},{path:"setting",name:"company_setting",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-1fe39068")]).then(t.bind(null,"cda4"))}},{path:"app",name:"company_app",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0b3688")]).then(t.bind(null,"27f3"))}}]},{path:"/template",name:"template",component:function(e){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-1f7519e6")]).then(function(){var n=[t("65b7")];e.apply(null,n)}.bind(this)).catch(t.oe)},redirect:{name:"template_console"},children:[{path:"console",name:"template_console",component:function(){return t.e("chunk-d4bc3576").then(t.bind(null,"8875"))}},{path:"console/detail",name:"template_console_detail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-edf65c70")]).then(t.bind(null,"ccf7"))}},{path:"console/create",name:"template_console_create",component:function(e){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-15f86d65")]).then(function(){var n=[t("1fab7")];e.apply(null,n)}.bind(this)).catch(t.oe)}}]},{path:"/system",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-d4e6d2d8")]).then(t.bind(null,"f364"))},redirect:{name:"system_customer"},children:[{path:"customer",name:"system_customer",component:function(){return t.e("chunk-3e45e24c").then(t.bind(null,"f851"))}},{path:"template",name:"system_template",component:function(){return t.e("chunk-c54a701e").then(t.bind(null,"81b5"))}},{path:"runmanage",name:"system_runmanage",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-11067227")]).then(t.bind(null,"d798"))}},{path:"template/matrix",name:"system_template_matrix",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-3b425bf2")]).then(t.bind(null,"2275"))}},{path:"template/mind",name:"system_template_mind",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-63477c88"),t.e("chunk-50f34397")]).then(t.bind(null,"bccc"))}},{path:"template/tempfile",name:"system_template_file",component:function(){return t.e("chunk-28990618").then(t.bind(null,"f1f7"))}},{path:"appcenter",name:"system_appcenter",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0e148e")]).then(t.bind(null,"7a7e"))}},{path:"appinfo",name:"system_appinfo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d21b850")]).then(t.bind(null,"bfb8"))}},{path:"setting",name:"system_setting",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-1fe40532")]).then(t.bind(null,"ddca"))}},{path:"*",redirect:{name:"system_customer"}}]},{path:"*",name:"notfound",component:function(){return t.e("chunk-15a37012").then(t.bind(null,"9403"))}}]});c.beforeEach((function(e,n,t){"/"===e.path||sessionStorage.getItem("userId")?t():t({path:"/"})})),c.afterEach((function(e){window.document.title=o[e.name]||"LOCKING | 云建筑"}));n["a"]=c},"51b0":function(e,n,t){},"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 r=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-40",class:{"mt-64":e.setMarginTop,"calc-height":e.setMarginTop,"workspace-bigbody":e.$route.path.indexOf("/workspace")>=0,"mt-76":"newproject"==e.$route.name||"projdetail"==e.$route.name},attrs:{id:"bigbody"}})],1)},o=[],c=(t("c975"),t("b0c0"),t("1d40")),i={components:{},name:"App",data:function(){return{header_show:!0,companyName:"",mypath:"/",showIndexOption:!1,showHelpPage:!1,searchName:"",isShowOutWorkSpace:!1,outWorkSpace:!1,isClient:c["a"].isClient,onlineStatus:!1,state:this.$store.state}},created:function(){var e=this;console.log("版本编译时间:","2021.06.25 14:14"),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),this.isClient&&(c["a"].keepLiveTest((function(n){e.onlineStatus=n,e.$store.changeGatewayState(n),sessionStorage.setItem("isOnLine",String(n&&navigator.onLine))}),(function(n){e.$store.state.isMaxWindowSize=n})),c["a"].subscribeGatewayMessage())},computed:{setMarginTop:function(){return this.isClient||"workspace"==this.$route.name},currentRoutePath:function(){return this.$route.path}},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},currentRoutePath:function(e){e.indexOf("projdetail")>=0?document.body.classList.add("set-bgc"):document.body.classList.remove("set-bgc")}}},u=i,s=(t("5c0b"),t("c864"),t("6964"),t("2877")),d=Object(s["a"])(u,a,o,!1,null,"717d06a7",null),l=d.exports,f=t("41cb"),p=t("5c96"),h=t.n(p),m=(t("0fae"),t("96cf"),t("1da1")),b=t("b775"),k=t("0f13"),g=t("3de1"),y=function(){return{gatewayState:!1,isMaxWindowSize:!1,client:c["a"].isClient?"桌面端":"WEB端"}},v=function(){return{isLogin:!1,accountId:void 0,accountName:void 0,userName:void 0,platformList:[],currentPlatform:{},currentCompanyId:void 0,avator:void 0,userInfo:{}}},w=function(){var e=Object.assign(y(),v());try{var n=JSON.parse(sessionStorage.getItem("user")),t=sessionStorage.getItem("companyId"),r=JSON.parse(sessionStorage.getItem("platform")||"{}");n&&n.accountId&&(e.isLogin=!0,Object.assign(e,n),e.currentCompanyId=t,e.currentPlatform=r)}catch(a){console.log("加载session数据失败"),e=Object.assign(y(),v())}return e},O={state:w(),setCurrentPlatform:function(e){this.state.currentPlatform=e,this.state.currentCompanyId=e.orgId,sessionStorage.companyId=e.orgId,sessionStorage.platform=JSON.stringify(e),sessionStorage.CompanyName=JSON.parse(sessionStorage.platform).orgName,sessionStorage.accountName=JSON.parse(sessionStorage.user).accountName;var n={API:"authentication/login",Action:"登录",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.accountName,Source:sessionStorage.client};Object(b["b"])("operation/record",n)},setIsMaxWindowSize:function(e){this.state.isMaxWindowSize=e},changeGatewayState:function(e){this.state.gatewayState=e},login:function(e,n){var t=this;return Object(m["a"])(regeneratorRuntime.mark((function r(){var a,o,c,i,u,s,d,l,f,p,h,m,y,v,w,O,C,j,I,N,S;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,Object(b["b"])("authentication/login",{UserName:e,PassWord:n});case 2:if(a=r.sent,o=0===a.Code,o){r.next=6;break}return r.abrupt("return",a);case 6:if(t.state.isLogin=!0,c=Object(g["b"])(a.Data||{}),delete c.userExt,i=c.companyId,u=c.cnName,s=c.id,d=c.permission,l=c.backgroundPermission,f=[],p={accountId:s,accountName:e,userName:u,platformList:f,userInfo:c},h=3===l,m=2===l,!h){r.next=18;break}f.push(Object(k["d"])(k["b"].MANAGE_CENTER,i,"LOCKING 总后台",void 0,[])),r.next=30;break;case 18:return r.next=20,Object(b["b"])("company/queryFrontDeskCompanyById",{id:i});case 20:if(y=r.sent,0===y.Code){r.next=23;break}return r.abrupt("return",y);case 23:v=y.Data,w=void 0===v?{}:v,O=w.company,C=O.LogoUrl,j=O.CompanyName,I=O.ServiceProviderStatus,N=O.SoftwareVersion,S=[],1==I&&f.push(Object(k["d"])(k["b"].TEMPLATE_CONSOLE,i,j,C,[])),m&&S.push(k["a"].CompanyConsole),1===d&&S.push(k["a"].ProjectManager),f.push(Object(k["d"])(k["b"].COMPANY,i,j,C,S,{softwareVersion:N}));case 30:return t.state.isLogin=!0,Object.assign(t.state,p),sessionStorage.client=t.state.client,sessionStorage.userId=s,sessionStorage.accountId=s,sessionStorage.user=JSON.stringify(p),r.abrupt("return",{Code:a.Code,Data:p});case 37:case"end":return r.stop()}}),r)})))()},logout:function(){var e={API:"authentication/loginOut",Action:"注销",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.accountName,Source:sessionStorage.client};Object(b["b"])("operation/record",e),this.state=Object.assign(this.state,v()),Object(b["b"])("authentication/loginOut"),sessionStorage.clear()}},C=t("2f62"),j=t("a78e"),I=t.n(j),N=t("5ab9"),S=function(e){return Object(N["a"])(e)||"/static/img/avator_default.svg"},x=function(e,n){var t="avator"===n?"/static/img/avator_default.svg":"";return Object(N["a"])(e)||t},P=t("cee5"),_=t.n(P),L=function(e){return _()(e)},E=t("caf9"),R=t("32ed"),A=t.n(R),G=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"}]})},T=[],$={props:{src:String}},M=$,F=Object(s["a"])(M,G,T,!1,null,null,null),K=F.exports,W=(t("856b"),t("d903"),t("c610"),t("935a"),t("51b0"),t("53be"),t("1f94"),t("d2ad")),H=r["default"].extend(W["default"]),B=document.createElement("div");B.style="position: fixed; right: 32px; top: 68px;z-index:99999",document.body.appendChild(B);var z=function(e){var n=new H({propsData:e});n.vm=n.$mount(),B.appendChild(n.vm.$el)},D=z;r["default"].use(h.a),r["default"].use(E["a"]),r["default"].use(C["a"]),r["default"].prototype.$cookie=I.a,r["default"].component("ImgLazy",K),r["default"].prototype.$axios=b["a"],r["default"].prototype.$fetch=b["a"],r["default"].prototype.$fetchApi=b["b"],r["default"].filter("resolveImg",x),r["default"].filter("resolveAvator",S),r["default"].filter("resolveFileSize",L),r["default"].prototype.$bus=new r["default"],r["default"].prototype.$notify=D,r["default"].use(A.a),r["default"].config.productionTip=!1,new r["default"]({router:f["a"],store:O,render:function(e){return e(l)}}).$mount("#app")},"5ab9":function(e,n,t){"use strict";t.d(n,"c",(function(){return u})),t.d(n,"b",(function(){return s})),t.d(n,"a",(function(){return l}));t("99af"),t("c975"),t("ac1f"),t("1276"),t("96cf");var r=t("1da1"),a=t("9b15"),o=t("2ef0"),c=new a({region:"oss-cn-hangzhou",accessKeyId:"LTAI4G2BEDNpfdLmquYYMaMV",accessKeySecret:"tPhAL3qAgF9Tq67h73snAmwu8iPZ5t",bucket:"yiyun-client-files",secure:!0}),i=function(e){return"".concat((new Date).getTime(),"/").concat(e)},u=function(e){return"oss://".concat(e)};function s(e,n){return d.apply(this,arguments)}function d(){return d=Object(r["a"])(regeneratorRuntime.mark((function e(n,t){var r,a,o,u=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=u.length>2&&void 0!==u[2]?u[2]:{},e.prev=1,a=i(n),e.next=5,c.multipartUpload(a,t,r);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]])}))),d.apply(this,arguments)}var l=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),r=n||t.split("/").pop();try{var a=3600,o=c.signatureUrl(t,{expires:a,response:{"content-disposition":'attachment; filename="'.concat(r,'"')}});return setTimeout((function(){l.cache.delete(e)}),1e3*a),o}catch(i){return null}}))},"5b49":function(e,n,t){"use strict";var r=t("1f09"),a=t.n(r);a.a},"5c0b":function(e,n,t){"use strict";var r=t("9c0c"),a=t.n(r);a.a},6964:function(e,n,t){"use strict";var r=t("7dff"),a=t.n(r);a.a},"7cd6":function(e,n,t){},"7dff":function(e,n,t){},"856b":function(e,n,t){},"935a":function(e,n,t){},"99e1":function(e,n,t){"use strict";var r=t("f225"),a=t.n(r);a.a},"9c0c":function(e,n,t){},b775:function(e,n,t){"use strict";t.d(n,"b",(function(){return d})),t.d(n,"c",(function(){return f}));t("99af"),t("c975"),t("fb6a"),t("d3b7"),t("ac1f"),t("25f0"),t("1276"),t("96cf");var r=t("3835"),a=t("1da1"),o=t("bc3a"),c=t.n(o),i=t("2b0e"),u=t("41cb"),s=t("3de1");function d(e,n,t){return l.apply(this,arguments)}function l(){return l=Object(a["a"])(regeneratorRuntime.mark((function e(n,t,a){var o,i,u,s,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=p(n),i=Object(r["a"])(o,2),u=i[0],s=i[1],e.prev=1,e.next=4,"GET"===u?c.a.get(s,{params:t},a):c.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]])}))),l.apply(this,arguments)}function f(e){if(0!==e.Code){var n=e.Code?e.Code.toString():"",t="error";404===e.Code&&(t="warning"),i["default"].prototype.$notify({message:e.Msg,title:n+"错误",type:t})}return e}function p(e){var n=e.split("/"),t=Object(r["a"])(n,1),a=t[0],o=-1!==["template","project","folder","file","templateCompany","projectLinkInvite","lockingmsg"].indexOf(a)?"pms":"cms",c="api/".concat(o,"/").concat("authentication"===a?"":"v1/").concat(e),i="GET";switch(e){case"authentication/login":case"authentication/passwordCheck":case"company/addCompany":case"company/queryGeneralOverview":case"company/queryProviceTree":case"company/updateCompanyById":case"company/link/addCompanyLink":case"company/link/updateCompanyLink":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/connectNestTemplateFolder":case"folder/createSubfolder":case"project/createProject":case"project/editProject":case"project/assignedWork":case"file/addArchMilesStone":case"file/addFile":case"file/updateFile":case"file/fileCoordinationChange":case"file/setShareFile":case"operation/record":case"file/updateProjArchiveHistory":case"templateCompany/addTemplateCompany":case"project/addProjectGobalConfig":case"project/linkProject":case"file/submitDeliverables":case"lockingmsg/markRead":case"file/removeFromRecycleBin":case"file/batchAddFile":i="POST";break;default:i="GET";break}return[i,c]}c.a.defaults.withCredentials=!0,c.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)})),c.a.interceptors.response.use((function(e){return e}),(function(e){if(e.response)switch(e.response.status){case 401:"/"!=u["a"].currentRoute.fullPath&&(s["d"].error("登录超时,请重新登录"),sessionStorage.clear(),u["a"].push({path:"/"}));break}return Promise.reject(e)})),n["a"]=c.a},c610:function(e,n,t){},c864:function(e,n,t){"use strict";var r=t("7cd6"),a=t.n(r);a.a},d2ad:function(e,n,t){"use strict";t.r(n);var r=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}}),c={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")},i={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:c,timer:""}},watch:{show:function(e){var n=this;e||setTimeout((function(){n.destroyElement()}),1e3)}},methods:{destroyElement:function(){this.$destroy(!0),this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},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)}},u=i,s=(t("5b49"),t("99e1"),t("2877")),d=Object(s["a"])(u,r,a,!1,null,"3a7b0566",null);n["default"]=d.exports},d903:function(e,n,t){},f225:function(e,n,t){}});