diff --git a/frontend/src/components/business/ms-case-associate/index.vue b/frontend/src/components/business/ms-case-associate/index.vue index 897a322a8c..09af7b1494 100644 --- a/frontend/src/components/business/ms-case-associate/index.vue +++ b/frontend/src/components/business/ms-case-associate/index.vue @@ -198,6 +198,9 @@ const virtualListProps = computed(() => { return { height: 'calc(100vh - 251px)', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }; }); diff --git a/frontend/src/components/business/ms-common-script/formApiImportDrawer.vue b/frontend/src/components/business/ms-common-script/formApiImportDrawer.vue index 368ae32522..f97cf1ece1 100644 --- a/frontend/src/components/business/ms-common-script/formApiImportDrawer.vue +++ b/frontend/src/components/business/ms-common-script/formApiImportDrawer.vue @@ -153,6 +153,9 @@ const virtualListProps = computed(() => { return { height: 'calc(100vh - 251px)', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }; }); diff --git a/frontend/src/components/business/ms-link-file/fileTree.vue b/frontend/src/components/business/ms-link-file/fileTree.vue index cf9ba2b9a7..d22f2df388 100644 --- a/frontend/src/components/business/ms-link-file/fileTree.vue +++ b/frontend/src/components/business/ms-link-file/fileTree.vue @@ -77,6 +77,9 @@ const virtualListProps = computed(() => { return { height: 'calc(100vh - 296px)', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }; }); diff --git a/frontend/src/components/business/ms-tree/index.vue b/frontend/src/components/business/ms-tree/index.vue index ab92e53832..ca7191568b 100644 --- a/frontend/src/components/business/ms-tree/index.vue +++ b/frontend/src/components/business/ms-tree/index.vue @@ -82,6 +82,7 @@ import { mapTree } from '@/utils/index'; import type { MsTreeFieldNames, MsTreeNodeData, MsTreeSelectedData } from './types'; + import { VirtualListProps } from '@arco-design/web-vue/es/_components/virtual-list-v2/interface'; const props = withDefaults( defineProps<{ @@ -102,7 +103,7 @@ checkable?: boolean; // 是否可选中 checkedStrategy?: 'all' | 'parent' | 'child'; // 选中节点时的策略 checkedKeys?: Array; // 选中的节点 key - virtualListProps?: Record; // 虚拟滚动列表的属性 + virtualListProps?: VirtualListProps; // 虚拟滚动列表的属性 titleTooltipPosition?: | 'top' | 'tl' diff --git a/frontend/src/views/api-test/components/requestComposition/index.vue b/frontend/src/views/api-test/components/requestComposition/index.vue index 6e5eec9497..2a2267005e 100644 --- a/frontend/src/views/api-test/components/requestComposition/index.vue +++ b/frontend/src/views/api-test/components/requestComposition/index.vue @@ -745,7 +745,7 @@ saveLoading.value = true; if (requestVModel.value.isNew) { // 若是新建的调试,走添加 - await props.createApi({ + const res = await props.createApi({ ...makeRequestParams(), ...saveModalForm.value, protocol: requestVModel.value.protocol, @@ -753,6 +753,8 @@ uploadFileIds: [], linkFileIds: [], }); + requestVModel.value.id = res.id; + requestVModel.value.isNew = false; } else { await props.updateApi({ ...makeRequestParams(), diff --git a/frontend/src/views/api-test/debug/components/moduleTree.vue b/frontend/src/views/api-test/debug/components/moduleTree.vue index aea6bc811b..84aa0d091a 100644 --- a/frontend/src/views/api-test/debug/components/moduleTree.vue +++ b/frontend/src/views/api-test/debug/components/moduleTree.vue @@ -45,6 +45,9 @@ :empty-text="t('apiTestDebug.noMatchModule')" :virtual-list-props="{ height: '100%', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }" :field-names="{ title: 'name', diff --git a/frontend/src/views/api-test/management/components/moduleTree.vue b/frontend/src/views/api-test/management/components/moduleTree.vue index 763f48463f..eb081bb72a 100644 --- a/frontend/src/views/api-test/management/components/moduleTree.vue +++ b/frontend/src/views/api-test/management/components/moduleTree.vue @@ -209,10 +209,16 @@ if (props.readOnly) { return { height: 'calc(60vh - 190px)', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }; } return { height: 'calc(100vh - 305px)', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }; }); diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue index b5ca92b79d..e422221a84 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue @@ -332,6 +332,9 @@ const virtualListProps = computed(() => { return { height: 'calc(100vh - 366px)', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }; }); diff --git a/frontend/src/views/case-management/caseManagementFeature/components/recycleCaseTable.vue b/frontend/src/views/case-management/caseManagementFeature/components/recycleCaseTable.vue index e87f280a69..3e27557d04 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/recycleCaseTable.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/recycleCaseTable.vue @@ -422,6 +422,9 @@ const virtualListProps = computed(() => { return { height: 'calc(100vh - 270px)', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }; }); diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDependency/preAndPostCaseDrawer.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDependency/preAndPostCaseDrawer.vue index 2306b37f7f..4c19f25d36 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDependency/preAndPostCaseDrawer.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDependency/preAndPostCaseDrawer.vue @@ -190,6 +190,9 @@ const virtualListProps = computed(() => { return { height: 'calc(100vh - 251px)', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }; }); diff --git a/frontend/src/views/case-management/caseReview/components/detail/caseTree.vue b/frontend/src/views/case-management/caseReview/components/detail/caseTree.vue index 134dd493f7..416fae9844 100644 --- a/frontend/src/views/case-management/caseReview/components/detail/caseTree.vue +++ b/frontend/src/views/case-management/caseReview/components/detail/caseTree.vue @@ -75,6 +75,9 @@ const virtualListProps = computed(() => { return { height: 'calc(100vh - 460px)', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }; }); diff --git a/frontend/src/views/case-management/caseReview/components/index/moduleTree.vue b/frontend/src/views/case-management/caseReview/components/index/moduleTree.vue index c64491501b..500f3686ad 100644 --- a/frontend/src/views/case-management/caseReview/components/index/moduleTree.vue +++ b/frontend/src/views/case-management/caseReview/components/index/moduleTree.vue @@ -128,10 +128,16 @@ if (props.isModal) { return { height: 'calc(60vh - 190px)', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }; } return { height: 'calc(100vh - 325px)', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }; }); diff --git a/frontend/src/views/project-management/fileManagement/components/folderTree.vue b/frontend/src/views/project-management/fileManagement/components/folderTree.vue index 16d27e60a1..815462f9cb 100644 --- a/frontend/src/views/project-management/fileManagement/components/folderTree.vue +++ b/frontend/src/views/project-management/fileManagement/components/folderTree.vue @@ -105,10 +105,16 @@ if (props.isModal) { return { height: 'calc(60vh - 190px)', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }; } return { height: 'calc(100vh - 325px)', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }; }); const moduleKeyword = ref(''); diff --git a/frontend/src/views/test-plan/testPlan/components/testPlanTree.vue b/frontend/src/views/test-plan/testPlan/components/testPlanTree.vue index 7a48e70cdb..5296f2732d 100644 --- a/frontend/src/views/test-plan/testPlan/components/testPlanTree.vue +++ b/frontend/src/views/test-plan/testPlan/components/testPlanTree.vue @@ -319,6 +319,9 @@ const virtualListProps = computed(() => { return { height: 'calc(100vh - 366px)', + threshold: 200, + fixedSize: true, + buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 }; });