Explorar o código

表格高度修改

duy %!s(int64=2) %!d(string=hai) anos
pai
achega
3ac1ef282a
Modificáronse 2 ficheiros con 10 adicións e 3 borrados
  1. 5 1
      src/styles/static/project.scss
  2. 5 2
      src/views/static/project.vue

+ 5 - 1
src/styles/static/project.scss

@@ -6,7 +6,11 @@
     overflow-y: auto;
 }
 .card-box {
-    height: calc(100vh - 460px) !important;
+    height: calc(100vh - 520px) !important;
+    overflow-y: auto;
+}
+.card-box1 {
+    height: calc(100vh - 470px) !important;
     overflow-y: auto;
 }
 .hc-card-item-sub {

+ 5 - 2
src/views/static/project.vue

@@ -53,12 +53,13 @@
                     <div class="hc-expense-total-title"> 列表统计</div>
                    
                 </template>
-                <div class="bg-white p-2  card-box" style="height: 100%;">
+                <div class="bg-white p-2  " style="height: 100%;">
                     <el-table :data="tableData" border style="width: 100%;  "
                                 v-if="!isProject"
                                 :span-method="spanMethod"
                                 :cell-style="columnStyle"
                                 :header-cell-style="tableHeaderColor"
+                                class="card-box1"
                               
                     >
                         <el-table-column prop="name" label="项目名称">
@@ -86,6 +87,7 @@
                             <span v-if="isShowDetailtable===2">XXX项目>研发部>产品-研发</span>
                         </div>
                         <el-table :data="protableData" border style="width: 100%; "   v-if="isShowDetailtable===3" 
+                        class=" card-box"
                         
                         :header-cell-style="tableHeaderColor"
                         >
@@ -108,7 +110,7 @@
                             </el-table-column>
                         </el-table>
                         <el-table :data="priceData" border style="width: 100%;"
-                        
+                                    class=" card-box"
                                     v-if="isShowDetailtable===1"
                                     :span-method="pricespanMethod"
                                     :cell-style="pricecolumnStyle"
@@ -132,6 +134,7 @@
                                     :span-method="costspanMethod"
                                     :cell-style="costcolumnStyle"
                                     :header-cell-style="costtableHeaderColor"
+                                    class=" card-box"
                         >
                             <el-table-column prop="costobject" label="费用分类"/>
                             <el-table-column prop="price" label="费用(元)" align="center"/>