25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

2 lines
24 KiB

  1. (function(e){function n(n){for(var c,a,u=n[0],i=n[1],s=n[2],d=0,f=[];d<u.length;d++)a=u[d],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&f.push(r[a][0]),r[a]=0;for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c]);l&&l(n);while(f.length)f.shift()();return o.push.apply(o,s||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],c=!0,a=1;a<t.length;a++){var u=t[a];0!==r[u]&&(c=!1)}c&&(o.splice(n--,1),e=i(i.s=t[0]))}return e}var c={},a={app:0},r={app:0},o=[];function u(e){return i.p+"static/js/"+({}[e]||e)+"."+{"chunk-05a1125b":"734cfa3d","chunk-0d3a42ee":"4d38334b","chunk-0e5df840":"02f93f5a","chunk-208845cb":"51da7bff","chunk-2d0c061a":"9fbdd7b6","chunk-2d224b2b":"4cd653a1","chunk-2d226007":"2bb59837","chunk-2d22fcc4":"df34f6a4","chunk-3fe09320":"d0a87732","chunk-3fe478f8":"a79cff92","chunk-418d307b":"3135d56b","chunk-b5d13ce8":"bf348d30","chunk-bd5a3f5c":"f0ee2af9","chunk-14e61ccb":"29cb7ca5","chunk-1fe39068":"26789bee","chunk-1fe40532":"57cf623f","chunk-2d0b3688":"408ba5b6","chunk-2d0cf6a4":"bd120b0e","chunk-2d0dddf0":"9440874a","chunk-2d0e148e":"828555fc","chunk-2d207f39":"137900f6","chunk-2d21b850":"d6b18a8c","chunk-578abaf6":"e6b593d0","chunk-7e121d7a":"6fe5412f","chunk-f6418e24":"6649c5a3","chunk-4302a2d5":"f41e3140","chunk-025ce042":"15d1c7a3","chunk-0e73d64f":"1df9f39a","chunk-4961bc6a":"2f2414b9","chunk-49c5f13a":"5725ff20","chunk-583eee6f":"df32df96","chunk-6665705a":"39f20c5c","chunk-73ffe534":"452abac9","chunk-74b26ff1":"4a0134e8","chunk-7ceea503":"41f9d589","chunk-df4808a2":"fd0c9c8e","chunk-cf33d61a":"7da9a657","chunk-405a8914":"2fdfed85","chunk-fa61d866":"a59f2ed8"}[e]+".js"}function i(n){if(c[n])return c[n].exports;var t=c[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-05a1125b":1,"chunk-0d3a42ee":1,"chunk-208845cb":1,"chunk-418d307b":1,"chunk-bd5a3f5c":1,"chunk-7e121d7a":1,"chunk-4302a2d5":1,"chunk-025ce042":1,"chunk-0e73d64f":1,"chunk-4961bc6a":1,"chunk-49c5f13a":1,"chunk-583eee6f":1,"chunk-6665705a":1,"chunk-73ffe534":1,"chunk-74b26ff1":1,"chunk-7ceea503":1,"chunk-df4808a2":1,"chunk-405a8914":1};a[e]?n.push(a[e]):0!==a[e]&&t[e]&&n.push(a[e]=new Promise((function(n,t){for(var c="static/css/"+({}[e]||e)+"."+{"chunk-05a1125b":"0cea0e94","chunk-0d3a42ee":"74b1f484","chunk-0e5df840":"31d6cfe0","chunk-208845cb":"0c46bf74","chunk-2d0c061a":"31d6cfe0","chunk-2d224b2b":"31d6cfe0","chunk-2d226007":"31d6cfe0","chunk-2d22fcc4":"31d6cfe0","chunk-3fe09320":"31d6cfe0","chunk-3fe478f8":"31d6cfe0","chunk-418d307b":"f9bec3d7","chunk-b5d13ce8":"31d6cfe0","chunk-bd5a3f5c":"946d3591","chunk-14e61ccb":"31d6cfe0","chunk-1fe39068":"31d6cfe0","chunk-1fe40532":"31d6cfe0","chunk-2d0b3688":"31d6cfe0","chunk-2d0cf6a4":"31d6cfe0","chunk-2d0dddf0":"31d6cfe0","chunk-2d0e148e":"31d6cfe0","chunk-2d207f39":"31d6cfe0","chunk-2d21b850":"31d6cfe0","chunk-578abaf6":"31d6cfe0","chunk-7e121d7a":"64c8ed61","chunk-f6418e24":"31d6cfe0","chunk-4302a2d5":"11d9f649","chunk-025ce042":"65074e9d","chunk-0e73d64f":"f422cb20","chunk-4961bc6a":"155d447d","chunk-49c5f13a":"ee4456e4","chunk-583eee6f":"cf4af705","chunk-6665705a":"9c752597","chunk-73ffe534":"883fc81f","chunk-74b26ff1":"351d7309","chunk-7ceea503":"aba6a9e6","chunk-df4808a2":"480bde3d","chunk-cf33d61a":"31d6cfe0","chunk-405a8914":"a1442f73","chunk-fa61d866":"31d6cfe0"}[e]+".css",r=i.p+c,o=document.getElementsByTagName("link"),u=0;u<o.length;u++){var s=o[u],d=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===c||d===r))return n()}var f=document.getElementsByTagName("style");for(u=0;u<f.length;u++){s=f[u],d=s.getAttribute("data-href");if(d===c||d===r)return n()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=n,l.onerror=function(n){var c=n&&n.target&&n.target.src||r,o=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=c,delete a[e],l.parentNode.removeChild(l),t(o)},l.href=r;var h=document.getElementsByTagName("head")[0];h.appendChild(l)})).then((function(){a[e]=0})));var c=r[e];if(0!==c)if(c)n.push(c[2]);else{var o=new Promise((function(n,t){c=r[e]=[n,t]}));n.push(c[2]=o);var s,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=u(e);var f=new Error;s=function(n){d.onerror=d.onload=null,clearTimeout(l);var t=r[e];if(0!==t){if(t){var c=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;f.message="Loading chunk "+e+" failed.\n("+c+": "+a+")",f.name="ChunkLoadError",f.type=c,f.request=a,t[1](f)}r[e]=void 0}};var l=setTimeout((function(){s({type:"timeout",target:d})}),12e4);d.onerror=d.onload=s,document.head.appendChild(d)}return Promise.all(n)},i.m=e,i.c=c,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var c in e)i.d(t,c,function(n){return e[n]}.bind(null,c));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="/",i.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],d=s.push.bind(s);s.push=n,s=s.slice();for(var f=0;f<s.length;f++)n(s[f]);var l=d;o.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("56d7")},"0f13":function(e,n,t){"use strict";t.d(n,"b",(function(){return c})),t.d(n,"d",(function(){return a})),t.d(n,"a",(function(){return r})),t.d(n,"c",(function(){return o}));t("c975");var c={MANAGE_CENTER:"MANAGE_CENTER",COMPANY:"COMPANY",TEMPLATE_CONSOLE:"TEMPLATE_CONSOLE"};function a(e,n,t,c){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return{platformType:e,orgId:n,orgLogo:c,orgName:t,accessList:a}}var r={CompanyConsole:"company_console",ProjectManager:"project_manager"};function o(e,n){return-1!==e.indexOf(n)}},"3de1":function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return o})),t.d(n,"e",(function(){return u})),t.d(n,"d",(function(){return i})),t.d(n,"a",(function(){return s}));t("99af"),t("13d5"),t("fb6a"),t("4fad"),t("d3b7");var c=t("3835"),a=t("2b0e");function r(e){return Object.entries(e).reduce((function(e,n){var t=Object(c["a"])(n,2),a=t[0],r=t[1];return e["".concat(a[0].toLocaleLowerCase()).concat(a.slice(1))]=r,e}),{})}function o(e){return Object.entries(e).reduce((function(e,n){var t=Object(c["a"])(n,2),a=t[0],r=t[1];return e["".concat(a[0].toLocaleUpperCase()).concat(a.slice(1))]=r,e}),{})}var u=function(e){return new Promise((function(n){return setTimeout(n,e)}))},i={success:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"恭喜您";a["default"].prototype.$notify({title:n,message:e,type:"success",offset:100,duration:2500})},error:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"温馨提示";a["default"].prototype.$notify({title:n,message:e,type:"error",offset:100,duration:2500})},info:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"温馨提示";a["default"].prototype.$notify({title:n,message:e,type:"info",offset:100,duration:2500})},warning:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"温馨提示";a["default"].prototype.$notify({title:n,message:e,type:"warning",offset:100,duration:2500})}};function s(e,n){var t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},"41cb":function(e,n,t){"use strict";t("b0c0"),t("d3b7");var c=t("2b0e"),a=t("8c4f"),r={login:"LOCKING | 登录",project:"LOCKING | 项目编辑",platform:"LOCKING | 平台选择",template:"LOCKING | 模板控制台",projnotice:"LOCKING | 更新提醒",notFound:"404 | 未找到该页面",workspace:"LOCKING | 项目详情",search:"LOCKING | 搜索",recycle:"LOCKING | 回收站",cloud:"LOCKING | 云盘",cloudrecycle:"LOCKING | 云回收站",cloudsource:"LOCKING | 云资源管理器",company:"LOCKING | 企业后台",message2:"LOCKING | 企业后台",company_message:"LOCKING | 平台消息",company_user:"LOCKING | 通讯录",company_project:"LOCKING | 项目管理",company_template:"LOCKING | 模板与应用",company_setting:"LOCKING | 通用设置",company_template_detail:"LOCKING | 模板查看",company_app:"LOCKING | 应用",company_template_market:"LOCKING | 应用市场",system:"LOCKING | 总后台",system_template:"LOCKING | 流程模板",system_template_mind:"LOCKING | 思维导图",system_template_matrix:"LOCKING | 矩阵模板",system_runmanage:"LOCKING | 运行管理",system_appcenter:"LOCKING | 应用管理",system_setting:"LOCKING | 总体权限",system_appinfo:"LOCKING | 应用介绍",system_template_file:"流程模板 | 样板文件"};c["default"].use(a["a"]);var o=new a["a"]({mode:"hash",routes:[{path:"/",name:"login",component:function(){return t.e("chunk-208845cb").then(t.bind(null,"9ed6"))}},{path:"/demo",name:"demo",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-4302a2d5"),t.e("chunk-4961bc6a")]).then(t.bind(null,"46a4"))}},{path:"/platform",name:"platform",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-4302a2d5"),t.e("chunk-73ffe534")]).then(t.bind(null,"0a7f"))}},{path:"/index",name:"index",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-4302a2d5"),t.e("chunk-583eee6f")]).then(t.bind(null,"011a"))}},{path:"/projnotice",name:"projnotice",component:function(){return t.e("chunk-cf33d61a").then(t.bind(null,"00ec"))}},{path:"/email",name:"email",component:function(){return t.e("chunk-fa61d866").then(t.bind(null,"19a0"))}},{path:"/workspace",name:"workspace",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-4302a2d5"),t.e("chunk-7ceea503")]).then(t.bind(null,"11f4"))}},{path:"/project",name:"project",component:function(){return t.e("chunk-0d3a42ee").then(t.bind(null,"47c5"))}},{path:"/recycle",name:"recycle",component:function(){return t.e("chunk-2d22fcc4").then(t.bind(null,"ea0b"))}},{path:"/search",name:"search",component:function(){return t.e("chunk-2d226007").then(t.bind(null,"e798"))}},{path:"/cloud",name:"cloud",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-7e121d7a")]).then(t.bind(null,"4488"))}},{path:"/cloudrecycle",name:"cloudrecycle",component:function(){return t.e("chunk-2d224b2b").then(t.bind(null,"e0f0"))}},{path:"/cloudsource",name:"cloudsource",component:function(){return t.e("chunk-2d0c061a").then(t.bind(null,"4217"))}},{path:"/company",name:"company",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-4302a2d5"),t.e("chunk-0e73d64f")]).then(t.bind(null,"db21"))},redirect:{name:"company_home"},children:[{path:"home",name:"company_home",component:function(){return t.e("chunk-3fe09320").then(t.bind(null,"345a"))}},{path:"message",name:"company_message",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-2d0cf6a4")]).then(t.bind(null,"642b"))}},{path:"user",name:"company_user",component:function(){return Promise.all([t.e("chunk-f6418e24"),t.e("chunk-405a8914")]).then(t.bind(null,"29c0"))}},{path:"project",name:"company_project",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-578abaf6")]).then(t.bind(null,"e984"))}},{path:"template",name:"company_template",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-2d0dddf0")]).then(t.bind(null,"82dd"))}},{path:"template/detail",name:"company_template_detail",component:function(){return t.e("chunk-b5d13ce8").then(t.bind(null,"ce1d"))}},{path:"template/market",name:"company_template_market",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-2d207f39")]).then(t.bind(null,"a35f"))}},{path:"setting",name:"company_setting",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-1fe39068")]).then(t.bind(null,"cda4"))}},{path:"app",name:"company_app",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-2d0b3688")]).then(t.bind(null,"27f3"))}}]},{path:"/template",name:"template",component:function(e){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-4302a2d5"),t.e("chunk-025ce042")]).then(function(){var n=[t("65b7")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/template/create",name:"template_create",component:function(e){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-4302a2d5"),t.e("chunk-74b26ff1")]).then(function(){var n=[t("d235")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/system",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-4302a2d5"),t.e("chunk-df4808a2")]).then(t.bind(null,"f364"))},redirect:{name:"system_customer"},children:[{path:"customer",name:"system_customer",component:function(){return t.e("chunk-0e5df840").then(t.bind(null,"f851"))}},{path:"template",name:"system_template",component:function(){return t.e("chunk-418d307b").then(t.bind(null,"81b5"))}},{path:"runmanage",name:"system_runmanage",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-14e61ccb")]).then(t.bind(null,"d798"))}},{path:"template/matrix",name:"system_template_matrix",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-4302a2d5"),t.e("chunk-49c5f13a")]).then(t.bind(null,"2275"))}},{path:"template/mind",name:"system_template_mind",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-f6418e24"),t.e("chunk-4302a2d5"),t.e("chunk-6665705a")]).then(t.bind(null,"bccc"))}},{path:"template/tempfile",name:"system_template_file",component:function(){return t.e("chunk-3fe478f8").then(t.bind(null,"f1f7"))}},{path:"appcenter",name:"system_appcenter",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-2d0e148e")]).then(t.bind(null,"7a7e"))}},{path:"appinfo",name:"system_appinfo",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-2d21b850")]).then(t.bind(null,"bfb8"))}},{path:"setting",name:"system_setting",component:function(){return Promise.all([t.e("chunk-bd5a3f5c"),t.e("chunk-1fe40532")]).then(t.bind(null,"ddca"))}},{path:"*",redirect:{name:"system_customer"}}]},{path:"*",name:"notfound",component:function(){return t.e("chunk-05a1125b").then(t.bind(null,"9403"))}}]});o.beforeEach((function(e,n,t){"/"===e.path||sessionStorage.getItem("userId")?t():t({path:"/"})})),o.afterEach((function(e){window.document.title=r[e.name]||"LOCKING | 云建筑"}));n["a"]=o},"53be":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("4de4"),t("e260"),t("e6cf"),t("cca6"),t("a79d");var c=t("2b0e"),a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{id:"app"}},[t("router-view",{ref:"mainpage",staticClass:"mt-48",attrs:{id:"bigbody"}})],1)},r=[],o=(t("b0c0"),{components:{},name:"App",data:function(){return{header_show:!0,companyName:"",mypath:"/",showIndexOption:!1,showHelpPage:!1,searchName:"",isShowOutWorkSpace:!1,outWorkSpace:!1}},created:function(){null!=document.getElementById("Loading")&&null!=document.getElementById("Loading").nodeName&&""!=document.getElementById("Loading").nodeName&&document.body.removeChild(document.getElementById("Loading")),"login"!=this.$route.name&&"notfound"!=this.$route.name&&"platform"!==this.$route.name||(this.header_show=!1)},mounted:function(){window.addEventListener("scroll",this.handleScroll,!0)},methods:{handleScroll:function(){},showOption:function(){this.showIndexOption=!0},showHelp:function(){this.showHelpPage=!0},closeShowOption:function(){this.showIndexOption=!1,this.showHelpPage=!1},closeWorkSet:function(){"workspace"==this.$route.name&&this.$refs["mainpage"].closeAppManagePain()},getSearchName:function(e){this.searchName=e},getIsShowOutWorkSpace:function(e){this.outWorkSpace=!1,this.isShowOutWorkSpace=e},getOutWorkSpace:function(e){this.outWorkSpace=e}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)},watch:{$route:function(e){this.mypath=e.path}}}),u=o,i=(t("5c0b"),t("2877")),s=Object(i["a"])(u,a,r,!1,null,null,null),d=s.exports,f=t("41cb"),l=t("5c96"),h=t.n(l),p=(t("0fae"),t("96cf"),t("1da1")),m=t("b775"),b=t("0f13"),k=t("3de1"),g=function(){return{isLogin:!1,accountId:void 0,accountName:void 0,userName:void 0,platformList:[],currentPlatform:{},currentCompanyId:void 0,avator:void 0,userInfo:{}}},y=function(){var e=g();try{var n=JSON.parse(sessionStorage.getItem("user")),t=sessionStorage.getItem("companyId"),c=JSON.parse(sessionStorage.getItem("platform")||"{}");n&&n.accountId&&(e.isLogin=!0,Object.assign(e,n),e.currentCompanyId=t,e.currentPlatform=c)}catch(a){console.log("加载session数据失败"),e=g()}return e},v={state:y(),setCurrentPlatform:function(e){this.state.currentPlatform=e,this.state.currentCompanyId=e.orgId,sessionStorage.companyId=e.orgId,sessionStorage.platform=JSON.stringify(e)},login:function(e,n){var t=this;return Object(p["a"])(regeneratorRuntime.mark((function c(){var a,r,o,u,i,s,d,f,l,h,p,g,y,v,O,C,_,N,I;return regeneratorRuntime.wrap((function(c){while(1)switch(c.prev=c.next){case 0:return c.next=2,Object(m["b"])("authentication/login",{UserName:e,PassWord:n});case 2:if(a=c.sent,r=0===a.Code,r){c.next=6;break}return c.abrupt("return",a);case 6:if(t.state.isLogin=!0,o=Object(k["b"])(a.Data||{}),delete o.userExt,u=o.companyId,i=o.cnName,s=o.id,d=o.permission,f=o.backgroundPermission,l=[],h={accountId:s,accountName:e,userName:i,platformList:l,userInfo:o},p=3===f,g=2===f,!p){c.next=18;break}l.push(Object(b["d"])(b["b"].MANAGE_CENTER,u,"LOCKING 总后台",void 0,[])),c.next=29;break;case 18:return c.next=20,Object(m["b"])("company/queryFrontDeskCompanyById",{id:u});case 20:if(y=c.sent,0===y.Code){c.next=23;break}return c.abrupt("return",y);case 23:v=y.Data,O=void 0===v?{}:v,C=O.company,_=C.LogoUrl,N=C.CompanyName,I=[],g&&I.push(b["a"].CompanyConsole),1===d&&I.push(b["a"].ProjectManager),l.push(Object(b["d"])(b["b"].COMPANY,u,N,_,I));case 29:return t.state.isLogin=!0,Object.assign(t.state,h),sessionStorage.userId=s,sessionStorage.accountId=s,sessionStorage.user=JSON.stringify(h),c.abrupt("return",{Code:a.Code,Data:h});case 35:case"end":return c.stop()}}),c)})))()},logout:function(){this.state=g(),Object(m["b"])("authentication/loginOut"),sessionStorage.clear()}},O=t("2f62"),C=t("a78e"),_=t.n(C),N=t("5ab9"),I=function(e){return Object(N["a"])(e)||"/static/img/avator_default.svg"},w=function(e,n){var t="avator"===n?"/static/img/avator_default.svg":"";return Object(N["a"])(e)||t},L=t("caf9"),P=t("32ed"),j=t.n(P),S=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.src,expression:"src"}]})},E=[],x={props:{src:String}},G=x,K=Object(i["a"])(G,S,E,!1,null,null,null),T=K.exports;t("856b"),t("d903"),t("c610"),t("935a"),t("53be");c["default"].use(h.a),c["default"].use(L["a"]),c["default"].use(O["a"]),c["default"].prototype.$cookie=_.a,c["default"].component("ImgLazy",T),c["default"].prototype.$axios=m["a"],c["default"].prototype.$fetch=m["a"],c["default"].prototype.$fetchApi=m["b"],c["default"].filter("resolveImg",w),c["default"].filter("resolveAvator",I),c["default"].use(j.a),c["default"].config.productionTip=!1,new c["default"]({router:f["a"],store:v,render:function(e){return e(d)}}).$mount("#app")},"5ab9":function(e,n,t){"use strict";t.d(n,"c",(function(){return i})),t.d(n,"b",(function(){return s})),t.d(n,"a",(function(){return f}));t("99af"),t("c975"),t("ac1f"),t("1276"),t("96cf");var c=t("1da1"),a=t("9b15"),r=t("2ef0"),o=new a({region:"oss-cn-hangzhou",accessKeyId:"LTAI4G2BEDNpfdLmquYYMaMV",accessKeySecret:"tPhAL3qAgF9Tq67h73snAmwu8iPZ5t",bucket:"yiyun-client-files",secure:!0}),u=function(e){return"".concat((new Date).getTime(),"/").concat(e)},i=function(e){return"oss://".concat(e)};function s(e,n){return d.apply(this,arguments)}function d(){return d=Object(c["a"])(regeneratorRuntime.mark((function e(n,t){var c,a,r,i=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return c=i.length>2&&void 0!==i[2]?i[2]:{},e.prev=1,a=u(n),e.next=5,o.multipartUpload(a,t,c);case 5:return r=e.sent,e.abrupt("return",r);case 9:return e.prev=9,e.t0=e["catch"](1),console.error("file upload failed:",e.t0),e.abrupt("return",null);case 13:case"end":return e.stop()}}),e,null,[[1,9]])}))),d.apply(this,arguments)}var f=Object(r["memoize"])((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;if(0!==e.indexOf("oss://"))return e;var t=e.substr(6),c=n||t.split("/").pop();try{var a=3600,r=o.signatureUrl(t,{expires:a,response:{"content-disposition":'attachment; filename="'.concat(c,'"')}});return setTimeout((function(){f.cache.delete(e)}),1e3*a),r}catch(u){return null}}))},"5c0b":function(e,n,t){"use strict";var c=t("9c0c"),a=t.n(c);a.a},"856b":function(e,n,t){},"935a":function(e,n,t){},"9c0c":function(e,n,t){},b775:function(e,n,t){"use strict";t.d(n,"b",(function(){return s})),t.d(n,"c",(function(){return f}));t("99af"),t("c975"),t("fb6a"),t("d3b7"),t("ac1f"),t("1276"),t("96cf");var c=t("3835"),a=t("1da1"),r=t("bc3a"),o=t.n(r),u=t("41cb"),i=t("3de1");function s(e,n,t){return d.apply(this,arguments)}function d(){return d=Object(a["a"])(regeneratorRuntime.mark((function e(n,t,a){var r,u,i,s,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=l(n),u=Object(c["a"])(r,2),i=u[0],s=u[1],e.prev=1,e.next=4,"GET"===i?o.a.get(s,{params:t},a):o.a.post(s,t,a);case 4:return d=e.sent,e.abrupt("return",d.data);case 8:if(e.prev=8,e.t0=e["catch"](1),!e.t0.response||!e.t0.response.status){e.next=16;break}e.t1=e.t0.response.status,e.next=404===e.t1?14:15;break;case 14:return e.abrupt("return",{Code:404,Msg:"找不到指定的服务"});case 15:return e.abrupt("return",{Code:503,Msg:"服务异常,请稍后再试"});case 16:return console.error(e.t0),e.abrupt("return",{Code:503,Msg:"服务异常,请稍后再试"});case 18:case"end":return e.stop()}}),e,null,[[1,8]])}))),d.apply(this,arguments)}function f(e){return 0!==e.Code&&i["d"].error(e.Msg),e}function l(e){var n=e.split("/"),t=Object(c["a"])(n,1),a=t[0],r=-1!==["template","project","folder","file"].indexOf(a)?"pms":"cms",o="api/".concat(r,"/").concat("authentication"===a?"":"v1/").concat(e),u="GET";switch(e){case"authentication/login":case"company/addCompany":case"company/queryGeneralOverview":case"company/queryProviceTree":case"company/updateCompanyById":case"dept/addDept":case"dept/updateDept":case"user/addUser":case"user/resetPassWord":case"user/updateUser":case"template/createTemplate":case"template/fileExchange":case"template/updateTemplate":case"template/uploadingXmind":case"template/addTemplateNodeModelFile":case"template/createNestedRelevance":case"template/deleteNestedRelevance":case"folder/createSubfolder":case"project/createProject":case"project/editProject":case"project/assignedWork":case"file/addArchMilesStone":case"file/addFile":case"file/updateFile":case"file/fileCoordinationChange":u="POST";break;default:u="GET";break}return[u,o]}o.a.defaults.withCredentials=!0,o.a.interceptors.request.use((function(e){return 0===e.url.indexOf("api/")&&(e.url="".concat("/api/").concat(e.url.slice(4))),e}),(function(e){return Promise.reject(e)})),o.a.interceptors.response.use((function(e){return e}),(function(e){if(e.response)switch(e.response.status){case 401:"/"!=u["a"].currentRoute.fullPath&&(i["d"].error("登录超时,请重新登录"),sessionStorage.clear(),u["a"].push({path:"/"}));break}return Promise.reject(e)})),n["a"]=o.a},c610:function(e,n,t){},d903:function(e,n,t){}});
  2. //# sourceMappingURL=app.3c04d25f.js.map