zdl пре 1 година
родитељ
комит
4c464e90e4

+ 1 - 1
src/views/allcase/caseControl.vue

@@ -1,6 +1,6 @@
 <template>
   <div ref="box" class="box">
-    <CaseQualityBox v-if="data.data" :data="data" :height="820" />
+    <CaseQualityBox v-if="data.data" :data="data" />
   </div>
 </template>
 

+ 6 - 2
src/views/allcase/components/CaseQualityBox2.vue

@@ -94,7 +94,7 @@
       height: {
         type: Number,
         default() {
-          return 820
+          return 0
         }
       }
     },
@@ -129,7 +129,11 @@
         return str
       },
       scrollHeight() {
-        return (this.height - 297)+'px'
+        if (this.height) {
+          return (this.height - 297)+'px'
+        } else {
+          return `calc(100vh - 314px)`
+        }
       }
     },
     methods: {