(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d221818"],{cb47:function(e,t,s){"use strict";s.r(t);var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div")},o=[],c=(s("a481"),s("4360"),s("cc33"),s("54c4")),i=s("b775"),n=(s("83d6"),s("5a89"),{data:function(){return{authCode:void 0,projectId:void 0,projectType:void 0,cjuserid:void 0,token:void 0,lesseeId:void 0}},mounted:function(){this.init(),this.cjuserid=this.$route.query.cjuserid,this.token=this.$route.query.token,this.enterWorkbench()},methods:{init:function(){this.authCode=this.$route.query.authCode,this.projectId=this.$route.query.projectId,this.projectType=this.$route.query.projectType,this.lesseeId=this.$route.query.lesseeId},enterWorkbench:function(){var e=this,t={transCode:"A00114",authCode:this.authCode,lesseeId:this.lesseeId};Object(i["c"])(t).then((function(t){console.log(2222),e.$store.dispatch("user/changeState",{key:"userId",value:t.userId}),e.$store.dispatch("user/changeState",{key:"token",value:t.clientToken}),e.$store.dispatch("user/changeState",{key:"loginStatus",value:!0}),e.$store.dispatch("user/changeState",{key:"lesseeId",value:t.lesseeId}),e.$store.dispatch("user/changeState",{key:"name",value:t.nickName}),e.$store.dispatch("user/changeState",{key:"proUrl",value:t.proUrl}),Object(c["b"])(t.logUrl),e.getToHcfd()})).catch((function(t){e.getToHcfd()}))},getToHcfd:function(){var e=this,t=this.$store.getters.loginStatus;if(console.log(this.$store.getters),t){this.$message.success("恭喜你，成功进入工作台！");var s="";switch(void 0!=this.projectId&&null!=this.projectId&&(s="?projectId="+this.projectId,"?projectId="+this.projectId+"&token="+this.token+"&cjuserid="+this.cjuserid),this.projectType){case"hcfd":this.$router.replace("/HCFD/HCFD"+s);break;case"fem":this.$router.replace("/FEM/FEM"+s);break;case"overcfd":this.$router.replace("/OverCfd/CFD"+s);break;case"bladesign":this.$router.replace("/Bladesign/Bladesign"+s);break;case"bladesignn":this.$router.replace("/Bladesignn"+s);break;case"mpm":this.$router.replace("/MPM/MPM"+s);break;case"Phcfd":this.$router.replace("/Phcfd/projrct"+s);break;default:}}else this.$confirm("你还未登录，请登录后再操作, 是否登录?","提示",{confirmButtonText:"登录",cancelButtonText:"取消",type:"warning"}).then((function(){window.location.protocol,window.location.host,e.$store.getters.logUrl;window.location.href=e.logUrl})).catch((function(){e.$message.info("已取消！")}))}}}),a=n,u=s("2877"),h=Object(u["a"])(a,r,o,!1,null,null,null);t["default"]=h.exports}}]);