refactor(用例管理): 功能用例执行结果列改为只读

This commit is contained in:
guoyuqi 2024-04-29 14:15:03 +08:00 committed by 刘瑞斌
parent 4263347d7e
commit 10e3a7af03
2 changed files with 2 additions and 16 deletions

View File

@ -6,7 +6,7 @@
:size="16" :size="16"
:style="{ color: lastExecuteResultMap[props.executeResult].color }" :style="{ color: lastExecuteResultMap[props.executeResult].color }"
></MsIcon> ></MsIcon>
<span class="text-[14px] text-[var(--color-text-2)]">{{ status?.text || '' }}</span> <span class="text-[14px]">{{ status?.text || '' }}</span>
</div> </div>
</template> </template>

View File

@ -207,22 +207,8 @@
</a-trigger> </a-trigger>
</template> </template>
<template #lastExecuteResult="{ record }"> <template #lastExecuteResult="{ record }">
<a-select
v-model:model-value="record.lastExecuteResult"
:placeholder="t('common.pleaseSelect')"
class="param-input w-full"
size="mini"
@click.stop
@change="() => handleStatusChange(record)"
>
<template #label>
<executeResult :execute-result="record.lastExecuteResult" /> <executeResult :execute-result="record.lastExecuteResult" />
</template> </template>
<a-option v-for="item of LastExecuteResults" :key="item" :value="item">
<executeResult :execute-result="item" />
</a-option>
</a-select>
</template>
<template #moduleId="{ record }"> <template #moduleId="{ record }">
<a-tree-select <a-tree-select
v-if="record.showModuleTree" v-if="record.showModuleTree"