|
- (function(e){function n(n){for(var a,r,i=n[0],u=n[1],s=n[2],d=0,l=[];d<i.length;d++)r=i[d],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&l.push(o[r][0]),o[r]=0;for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(e[a]=u[a]);f&&f(n);while(l.length)l.shift()();return c.push.apply(c,s||[]),t()}function t(){for(var e,n=0;n<c.length;n++){for(var t=c[n],a=!0,r=1;r<t.length;r++){var i=t[r];0!==o[i]&&(a=!1)}a&&(c.splice(n--,1),e=u(u.s=t[0]))}return e}var a={},r={app:0},o={app:0},c=[];function i(e){return u.p+"static/js/"+({}[e]||e)+"."+{"chunk-05a1125b":"6835378f","chunk-05bf99c1":"a81b838c","chunk-145b0de7":"6ba2608a","chunk-28990618":"92df5f43","chunk-2d0ac90d":"9b219d0c","chunk-2d0c061a":"6edd28ff","chunk-2d224b2b":"b42f15ab","chunk-309e49e4":"b0f5c50e","chunk-550c5be4":"204c6097","chunk-5e79f418":"dd4cd76a","chunk-6263de0e":"35b5dac4","chunk-2d0d2af5":"8b9500e3","chunk-78390ace":"2890a983","chunk-7d913a8a":"4a762d6b","chunk-038ce22f":"a65a529e","chunk-11067227":"957d3fcc","chunk-1fe39068":"ea87d8e9","chunk-1fe40532":"f86dfb6e","chunk-2d0b3688":"0a06cd8f","chunk-2d0cf6a4":"ab19b3a0","chunk-2d0e148e":"9a6ac836","chunk-2d21b850":"446f5d94","chunk-638e5b5a":"b9fc54f6","chunk-12a7ad0b":"8d2c145d","chunk-2b38f122":"866fbe4e","chunk-347878ae":"ff69d016","chunk-392657fd":"59663c78","chunk-3ccf94d4":"a9134855","chunk-3fbc85f3":"b14cd08c","chunk-13e3a3be":"665924fa","chunk-3261285a":"d79f3378","chunk-31c1c511":"2da7e55a","chunk-4a5d94c9":"5ba98478","chunk-02d38d53":"124da8ab","chunk-655d6881":"414b237a","chunk-4c803a36":"526abbaf","chunk-62c7e6db":"488e7ccd","chunk-74b26ff1":"b3d9aee9","chunk-74d6658a":"2a394199","chunk-a821f8e4":"9d3e10b1","chunk-d2670fec":"7702c8bf","chunk-da5f603a":"36234541","chunk-ef8ce8b2":"1d3eccec","chunk-6d72e803":"d7e47ae1"}[e]+".js"}function u(n){if(a[n])return a[n].exports;var t=a[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var n=[],t={"chunk-05a1125b":1,"chunk-145b0de7":1,"chunk-550c5be4":1,"chunk-5e79f418":1,"chunk-6263de0e":1,"chunk-78390ace":1,"chunk-7d913a8a":1,"chunk-638e5b5a":1,"chunk-12a7ad0b":1,"chunk-2b38f122":1,"chunk-347878ae":1,"chunk-392657fd":1,"chunk-3ccf94d4":1,"chunk-3fbc85f3":1,"chunk-13e3a3be":1,"chunk-3261285a":1,"chunk-31c1c511":1,"chunk-4a5d94c9":1,"chunk-02d38d53":1,"chunk-655d6881":1,"chunk-4c803a36":1,"chunk-62c7e6db":1,"chunk-74b26ff1":1,"chunk-74d6658a":1,"chunk-a821f8e4":1,"chunk-d2670fec":1,"chunk-da5f603a":1,"chunk-ef8ce8b2":1,"chunk-6d72e803":1};r[e]?n.push(r[e]):0!==r[e]&&t[e]&&n.push(r[e]=new Promise((function(n,t){for(var a="static/css/"+({}[e]||e)+"."+{"chunk-05a1125b":"0cea0e94","chunk-05bf99c1":"31d6cfe0","chunk-145b0de7":"3e99ca3d","chunk-28990618":"31d6cfe0","chunk-2d0ac90d":"31d6cfe0","chunk-2d0c061a":"31d6cfe0","chunk-2d224b2b":"31d6cfe0","chunk-309e49e4":"31d6cfe0","chunk-550c5be4":"f702278e","chunk-5e79f418":"d5fe49e6","chunk-6263de0e":"ddf3332e","chunk-2d0d2af5":"31d6cfe0","chunk-78390ace":"77855919","chunk-7d913a8a":"946d3591","chunk-038ce22f":"31d6cfe0","chunk-11067227":"31d6cfe0","chunk-1fe39068":"31d6cfe0","chunk-1fe40532":"31d6cfe0","chunk-2d0b3688":"31d6cfe0","chunk-2d0cf6a4":"31d6cfe0","chunk-2d0e148e":"31d6cfe0","chunk-2d21b850":"31d6cfe0","chunk-638e5b5a":"50b5f0b4","chunk-12a7ad0b":"d4c9e021","chunk-2b38f122":"6d9bc294","chunk-347878ae":"c5c79fab","chunk-392657fd":"d37b03fa","chunk-3ccf94d4":"614ef0c4","chunk-3fbc85f3":"9e5fa167","chunk-13e3a3be":"e64b70cd","chunk-3261285a":"e7aac78a","chunk-31c1c511":"486dd84a","chunk-4a5d94c9":"100d49dc","chunk-02d38d53":"b81af110","chunk-655d6881":"60d63f7b","chunk-4c803a36":"af7a451f","chunk-62c7e6db":"a8b4c417","chunk-74b26ff1":"351d7309","chunk-74d6658a":"36f16ebd","chunk-a821f8e4":"9d0ed93d","chunk-d2670fec":"b954ddcb","chunk-da5f603a":"e7e9b00c","chunk-ef8ce8b2":"65074e9d","chunk-6d72e803":"64c8ed61"}[e]+".css",o=u.p+a,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var s=c[i],d=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===a||d===o))return n()}var l=document.getElementsByTagName("style");for(i=0;i<l.length;i++){s=l[i],d=s.getAttribute("data-href");if(d===a||d===o)return n()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=n,f.onerror=function(n){var a=n&&n.target&&n.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=a,delete r[e],f.parentNode.removeChild(f),t(c)},f.href=o;var p=document.getElementsByTagName("head")[0];p.appendChild(f)})).then((function(){r[e]=0})));var a=o[e];if(0!==a)if(a)n.push(a[2]);else{var c=new Promise((function(n,t){a=o[e]=[n,t]}));n.push(a[2]=c);var s,d=document.createElement("script");d.charset="utf-8",d.timeout=120,u.nc&&d.setAttribute("nonce",u.nc),d.src=i(e);var l=new Error;s=function(n){d.onerror=d.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var a=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;l.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",l.name="ChunkLoadError",l.type=a,l.request=r,t[1](l)}o[e]=void 0}};var f=setTimeout((function(){s({type:"timeout",target:d})}),12e4);d.onerror=d.onload=s,document.head.appendChild(d)}return Promise.all(n)},u.m=e,u.c=a,u.d=function(e,n,t){u.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,n){if(1&n&&(e=u(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)u.d(t,a,function(n){return e[n]}.bind(null,a));return t},u.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(n,"a",n),n},u.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},u.p="/",u.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],d=s.push.bind(s);s.push=n,s=s.slice();for(var l=0;l<s.length;l++)n(s[l]);var f=d;c.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("56d7")},"0f13":function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"d",(function(){return r})),t.d(n,"a",(function(){return o})),t.d(n,"c",(function(){return c}));t("c975");var a={MANAGE_CENTER:"MANAGE_CENTER",COMPANY:"COMPANY",TEMPLATE_CONSOLE:"TEMPLATE_CONSOLE"};function r(e,n,t,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return{platformType:e,orgId:n,orgLogo:a,orgName:t,accessList:r}}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 a=t("5530"),r=(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,a){e.on("open",(function(){e.send(n)})),e.on("message",(function(n){t(n),e.close()})),e.on("error",(function(e){return a(e)}))}))},w=function(e){return d?e:g},C={isClient:d,init:w((function(){console.log("客户端 electron API 检测:",e.electron)})),keepLiveTest:w((function(n,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u["identity"],r=y("keeplive"),o=1,c=null,i=e.electron.ipcRenderer;function s(){n(!0),r.send(o)}i.on("detectWindowSize",(function(){t((arguments.length<=1?void 0:arguments[1])||!1)})),r.on("open",(function(){c=setInterval(s,2e3)})),r.on("close",(function(){clearInterval(c),n(!1)})),r.on("error",(function(){a(),n(!1)}))})),subscribeGatewayMessage:w((function(){var e=y("messageNotify");e.on("message",(function(e){var n=e.data;try{var t=n.split("\n"),a=Object(o["a"])(t,2),r=a[0],c=a[1];i["d"].warning(c,r)}catch(u){console.error("gateway message error:",n,u)}}))})),shrinkBrowserWindow:w(Object(r["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(r["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(r["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(r["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(r["a"])(regeneratorRuntime.mark((function n(){var t,a;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 a=n.sent,n.abrupt("return",a);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(r["a"])(regeneratorRuntime.mark((function e(n,t,a,r,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"),[a,t,n].join("|"));case 3:s=e.sent,o(s.data),d=y("subscriptionFileChange"),d.on("open",(function(){d.send(n)})),d.on("message",r),d.on("error",i),c(d);case 10:case"end":return e.stop()}}),e)})));return function(n,t,a,r,o,c){return e.apply(this,arguments)}}()),leaveProject:w((function(e){e.close(),k()})),downloadFile:w((function(e,n,t,a,r){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 r={API:"open",Action:"打开文件",CompanyName:sessionStorage.CompanyName,Subject:t,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(c["b"])("operation/record",r),d.send([e,n,t,a].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 r(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(r["a"])(regeneratorRuntime.mark((function e(n){var t,a,r;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,a=JSON.parse(t.data),r=Object.values(a).map((function(e){var n=e.name,t=e.extension,a=e.relativePath,r=e.absolutePath,o=0===t.indexOf(".")?t.slice(1):t,c=n.slice(0,-t.length);return{fileName:c,extension:o,relativePath:a.split("\\").filter(u["identity"]).join("/"),fullPath:r}})),e.abrupt("return",r);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(r["a"])(regeneratorRuntime.mark((function n(){var t,a,r,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(a=n.sent,r=a.canceled,o=a.filePaths,!r){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(r["a"])(regeneratorRuntime.mark((function n(){var t,a,r,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(a=n.sent,r=a.canceled,o=a.filePaths,!r){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(r["a"])(regeneratorRuntime.mark((function e(n){var t,o,d,f,m,b,k,g,v,w,C,O,j,I,N,S,x,P,_,L,E,R,G,A,$;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,C=n.sourceFilePath,O=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):""),G=O.find((function(e){return g===e.relativePath&&"".concat(e.archName).concat(e.extension?".".concat(e.extension):"")===E})),A=G?Object(i["c"])(Object(a["a"])(Object(a["a"])({},G),{},{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},A),$=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");u.on("open",(function(){var e="",n="",a=!1,r=[C,E,d,R.replace(/\//g,"\\"),e,n,t,a].join("|");u.send(r),N({process:0},A)})),u.on("message",function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var r,d,l,f,p,h,m;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,A),e.abrupt("return");case 4:if("-2"!==t.data){e.next=8;break}return i["d"].error("请先关闭本地文件后再上传"),n(t,A),e.abrupt("return");case 8:if(e.prev=8,r=JSON.parse(t.data),d=r.size,l=r.process,f=r.hash,p=r.commitHistoryHash,N(r,A),100===l&&f){e.next=14;break}return e.abrupt("return");case 14:return u.close(),A.FileSize=+d,A.IpfsCid=f,h=Object(a["a"])({},A),G||delete h.Id,G?(h.HistoryCurrentIpfsCid=p,h.HistoryPreIpfsCid=""):h.HistoryCurrentIpfsCid=p,e.next=22,Object(c["b"])("file/".concat(G?"updateFile":"addFile"),h);case 22:if(m=e.sent,Object(c["c"])(m),0===m.Code){e.next=27;break}return n(m,A),e.abrupt("return");case 27:L.tempNumCount+=1,L.tempNumCount==_&&(s["default"].prototype.$notify({type:["success","upload"],title:"文件上传成功",message:"".concat(A.ArchName)}),P()),o(A),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,A);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,A)}))},p.length>=l?h.push($):(p.push($),$());case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),updateFile:w((function(e,n,t,a,o,s,d,l,f,p){var h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:u["identity"],m=arguments.length>11&&void 0!==arguments[11]?arguments[11]:u["identity"],b=y("upload"),k=e.archName,g=e.extension,v=(e.id,"".concat(k).concat(g?".".concat(g):"")),w="".concat(n,"\\").concat(a,"\\").concat(v);b.on("open",(function(){var e=[w,v,t,a,o,s,d,l].join("|");b.send(e)})),b.on("message",function(){var n=Object(r["a"])(regeneratorRuntime.mark((function n(t){var a,r,s,d,l,k,g,y;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("-1"!==t.data){n.next=4;break}return i["d"].error("文件上传失败"),m(t),n.abrupt("return");case 4:if("-2"!==t.data){n.next=8;break}return i["d"].error("请先关闭本地文件后再上传"),m(t),n.abrupt("return");case 8:if(n.prev=8,a=JSON.parse(t.data),console.log("progressData"),r=a.size,s=a.process,d=a.hash,l=a.commitHistoryHash,k=a.version,h(a),100===s&&d){n.next=15;break}return n.abrupt("return");case 15:return b.close(),g=Object(i["c"])(Object(u["cloneDeep"])(e)),g.ModifyUserId=sessionStorage.userId,g.HistoryPreIpfsCid=o,g.HistoryCurrentIpfsCid=l,f||(g.Size=+r,g.IpfsCid=d,g.Version=k),n.next=23,Object(c["b"])("file/updateFile",g);case 23:return y=n.sent,Object(c["c"])(y),f&&(g.Size=+r,g.IpfsCid=d,g.Version=k),p(g),n.abrupt("return");case 30:n.prev=30,n.t0=n["catch"](8),console.error("socket-update-file parse data have error:",t);case 33:case"end":return n.stop()}}),n,null,[[8,30]])})));return function(e){return n.apply(this,arguments)}}()),b.on("error",(function(n){m(n,e)}))})),queryCommitHistory:w((function(e,n,t){var a=y("queryCommitHistory");a.on("open",(function(){a.send([e,n].join("|"))})),a.on("message",(function(e){if("-1"===e.data)return i["d"].error("查询历史文件失败"),void t([]);var n=JSON.parse(e.data),a=Object.values(n);t(a)}))})),editCommitHistoryMilestone:w((function(e,n,t,a,r){var o=y("editCommitHistoryMilestone");o.on("open",(function(){o.send([e,n,t,a].join("|"))})),o.on("message",(function(e){if("-1"!==e.data){var n=e.data;console.log("lcb",n),r(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"]=C}).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,"e",(function(){return i})),t.d(n,"d",(function(){return u})),t.d(n,"a",(function(){return s}));t("99af"),t("13d5"),t("fb6a"),t("4fad"),t("d3b7");var a=t("3835"),r=t("2b0e");function o(e){return Object.entries(e).reduce((function(e,n){var t=Object(a["a"])(n,2),r=t[0],o=t[1];return e["".concat(r[0].toLocaleLowerCase()).concat(r.slice(1))]=o,e}),{})}function c(e){return Object.entries(e).reduce((function(e,n){var t=Object(a["a"])(n,2),r=t[0],o=t[1];return e["".concat(r[0].toLocaleUpperCase()).concat(r.slice(1))]=o,e}),{})}var i=function(e){return new Promise((function(n){return setTimeout(n,e)}))},u={success:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["success"],duration:2500})},error:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["error"],duration:2500})},warning:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["warning"],duration:2500})}};function s(e,n){var t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},"41cb":function(e,n,t){"use strict";t("b0c0"),t("d3b7");var a=t("2b0e"),r=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:"流程模板 | 样板文件"};a["default"].use(r["a"]);var c=new r["a"]({mode:"hash",routes:[{path:"/",name:"login",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-347878ae")]).then(t.bind(null,"9ed6"))}},{path:"/demo",name:"demo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-4c803a36")]).then(t.bind(null,"46a4"))}},{path:"/projdetail",name:"projdetail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-3fbc85f3"),t.e("chunk-13e3a3be")]).then(t.bind(null,"47c5"))}},{path:"/watch",name:"watch",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-74d6658a")]).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-638e5b5a"),t.e("chunk-3fbc85f3"),t.e("chunk-3261285a")]).then(t.bind(null,"a341"))}},{path:"/watchlink",name:"watchlink",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-62c7e6db")]).then(t.bind(null,"80fb"))}},{path:"/platform",name:"platform",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-2b38f122")]).then(t.bind(null,"0a7f"))}},{path:"/index",name:"index",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-392657fd")]).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-638e5b5a"),t.e("chunk-3fbc85f3"),t.e("chunk-6263de0e"),t.e("chunk-31c1c511")]).then(t.bind(null,"3b2f"))}},{path:"/recycle",name:"recycle",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-d2670fec")]).then(t.bind(null,"8b1e"))}},{path:"/history",name:"history",component:function(){return Promise.all([t.e("chunk-6263de0e"),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-638e5b5a"),t.e("chunk-3ccf94d4")]).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-145b0de7").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-5e79f418").then(t.bind(null,"4083"))}},{path:"template/detail",name:"company_template_detail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-4a5d94c9"),t.e("chunk-02d38d53")]).then(t.bind(null,"df39"))}},{path:"template/market",name:"company_template_market",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-4a5d94c9"),t.e("chunk-655d6881")]).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-638e5b5a"),t.e("chunk-ef8ce8b2")]).then(function(){var n=[t("65b7")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/template/create",name:"template_create",component:function(e){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-74b26ff1")]).then(function(){var n=[t("d235")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/system",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-da5f603a")]).then(t.bind(null,"f364"))},redirect:{name:"system_customer"},children:[{path:"customer",name:"system_customer",component:function(){return t.e("chunk-550c5be4").then(t.bind(null,"f851"))}},{path:"template",name:"system_template",component:function(){return t.e("chunk-78390ace").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-638e5b5a"),t.e("chunk-12a7ad0b")]).then(t.bind(null,"2275"))}},{path:"template/mind",name:"system_template_mind",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-a821f8e4")]).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-05a1125b").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 a=t("2b0e"),r=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.04.16 14:40"),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,r,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"),a=JSON.parse(sessionStorage.getItem("platform")||"{}");n&&n.accountId&&(e.isLogin=!0,Object.assign(e,n),e.currentCompanyId=t,e.currentPlatform=a)}catch(r){console.log("加载session数据失败"),e=Object.assign(y(),v())}return e},C={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 a(){var r,o,c,i,u,s,d,l,f,p,h,m,y,v,w,C,O,j,I;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(b["b"])("authentication/login",{UserName:e,PassWord:n});case 2:if(r=a.sent,o=0===r.Code,o){a.next=6;break}return a.abrupt("return",r);case 6:if(t.state.isLogin=!0,c=Object(g["b"])(r.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){a.next=18;break}f.push(Object(k["d"])(k["b"].MANAGE_CENTER,i,"LOCKING 总后台",void 0,[])),a.next=29;break;case 18:return a.next=20,Object(b["b"])("company/queryFrontDeskCompanyById",{id:i});case 20:if(y=a.sent,0===y.Code){a.next=23;break}return a.abrupt("return",y);case 23:v=y.Data,w=void 0===v?{}:v,C=w.company,O=C.LogoUrl,j=C.CompanyName,I=[],m&&I.push(k["a"].CompanyConsole),1===d&&I.push(k["a"].ProjectManager),f.push(Object(k["d"])(k["b"].COMPANY,i,j,O,I));case 29: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),a.abrupt("return",{Code:r.Code,Data:p});case 36:case"end":return a.stop()}}),a)})))()},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()}},O=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("caf9"),_=t("32ed"),L=t.n(_),E=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"}]})},R=[],G={props:{src:String}},A=G,$=Object(s["a"])(A,E,R,!1,null,null,null),T=$.exports,M=(t("856b"),t("d903"),t("c610"),t("935a"),t("51b0"),t("53be"),t("1f94"),t("d2ad")),K=a["default"].extend(M["default"]),F=document.createElement("div");F.style="position: fixed; right: 32px; top: 68px;z-index:99999",document.body.appendChild(F);var W=function(e){var n=new K({propsData:e});n.vm=n.$mount(),F.appendChild(n.vm.$el)},H=W;a["default"].use(h.a),a["default"].use(P["a"]),a["default"].use(O["a"]),a["default"].prototype.$cookie=I.a,a["default"].component("ImgLazy",T),a["default"].prototype.$axios=b["a"],a["default"].prototype.$fetch=b["a"],a["default"].prototype.$fetchApi=b["b"],a["default"].filter("resolveImg",x),a["default"].filter("resolveAvator",S),a["default"].prototype.$bus=new a["default"],a["default"].prototype.$notify=H,a["default"].use(L.a),a["default"].config.productionTip=!1,new a["default"]({router:f["a"],store:C,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 a=t("1da1"),r=t("9b15"),o=t("2ef0"),c=new r({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(a["a"])(regeneratorRuntime.mark((function e(n,t){var a,r,o,u=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=u.length>2&&void 0!==u[2]?u[2]:{},e.prev=1,r=i(n),e.next=5,c.multipartUpload(r,t,a);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),a=n||t.split("/").pop();try{var r=3600,o=c.signatureUrl(t,{expires:r,response:{"content-disposition":'attachment; filename="'.concat(a,'"')}});return setTimeout((function(){l.cache.delete(e)}),1e3*r),o}catch(i){return null}}))},"5b49":function(e,n,t){"use strict";var a=t("1f09"),r=t.n(a);r.a},"5c0b":function(e,n,t){"use strict";var a=t("9c0c"),r=t.n(a);r.a},6964:function(e,n,t){"use strict";var a=t("7dff"),r=t.n(a);r.a},"7dff":function(e,n,t){},"856b":function(e,n,t){},"935a":function(e,n,t){},"99e1":function(e,n,t){"use strict";var a=t("f225"),r=t.n(a);r.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 a=t("3835"),r=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(r["a"])(regeneratorRuntime.mark((function e(n,t,r){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(a["a"])(o,2),u=i[0],s=i[1],e.prev=1,e.next=4,"GET"===u?c.a.get(s,{params:t},r):c.a.post(s,t,r);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(a["a"])(n,1),r=t[0],o=-1!==["template","project","folder","file","templateCompany"].indexOf(r)?"pms":"cms",c="api/".concat(o,"/").concat("authentication"===r?"":"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"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 a=t("cc4f"),r=t.n(a);r.a},c610:function(e,n,t){},cc4f:function(e,n,t){},d2ad:function(e,n,t){"use strict";t.r(n);var a=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()])},r=[],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,a,r,!1,null,"3a7b0566",null);n["default"]=d.exports},d903:function(e,n,t){},f225:function(e,n,t){}});
|