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