fix(测试计划): 修复测试计划关联用例页面增加loading加载
This commit is contained in:
parent
d86fe66d26
commit
aaed564857
|
@ -113,6 +113,7 @@
|
|||
</a-input-group>
|
||||
</div>
|
||||
</template>
|
||||
<a-spin :loading="tableLoading" class="w-full">
|
||||
<div class="flex h-[calc(100vh-118px)]">
|
||||
<div v-show="!isAdvancedSearchMode" class="w-[292px] border-r border-[var(--color-text-n8)] p-[16px]">
|
||||
<CaseTree
|
||||
|
@ -283,6 +284,7 @@
|
|||
</ScenarioCaseTable>
|
||||
</div>
|
||||
</div>
|
||||
</a-spin>
|
||||
<div class="footer !ml-[10px] w-[calc(100%-10px)]">
|
||||
<div class="flex items-center">
|
||||
<slot name="footerLeft">
|
||||
|
@ -605,8 +607,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
const tableLoading = ref(false);
|
||||
async function initModulesCount(params: TableQueryParams) {
|
||||
try {
|
||||
tableLoading.value = true;
|
||||
modulesCount.value = await initGetModuleCountFunc(
|
||||
props.getModuleCountApiType,
|
||||
associationType.value,
|
||||
|
@ -623,6 +627,8 @@
|
|||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(error);
|
||||
} finally {
|
||||
tableLoading.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -763,6 +769,7 @@
|
|||
selectPopVisible.value = false;
|
||||
keyword.value = '';
|
||||
selectedIds.value = [];
|
||||
showType.value = 'API';
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue