|
@@ -7,7 +7,7 @@
|
|
|
|
|
|
</div> -->
|
|
</div> -->
|
|
<div v-if="value2=='HCFDLab'">
|
|
<div v-if="value2=='HCFDLab'">
|
|
- <hcfd ref="hcfd" :objopp="objopp" :pid="pid" @fun="fun()" :elodingfalse="elodingfalse" @exlodingfalse="exlodingfalse" :femnum="femnum"></hcfd>
|
|
|
|
|
|
+ <hcfd ref="hcfd" :objopp="objopp" :pid="pid" @fun="fun()" @changelines="changelines()" @linezhexian="linezhexian()" :elodingfalse="elodingfalse" @exlodingfalse="exlodingfalse" :femnum="femnum"></hcfd>
|
|
</div>
|
|
</div>
|
|
<div v-else-if="value2=='FEMLab(结构力学)'||value2=='FEMLab(结构力学)版本2'">
|
|
<div v-else-if="value2=='FEMLab(结构力学)'||value2=='FEMLab(结构力学)版本2'">
|
|
<fem ref="fem" :femnum="femnum" :logs='logs' :pid="pid"></fem>
|
|
<fem ref="fem" :femnum="femnum" :logs='logs' :pid="pid"></fem>
|
|
@@ -169,6 +169,7 @@ import tl16 from '@/assets/icon/view_isometric.png'
|
|
|
|
|
|
// 引入组件
|
|
// 引入组件
|
|
import { request, getImage } from '@/utils/request'
|
|
import { request, getImage } from '@/utils/request'
|
|
|
|
+import { Message, MessageBox } from "element-ui";
|
|
import geometry from './geometry/index.vue'
|
|
import geometry from './geometry/index.vue'
|
|
import meshindex from './meshindex/index.vue'
|
|
import meshindex from './meshindex/index.vue'
|
|
import Geometryandclass from './Geometryandclass/index.vue'
|
|
import Geometryandclass from './Geometryandclass/index.vue'
|
|
@@ -385,6 +386,30 @@ mounted(){
|
|
this.classH2 = 'custome-' + curcolor;
|
|
this.classH2 = 'custome-' + curcolor;
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
|
|
+ //折线图
|
|
|
|
+changelines(val){
|
|
|
|
+ let _this=this;
|
|
|
|
+ let vals=JSON.parse(val)
|
|
|
|
+ console.log(vals)
|
|
|
|
+ if(vals.lineType=='Line'){
|
|
|
|
+ this.$set( this.$refs.monitor.option, "type",'Line' );
|
|
|
|
+ this.linezhexian(vals.linevalue);
|
|
|
|
+ }else{
|
|
|
|
+ this.$set( this.$refs.monitor.option, "type","point" );
|
|
|
|
+ this.$refs.monitor.newHighcharts("highcharts",this.$refs.monitor.option);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+//
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+},
|
|
|
|
+//
|
|
|
|
+linezhexian(num){
|
|
|
|
+ this.$set( this.$refs.monitor.option.plotOptions.series, "lineWidth", Number(num));
|
|
|
|
+ this.$refs.monitor.newHighcharts("highcharts",this.$refs.monitor.option);
|
|
|
|
+},
|
|
meshclick(e,index,key){
|
|
meshclick(e,index,key){
|
|
let that=this;
|
|
let that=this;
|
|
that.active=key;
|
|
that.active=key;
|
|
@@ -468,7 +493,6 @@ methods:{
|
|
let datas=res;
|
|
let datas=res;
|
|
if(val=='HCFDLab'){
|
|
if(val=='HCFDLab'){
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
- console.log(datas);
|
|
|
|
this.$refs.hcfd.hcfdchange(this.objopp,res.solverConfigid,datas);
|
|
this.$refs.hcfd.hcfdchange(this.objopp,res.solverConfigid,datas);
|
|
this.solverConfigid=res.solverConfigid;
|
|
this.solverConfigid=res.solverConfigid;
|
|
let data= JSON.parse(this.objopp);
|
|
let data= JSON.parse(this.objopp);
|
|
@@ -503,11 +527,13 @@ methods:{
|
|
sessionStorage.setItem('params',JSON.stringify(params))
|
|
sessionStorage.setItem('params',JSON.stringify(params))
|
|
request(params)
|
|
request(params)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
|
+ let datas=res;
|
|
this.objopp=res.parameterObj;
|
|
this.objopp=res.parameterObj;
|
|
-
|
|
|
|
|
|
+
|
|
if(val=='HCFDLab'){
|
|
if(val=='HCFDLab'){
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
- this.$refs.hcfd.hcfdchange(this.objopp,res.solverConfigid);
|
|
|
|
|
|
+ this.state=datas.state;
|
|
|
|
+ this.$refs.hcfd.hcfdchange(this.objopp,res.solverConfigid,datas.state);
|
|
this.solverConfigid=res.solverConfigid;
|
|
this.solverConfigid=res.solverConfigid;
|
|
let data= JSON.parse(this.objopp);
|
|
let data= JSON.parse(this.objopp);
|
|
this.numsteps=data.nmlParam.steps;
|
|
this.numsteps=data.nmlParam.steps;
|