diff --git a/index.html b/index.html index ffced6f9..44c0e6de 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -LOCKING | 云建筑
\ No newline at end of file +LOCKING | 云建筑
\ No newline at end of file diff --git a/static/css/chunk-3646e7b0.2662439f.css b/static/css/chunk-3646e7b0.2662439f.css new file mode 100644 index 00000000..d5913f98 --- /dev/null +++ b/static/css/chunk-3646e7b0.2662439f.css @@ -0,0 +1 @@ +.black[data-v-373b66dc]{color:#fff}.white[data-v-373b66dc]{background-color:#fcfcfc;box-shadow:0 1px 2px 0 rgba(0,0,0,.2)}.app-header[data-v-373b66dc]{position:fixed;top:0;width:100%;z-index:2;height:50px;line-height:50px}.app-header-content[data-v-373b66dc]{box-sizing:border-box;display:flex;justify-content:space-between;height:100%;width:100%;padding:0 64px;font-size:16px}.app-header-content-right>div[data-v-373b66dc],.app-header-content-right>span[data-v-373b66dc]{margin-left:18px}.app-header-center[data-v-373b66dc]{position:absolute;top:0;left:50%;transform:translateX(-50%);font-size:18px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;height:50px;line-height:50px}.app-header-back-btn[data-v-373b66dc]{position:absolute;left:36px;top:0;bottom:0;margin:auto 0}.black-bg-color[data-v-373b66dc]{background-color:#32323c}.header{box-shadow:none}.proj_manage{width:100%;height:100%;padding:0 64px;box-sizing:border-box}.proj_manage .proj_manage_content{display:flex;width:100%;height:calc(100vh - 76px);position:relative}.proj_manage_left{flex:1}.proj_manage_left .nodes-viewer{height:100%}.template_preview{width:50%;left:0;position:absolute}.projModule{flex:none;background-color:#fff;width:660px;position:relative;height:100%;right:0;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.projModule .newProj_header{width:100%;padding:9px 24px 0 24px;box-sizing:border-box;height:64px}.projModule .newProj_header .newProj_title{font-size:20px;font-weight:700;float:left}.nextbtn{padding:6px 16px;color:#fff}.nextbtn,.slot_btn{font-size:14px;border-radius:8px;background-color:#7850ff;cursor:pointer}.slot_btn{position:relative;left:24px;padding:0 16px;height:32px;line-height:32px;margin:9px 0;color:#f5f5f7;text-align:center;font-family:PingFangSC-Regular}.nextbtn{float:right}.newProj_content{box-sizing:border-box;padding-top:123px;text-align:center}.input_projname{width:60%;height:44px;border-radius:4px;color:rgba(0,0,0,.56);background-color:#e9e9eb;border:.5px solid #aeaeae;font-size:16px;padding-left:16px}.upload_img,.upload_imgBox{text-align:center}.upload_imgBox{background-color:#32323c;border:1px solid #979797;margin-bottom:48px;width:293px;height:226px;border-radius:8px;box-shadow:0 7px 16px 0 rgba(0,0,0,.2);position:relative;overflow:hidden;border:0;display:inline-grid}.upload_imgBox>img{min-width:293px;min-height:226px;max-width:120%;max-height:120%;transform:scale(1);cursor:pointer;vertical-align:middle;margin:0 auto}.set_position{position:relative!important}.template_select{height:calc(100% - 50px)}.projModule .icon_topback_left{background:url(/static/img/yiyunicon.png) no-repeat -28px -84px!important}.template_select_content{overflow-y:scroll;height:100%}.template_select_content .template_info{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf;transition:all .3s;cursor:pointer}.template_select_content .template_info .template_info_name{margin-left:38px;font-size:14px}.template_select_content .template_info .check_box{display:inline-block;width:28px;height:28px;border-radius:50%;position:absolute;top:50%;transform:translateY(-50%);background-color:#cbcbce;box-shadow:undefined,inset 0 1px 3px 0 rgba(0,0,0,.15)}.template_select_content .template_info .check_box.checked{background-color:#7850ff;text-align:center;line-height:28px;color:#fff}.template_select_content .template_info .check_box.checked .el-icon-check{display:inline-block}.template_select_content .template_info .check_box .el-icon-check{display:none}.template_select_content .template_empty{margin-top:100px;text-align:center;color:#c0c4cc}.template_info:hover{background-color:rgba(50,50,60,.15)}.template_improve_content{width:100%;padding:0 8px;box-sizing:border-box}.template_improve_content .template_improve_info{line-height:48px;width:100%;display:flex;color:rgba(0,0,0,.56)}.template_improve_content .template_improve_info .template_title{width:24%;text-align:right}.template_improve_content .template_improve_info .template_title_info{margin-left:8px;color:#32323c;flex:1}.template_improve_content .template_improve_infoInput{line-height:64px}.template_improve_content .template_improve_infoInput .input_projname{width:90%;margin-right:16px} \ No newline at end of file diff --git a/static/css/chunk-7d5432f7.6e546bc6.css b/static/css/chunk-7d5432f7.6e546bc6.css deleted file mode 100644 index 0ce13967..00000000 --- a/static/css/chunk-7d5432f7.6e546bc6.css +++ /dev/null @@ -1 +0,0 @@ -.black[data-v-373b66dc]{color:#fff}.white[data-v-373b66dc]{background-color:#fcfcfc;box-shadow:0 1px 2px 0 rgba(0,0,0,.2)}.app-header[data-v-373b66dc]{position:fixed;top:0;width:100%;z-index:2;height:50px;line-height:50px}.app-header-content[data-v-373b66dc]{box-sizing:border-box;display:flex;justify-content:space-between;height:100%;width:100%;padding:0 64px;font-size:16px}.app-header-content-right>div[data-v-373b66dc],.app-header-content-right>span[data-v-373b66dc]{margin-left:18px}.app-header-center[data-v-373b66dc]{position:absolute;top:0;left:50%;transform:translateX(-50%);font-size:18px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;height:50px;line-height:50px}.app-header-back-btn[data-v-373b66dc]{position:absolute;left:36px;top:0;bottom:0;margin:auto 0}.black-bg-color[data-v-373b66dc]{background-color:#32323c}.header{box-shadow:none}.proj_manage{width:100%;height:100%;padding:0 64px;box-sizing:border-box}.proj_manage .proj_manage_content{width:100%;height:calc(100vh - 76px);position:relative}.template_preview{width:50%;left:0;position:absolute}.projModule{background-color:#fff;width:50%;position:relative;min-width:400px;height:100%;right:0;position:absolute;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.projModule .newProj_header{width:100%;padding:9px 24px 0 24px;box-sizing:border-box;height:64px}.projModule .newProj_header .newProj_title{font-size:20px;font-weight:700;float:left}.nextbtn{padding:6px 16px;color:#fff}.nextbtn,.slot_btn{font-size:14px;border-radius:8px;background-color:#7850ff;cursor:pointer}.slot_btn{position:relative;left:24px;padding:0 16px;height:32px;line-height:32px;margin:9px 0;color:#f5f5f7;text-align:center;font-family:PingFangSC-Regular}.nextbtn{float:right}.newProj_content{box-sizing:border-box;padding-top:123px;text-align:center}.input_projname{width:60%;height:44px;border-radius:4px;color:rgba(0,0,0,.56);background-color:#e9e9eb;border:.5px solid #aeaeae;font-size:16px;padding-left:16px}.upload_img,.upload_imgBox{text-align:center}.upload_imgBox{background-color:#32323c;border:1px solid #979797;margin-bottom:48px;width:293px;height:226px;border-radius:8px;box-shadow:0 7px 16px 0 rgba(0,0,0,.2);position:relative;overflow:hidden;border:0;display:inline-grid}.upload_imgBox>img{min-width:293px;min-height:226px;max-width:120%;max-height:120%;transform:scale(1);cursor:pointer;vertical-align:middle;margin:0 auto}.set_position{position:relative!important}.template_select{height:calc(100% - 50px)}.projModule .icon_topback_left{background:url(/static/img/yiyunicon.png) no-repeat -28px -84px!important}.template_select_content{overflow-y:scroll;height:100%}.template_select_content .template_info{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf;transition:all .3s;cursor:pointer}.template_select_content .template_info .template_info_name{margin-left:38px;font-size:14px}.template_select_content .template_info .check_box{display:inline-block;width:28px;height:28px;border-radius:50%;position:absolute;top:50%;transform:translateY(-50%);background-color:#cbcbce;box-shadow:undefined,inset 0 1px 3px 0 rgba(0,0,0,.15)}.template_select_content .template_info .check_box.checked{background-color:#7850ff;text-align:center;line-height:28px;color:#fff}.template_select_content .template_info .check_box.checked .el-icon-check{display:inline-block}.template_select_content .template_info .check_box .el-icon-check{display:none}.template_select_content .template_empty{margin-top:100px;text-align:center;color:#c0c4cc}.template_info:hover{background-color:rgba(50,50,60,.15)}.template_improve_content{width:100%;padding:0 8px;box-sizing:border-box}.template_improve_content .template_improve_info{line-height:48px;width:100%;display:flex;color:rgba(0,0,0,.56)}.template_improve_content .template_improve_info .template_title{width:24%;text-align:right}.template_improve_content .template_improve_info .template_title_info{margin-left:8px;color:#32323c;flex:1}.template_improve_content .template_improve_infoInput{line-height:64px}.template_improve_content .template_improve_infoInput .input_projname{width:90%;margin-right:16px} \ No newline at end of file diff --git a/static/js/app.aac2ab64.js b/static/js/app.bf9f0bc7.js similarity index 95% rename from static/js/app.aac2ab64.js rename to static/js/app.bf9f0bc7.js index 3c740303..dc46a019 100644 --- a/static/js/app.aac2ab64.js +++ b/static/js/app.bf9f0bc7.js @@ -1 +1 @@ -(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]:[];return{platformType:e,orgId:n,orgLogo:r,orgName:t,accessList:a}}var o={CompanyConsole:"company_console",ProjectManager:"project_manager"};function c(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-7b356701"),t.e("chunk-63d4ab7f")]).then(t.bind(null,"9ed6"))}},{path:"/demo",name:"demo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),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-7b356701"),t.e("chunk-77e90549"),t.e("chunk-20df31c9")]).then(t.bind(null,"47c5"))}},{path:"/watch",name:"watch",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-59bb5b90")]).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-7b356701"),t.e("chunk-7d5432f7")]).then(t.bind(null,"a341"))}},{path:"/watchlink",name:"watchlink",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),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-7b356701"),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-7b356701"),t.e("chunk-17d87e26")]).then(t.bind(null,"011a"))}},{path:"/projnotice",name:"projnotice",component:function(){return t.e("chunk-05bf99c1").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-7b356701"),t.e("chunk-7e46145d"),t.e("chunk-77e90549"),t.e("chunk-42175c66")]).then(t.bind(null,"3b2f"))}},{path:"/recycle",name:"recycle",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-5272defd")]).then(t.bind(null,"8b1e"))}},{path:"/history",name:"history",component:function(){return Promise.all([t.e("chunk-7e46145d"),t.e("chunk-2d0d2af5")]).then(t.bind(null,"a2d2"))}},{path:"/cloud",name:"cloud",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-6d72e803")]).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-7d913a8a"),t.e("chunk-7b356701"),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-7b356701"),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-7b356701"),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-7b356701"),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-7b356701"),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-7b356701"),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-7b356701"),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-a2202954").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-7b356701"),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-7b356701"),t.e("chunk-695cbab1")]).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.05.14 16:39"),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("b8ff"),t("6964"),t("2877")),d=Object(s["a"])(u,a,o,!1,null,"d326a332",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;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=[],1==I&&f.push(Object(k["d"])(k["b"].TEMPLATE_CONSOLE,i,j,C,[])),m&&N.push(k["a"].CompanyConsole),1===d&&N.push(k["a"].ProjectManager),f.push(Object(k["d"])(k["b"].COMPANY,i,j,C,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"]),z=document.createElement("div");z.style="position: fixed; right: 32px; top: 68px;z-index:99999",document.body.appendChild(z);var B=function(e){var n=new H({propsData:e});n.vm=n.$mount(),z.appendChild(n.vm.$el)},D=B;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},"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"].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":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},b8ff:function(e,n,t){"use strict";var r=t("cc4f"),a=t.n(r);a.a},c610:function(e,n,t){},cc4f:function(e,n,t){},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){}}); \ No newline at end of file +(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]:[];return{platformType:e,orgId:n,orgLogo:r,orgName:t,accessList:a}}var o={CompanyConsole:"company_console",ProjectManager:"project_manager"};function c(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-7b356701"),t.e("chunk-63d4ab7f")]).then(t.bind(null,"9ed6"))}},{path:"/demo",name:"demo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),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-7b356701"),t.e("chunk-77e90549"),t.e("chunk-20df31c9")]).then(t.bind(null,"47c5"))}},{path:"/watch",name:"watch",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-59bb5b90")]).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-7b356701"),t.e("chunk-3646e7b0")]).then(t.bind(null,"a341"))}},{path:"/watchlink",name:"watchlink",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),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-7b356701"),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-7b356701"),t.e("chunk-17d87e26")]).then(t.bind(null,"011a"))}},{path:"/projnotice",name:"projnotice",component:function(){return t.e("chunk-05bf99c1").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-7b356701"),t.e("chunk-7e46145d"),t.e("chunk-77e90549"),t.e("chunk-42175c66")]).then(t.bind(null,"3b2f"))}},{path:"/recycle",name:"recycle",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-5272defd")]).then(t.bind(null,"8b1e"))}},{path:"/history",name:"history",component:function(){return Promise.all([t.e("chunk-7e46145d"),t.e("chunk-2d0d2af5")]).then(t.bind(null,"a2d2"))}},{path:"/cloud",name:"cloud",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-6d72e803")]).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-7d913a8a"),t.e("chunk-7b356701"),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-7b356701"),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-7b356701"),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-7b356701"),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-7b356701"),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-7b356701"),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-7b356701"),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-a2202954").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-7b356701"),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-7b356701"),t.e("chunk-695cbab1")]).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.05.19 11:31"),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("b8ff"),t("6964"),t("2877")),d=Object(s["a"])(u,a,o,!1,null,"d326a332",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;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=[],1==I&&f.push(Object(k["d"])(k["b"].TEMPLATE_CONSOLE,i,j,C,[])),m&&N.push(k["a"].CompanyConsole),1===d&&N.push(k["a"].ProjectManager),f.push(Object(k["d"])(k["b"].COMPANY,i,j,C,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"]),z=document.createElement("div");z.style="position: fixed; right: 32px; top: 68px;z-index:99999",document.body.appendChild(z);var B=function(e){var n=new H({propsData:e});n.vm=n.$mount(),z.appendChild(n.vm.$el)},D=B;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},"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"].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":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},b8ff:function(e,n,t){"use strict";var r=t("cc4f"),a=t.n(r);a.a},c610:function(e,n,t){},cc4f:function(e,n,t){},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){}}); \ No newline at end of file diff --git a/static/js/chunk-038ce22f.b3714b4f.js b/static/js/chunk-038ce22f.6614a31e.js similarity index 100% rename from static/js/chunk-038ce22f.b3714b4f.js rename to static/js/chunk-038ce22f.6614a31e.js diff --git a/static/js/chunk-05bf99c1.88ef6b25.js b/static/js/chunk-05bf99c1.606ace76.js similarity index 100% rename from static/js/chunk-05bf99c1.88ef6b25.js rename to static/js/chunk-05bf99c1.606ace76.js diff --git a/static/js/chunk-0dd08121.8f12b2ed.js b/static/js/chunk-0dd08121.e76aa5ac.js similarity index 100% rename from static/js/chunk-0dd08121.8f12b2ed.js rename to static/js/chunk-0dd08121.e76aa5ac.js diff --git a/static/js/chunk-11067227.fb008d55.js b/static/js/chunk-11067227.b74f47a9.js similarity index 100% rename from static/js/chunk-11067227.fb008d55.js rename to static/js/chunk-11067227.b74f47a9.js diff --git a/static/js/chunk-1387bf96.b0ea86ff.js b/static/js/chunk-1387bf96.2bd7edf6.js similarity index 100% rename from static/js/chunk-1387bf96.b0ea86ff.js rename to static/js/chunk-1387bf96.2bd7edf6.js diff --git a/static/js/chunk-15a37012.e1d21e14.js b/static/js/chunk-15a37012.bd572f4e.js similarity index 100% rename from static/js/chunk-15a37012.e1d21e14.js rename to static/js/chunk-15a37012.bd572f4e.js diff --git a/static/js/chunk-15f86d65.9c74f046.js b/static/js/chunk-15f86d65.6d7ffd5d.js similarity index 100% rename from static/js/chunk-15f86d65.9c74f046.js rename to static/js/chunk-15f86d65.6d7ffd5d.js diff --git a/static/js/chunk-17d87e26.19fec580.js b/static/js/chunk-17d87e26.177044b6.js similarity index 100% rename from static/js/chunk-17d87e26.19fec580.js rename to static/js/chunk-17d87e26.177044b6.js diff --git a/static/js/chunk-1f4d12f6.da6f6e3e.js b/static/js/chunk-1f4d12f6.67878200.js similarity index 100% rename from static/js/chunk-1f4d12f6.da6f6e3e.js rename to static/js/chunk-1f4d12f6.67878200.js diff --git a/static/js/chunk-1f7519e6.664b7a79.js b/static/js/chunk-1f7519e6.04d71bd3.js similarity index 100% rename from static/js/chunk-1f7519e6.664b7a79.js rename to static/js/chunk-1f7519e6.04d71bd3.js diff --git a/static/js/chunk-1fe39068.f4efde45.js b/static/js/chunk-1fe39068.5239d771.js similarity index 100% rename from static/js/chunk-1fe39068.f4efde45.js rename to static/js/chunk-1fe39068.5239d771.js diff --git a/static/js/chunk-1fe40532.1213f684.js b/static/js/chunk-1fe40532.e78f5fca.js similarity index 100% rename from static/js/chunk-1fe40532.1213f684.js rename to static/js/chunk-1fe40532.e78f5fca.js diff --git a/static/js/chunk-20df31c9.5462d0ea.js b/static/js/chunk-20df31c9.fe2f308c.js similarity index 100% rename from static/js/chunk-20df31c9.5462d0ea.js rename to static/js/chunk-20df31c9.fe2f308c.js diff --git a/static/js/chunk-2627340f.acf9ca6f.js b/static/js/chunk-2627340f.a67b6787.js similarity index 100% rename from static/js/chunk-2627340f.acf9ca6f.js rename to static/js/chunk-2627340f.a67b6787.js diff --git a/static/js/chunk-28990618.df7ac30b.js b/static/js/chunk-28990618.8cb63599.js similarity index 100% rename from static/js/chunk-28990618.df7ac30b.js rename to static/js/chunk-28990618.8cb63599.js diff --git a/static/js/chunk-2d0ac90d.28d21aaf.js b/static/js/chunk-2d0ac90d.d11e4fb5.js similarity index 100% rename from static/js/chunk-2d0ac90d.28d21aaf.js rename to static/js/chunk-2d0ac90d.d11e4fb5.js diff --git a/static/js/chunk-2d0b3688.cb89883f.js b/static/js/chunk-2d0b3688.98c8e663.js similarity index 100% rename from static/js/chunk-2d0b3688.cb89883f.js rename to static/js/chunk-2d0b3688.98c8e663.js diff --git a/static/js/chunk-2d0c061a.854eb3dc.js b/static/js/chunk-2d0c061a.cf490f8c.js similarity index 100% rename from static/js/chunk-2d0c061a.854eb3dc.js rename to static/js/chunk-2d0c061a.cf490f8c.js diff --git a/static/js/chunk-2d0cf6a4.8dcaf4f9.js b/static/js/chunk-2d0cf6a4.17fd1b98.js similarity index 100% rename from static/js/chunk-2d0cf6a4.8dcaf4f9.js rename to static/js/chunk-2d0cf6a4.17fd1b98.js diff --git a/static/js/chunk-2d0e148e.65bcfff1.js b/static/js/chunk-2d0e148e.966ca0d4.js similarity index 100% rename from static/js/chunk-2d0e148e.65bcfff1.js rename to static/js/chunk-2d0e148e.966ca0d4.js diff --git a/static/js/chunk-2d21b850.745d224b.js b/static/js/chunk-2d21b850.aef9492f.js similarity index 100% rename from static/js/chunk-2d21b850.745d224b.js rename to static/js/chunk-2d21b850.aef9492f.js diff --git a/static/js/chunk-2d224b2b.f06f6794.js b/static/js/chunk-2d224b2b.c9d3616e.js similarity index 100% rename from static/js/chunk-2d224b2b.f06f6794.js rename to static/js/chunk-2d224b2b.c9d3616e.js diff --git a/static/js/chunk-309e49e4.b9d53a5d.js b/static/js/chunk-309e49e4.8e368fe6.js similarity index 100% rename from static/js/chunk-309e49e4.b9d53a5d.js rename to static/js/chunk-309e49e4.8e368fe6.js diff --git a/static/js/chunk-3646e7b0.360050cb.js b/static/js/chunk-3646e7b0.360050cb.js new file mode 100644 index 00000000..1bc86139 --- /dev/null +++ b/static/js/chunk-3646e7b0.360050cb.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3646e7b0"],{"04c4":function(e,t,r){"use strict";var n=r("14d6"),a=r.n(n);a.a},"14d6":function(e,t,r){},2909:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r("6b75");function a(e){if(Array.isArray(e))return Object(n["a"])(e)}var o=r("db90"),s=r("06c5");function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e){return a(e)||Object(o["a"])(e)||Object(s["a"])(e)||c()}},"5be0":function(e,t,r){},"6dcf":function(e,t,r){"use strict";var n=r("5be0"),a=r.n(n);a.a},a341:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"new-proj"},[r("AppHeader",{staticClass:"new-proj-header",attrs:{theme:"basis",showBackBtn:"",isShowTopBar:!0,backBtnTitle:"取消项目创建"}}),r("div",{staticClass:"proj_manage"},[r("div",{staticClass:"proj_manage_content"},[r("div",{staticClass:"proj_manage_left"},[e.listTempNodeTree.length?r("nodes-viewer",{staticClass:"nodes-viewer",attrs:{node:e.listTempNodeTree[0]}}):e._e()],1),r("div",{staticClass:"projModule adjust-top-radius"},[e.isProjName?r("div",{staticClass:"projName_input"},[r("div",{staticClass:"newProj_header "},[r("div",{staticClass:"newProj_title"},[e._v(" 输入项目名称 ")]),r("el-button",{staticClass:"nextbtn",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.enterTemplateSelect()}}},[e._v("下一步")])],1),r("div",{staticClass:"newProj_content"},[r("div",{staticClass:"upload_img"},[r("div",{staticClass:"upload_imgBox",style:e.showBackground(e.coverSrc)},[r("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[r("span",[e._v("编辑")])]),r("span",{staticClass:"faceBtn",on:{click:function(t){return t.stopPropagation(),e.setSystemCoverRandom(t)}}},[e._v("使用随机封面")])],1)]),r("div",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.newProjData.projectData.projName,expression:"newProjData.projectData.projName"}],staticClass:"input_projname",attrs:{type:"text",placeholder:"点击输入 请输入32个字之内的字符"},domProps:{value:e.newProjData.projectData.projName},on:{input:function(t){t.target.composing||e.$set(e.newProjData.projectData,"projName",t.target.value)}}})])])]):e._e(),e.isTemSelect?r("div",{staticClass:"template_select"},[r("TopHeader",{ref:"projdesc",staticClass:"set_position header-wrap",class:{"header-bottom-shadow":e.isProjDescScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"修改项目名称",onBackBtnClick:e.enterProjNameInput,title:"选择项目模板"},scopedSlots:e._u([{key:"right",fn:function(){return[r("el-button",{staticClass:"slot_btn",attrs:{disabled:!e.selectTemplate.Id},on:{click:function(t){return t.stopPropagation(),e.enterTemplateImprove()}}},[e._v("选定模板")])]},proxy:!0}],null,!1,3864135699)}),r("div",{staticClass:"template_select_content"},[e._l(e.templateList,(function(t,n){return r("div",{key:t.Id,staticClass:"template_info",on:{click:function(r){return r.stopPropagation(),e.isChecked(n,t)}}},[r("div",{staticClass:"check_box",class:{checked:e.checkedIndex==n}},[r("i",{staticClass:"el-icon-check"})]),r("span",{staticClass:"template_info_name"},[e._v(e._s(t.TempName))])])})),e.templateList.length?e._e():r("div",{staticClass:"template_empty"},[e._v("没有可供使用的项目模板,请联系管理员。")])],2)],1):e._e(),e.isTemImprove?r("div",{staticClass:"template_improve"},[r("TopHeader",{staticClass:"set_position header-wrap",attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"选择模板",onBackBtnClick:e.enterTemplateSelect,title:"完善模板信息"}},[r("div",{staticClass:"slot_btn",attrs:{slot:"right",type:"primary"},on:{click:function(t){return t.stopPropagation(),e.createProject()}},slot:"right"},[e._v("创建")])]),r("div",{staticClass:"template_improve_content"},[r("div",{staticClass:"template_improve_info"},[r("div",{staticClass:"template_title"},[e._v("模板名称:")]),r("div",{staticClass:"template_title_info"},[e._v(e._s(e.selectTemplate.TempName))])]),r("div",{staticClass:"template_improve_info"},[r("div",{staticClass:"template_title"},[e._v("创建时间:")]),r("div",{staticClass:"template_title_info"},[e._v(e._s(e.createDate))])]),e._l(e.checkNewProjData.CustomProps,(function(t){return r("div",{key:t.Id,staticClass:"template_improve_info template_improve_infoInput"},[r("div",{staticClass:"template_title"},[e._v(e._s((t.PropertyName?t.PropertyName:"自定义字段")+":"))]),r("div",{staticClass:"template_title_info"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.PropValue,expression:"prop.PropValue"}],staticClass:"input_projname",attrs:{type:"text",placeholder:"点击输入"},domProps:{value:t.PropValue},on:{input:function(r){r.target.composing||e.$set(t,"PropValue",r.target.value)}}})])])}))],2)],1):e._e()])])])],1)},a=[],o=(r("4160"),r("fb6a"),r("159b"),r("96cf"),r("1da1")),s=r("5530"),c=r("2909"),i=r("b1f3"),u=r("f96e"),l=r("de58"),p=r("b0f9"),d=(r("93d6"),r("5ab9")),m=r("9e5b"),h=r("b775"),f=(r("3de1"),{components:{AppHeader:u["a"],TopHeader:i["a"],FileUploader:m["a"],NodesViewer:l["a"]},props:{},data:function(){var e=this.$route.params.parentFolderId;return console.log("parentFolderId: ",e),{parentFolderId:e,companyId:sessionStorage.companyId,isProjName:!0,isTemSelect:!1,isTemImprove:!1,templateId:sessionStorage.templateID,listTempNodeTree:[],NestTemplateList:[],otherTemplateList:[],tempNodeList:[],nestNodeId:"",title:"",checkedIndex:NaN,selectTemplate:{},srcIndex:2,coverSrc:"static/img/faceImg/face01.png",templateList:[],isProjDescScroll:!1,projDescEl:null,plastScrollTime:null,createDate:(new Date).toLocaleDateString(),checkNewProjData:{Proj:{ProjName:"",CompanyId:"",Notice:"",ShowImgUrl:"",TemplateId:"",CreateUserId:"",ModifyUserId:""},Node:{},CustomProps:[]},newProjData:{projectData:{projID:"",projName:"",projCode:"",folderID:"",scale:"",address:"",showImgUrl:"",templateID:"",createUserID:"",modifyUserID:"",deleted:0,listProjManager:[]},listFolder:[],listProjProp:[],userId:""}}},methods:{showBackground:function(e){var t=this.$options.filters["resolveImg"],r=t(e);return{background:"center/cover no-repeat url(".concat(r,")")}},enterTemplateSelect:function(){if(void 0!=this.newProjData.projectData.projName&&null!=this.newProjData.projectData.projName&&""!=this.newProjData.projectData.projName){var e=/[/\\]{1,}/g;e.test(this.newProjData.projectData.projName)?this.$notify({message:"项目名称请不要包含'/' '\\'等字符。",type:["warning"]}):this.newProjData.projectData.projName.length>32?this.$notify({message:"项目名称不得超出32个字符。",type:"warning"}):(this.isProjName=!1,this.isTemSelect=!0,this.isTemImprove=!1,this.isTemNest=!1,this.getSelectTemplateData())}else this.$notify({message:"请输入项目名称。",type:["warning"]})},enterProjNameInput:function(){this.isProjName=!0,this.isTemSelect=!1},enterTemplateImprove:function(){this.isTemSelect=!1,this.isTemImprove=!0,this.getTempProps(this.selectTemplate.Id)},getTempProps:function(e){var t=this;p["n"](e).then((function(e){e.Data.propertys.forEach((function(e,r){t.checkNewProjData.CustomProps[r]={},t.checkNewProjData.CustomProps[r]["TempPropId"]=e.Id,t.checkNewProjData.CustomProps[r]["PropertyName"]=e.PropertyName,t.checkNewProjData.CustomProps[r]["PropValue"]="";var n=t.checkNewProjData.CustomProps;t.checkNewProjData.CustomProps=Object(c["a"])(n)})),t.checkNewProjData=Object(s["a"])({},t.checkNewProjData)}))},isChecked:function(e,t){this.checkedIndex=e,this.selectTemplate=t},setSystemCoverRandom:function(){var e=Math.ceil(10*Math.random());while(this.srcIndex===e)e=Math.ceil(10*Math.random());this.srcIndex=e,this.coverSrc="static/img/faceImg/face".concat("".concat(100+this.srcIndex).slice(1),".png"),this.newProjData.projectData.showImgUrl=this.coverSrc},coverUploadSuccess:function(e){var t=Object(d["c"])(e.ossUrl);this.coverSrc=t,this.newProjData.projectData.showImgUrl=t},getSelectTemplateData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p["m"](e.companyId);case 2:r=t.sent,n=r.Data||[],e.templateList=n,e.templateList&&e.templateList.length&&"{}"===JSON.stringify(e.selectTemplate)&&(e.selectTemplate=n[0],e.checkedIndex=0);case 6:case"end":return t.stop()}}),t)})))()},createProject:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r,n,a,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isDisableCreate=!0,e.newProjData.userId=sessionStorage.userId,e.newProjData.projectData.templateID=e.selectTemplate.Id,e.newProjData.projectData.showImgUrl=e.coverSrc,r=e,e.checkNewProjData.Proj.ProjName=e.newProjData.projectData.projName,e.checkNewProjData.Proj.CompanyId=e.$store.state.currentCompanyId,e.checkNewProjData.Proj.ShowImgUrl=String(e.newProjData.projectData.showImgUrl),e.checkNewProjData.Proj.TemplateId=e.selectTemplate.Id,e.checkNewProjData.Proj.CreateUserId=sessionStorage.userId,e.checkNewProjData.Proj.ModifyUserId=sessionStorage.userId,t.next=13,p["p"](e.selectTemplate.Id);case 13:n=t.sent,e.checkNewProjData.Node=n.Data,a=Object(s["a"])({},e.checkNewProjData),e.parentFolderId&&(a.FolderId=e.parentFolderId),e.$fetchApi("project/createProject",a).then((function(t){Object(h["c"])(t),0===t.Code&&(r.$notify({message:"新项目创建成功。",type:["success"]}),sessionStorage.projId=t.Data,sessionStorage.createUserID=sessionStorage.userId,sessionStorage.templateID=e.selectTemplate.Id,sessionStorage.allocated=0,e.$router.push({name:"projdetail",query:{isShowDistworkPage:!0}}).catch((function(e){console.log(e)})))})).catch((function(e){return console.log(e)})),o={API:"project/createProject",Action:"创建项目",CompanyName:sessionStorage.CompanyName,Subject:e.checkNewProjData.Proj.ProjName,Source:sessionStorage.client,ProjectName:e.checkNewProjData.Proj.ProjName},Object(h["b"])("operation/record",o);case 20:case"end":return t.stop()}}),t)})))()},loadTempNodeTree:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,p["p"](e);case 2:n=r.sent,t.listTempNodeTree=n.Data?[n.Data]:[];case 4:case"end":return r.stop()}}),r)})))()},watchProjDescScroll:function(){this.isProjDescScroll=this.projDescEl.scrollTop>0}},watch:{isProjDescScroll:function(e){var t=this;e&&setTimeout((function(){t.projDescEl=t.$refs.projdesc,t.projDescEl&&t.projDescEl.addEventListener("scroll",t.watchProjDescScroll)}),50)},selectTemplate:function(e){this.loadTempNodeTree(e.Id)}},mounted:function(){this.projDescEl&&this.projDescEl.addEventListener("scroll",this.watchProjDescScroll)},beforeDestroy:function(){this.projDescEl&&this.projDescEl.removeEventListener("scroll",this.watchProjDescScroll)}}),j=f,w=(r("04c4"),r("2877")),b=Object(w["a"])(j,n,a,!1,null,null,null);t["default"]=b.exports},b0f9:function(e,t,r){"use strict";r.d(t,"o",(function(){return o})),r.d(t,"m",(function(){return c})),r.d(t,"t",(function(){return u})),r.d(t,"d",(function(){return p})),r.d(t,"n",(function(){return m})),r.d(t,"q",(function(){return f})),r.d(t,"f",(function(){return w})),r.d(t,"s",(function(){return v})),r.d(t,"l",(function(){return y})),r.d(t,"k",(function(){return P})),r.d(t,"b",(function(){return D})),r.d(t,"p",(function(){return T})),r.d(t,"j",(function(){return N})),r.d(t,"h",(function(){return x})),r.d(t,"i",(function(){return R})),r.d(t,"a",(function(){return E})),r.d(t,"g",(function(){return M})),r.d(t,"c",(function(){return L})),r.d(t,"e",(function(){return q})),r.d(t,"r",(function(){return V}));r("4de4"),r("96cf");var n=r("1da1"),a=r("b775");function o(){return s.apply(this,arguments)}function s(){return s=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}function c(e){return i.apply(this,arguments)}function i(){return i=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByCompanyId",{companyId:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),i.apply(this,arguments)}function u(e){return l.apply(this,arguments)}function l(){return l=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return d=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function m(e){return h.apply(this,arguments)}function h(){return h=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function f(e){return j.apply(this,arguments)}function j(){return j=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function w(e){return b.apply(this,arguments)}function b(){return b=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function v(e){return g.apply(this,arguments)}function g(){return g=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/updateTemplate",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function y(e){return I.apply(this,arguments)}function I(){return I=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function P(e){return k.apply(this,arguments)}function k(){return k=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateIdByProjectId",{projectId:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function D(e){return _.apply(this,arguments)}function _(){return _=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/connectNestTemplateFolder",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}function T(e){return C.apply(this,arguments)}function C(){return C=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function N(e,t,r){return O.apply(this,arguments)}function O(){return O=Object(n["a"])(regeneratorRuntime.mark((function e(t,r,n){var o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:r,nestedNodeId:n});case 2:return o=e.sent,e.abrupt("return",Object(a["c"])(o));case 4:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}function x(e){return S.apply(this,arguments)}function S(){return S=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/fileExchange",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}function R(e,t){return B.apply(this,arguments)}function B(){return B=Object(n["a"])(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t,companyId:r?void 0:"0"});case 2:return n=e.sent,r&&n.Data&&(n.Data=n.Data.filter((function(e){return"0"===e.CompanyId||e.CompanyId===r}))),e.abrupt("return",Object(a["c"])(n));case 5:case"end":return e.stop()}}),e)}))),B.apply(this,arguments)}function E(e){return U.apply(this,arguments)}function U(){return U=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/addTemplateNodeModelFile",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),U.apply(this,arguments)}function M(e){return $.apply(this,arguments)}function $(){return $=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function L(e){return F.apply(this,arguments)}function F(){return F=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createNestedRelevance",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),F.apply(this,arguments)}function q(e){return A.apply(this,arguments)}function A(){return A=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteNestedRelevance",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),A.apply(this,arguments)}function V(e){return W.apply(this,arguments)}function W(){return W=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/renameTemplate",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}},b1f3:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[r("div",{staticClass:"app-header-content"},[r("div",{staticClass:"app-header-content-left"},[e._t("left",[r("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),r("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),r("div",{staticClass:"app-header-content-right"},[e._t("right"),e.showUserCenter?r("user-center"):e._e()],2)]),r("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2)])},a=[],o=r("1392"),s={components:{UserCenter:o["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean},data:function(){return{isWindowScrollIng:!1}},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},c=s,i=(r("6dcf"),r("2877")),u=Object(i["a"])(c,n,a,!1,null,"373b66dc",null);t["a"]=u.exports},db90:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r("a4d3"),r("e01a"),r("d28b"),r("a630"),r("d3b7"),r("3ca3"),r("ddb0");function n(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},de58:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{ref:"mindDom",staticClass:"nodes-viewer",style:{width:e.width,height:e.height},attrs:{id:e.domId},on:{mousewheel:function(t){return t.stopPropagation(),e.onWheel(t)}}})},a=[],o=(r("fb6a"),function(){return"xmind_".concat("".concat(Math.random()).slice(2,8))}),s=window.jsMind,c={props:{node:{type:Object,default:null},width:{type:String,default:""},height:{type:String,default:""}},data:function(){return{domId:o(),mindIns:null,domMindInner:null,zoom:1}},mounted:function(){this.init()},watch:{node:function(e){e&&this.show()}},methods:{init:function(){var e={container:this.domId,editable:!1,theme:"",mode:"side",support_html:!1,view:{engine:"canvas",hmargin:100,vmargin:50,line_width:1,line_color:"#cccdd7"}},t=new s(e);t.disable_edit(),t.end_edit(),this.mindIns=t,this.node&&this.show()},getMindInnerDom:function(){if(this.domMindInner)return this.domMindInner;if(this.$refs.mindDom){var e=this.$refs.mindDom.querySelector(".jsmind-inner");return this.domMindInner=e,e}},onWheel:function(e){if(e.ctrlKey){e.returnValue=!1;var t=-e.wheelDelta||e.detail,r=this.getMindInnerDom();if(r){var n=this.zoom+(t>0?-.1:.1),a=Math.max(.2,Math.min(n,1.8));this.zoom=a,r.style.zoom=this.zoom}}},show:function(){var e={meta:{name:"mindhh",author:"hh",version:"0.2"},format:"node_tree",data:this.node};this.mindIns.show(e)}}},i=c,u=r("2877"),l=Object(u["a"])(i,n,a,!1,null,"2aa6cc14",null);t["a"]=l.exports},f96e:function(e,t,r){"use strict";var n=r("01a8");r.d(t,"a",(function(){return n["a"]}))}}]); \ No newline at end of file diff --git a/static/js/chunk-3b425bf2.690c5d43.js b/static/js/chunk-3b425bf2.474f8c61.js similarity index 100% rename from static/js/chunk-3b425bf2.690c5d43.js rename to static/js/chunk-3b425bf2.474f8c61.js diff --git a/static/js/chunk-42175c66.a9922b17.js b/static/js/chunk-42175c66.07ec4d91.js similarity index 100% rename from static/js/chunk-42175c66.a9922b17.js rename to static/js/chunk-42175c66.07ec4d91.js diff --git a/static/js/chunk-5272defd.9e0b7b64.js b/static/js/chunk-5272defd.a8223b48.js similarity index 100% rename from static/js/chunk-5272defd.9e0b7b64.js rename to static/js/chunk-5272defd.a8223b48.js diff --git a/static/js/chunk-59bb5b90.89cc3cea.js b/static/js/chunk-59bb5b90.4a7107aa.js similarity index 100% rename from static/js/chunk-59bb5b90.89cc3cea.js rename to static/js/chunk-59bb5b90.4a7107aa.js diff --git a/static/js/chunk-60c8f103.1c3b2281.js b/static/js/chunk-60c8f103.e6469f68.js similarity index 100% rename from static/js/chunk-60c8f103.1c3b2281.js rename to static/js/chunk-60c8f103.e6469f68.js diff --git a/static/js/chunk-63d4ab7f.d94e23d2.js b/static/js/chunk-63d4ab7f.d69db3cc.js similarity index 100% rename from static/js/chunk-63d4ab7f.d94e23d2.js rename to static/js/chunk-63d4ab7f.d69db3cc.js diff --git a/static/js/chunk-695cbab1.7ad93752.js b/static/js/chunk-695cbab1.4cf42b6d.js similarity index 100% rename from static/js/chunk-695cbab1.7ad93752.js rename to static/js/chunk-695cbab1.4cf42b6d.js diff --git a/static/js/chunk-6d72e803.c37e9bc4.js b/static/js/chunk-6d72e803.755a062d.js similarity index 100% rename from static/js/chunk-6d72e803.c37e9bc4.js rename to static/js/chunk-6d72e803.755a062d.js diff --git a/static/js/chunk-6f87105f.f5e3df05.js b/static/js/chunk-6f87105f.c3845b7a.js similarity index 100% rename from static/js/chunk-6f87105f.f5e3df05.js rename to static/js/chunk-6f87105f.c3845b7a.js diff --git a/static/js/chunk-77e90549.b3ac30d1.js b/static/js/chunk-77e90549.626a9c44.js similarity index 100% rename from static/js/chunk-77e90549.b3ac30d1.js rename to static/js/chunk-77e90549.626a9c44.js diff --git a/static/js/chunk-7b356701.885eab4b.js b/static/js/chunk-7b356701.d4b2fdc2.js similarity index 100% rename from static/js/chunk-7b356701.885eab4b.js rename to static/js/chunk-7b356701.d4b2fdc2.js diff --git a/static/js/chunk-7d5432f7.6e7f683a.js b/static/js/chunk-7d5432f7.6e7f683a.js deleted file mode 100644 index a0e5cd67..00000000 --- a/static/js/chunk-7d5432f7.6e7f683a.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7d5432f7"],{"04c4":function(e,t,r){"use strict";var n=r("14d6"),a=r.n(n);a.a},"14d6":function(e,t,r){},2909:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r("6b75");function a(e){if(Array.isArray(e))return Object(n["a"])(e)}var c=r("db90"),o=r("06c5");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e){return a(e)||Object(c["a"])(e)||Object(o["a"])(e)||s()}},"5be0":function(e,t,r){},"6dcf":function(e,t,r){"use strict";var n=r("5be0"),a=r.n(n);a.a},a341:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"new-proj"},[r("AppHeader",{staticClass:"new-proj-header",attrs:{theme:"basis",showBackBtn:"",isShowTopBar:!0,backBtnTitle:"取消项目创建"}}),r("div",{staticClass:"proj_manage"},[r("div",{staticClass:"proj_manage_content"},[r("div",{staticClass:"projModule adjust-top-radius"},[e.isProjName?r("div",{staticClass:"projName_input"},[r("div",{staticClass:"newProj_header "},[r("div",{staticClass:"newProj_title"},[e._v(" 输入项目名称 ")]),r("el-button",{staticClass:"nextbtn",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.enterTemplateSelect()}}},[e._v("下一步")])],1),r("div",{staticClass:"newProj_content"},[r("div",{staticClass:"upload_img"},[r("div",{staticClass:"upload_imgBox",style:e.showBackground(e.coverSrc)},[r("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[r("span",[e._v("编辑")])]),r("span",{staticClass:"faceBtn",on:{click:function(t){return t.stopPropagation(),e.setSystemCoverRandom(t)}}},[e._v("使用随机封面")])],1)]),r("div",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.newProjData.projectData.projName,expression:"newProjData.projectData.projName"}],staticClass:"input_projname",attrs:{type:"text",placeholder:"点击输入 请输入32个字之内的字符"},domProps:{value:e.newProjData.projectData.projName},on:{input:function(t){t.target.composing||e.$set(e.newProjData.projectData,"projName",t.target.value)}}})])])]):e._e(),e.isTemSelect?r("div",{staticClass:"template_select"},[r("TopHeader",{ref:"projdesc",staticClass:"set_position header-wrap",class:{"header-bottom-shadow":e.isProjDescScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"修改项目名称",onBackBtnClick:e.enterProjNameInput,title:"选择项目模板"},scopedSlots:e._u([{key:"right",fn:function(){return[r("el-button",{staticClass:"slot_btn",attrs:{disabled:!e.selectTemplate.Id},on:{click:function(t){return t.stopPropagation(),e.enterTemplateImprove()}}},[e._v("选定模板")])]},proxy:!0}],null,!1,3864135699)}),r("div",{staticClass:"template_select_content"},[e._l(e.templateList,(function(t,n){return r("div",{key:t.Id,staticClass:"template_info",on:{click:function(r){return r.stopPropagation(),e.isChecked(n,t)}}},[r("div",{staticClass:"check_box",class:{checked:e.checkedIndex==n}},[r("i",{staticClass:"el-icon-check"})]),r("span",{staticClass:"template_info_name"},[e._v(e._s(t.TempName))])])})),e.templateList.length?e._e():r("div",{staticClass:"template_empty"},[e._v("没有可供使用的项目模板,请联系管理员。")])],2)],1):e._e(),e.isTemImprove?r("div",{staticClass:"template_improve"},[r("TopHeader",{staticClass:"set_position header-wrap",attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"选择模板",onBackBtnClick:e.enterTemplateSelect,title:"完善模板信息"}},[r("div",{staticClass:"slot_btn",attrs:{slot:"right",type:"primary"},on:{click:function(t){return t.stopPropagation(),e.createProject()}},slot:"right"},[e._v("创建")])]),r("div",{staticClass:"template_improve_content"},[r("div",{staticClass:"template_improve_info"},[r("div",{staticClass:"template_title"},[e._v("模板名称:")]),r("div",{staticClass:"template_title_info"},[e._v(e._s(e.selectTemplate.TempName))])]),r("div",{staticClass:"template_improve_info"},[r("div",{staticClass:"template_title"},[e._v("创建时间:")]),r("div",{staticClass:"template_title_info"},[e._v(e._s(e.createDate))])]),e._l(e.checkNewProjData.CustomProps,(function(t){return r("div",{key:t.Id,staticClass:"template_improve_info template_improve_infoInput"},[r("div",{staticClass:"template_title"},[e._v(e._s((t.PropertyName?t.PropertyName:"自定义字段")+":"))]),r("div",{staticClass:"template_title_info"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.PropValue,expression:"prop.PropValue"}],staticClass:"input_projname",attrs:{type:"text",placeholder:"点击输入"},domProps:{value:t.PropValue},on:{input:function(r){r.target.composing||e.$set(t,"PropValue",r.target.value)}}})])])}))],2)],1):e._e()])])])],1)},a=[],c=(r("4160"),r("fb6a"),r("159b"),r("96cf"),r("1da1")),o=r("5530"),s=r("2909"),i=r("b1f3"),u=r("f96e"),p=r("b0f9"),l=(r("93d6"),r("5ab9")),m=r("9e5b"),d=r("b775"),h=(r("3de1"),{components:{AppHeader:u["a"],TopHeader:i["a"],FileUploader:m["a"]},props:{},data:function(){var e=this.$route.params.parentFolderId;return console.log("parentFolderId: ",e),{parentFolderId:e,companyId:sessionStorage.companyId,isProjName:!0,isTemSelect:!1,isTemImprove:!1,templateId:sessionStorage.templateID,listTempNodeTree:[],NestTemplateList:[],otherTemplateList:[],tempNodeList:[],nestNodeId:"",title:"",checkedIndex:NaN,selectTemplate:{},srcIndex:2,coverSrc:"static/img/faceImg/face01.png",templateList:[],isProjDescScroll:!1,projDescEl:null,plastScrollTime:null,createDate:(new Date).toLocaleDateString(),checkNewProjData:{Proj:{ProjName:"",CompanyId:"",Notice:"",ShowImgUrl:"",TemplateId:"",CreateUserId:"",ModifyUserId:""},Node:{},CustomProps:[]},newProjData:{projectData:{projID:"",projName:"",projCode:"",folderID:"",scale:"",address:"",showImgUrl:"",templateID:"",createUserID:"",modifyUserID:"",deleted:0,listProjManager:[]},listFolder:[],listProjProp:[],userId:""}}},methods:{showBackground:function(e){var t=this.$options.filters["resolveImg"],r=t(e);return{background:"center/cover no-repeat url(".concat(r,")")}},enterTemplateSelect:function(){if(void 0!=this.newProjData.projectData.projName&&null!=this.newProjData.projectData.projName&&""!=this.newProjData.projectData.projName){var e=/[/\\]{1,}/g;e.test(this.newProjData.projectData.projName)?this.$notify({message:"项目名称请不要包含'/' '\\'等字符。",type:["warning"]}):this.newProjData.projectData.projName.length>32?this.$notify({message:"项目名称不得超出32个字符。",type:"warning"}):(this.isProjName=!1,this.isTemSelect=!0,this.isTemImprove=!1,this.isTemNest=!1,this.getSelectTemplateData())}else this.$notify({message:"请输入项目名称。",type:["warning"]})},enterProjNameInput:function(){this.isProjName=!0,this.isTemSelect=!1},enterTemplateImprove:function(){this.isTemSelect=!1,this.isTemImprove=!0,this.getTempProps(this.selectTemplate.Id)},getTempProps:function(e){var t=this;p["n"](e).then((function(e){e.Data.propertys.forEach((function(e,r){t.checkNewProjData.CustomProps[r]={},t.checkNewProjData.CustomProps[r]["TempPropId"]=e.Id,t.checkNewProjData.CustomProps[r]["PropertyName"]=e.PropertyName,t.checkNewProjData.CustomProps[r]["PropValue"]="";var n=t.checkNewProjData.CustomProps;t.checkNewProjData.CustomProps=Object(s["a"])(n)})),t.checkNewProjData=Object(o["a"])({},t.checkNewProjData)}))},isChecked:function(e,t){this.checkedIndex=e,this.selectTemplate=t},setSystemCoverRandom:function(){var e=Math.ceil(10*Math.random());while(this.srcIndex===e)e=Math.ceil(10*Math.random());this.srcIndex=e,this.coverSrc="static/img/faceImg/face".concat("".concat(100+this.srcIndex).slice(1),".png"),this.newProjData.projectData.showImgUrl=this.coverSrc},coverUploadSuccess:function(e){var t=Object(l["c"])(e.ossUrl);this.coverSrc=t,this.newProjData.projectData.showImgUrl=t},getSelectTemplateData:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p["m"](e.companyId);case 2:r=t.sent,n=r.Data||[],e.templateList=n,e.templateList&&e.templateList.length&&"{}"===JSON.stringify(e.selectTemplate)&&(e.selectTemplate=n[0],e.checkedIndex=0);case 6:case"end":return t.stop()}}),t)})))()},getSelectTemplateList:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function r(){var n,a,c;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,p["p"](e);case 2:n=r.sent,a=n.Data,c=a.children||[],t.newProjData.listFolder=[],c.forEach((function(e){var r={folderID:"",projID:"",superID:"",levelID:"",firstFolderID:"",tempNodeID:e.id,folderName:e.topic,fileCount:0,childCount:0,modifyUserID:"",deleted:0,default:!0,listUser:[],manageUser:[]};t.newProjData.listFolder.push(r)}));case 7:case"end":return r.stop()}}),r)})))()},createProject:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var r,n,a,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isDisableCreate=!0,e.newProjData.userId=sessionStorage.userId,e.newProjData.projectData.templateID=e.selectTemplate.Id,e.newProjData.projectData.showImgUrl=e.coverSrc,r=e,e.checkNewProjData.Proj.ProjName=e.newProjData.projectData.projName,e.checkNewProjData.Proj.CompanyId=e.$store.state.currentCompanyId,e.checkNewProjData.Proj.ShowImgUrl=String(e.newProjData.projectData.showImgUrl),e.checkNewProjData.Proj.TemplateId=e.selectTemplate.Id,e.checkNewProjData.Proj.CreateUserId=sessionStorage.userId,e.checkNewProjData.Proj.ModifyUserId=sessionStorage.userId,t.next=13,p["p"](e.selectTemplate.Id);case 13:n=t.sent,e.checkNewProjData.Node=n.Data,a=Object(o["a"])({},e.checkNewProjData),e.parentFolderId&&(a.FolderId=e.parentFolderId),e.$fetchApi("project/createProject",a).then((function(t){Object(d["c"])(t),0===t.Code&&(r.$notify({message:"新项目创建成功。",type:["success"]}),sessionStorage.projId=t.Data,sessionStorage.createUserID=sessionStorage.userId,sessionStorage.templateID=e.selectTemplate.Id,sessionStorage.allocated=0,e.$router.push({name:"projdetail",query:{isShowDistworkPage:!0}}).catch((function(e){console.log(e)})))})).catch((function(e){return console.log(e)})),c={API:"project/createProject",Action:"创建项目",CompanyName:sessionStorage.CompanyName,Subject:e.checkNewProjData.Proj.ProjName,Source:sessionStorage.client,ProjectName:e.checkNewProjData.Proj.ProjName},Object(d["b"])("operation/record",c);case 20:case"end":return t.stop()}}),t)})))()},loadTempNodeTree:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.templateId,t.next=3,p["p"](r);case 3:if(n=t.sent,e.listTempNodeTree=n.Data?[n.Data]:[],n.Data){t.next=7;break}return t.abrupt("return");case 7:e.nodeClick(n.Data);case 8:case"end":return t.stop()}}),t)})))()},watchProjDescScroll:function(){this.isProjDescScroll=this.projDescEl.scrollTop>0}},watch:{isProjDescScroll:function(e){var t=this;e&&setTimeout((function(){t.projDescEl=t.$refs.projdesc,t.projDescEl&&t.projDescEl.addEventListener("scroll",t.watchProjDescScroll)}),50)}},mounted:function(){this.projDescEl&&this.projDescEl.addEventListener("scroll",this.watchProjDescScroll)},beforeDestroy:function(){this.projDescEl&&this.projDescEl.removeEventListener("scroll",this.watchProjDescScroll)}}),f=h,j=(r("04c4"),r("2877")),b=Object(j["a"])(f,n,a,!1,null,null,null);t["default"]=b.exports},b0f9:function(e,t,r){"use strict";r.d(t,"o",(function(){return c})),r.d(t,"m",(function(){return s})),r.d(t,"t",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"n",(function(){return d})),r.d(t,"q",(function(){return f})),r.d(t,"f",(function(){return b})),r.d(t,"s",(function(){return v})),r.d(t,"l",(function(){return y})),r.d(t,"k",(function(){return k})),r.d(t,"b",(function(){return P})),r.d(t,"p",(function(){return C})),r.d(t,"j",(function(){return T})),r.d(t,"h",(function(){return x})),r.d(t,"i",(function(){return R})),r.d(t,"a",(function(){return U})),r.d(t,"g",(function(){return F})),r.d(t,"c",(function(){return $})),r.d(t,"e",(function(){return M})),r.d(t,"r",(function(){return H}));r("4de4"),r("96cf");var n=r("1da1"),a=r("b775");function c(){return o.apply(this,arguments)}function o(){return o=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}function s(e){return i.apply(this,arguments)}function i(){return i=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByCompanyId",{companyId:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),i.apply(this,arguments)}function u(e){return p.apply(this,arguments)}function p(){return p=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function l(e){return m.apply(this,arguments)}function m(){return m=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function d(e){return h.apply(this,arguments)}function h(){return h=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function f(e){return j.apply(this,arguments)}function j(){return j=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function b(e){return w.apply(this,arguments)}function w(){return w=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function v(e){return g.apply(this,arguments)}function g(){return g=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/updateTemplate",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function y(e){return D.apply(this,arguments)}function D(){return D=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),D.apply(this,arguments)}function k(e){return I.apply(this,arguments)}function I(){return I=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateIdByProjectId",{projectId:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function P(e){return _.apply(this,arguments)}function _(){return _=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/connectNestTemplateFolder",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}function C(e){return N.apply(this,arguments)}function N(){return N=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),N.apply(this,arguments)}function T(e,t,r){return O.apply(this,arguments)}function O(){return O=Object(n["a"])(regeneratorRuntime.mark((function e(t,r,n){var c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:r,nestedNodeId:n});case 2:return c=e.sent,e.abrupt("return",Object(a["c"])(c));case 4:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}function x(e){return S.apply(this,arguments)}function S(){return S=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/fileExchange",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}function R(e,t){return B.apply(this,arguments)}function B(){return B=Object(n["a"])(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t,companyId:r?void 0:"0"});case 2:return n=e.sent,r&&n.Data&&(n.Data=n.Data.filter((function(e){return"0"===e.CompanyId||e.CompanyId===r}))),e.abrupt("return",Object(a["c"])(n));case 5:case"end":return e.stop()}}),e)}))),B.apply(this,arguments)}function U(e){return E.apply(this,arguments)}function E(){return E=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/addTemplateNodeModelFile",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function F(e){return L.apply(this,arguments)}function L(){return L=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function $(e){return q.apply(this,arguments)}function q(){return q=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createNestedRelevance",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),q.apply(this,arguments)}function M(e){return A.apply(this,arguments)}function A(){return A=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteNestedRelevance",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),A.apply(this,arguments)}function H(e){return V.apply(this,arguments)}function V(){return V=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/renameTemplate",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}},b1f3:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[r("div",{staticClass:"app-header-content"},[r("div",{staticClass:"app-header-content-left"},[e._t("left",[r("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),r("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),r("div",{staticClass:"app-header-content-right"},[e._t("right"),e.showUserCenter?r("user-center"):e._e()],2)]),r("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2)])},a=[],c=r("1392"),o={components:{UserCenter:c["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean},data:function(){return{isWindowScrollIng:!1}},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},s=o,i=(r("6dcf"),r("2877")),u=Object(i["a"])(s,n,a,!1,null,"373b66dc",null);t["a"]=u.exports},db90:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r("a4d3"),r("e01a"),r("d28b"),r("a630"),r("d3b7"),r("3ca3"),r("ddb0");function n(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},f96e:function(e,t,r){"use strict";var n=r("01a8");r.d(t,"a",(function(){return n["a"]}))}}]); \ No newline at end of file diff --git a/static/js/chunk-7d913a8a.9381ed9a.js b/static/js/chunk-7d913a8a.f11391fd.js similarity index 100% rename from static/js/chunk-7d913a8a.9381ed9a.js rename to static/js/chunk-7d913a8a.f11391fd.js diff --git a/static/js/chunk-7e46145d.a537ad75.js b/static/js/chunk-7e46145d.548dac1a.js similarity index 100% rename from static/js/chunk-7e46145d.a537ad75.js rename to static/js/chunk-7e46145d.548dac1a.js diff --git a/static/js/chunk-84f66ece.595999c1.js b/static/js/chunk-84f66ece.d573acf3.js similarity index 100% rename from static/js/chunk-84f66ece.595999c1.js rename to static/js/chunk-84f66ece.d573acf3.js diff --git a/static/js/chunk-a2202954.7c54d5ed.js b/static/js/chunk-a2202954.c27bbe3e.js similarity index 100% rename from static/js/chunk-a2202954.7c54d5ed.js rename to static/js/chunk-a2202954.c27bbe3e.js diff --git a/static/js/chunk-c54a701e.fc54a043.js b/static/js/chunk-c54a701e.72f1a3fb.js similarity index 100% rename from static/js/chunk-c54a701e.fc54a043.js rename to static/js/chunk-c54a701e.72f1a3fb.js diff --git a/static/js/chunk-d1bd5818.c67486dc.js b/static/js/chunk-d1bd5818.45b1c9a5.js similarity index 100% rename from static/js/chunk-d1bd5818.c67486dc.js rename to static/js/chunk-d1bd5818.45b1c9a5.js diff --git a/static/js/chunk-d4bc3576.6403834f.js b/static/js/chunk-d4bc3576.ec5c1310.js similarity index 100% rename from static/js/chunk-d4bc3576.6403834f.js rename to static/js/chunk-d4bc3576.ec5c1310.js diff --git a/static/js/chunk-d4e6d2d8.cbd0ef68.js b/static/js/chunk-d4e6d2d8.cf5a5e0f.js similarity index 100% rename from static/js/chunk-d4e6d2d8.cbd0ef68.js rename to static/js/chunk-d4e6d2d8.cf5a5e0f.js diff --git a/static/js/chunk-edf65c70.4adba157.js b/static/js/chunk-edf65c70.8c220379.js similarity index 100% rename from static/js/chunk-edf65c70.4adba157.js rename to static/js/chunk-edf65c70.8c220379.js