chunk-23911c78.7259f045.js 4.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-23911c78"],{"3a83":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"workbench"},[a("div",{staticClass:"container"},[a("div",{staticClass:"solver"},t._l(t.dataList,(function(e,i){return a("div",{key:i,staticClass:"solver-list"},[a("el-image",{attrs:{src:t.getImage(e.imgid),fit:t.fit}}),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("list.kindPicIconId")}})]):a("svg-icon",{attrs:{"icon-class":"acoustics"}})],1),t._v(" "),a("div",{staticClass:"case"},t._l(e.cfdRows,(function(e,i){return a("div",{key:i,staticClass:"case-list",class:[{colordisplay:"2"==e.state},"nav4"],on:{click:function(a){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)])])},s=[],n=(a("a481"),a("b775")),c=(a("83d6"),{name:"Cae",components:{},data:function(){return{currentPage:"solver",pretreatment:"",solver:"",dataList:[{imgid:"b7b4532a3085457a9d7260439ae00004",kindName:"声学分析",kindPicIconId:"b7b4532a3085457a9d7260439ae10001"},{imgid:"b7b4532a3085457a9d7260439ae00005",kindName:"光学分析",kindPicIconId:"b7b4532a3085457a9d7260439ae10004"},{imgid:"b7b4532a3085457a9d7260439ae00006",kindName:"多物理场分析",kindPicIconId:"b7b4532a3085457a9d7260439ae10005"},{imgid:"b7b4532a3085457a9d7260439ae00007",kindName:"辐射分析",kindPicIconId:"b7b4532a3085457a9d7260439ae10006"},{imgid:"b7b4532a3085457a9d7260439ae00008",kindName:"结构分析",kindPicIconId:"b7b4532a3085457a9d7260439ae10007"},{imgid:"b7b4532a3085457a9d7260439ae00003",kindName:"电磁分析",kindPicIconId:"b7b4532a3085457a9d7260439ae10002"},{imgid:"b7b4532a3085457a9d7260439ae00004",kindName:"流体分析",kindPicIconId:"b7b4532a3085457a9d7260439ae10003"}],fit:"fill",tab:!1,displaystyle:!1}},watch:{$route:{handler:function(t){t.query&&"reLogin"==t.query.type&&this.toLogin()},immediate:!0}},inject:["toLogin"],created:function(){},beforeDestroy:function(){this.$store.dispatch("user/changeState",{key:"workbench",value:""})},mounted:function(){},methods:{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,a){var i=this,s=this.$store.getters.loginStatus,c=this.$store.getters.userType;if(s){if(1!=e)return this.colordisplay=!0,this.$message.info(t+" 正在开发中...");if(1==c)return this.$message.warning("只有子账户或个人账户才能进入!");var o={transCode:"A00006"};Object(n["c"])(o).then((function(e){i.$message.success(" 即将进入"+t);var s=i.$store.getters.lesseeId;setTimeout((function(){window.open(i.$store.getters.cfdUrl+"?authCode="+e.authCode+"&projectType="+a+"&lesseeId="+s,"_blank")}),1e3)})).catch((function(t){}))}else this.$confirm("你还未登录,请登录后再操作, 是否登录?","提示",{confirmButtonText:"登录",cancelButtonText:"取消",center:!0,closeOnClickModal:!1,type:"warning"}).then((function(){i.$router.replace("/indexLayout/home?type=reLogin")})).catch((function(){i.$message.info("已取消!")}))}}}),o=c,d=(a("b4c0"),a("2877")),r=Object(d["a"])(o,i,s,!1,null,"dbf27b02",null);e["default"]=r.exports},"4cd8":function(t,e,a){},b4c0:function(t,e,a){"use strict";var i=a("4cd8"),s=a.n(i);s.a}}]);