Forráskód Böngészése

10.25修改展示图大小

liuqiao 1 éve
szülő
commit
eac4821658

+ 1 - 1
src/views/index/FEMLab/fem.vue

@@ -3872,7 +3872,7 @@ setpnum(){
    try{
          const redata = JSON.parse(e.data);
               if(redata.type == "log"){
-                this.$emit('getthislog',redata.stats+redata.value);
+                this.$emit('getthislog',redata.value);//状态redata.stats+
               }
             }catch(error){
                 return false;

+ 4 - 2
src/views/index/HCFDLab/echartsHFCD.vue

@@ -202,8 +202,10 @@ export default {
             if(typeof redata==='object'&& redata){
             
               if(redata.type == "log"){
-                    // this.$emit('statechange','1');
-                 this.$emit('getthislog',redata.stats+redata.value);
+                    // this.$emit('statechange','1');redata.stats+
+                  let newoldSolver=redata.stats+redata.value;
+                
+                 this.$emit('getthislog',redata.value,newoldSolver);
               }
             if (redata.type == "iter") {
                this.convergeDateLoad(redata.value);

+ 1 - 1
src/views/index/HCFDLab/index.vue

@@ -7503,7 +7503,7 @@ body {
   .right {
     flex: 1;
     height: 100%;
-    height: 85vh;
+    height: 79vh;
     position: relative;
   }
   .imgcontent img {

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

@@ -125,14 +125,16 @@ position: relative;
     display: flex;
     justify-content: center;
     /* align-items: center; */
-
+    height: 580px;
+        padding-top: 51px;
     flex-direction: column;
     
 }
 .imgdiv{
       display: flex;
     justify-content: center;
-        height: 631px;
+    height: 580px;
+ 
 }
 .imgdi{
        display: flex;

+ 21 - 6
src/views/index/index.vue

@@ -267,6 +267,7 @@
                 ref="TFileStream"
               ></TFileStream>
             </el-main>
+            <!-- <div class="kongzhit"> -->
             <div class="footerTitle   el-tag--primary">
               <div>{{ $t("FEM.other.console") }}
                 <p
@@ -299,10 +300,12 @@
                 <el-input
                   class="footerText"
                   type="textarea"
+                  id="textarea_id"
                   v-model="logs"
                 ></el-input>
               </div>
             </el-footer>
+            <!-- </div> -->
           </el-container>
         </el-container>
       </div>
@@ -857,11 +860,16 @@ export default {
       }
     },
     //日志
-    getthislog(log) {
-      this.newlog = log + "\n" + this.newlog;
+    getthislog(log,newoldSolver) {
+      this.newlog =this.newlog  + "\n" +log ;
       this.logs = this.newlog;
       let logs = this.logs;
-      if (this.logs.indexOf("newSolver end") >= 0) {
+      console.log(newoldSolver);
+          this.$nextTick(() => {
+            let textarea=document.getElementById("textarea_id");
+            textarea.scrollTop=textarea.scrollHeight;
+          })
+      if (this.logs.indexOf('newSolver end') >= 0) {
         this.elodingfalse = false;
         this.isSolverEnd = true;
         this.statecustom = "0";
@@ -1321,13 +1329,19 @@ export default {
   justify-content: space-between;
   padding: 5px 20px;
   font-size: 20px;
-  height: 30px !important;
+  height: 25px !important;
   z-index: 99;
 }
 .footerTitle div {
   display: flex;
   justify-content: space-around;
   align-items: center;
+  font-size: 14px;
+}
+.kongzhit{
+   position: absolute;
+    bottom: 0;
+    width: 100%;
 }
 .footerTitle p {
   margin: 0;
@@ -1337,17 +1351,18 @@ export default {
   cursor: default;
 }
 .femFooter {
-  height: 135px !important;
+  height: 160px !important;
   padding: 0;
   position: relative;
 }
 .footerText .el-textarea__inner {
   width: 100%;
-  height: 135px !important;
+  height: 160px !important;
   border: 0;
   font-size: 12px;
   color: #333;
   padding: 2px;
+  padding-bottom: 46px;
 }
 </style>
 <style>