|
|
@@ -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,
|