瀏覽代碼

优化页面

DESKTOP-0GD05B0\Administrator 2 年之前
父節點
當前提交
de85de623e
共有 1 個文件被更改,包括 10 次插入10 次删除
  1. 10 10
      src/components/zhu-yuan-yi-sheng/emr/HistoricalEmr.vue

+ 10 - 10
src/components/zhu-yuan-yi-sheng/emr/HistoricalEmr.vue

@@ -7,20 +7,21 @@
       <div class="historical__left">
         <el-table :data="historicalData"
                   highlight-current-row
+                  :height="getWindowSize.h / 1.2"
                   @row-click="rowClick">
-          <el-table-column fixed="left" label="操作">
+          <el-table-column fixed="left" label="操作" width="40">
             <template #default="{row}">
-              <el-button @click.stop="restoreData(row)">还原</el-button>
+              <el-button text type="primary" @click.stop="restoreData(row)">还原</el-button>
             </template>
           </el-table-column>
-          <el-table-column label="创建人" prop="properties.creator"/>
-          <el-table-column label="创建时间" prop="properties.createTime">
+          <el-table-column label="创建人" prop="properties.creator" width="70"/>
+          <el-table-column label="创建时间" prop="properties.createTime" width="80">
             <template #default="{row}">
               {{ getFormatDatetime(row.properties.createTime) }}
             </template>
           </el-table-column>
-          <el-table-column label="修改人" prop="properties.modifier"/>
-          <el-table-column label="修改时间" prop="properties.modifyTime">
+          <el-table-column label="修改人" prop="properties.modifier" width="70"/>
+          <el-table-column label="修改时间" prop="properties.modifyTime" width="80">
             <template #default="{row}">
               {{ getFormatDatetime(row.properties.modifyTime) }}
             </template>
@@ -31,7 +32,7 @@
         <iframe
             ref="emrRef"
             width="100%"
-            height="700px"
+            :height="getWindowSize.h - 40"
             src="/emr/runtime/#/editor"/>
       </div>
     </div>
@@ -47,6 +48,7 @@ import {getHistory} from '@/api/zhu-yuan-yi-sheng/emr-patient'
 import {getFormatDatetime} from '@/utils/date'
 import {ElMessageBox} from "element-plus";
 import {BizException, ExceptionEnum} from "@/utils/BizException";
+import {getWindowSize} from '@/utils/window-size'
 
 const props = defineProps({
   docunentId: {
@@ -80,9 +82,7 @@ const restoreData = (row) => {
     delete row.reversion
     emit('restoreData', row)
   }).catch(() => {
-
   })
-
 }
 
 onMounted(async () => {
@@ -104,7 +104,7 @@ onMounted(async () => {
   display: flex;
 
   .historical__left {
-    width: 220px;
+    width: max-content;
     height: 100%;
   }