feat(测试计划&项目管理): 项目管理环境host调整&测试计划报告自动跳转详情
This commit is contained in:
parent
4a480830f3
commit
7b6ebc3132
|
@ -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>
|
||||
|
|
|
@ -452,6 +452,7 @@
|
|||
});
|
||||
|
||||
function updateHandler() {
|
||||
showDrawerVisible.value = false;
|
||||
router.push({
|
||||
name: RouteEnum.BUG_MANAGEMENT_DETAIL,
|
||||
query: {
|
||||
|
|
|
@ -359,6 +359,7 @@
|
|||
}
|
||||
|
||||
function updateHandler(type: string) {
|
||||
showDrawerVisible.value = false;
|
||||
router.push({
|
||||
name: CaseManagementRouteEnum.CASE_MANAGEMENT_CASE_DETAIL,
|
||||
query: {
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue