liuqiao 2 年 前
コミット
51e09da24d
2 ファイル変更30 行追加8 行削除
  1. 0 4
      src/views/index/compoents/TFileStreamhcfd.vue
  2. 30 4
      src/views/index/index.vue

+ 0 - 4
src/views/index/compoents/TFileStreamhcfd.vue

@@ -33,11 +33,7 @@ export default {
     },
     methods:{
       fetchData(imgs) {
-            // console.log(33333);
-            //   console.log(imgs.img);
       this.loadingend(this.loadingopen());
-    // console.log(333333)
-    //    console.log(imgs.img);
           this.imgsrc = imgs.img;
       
      

+ 30 - 4
src/views/index/index.vue

@@ -7,7 +7,7 @@
                     
              </div> -->
         <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 v-else-if="value2=='FEMLab(结构力学)'||value2=='FEMLab(结构力学)版本2'">
         <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 { Message, MessageBox } from "element-ui";
 import geometry from './geometry/index.vue'
 import meshindex from './meshindex/index.vue'
 import Geometryandclass from './Geometryandclass/index.vue'
@@ -385,6 +386,30 @@ mounted(){
       this.classH2 = 'custome-' + curcolor;
 },
 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){
      let that=this;
      that.active=key;
@@ -468,7 +493,6 @@ methods:{
         let datas=res;
         if(val=='HCFDLab'){
            this.$nextTick(()=>{
-             console.log(datas);
           this.$refs.hcfd.hcfdchange(this.objopp,res.solverConfigid,datas);
           this.solverConfigid=res.solverConfigid;
          let data= JSON.parse(this.objopp);
@@ -503,11 +527,13 @@ methods:{
         sessionStorage.setItem('params',JSON.stringify(params))
         request(params)
           .then((res) => { 
+          let datas=res;
         this.objopp=res.parameterObj;
-
+      
         if(val=='HCFDLab'){
            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;
          let data= JSON.parse(this.objopp);
           this.numsteps=data.nmlParam.steps;