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

View File

@ -681,7 +681,10 @@
function showReportDetail(record: TaskCenterTaskItem) { function showReportDetail(record: TaskCenterTaskItem) {
activeDetailId.value = record.reportId; 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; showDetailDrawer.value = true;
} else { } else {
showCaseDetailDrawer.value = true; showCaseDetailDrawer.value = true;