liujiejie 2 miesięcy temu
rodzic
commit
de0e3c8857
1 zmienionych plików z 41 dodań i 34 usunięć
  1. 41 34
      src/views/ledger/modules.vue

+ 41 - 34
src/views/ledger/modules.vue

@@ -1,41 +1,43 @@
 <template>
   <div class="global-variable">
     <div class="condition">
-    <h2 class="TitleH2">主轴</h2>
-    <zhuzhou
-      v-if="bearingBrandOptions.length > 0 && lubricantBrandOptions.length > 0"
-      :rhyPP="lubricantBrandOptions"
-      :rhyZC="bearingBrandOptions"
-      :unitBearingsVo="unitBearingsVo"
-      @update="handleUpdate('unitBearingsDto', $event)"
-    ></zhuzhou>
-    <div v-if="clxShow">
-      <h2 class="TitleH2">齿轮箱</h2>
-      <Chilunxiang
+      <h2 class="TitleH2">主轴</h2>
+      <zhuzhou
         v-if="
           bearingBrandOptions.length > 0 && lubricantBrandOptions.length > 0
         "
-        :clxPP="lubricantBrandOptions"
-        :clxZC="bearingBrandOptions"
-        :unitGearDto="unitGearDto"
-        @update="handleUpdate('unitGearDto', $event)"
-      ></Chilunxiang>
+        :rhyPP="lubricantBrandOptions"
+        :rhyZC="bearingBrandOptions"
+        :unitBearingsVo="unitBearingsVo"
+        @update="handleUpdate('unitBearingsDto', $event)"
+      ></zhuzhou>
+      <div v-if="clxShow">
+        <h2 class="TitleH2">齿轮箱</h2>
+        <Chilunxiang
+          v-if="
+            bearingBrandOptions.length > 0 && lubricantBrandOptions.length > 0
+          "
+          :clxPP="lubricantBrandOptions"
+          :clxZC="bearingBrandOptions"
+          :unitGearDto="unitGearDto"
+          @update="handleUpdate('unitGearDto', $event)"
+        ></Chilunxiang>
+      </div>
+      <h2 class="TitleH2">发电机</h2>
+      <Fadianji
+        v-if="
+          bearingBrandOptions.length > 0 && lubricantBrandOptions.length > 0
+        "
+        :fdjPP="lubricantBrandOptions"
+        :fdjZC="bearingBrandOptions"
+        :unitDynamoDto="unitDynamoDto"
+        :fdjLQ="coolingoptions"
+        @update="handleUpdate('unitDynamoDto', $event)"
+      ></Fadianji>
+    </div>
+    <div style="text-align: right">
+      <el-button @click="ALLsubmit" type="primary">提交</el-button>
     </div>
-
-    <h2 class="TitleH2">发电机</h2>
-    <Fadianji
-      v-if="bearingBrandOptions.length > 0 && lubricantBrandOptions.length > 0"
-      :fdjPP="lubricantBrandOptions"
-      :fdjZC="bearingBrandOptions"
-      :unitDynamoDto="unitDynamoDto"
-      :fdjLQ="coolingoptions"
-      @update="handleUpdate('unitDynamoDto', $event)"
-    ></Fadianji>
-  </div>
-  <div style="text-align: right;margin-top: 10px;">
-    <el-button @click="ALLsubmit" type="primary">提交</el-button>
-  </div>
-
   </div>
 </template>
 
@@ -309,14 +311,19 @@ export default {
 </script>
 
 <style lang="scss" scoped>
+.global-variable {
+  height: calc(100vh - 70px);
+  overflow: hidden;
+  display: flex;
+  flex-direction: column;
+}
 .TitleH2 {
   font-weight: 800;
   font-size: 28px;
   margin: 20px 0;
 }
-.condition{
-  max-height: 700px;
-  overflow: hidden;
+.condition {
+  flex: 1;
   overflow-y: auto;
 }
 </style>