(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0dc3e4bb"],{"24b8":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"workbench"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.tab,expression:"tab"}],staticClass:"tab"},[a("div",{class:["tab-list","tab-before","pretreatment"===t.currentPage?"tab-on":""],on:{click:function(e){return t.selectTab("pretreatment")}}},[t._v("\n 前处理\n ")]),t._v(" "),a("div",{staticClass:"logo"},[a("img",{attrs:{src:t.dataList[0]?t.getImage(t.dataList[0].platformTitlePicId):""}})]),t._v(" "),a("div",{class:["tab-list","tab-after","solver"===t.currentPage?"tab-on":""],on:{click:function(e){return t.selectTab("solver")}}},[t._v("\n 求解器\n ")])]),t._v(" "),a("div",{staticClass:"container"},[a("div",{staticClass:"solver"},t._l(t.dataList[0]?t.dataList[0].kindRows:[],(function(e,i){return a("div",{key:i,class:["solver-list",2==t.dataList[0].preprocessDisplayStyle||2==t.dataList[0].cfdDisplayStyle?"full":""]},[e.kindId?a("el-image",{attrs:{src:t.getImage(e.kindId),fit:t.fit}}):2==t.dataList[0].preprocessDisplayStyle||2==t.dataList[0].cfdDisplayStyle?a("img",{attrs:{src:s("cdf6")}}):a("img",{attrs:{src:s("8c85")}}),t._v(" "),a("div",{staticClass:"mask"},[a("div",{staticClass:"desc"},[a("div",{staticClass:"icon-outer"},[a("div",{staticClass:"icon-inner"},[e.kindPicIconId?a("div",{staticClass:"img"},[a("img",{attrs:{src:t.getImage(e.kindPicIconId)}})]):a("svg-icon",{attrs:{"icon-class":"acoustics"}})],1)]),t._v(" "),a("span",[t._v(t._s(e.kindName))])])]),t._v(" "),a("div",{staticClass:"drawer"},[a("div",{staticClass:"title"},[a("span",[t._v(t._s(e.kindName))]),t._v(" "),e.kindPicIconId?a("div",{staticClass:"img"},[a("img",{attrs:{src:t.getImage(e.kindPicIconId)}})]):a("svg-icon",{attrs:{"icon-class":"acoustics"}})],1),t._v(" "),a("div",{staticClass:"case"},t._l(e.cfdRows,(function(e,s){return a("div",{key:s,staticClass:"case-list",class:[{colordisplay:"2"==e.state},"nav4"],on:{click:function(s){return t.toCase(e.name,e.state,e.number)}}},[a("p",[t._v(t._s(e.name))]),t._v(" "),a("span",[t._v(t._s(e.remark))])])})),0)])],1)})),0)])])},i=[],n=(s("a481"),s("b775")),r={name:"Cae",components:{},data:function(){return{currentPage:"solver",platformIds:"",pretreatment:"",solver:"",dataList:[],fit:"fill",tab:!1,displaystyle:!1}},watch:{$route:{handler:function(t){this.platformIds=this.$route.query.id,this.pretreatment=this.$route.query.pretreatment,this.solver=this.$route.query.solver,this.currentPage=0!=this.solver?"solver":"pretreatment",this.platformIds&&this.getData()},immediate:!0}},created:function(){},beforeDestroy:function(){this.$store.dispatch("user/changeState",{key:"workbench",value:""})},methods:{selectTab:function(t){"pretreatment"==t&&0==this.pretreatment||"solver"==t&&0==this.solver||(this.currentPage=t,this.getData())},getImage:function(t){return Object(n["b"])(t)},getData:function(){var t=this,e={transCode:"C00035",platformIds:this.platformIds,cfdType:"solver"==this.currentPage?"2":"pretreatment"==this.currentPage?"1":""};Object(n["c"])(e).then((function(e){t.dataList=e.platformRows,t.$store.dispatch("user/changeState",{key:"workbench",value:e.platformRows[0].platformNumber})})).catch((function(t){}))},toCase:function(t,e,s){var a=this,i=this.$store.getters.loginStatus,r=this.$store.getters.userType;if(i){if(1!=e)return this.colordisplay=!0,this.$message.info(t+" 正在开发中...");if(1==r)return this.$message.warning("只有子账户或个人账户才能进入!");var c={transCode:"A00006"};Object(n["c"])(c).then((function(e){a.$message.success(" 即将进入"+t),setTimeout((function(){window.open(a.$store.getters.cfdUrl+"?authCode="+e.authCode+"&projectType="+s,"_blank")}),1e3)})).catch((function(t){}))}else this.$confirm("你还未登录,请登录后再操作, 是否登录?","提示",{confirmButtonText:"登录",cancelButtonText:"取消",center:!0,closeOnClickModal:!1,type:"warning"}).then((function(){a.$router.replace("/indexLayout/home?type=reLogin")})).catch((function(){a.$message.info("已取消!")}))}}},c=r,o=(s("c539"),s("2877")),l=Object(o["a"])(c,a,i,!1,null,"21a5144e",null);e["default"]=l.exports},"8c85":function(t,e,s){t.exports=s.p+"static/img/physics-bg.84e032cd.png"},c539:function(t,e,s){"use strict";s("f2ed")},cdf6:function(t,e,s){t.exports=s.p+"static/img/starry-sky.fee03ccc.png"},f2ed:function(t,e,s){}}]);