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