feat(测试计划&项目管理): 项目管理环境host调整&测试计划报告自动跳转详情

This commit is contained in:
xinxin.wu 2024-09-09 17:09:39 +08:00 committed by Craftsman
parent 4a480830f3
commit 7b6ebc3132
6 changed files with 17 additions and 16 deletions

View File

@ -15,7 +15,7 @@
</Suspense> -->
<Suspense>
<keep-alive :include="cacheStore.cacheViews">
<component :is="Component" :key="route.fullPath" />
<component :is="Component" :key="route.name" />
</keep-alive>
</Suspense>
</div>

View File

@ -452,6 +452,7 @@
});
function updateHandler() {
showDrawerVisible.value = false;
router.push({
name: RouteEnum.BUG_MANAGEMENT_DETAIL,
query: {

View File

@ -359,6 +359,7 @@
}
function updateHandler(type: string) {
showDrawerVisible.value = false;
router.push({
name: CaseManagementRouteEnum.CASE_MANAGEMENT_CASE_DETAIL,
query: {

View File

@ -1792,12 +1792,12 @@
}
async function mountedLoad() {
await initFilter();
await initData();
getCaseExportData();
if (route.query.id) {
showCaseDetail(route.query.id as string, -1);
}
await initFilter();
initData();
getCaseExportData();
}
watch(

View File

@ -78,10 +78,7 @@
type: 'input',
label: 'project.environmental.host.ip',
placeholder: 'project.environmental.host.ipPlaceholder',
rules: [
{ required: true, message: t('project.environmental.host.ipIsRequire') },
{ notRepeat: true, message: t('project.environmental.host.ipNotRepeat') },
],
rules: [{ required: true, message: t('project.environmental.host.ipIsRequire') }],
},
{
field: 'domain',

View File

@ -408,15 +408,22 @@
const showPlanDrawer = ref(false);
// TODO
//
async function handleGenerateReport() {
try {
loading.value = true;
await generateReport({
const reportId = await generateReport({
projectId: appStore.currentProjectId,
testPlanId: detail.value.id as string,
triggerMode: 'MANUAL',
});
router.push({
name: TestPlanRouteEnum.TEST_PLAN_REPORT_DETAIL,
query: {
id: reportId,
type: testPlanTypeEnum.TEST_PLAN,
},
});
Message.success(t('testPlan.testPlanDetail.successfullyGenerated'));
} catch (error) {
// eslint-disable-next-line no-console
@ -425,14 +432,9 @@
loading.value = false;
}
}
// TODO
//
function configReportHandler() {
try {
// await generateReport({
// projectId: appStore.currentProjectId,
// testPlanId: record.id,
// triggerMode: 'MANUAL',
// });
router.push({
name: TestPlanRouteEnum.TEST_PLAN_INDEX_CONFIG,
query: {