Sfoglia il codice sorgente

生产履历展示bug修改

dengrui 4 settimane fa
parent
commit
8054bad363
1 ha cambiato i file con 8 aggiunte e 2 eliminazioni
  1. 8 2
      src/views/traceability/components/brazeCom.vue

+ 8 - 2
src/views/traceability/components/brazeCom.vue

@@ -1,8 +1,8 @@
 <!-- 点检判定 -->
 <template>
-  <div class="mainContentBox">
+  <el-scrollbar :height="tableHeight">
     <avue-crud ref="crudRef2" :data="tableData" :option="option" />
-  </div>
+  </el-scrollbar>
 </template>
 <script setup>
 import { processBrazePage } from "@/api/braze";
@@ -12,6 +12,11 @@ import { useDictionaryStore } from "@/store";
 const dictS = useDictionaryStore();
 const store = useProcessStore();
 const tableData = ref([]);
+const tableHeight = ref(null);
+const setTableHeight = () => {
+  tableHeight.value =
+    Number(document.getElementById("tabBox").offsetHeight) - 110;
+};
 const option = {
   addBtn: false,
   selection: false,
@@ -71,6 +76,7 @@ defineExpose({ refreshTra });
 
 onMounted(() => {
   refreshTra();
+  setTableHeight();
 });
 
 const dataList = (data) => {