fix(任务中心): bugFix

This commit is contained in:
baiqi 2024-10-24 11:03:25 +08:00 committed by 刘瑞斌
parent d1558051f4
commit d7d57690ce
2 changed files with 13 additions and 7 deletions

View File

@ -52,12 +52,15 @@
{{ t(executeMethodMap[record.triggerMode]) }}
</template>
<template #resourcePoolNode="{ record }">
<a-tooltip :content="record.resourcePoolNode">
<div class="one-line-text">{{ record.resourcePoolNode }}</div>
</a-tooltip>
<a-tooltip v-if="record.resourcePoolNodeStatus === false" :content="t('ms.taskCenter.nodeErrorTip')">
<icon-exclamation-circle-fill class="min-w-[18px] !text-[rgb(var(--warning-6))]" :size="18" />
</a-tooltip>
<template v-if="record.resourcePoolNode">
<a-tooltip :content="record.resourcePoolNode">
<div class="one-line-text">{{ record.resourcePoolNode }}</div>
</a-tooltip>
<a-tooltip v-if="record.resourcePoolNodeStatus === false" :content="t('ms.taskCenter.nodeErrorTip')">
<icon-exclamation-circle-fill class="min-w-[18px] !text-[rgb(var(--warning-6))]" :size="18" />
</a-tooltip>
</template>
<span v-else>-</span>
</template>
<template #action="{ record }">
<MsButton

View File

@ -681,7 +681,10 @@
function showReportDetail(record: TaskCenterTaskItem) {
activeDetailId.value = record.reportId;
if ([ExecuteTaskType.API_SCENARIO, ExecuteTaskType.TEST_PLAN_API_SCENARIO].includes(record.taskType)) {
if (
[ExecuteTaskType.API_SCENARIO, ExecuteTaskType.TEST_PLAN_API_SCENARIO].includes(record.taskType) ||
(record.taskType.includes('SCENARIO') && record.integrated === true)
) {
showDetailDrawer.value = true;
} else {
showCaseDetailDrawer.value = true;