liuqiao hai 1 ano
pai
achega
19d51d219c
Modificáronse 2 ficheiros con 28 adicións e 7 borrados
  1. 8 5
      src/views/index/FemLab2_0/index.vue
  2. 20 2
      src/views/index/index.vue

+ 8 - 5
src/views/index/FemLab2_0/index.vue

@@ -10,7 +10,7 @@
           <el-tab-pane label="网格划分" name="twos"> <meshindex></meshindex></el-tab-pane>
           <!-- 集合定义 -->
           <el-tab-pane label="集合定义" name="two">
-              <div class="imgzong heightimg">
+              <div class="imgzong imgheigh  heightimg">
              <div class="item1"  v-for="(itemcj,index) in jihlist"  :key="'two-'+ index" :class="{activeOrange:active=='two-'+ index}" @click="clickgeometry($event,index,'two-'+ index)">
                 <el-tooltip class="item" effect="dark" :content="itemcj.titlie" placement="bottom">
                              <el-image :src="itemcj.icon" fit="cover" /> 
@@ -20,7 +20,7 @@
           </el-tab-pane>
                 <!-- 属性设置 -->
                  <el-tab-pane label="属性设置" name="three">
-             <div class="imgzong heightimg">
+             <div class="imgzong imgheigh heightimg">
              <div class="item1"  v-for="(item,index) in shxlist"  :key="'three-'+ index" :class="{activeOrange:active=='three-'+ index}" @click="clickgeometry($event,index,'three-'+ index)">
                 <el-tooltip class="item" effect="dark" :content="item.titlie" placement="bottom">
                         <el-image :src="item.icon" fit="cover" />   
@@ -30,7 +30,7 @@
           </el-tab-pane>
             <!-- 载荷边界 -->
                  <el-tab-pane label="载荷边界" name="four">
-             <div class="imgzong heightimg">
+             <div class="imgzong imgheigh heightimg">
              <div class="item1"  v-for="(item,index) in zhlist"  :key="'four-'+ index" :class="{activeOrange:active=='four-'+ index}" @click="clickgeometry($event,index,'four-'+ index)">
                 <el-tooltip class="item" effect="dark" :content="item.titlie" placement="bottom">
                         <el-image :src="item.icon" fit="cover" />   
@@ -58,7 +58,7 @@
           </el-tab-pane>
            <!-- 求解控制 -->
                  <el-tab-pane label="求解控制" name="five">
-              <div class="imgzong heightimg" v-if="femnum=='FEMLab(结构力学)'">
+              <div class="imgzong imgheigh heightimg" v-if="femnum=='FEMLab(结构力学)'">
              <div class="item1"  v-for="(item,index) in fexkz"  :key="'five-'+ index" :class="{activeOrange:active=='five-'+ index}" @click="clickgeometry($event,index,'five-'+ index)">
                 <el-tooltip class="item" effect="dark" :content="item.titlie" placement="bottom">
                         <el-image :src="item.icon" fit="cover" />   
@@ -94,7 +94,7 @@
              </div>
                </div>
             </div>
-             <div class="imgzong heightimg" v-if="femnum=='FEMLab(结构力学)版本2'">
+             <div class="imgzong imgheigh heightimg" v-if="femnum=='FEMLab(结构力学)版本2'">
              <div class="item1"  v-for="(item,index) in fexkz6"  :key="'five11-'+ index" :class="{activeOrange:active=='five11-'+ index}" @click="clickgeometry($event,index,'five11-'+ index)">
                 <el-tooltip class="item" effect="dark" :content="item.titlie" placement="bottom">
                         <el-image :src="item.icon" fit="cover" />   
@@ -1906,6 +1906,9 @@ this.styX.left=e.clientX+'px';
 height: 30px;
 line-height: 30px;
 }
+.imgheigh{
+padding: 31px;
+}
 </style>
 <style lang="scss" scoped>
 @import '@/styles/variables.scss';

+ 20 - 2
src/views/index/index.vue

@@ -168,6 +168,7 @@
       <transition name="slide-fade">
         <div
           class="left lbg_color3  el-menu"
+          :class="{leftactive:isleftActive}"
           v-show="showtrue"
           style="padding:0;"
         >
@@ -246,7 +247,7 @@
           </el-tabs>
         </div>
       </transition>
-      <div class="right lbg_color2 ">
+      <div class="right lbg_color2 "  :class="{rightactive:isrightActive}">
         <!-- <div class="part-panel-collapse-handle lbg_color3 el-tag--primary " @click="showtrue=!showtrue">
             <i class="el-icon-arrow-down"></i>
   </div> -->
@@ -397,6 +398,8 @@ export default {
   data() {
     return {
       //几何参数
+      isleftActive:false,
+      isrightActive:false,
       checkIdArr:[],
       objcheck:{
        pointsFlag:false,
@@ -830,6 +833,14 @@ export default {
       let that = this;
       this.femnum = val;
       this.selectval = val;
+      if(this.value2=='FEMLab(结构力学)版本2'||this.value2=='adi'){
+           this.isleftActive=true;
+           this.isrightActive=true;
+
+      }else{
+           this.isleftActive=false;
+            this.isrightActive=false;
+      }
       const params = {
         transCode: "C00003",
         pid: this.pid,
@@ -1352,7 +1363,7 @@ export default {
       flex-direction: column;
       padding: 15px;
       position: relative;
-      height: calc(100vh - 179px);
+       height: calc(100vh - 179px);
       z-index: 10;
     }
     .part-panel-collapse-handle {
@@ -1505,6 +1516,7 @@ export default {
 /* .left {
   display: none;
 } */
+
 .selecr .el-form-item__label {
   line-height: 36px;
 }
@@ -1648,5 +1660,11 @@ display: inline-block;
 /deep/.leftsearch .el-button {
   background-color: #fff;
 }
+.leftactive{
+    height: calc(100vh - 116px) !important;
+}
+.rightactive{
+      height: calc(100vh - 151px)!important;
+}
 
 </style>