chunk-0ffeae66.8eb4af66.js 8.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ffeae66"],{"180d":function(t,e,i){t.exports=i.p+"static/img/icon2.8915b9a9.png"},"1b3c":function(t,e,i){},"1f14":function(t,e,i){"use strict";i("1b3c")},6714:function(t,e,i){t.exports=i.p+"static/img/background.e940038e.png"},"8af7":function(t,e,i){},a6eb:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"getIndexHeight",staticClass:"index"},[i("div",{staticClass:"container"},[i("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[i("router-view")],1)],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.xigong,expression:"xigong"}],ref:"getFooterHeight",staticClass:"footer"},[i("div",{staticClass:"tab"},["data"==t.currentPage?i("div",{staticClass:"tab-list",attrs:{id:"z"}},[t._m(0)]):i("div",{staticClass:"tab-list",attrs:{id:"b"},on:{click:function(e){return t.selectTab("data")}}},[t._m(1)]),t._v(" "),"workbench"==t.currentPage||"cae"==t.currentPage?i("div",{staticClass:"tab-list",attrs:{id:"z"},on:{click:function(e){return t.selectTab("data")}}},[t._m(2)]):i("div",{staticClass:"tab-list",attrs:{id:"b"},on:{click:function(e){return t.selectTab("workbench")}}},[t._m(3)]),t._v(" "),"design"==t.currentPage?i("div",{staticClass:"tab-list",attrs:{id:"z"}},[t._m(4)]):i("div",{staticClass:"tab-list",attrs:{id:"b"},on:{click:function(e){return t.selectTab("design")}}},[t._m(5)])]),t._v(" "),t._m(6),t._v(" "),i("div",{staticClass:"image imgtupian",on:{click:function(e){return t.xiaoxi()}}})]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.qianyan,expression:"qianyan"}],ref:"getFooterHeight",staticClass:"footer"},[i("div",{staticClass:"tab"},["workbench"==t.currentPage||"home"==t.currentPage?i("div",{staticClass:"tab-list qiany",attrs:{id:"z"},on:{click:function(e){return t.selectTab("workbench")}}},[t._m(7)]):i("div",{staticClass:"tab-list qiany",attrs:{id:"b"},on:{click:function(e){return t.selectTab("workbench")}}},[t._m(8)]),t._v(" "),"guanyuwe"==t.currentPage?i("div",{staticClass:"tab-list qiany",attrs:{id:"z"},on:{click:function(e){return t.selectTab("guanyuwe")}}},[t._m(9)]):i("div",{staticClass:"tab-list qiany",attrs:{id:"b"},on:{click:function(e){return t.selectTab("guanyuwe")}}},[t._m(10)]),t._v(" "),t._m(11)]),t._v(" "),t._m(12),t._v(" "),i("div",{staticClass:"image imgtupian",on:{click:function(e){return t.xiaoxi()}}})]),t._v(" "),i("Workbench",{attrs:{"workbench-config":t.workbenchConfig},on:{putWorkbench:t.getWorkbench}})],1)},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"tab-listcontent"},[s("div",{staticClass:"btnimg "},[s("img",{attrs:{src:i("c92e")}})]),t._v(" "),s("h1",[t._v("数据中心")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"tab-listcontent"},[s("div",{staticClass:"btnimg "},[s("img",{attrs:{src:i("c92e")}})]),t._v(" "),s("h1",[t._v("数据中心")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"tab-listcontent"},[s("div",{staticClass:"btnimg "},[s("img",{attrs:{src:i("180d")}})]),t._v(" "),s("h1",[t._v("聚合仿真")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"tab-listcontent"},[s("div",{staticClass:"btnimg "},[s("img",{attrs:{src:i("180d")}})]),t._v(" "),s("h1",[t._v("聚合仿真")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"tab-listcontent"},[s("div",{staticClass:"btnimg "},[s("img",{attrs:{src:i("cb01")}})]),t._v(" "),s("h1",[t._v("设计中心")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"tab-listcontent"},[s("div",{staticClass:"btnimg "},[s("img",{attrs:{src:i("cb01")}})]),t._v(" "),s("h1",[t._v("设计中心")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"info"},[s("img",{staticClass:"background",attrs:{src:i("6714")}})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"tab-listcontent"},[i("h1",[t._v("云求解器")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"tab-listcontent"},[i("h1",[t._v("云求解器")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"tab-listcontent"},[i("h1",[t._v("关于我们")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"tab-listcontent"},[i("h1",[t._v("关于我们")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"tab-list qiany",attrs:{id:"b"}},[i("div",{staticClass:"tab-listcontent"},[i("h1",[t._v("云前处理")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"info"},[s("img",{staticClass:"background",attrs:{src:i("6714")}})])}],n=(i("a481"),i("28a5"),function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("transition",{attrs:{name:"marsk-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.workbenchConfig.isShow,expression:"workbenchConfig.isShow"}],staticClass:"marsk"})]),t._v(" "),i("transition",{attrs:{name:"slide-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.workbenchConfig.isShow,expression:"workbenchConfig.isShow"}],staticClass:"action-view"},[i("div",{staticClass:"header"},[i("p",[t._v("请选择工作台:")]),t._v(" "),i("div",{staticClass:"operation"},[i("i",{staticClass:"el-icon-close",on:{click:t.close}})])]),t._v(" "),i("div",{staticClass:"content"},t._l(t.workbenchConfig.dataList,(function(e,s){return i("div",{key:s,staticClass:"list",on:{click:function(i){return t.toPage(e.platformNumber,e.platformId,e.preprocessDisplayStyle,e.cfdDisplayStyle)}}},[i("img",{class:[t.workbenchConfig.currentPage==e.platformNumber?"nogray":""],attrs:{src:t.getImage(e.platformPicId)}})])})),0)])])],1)}),r=[],c=i("b775"),o=i("5c96"),l={name:"Workench",props:{workbenchConfig:{isShow:{type:Boolean,default:function(){return!1}},currentPage:{type:String,default:function(){return""}},dataList:{type:Array,default:function(){return[]}}}},methods:{close:function(){this.$emit("putWorkbench",!1)},toPage:function(t,e,i,s){if(0==i&&0==s)return this.$message.error("还未接入数据!");if(this.$store.dispatch("user/changeState",{key:"workbench",value:t}),this.close(),"ed4f8bb6257344878d9d68783787fc3d"!=e)return Object(o["Message"])({message:"还未接入数据!",type:"warning",center:!0,offset:"200"});this.$router.replace({path:"/indexLayout/workbench",query:{id:e,pretreatment:i,solver:s}})},getImage:function(t){return Object(c["c"])(t)}}},u=l,d=(i("1f14"),i("2877")),v=Object(d["a"])(u,n,r,!1,null,"0b43374d",null),f=v.exports,h={name:"IndexLayout",components:{Workbench:f},data:function(){return{currentPage:"home",visible:!1,qianyan:!1,xigong:!1,workbenchConfig:{isShow:!1,currentPage:"",dataList:[]}}},watch:{$route:{handler:function(t){}}},created:function(){var t=this.$route.path;this.qianyan=!0;var e=t.split("/");3==e.length&&e[2]?this.currentPage=e[2]:this.currentPage="home","/"!==t&&"/indexLayout"!==t&&"/indexLayout/"!==t||this.$router.replace({path:"/indexLayout/"+this.currentPage})},mounted:function(){},methods:{xiaoxi:function(){console.log(111);var t=window.open("_blank");t.location="https://www.xiright.com/"},selectTab:function(t){var e=this;if(console.log(t),"workbench"==t||"home"==t){var i={transCode:"C00038"};Object(c["e"])(i).then((function(t){var i=t.rows[0].platformId,s=t.rows[0].preprocessDisplayStyle,a=t.rows[0].cfdDisplayStyle;sessionStorage.setItem("id",i),sessionStorage.setItem("pretreatment",s),sessionStorage.setItem("pretreatment",a),e.qianyan,e.$router.replace({path:"/indexLayout/workbench"})})).catch((function(t){}))}else"guanyuwe"==t?this.$router.replace({path:"/indexLayout/guanyuwe"}):this.$router.replace({path:"/indexLayout/"+t})},getWorkbench:function(t){this.workbenchConfig.isShow=!1}}},b=h,g=(i("ebc9"),Object(d["a"])(b,s,a,!1,null,"065bf840",null));e["default"]=g.exports},c92e:function(t,e,i){t.exports=i.p+"static/img/icon1.9632711f.png"},cb01:function(t,e,i){t.exports=i.p+"static/img/icon3.db3de3f6.png"},ebc9:function(t,e,i){"use strict";i("8af7")}}]);