refactor(接口管理): 控制执行结果按钮显示调整

This commit is contained in:
guoyuqi 2024-03-18 19:36:43 +08:00 committed by Craftsman
parent 39847ccc93
commit 0073837461
1 changed files with 3 additions and 2 deletions

View File

@ -67,8 +67,8 @@
<execute-status :status="record.status" /> <execute-status :status="record.status" />
</template> </template>
<template #operation="{ record }"> <template #operation="{ record }">
<a-tooltip :disabled="record.deleted" :content="t('case.detail.report.delete')" position="top"> <a-tooltip :disabled="!record.deleted" :content="t('case.detail.report.delete')" position="top">
<MsButton :disabled="!record.deleted" class="!mr-0" @click="showResult(record)" <MsButton :disabled="record.deleted" class="!mr-0" @click="showResult(record)"
>{{ t('apiScenario.executeHistory.execution.operation') }} >{{ t('apiScenario.executeHistory.execution.operation') }}
</MsButton> </MsButton>
</a-tooltip> </a-tooltip>
@ -190,6 +190,7 @@
selectable: false, selectable: false,
heightUsed: 374, heightUsed: 374,
}, },
// eslint-disable-next-line no-return-assign
(item) => ({ (item) => ({
...item, ...item,
startTime: dayjs(item.startTime).format('YYYY-MM-DD HH:mm:ss'), startTime: dayjs(item.startTime).format('YYYY-MM-DD HH:mm:ss'),