Browse Source

fix: save

gemercheung 1 năm trước cách đây
mục cha
commit
0516aaa435
1 tập tin đã thay đổi với 7 bổ sung2 xóa
  1. 7 2
      src/views/scenes/list.vue

+ 7 - 2
src/views/scenes/list.vue

@@ -12,7 +12,7 @@
     <div class="desc-wrap-BasicTable">
       <BasicTable
         @register="registerTable"
-        :scroll="{ x: 1500, y: 500 }"
+        :scroll="{ x: 1500, y: tableHeight }"
         :rowSelection="{ type: 'checkbox', getCheckboxProps: getCheckboxProps }"
         @fetch-success="handleFetchSuccess"
       >
@@ -162,12 +162,13 @@
   import { useLocaleStore } from '/@/store/modules/locale';
   import { SceneDownloadParam } from '/@/api/scene/model';
   import { RoleEnum } from '/@/enums/roleEnum';
+  import { onMounted } from 'vue';
 
   const localeStore = useLocaleStore();
   console.log('localeStore', localeStore);
   const userStore = useUserStore();
 
-  const tableHeight = ref(() => 300);
+  const tableHeight = ref(window.innerHeight - 200);
 
   export default defineComponent({
     components: {
@@ -493,6 +494,10 @@
       function handleFetchSuccess(item) {
         console.log('handleFetchSuccess', item);
       }
+      onMounted(() => {
+        tableHeight.value = window.innerHeight - 390;
+        // reload();
+      });
 
       return {
         reload,