liuqiao 2 năm trước cách đây
mục cha
commit
e1c17632ee

+ 3 - 1
src/assets/css/theme/00a598/index.css

@@ -186,4 +186,6 @@ background-color: #757070;
     .custom-00a598  .input{
       border: 1px solid  #535353; 
     }
-  
+    .custom-00a598  .page-content .el-pagination .el-pagination__jump{
+      margin-top: 0 !important;
+}

+ 4 - 2
src/components/Pagination/index.vue

@@ -14,6 +14,7 @@
       @size-change="handleSizeChange"
     ></el-pagination>
     <el-button
+    type="primary"
       size="mini"
       icon="el-icon-refresh"
       @click.native.prevent="refresh"
@@ -90,13 +91,14 @@ export default {
     }
     &.is-background {
       .el-pager li {
-        background-color: $color_f2;
+        // background-color: $color_f2;
         font-size: 12px;
-        color: $color_9;
+        // color: $color_9;
         border-radius: 4px;
         &:not(.disabled).active {
           color: $color_3;
           background-color: $color_f;
+           // background-color:red;
           border: 1px solid $color_f2;
         }
         &:not(.disabled):hover {

+ 3 - 1
src/views/home/myproject/index.vue

@@ -342,7 +342,9 @@ position:relative;
 .pagination{
   margin-top: 50px;
 }
-
+.page-content .el-pagination .el-pagination__jump{
+      margin-top: -3px;
+}
 </style>
 
 

+ 8 - 9
src/views/index/HCFDLab/index.vue

@@ -2850,7 +2850,7 @@ export default {
   data() {
     return {
       // 云图参数
-     
+         Stepe:'',//步数
          isVolume:"",
         outlineobj:{
        scalarName:'',
@@ -3811,6 +3811,7 @@ console.log(val)
   //数据加载参数配置obj
     hcfdchange(obj,solverConfigid,datas){
        this.parameterObj = JSON.parse(obj);
+       console.log( this.parameterObj);
        this.desclist=this.parameterObj.hcfdBoundarys;
       sessionStorage.setItem("res", obj);
       this.solverConfigid=solverConfigid;
@@ -3826,7 +3827,7 @@ hcfdparam(){
         }
         request(params)
           .then((res) => { 
-          this.$parent.solverchange(this.femnum);
+          this.$parent.solverchange1(this.femnum,'1');
          })
           .catch((err) => {
           })
@@ -4018,7 +4019,7 @@ bStepok(num,action,index,paramJson){
         solverConfigId:this.solverConfigid,
         action:action,
         paramJson:paramJson,
-        step:this.bStep,
+        step:this.Stepe,
         scalarName:this.outlineobj.scalarName,
         level:num,
         range0:this.outlineobj.range0,
@@ -4567,21 +4568,19 @@ this.styX.left=e.clientX+'px';
      */
 //选择step
 bStepChange(val){
-  this.bStep=val;
-   if(this.bStep==0){
+  this.Stepe=val;
+   if(this.Stepe==0){
     Message({
             type: "warning",
             message: "请选择setp有效值",
           });
-  }else{
-
-     
   }
 
 },
 //选择step
 vStepChange(val){
-  this.vStep=val;
+  this.Stepe=val;
+  //this.vStep=val;
     if(val==0){
     Message({
             type: "warning",

+ 5 - 1
src/views/index/compoents/TFileStreamhcfd.vue

@@ -1,5 +1,5 @@
 <template>
-<div v-show="imgtupian">
+<div v-show="imgtupian" class="imgdiv">
     <div class="imgs" v-if="imgsrc!='' " v-cloak >
        <el-image  style='height: 480px;' v-loading="loading" :src="'data:image/png;base64,' +  imgsrc" ></el-image> 
     </div>
@@ -122,6 +122,10 @@ position: relative;
     flex-direction: column;
     
 }
+.imgdiv{
+      display: flex;
+    justify-content: center;
+}
 .el-image{
     /* width: 100%; */
     /* height: calc(100vh - 112px) !important; */

+ 7 - 5
src/views/index/index.vue

@@ -465,14 +465,14 @@ linezhexian(num){
         
          this.pid=this.$route.query.pid;
         // this.pid='31f117acb7e74232a3267b091391eab2';
-          this.solverchange1('HCFDLab');
+          this.solverchange1('HCFDLab','');
         },
         
     //项目求解查询
       pojectquery(){
        
       },
-       solverchange1(val){
+       solverchange1(val,canshu){
         console.log(val)
         let that=this;
         this.femnum=val;
@@ -496,10 +496,11 @@ linezhexian(num){
          let data= JSON.parse(this.objopp);
           this.numsteps=data.nmlParam.steps;
           this.state=datas.state;
+          if(canshu==''){
             setTimeout(function(){
             that.initWebSocket();
         },500)
-           
+            }
            })   
         }else if(val=='FEMLab(结构力学)'){
             let data=res;
@@ -508,8 +509,9 @@ linezhexian(num){
               this.$refs.TFileStream.imgtupian=false;
               this.$refs.monitor.container_show=false;
                 this.solverConfigid=res.solverConfigid;
+             if(canshu==''){
                     this.startimg("init",'loaddata');
-        // }  
+         }  
         }else{
           
         }
@@ -544,7 +546,7 @@ linezhexian(num){
           this.solverConfigid=res.solverConfigid;
          let data= JSON.parse(this.objopp);
           this.numsteps=data.nmlParam.steps;
-           this.exlodingfalse(false)
+          this.exlodingfalse(false)
                 this.startimg("init",'loaddata');
             that.$refs.monitor.container_show=true;
            })