Browse Source

页面显示优化

lihong 2 years ago
parent
commit
514b00f557

+ 3 - 2
src/components/medical-advice/temperature/GraphicsTempalte.vue

@@ -20,8 +20,8 @@
             <el-checkbox v-model="checkBoxFlag.wcyRqFlag" label="无出院日期" size="small" />
         </div>
     </div>
-    <el-scrollbar max-height="600px">
-        <div id="scdPrint" style="background:white;width: 900px;overflow-x:auto ">
+    <el-scrollbar :height="(getWindowSize.h/1.2-100)+'px'">
+        <div id="scdPrint" style="background:white;width: 900px;">
             <Graphics v-if="graphicsFlag"  :patientInfo="patientInfo" :queryParam="queryParam"></Graphics>
         </div>
     </el-scrollbar>
@@ -31,6 +31,7 @@
 import  Graphics from '@/components/medical-advice/temperature/graphics'
 import { ref, onMounted,nextTick,watch } from 'vue'
 import {getWeek} from "@/api/medical-advice/nursing-manage";
+import {getWindowSize} from "@/utils/window-size";
 const props = defineProps({
     patientInfo: {
         type: Object,

+ 1 - 1
src/views/medical-advice/nursing-manage/NursingRecord.vue

@@ -443,7 +443,7 @@
                             </el-pagination>
                     </el-tab-pane>
                     <el-tab-pane label="打印页面" name="second">
-                        <el-scrollbar  class="scrollbar" max-height="580px" noresize="true">
+                        <el-scrollbar  class="scrollbar" :max-height="(getWindowSize.h/1.2-100)+'px'" noresize="true">
                         <div id="cqYz" >
                             <table id="pageTable">
                                 <thead>