Przeglądaj źródła

5.5做了矢量

liuqiao 2 lat temu
rodzic
commit
afe9d14513
1 zmienionych plików z 26 dodań i 8 usunięć
  1. 26 8
      src/views/index/index.vue

+ 26 - 8
src/views/index/index.vue

@@ -7,7 +7,7 @@
                     
              </div> -->
         <div v-if="value2=='HCFDLab'">
-        <hcfd ref="hcfd" :objopp="objopp" :ytdata="ytdata" :pid="pid" @fun="fun()" @changelines="changelines()" @linezhexian="linezhexian()" :elodingfalse="elodingfalse" @exlodingfalse="exlodingfalse" :femnum="femnum"></hcfd>
+        <hcfd ref="hcfd" :objopp="objopp" :ytdata="ytdata" :vectorparam="vectorparam" :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>
@@ -196,6 +196,7 @@ export default {
       tl1,tl2,tl3,tl4,tl5,tl6,tl7,tl8,tl9,tl10,
      tl11,tl12,tl13,tl14,tl15,tl16,
      ytdata:{},
+     vectorparam:{},
       active:'',
          restime:'',
          monitorHCFD:false,
@@ -665,20 +666,35 @@ let params = {
 
         try{
             const redata = JSON.parse(e.data);   
-           
-          this.$refs.TFileStream.imgtupian=true;
+           if(redata.hasOwnProperty("img")){
+           this.$refs.TFileStream.imgtupian=true;
           this.$refs.TFileStream.fetchData(redata);
           this.$refs.monitor.container_show=false;
+           }
+         
           // 云图的参数返回 存储
-            console.log(redata);
+          console.log(redata);
           if(redata.action=='ResultImport'){
+             
                   if(redata.msgType=="contour_param"){
-                    //  console.log(3333);
-               console.log(redata);
-                   sessionStorage.setItem("data",JSON.stringify(redata));
+                     sessionStorage.setItem("ytdata",JSON.stringify(redata));
                        this.ytdata=redata;
                   }
+                   if(redata.msgType=='line_param'){
+                      sessionStorage.setItem("ytdata",JSON.stringify(redata));
+                        this.ytdata=redata;
+                  }
+                  if(redata.msgType=='vector_param'){
+                     sessionStorage.setItem("vectorparam",JSON.stringify(redata));
+                    this.vectorparam=redata;
 
+                  }else{
+
+                  }
+
+          }else if(redata.action=='LineDisplay'){
+            console.log(redata)
+                       this.ytdata=redata;
           }
          
         return true;       
@@ -899,7 +915,9 @@ html,body{
 
 </style>
 <style>
-
+.selecr .el-form-item__label{
+  line-height: 36px;
+}
   .item1 .el-image{
     width: 30px;
     cursor: pointer;