fix(测试计划): 已归档的测试计划不能修改步骤执行结果
This commit is contained in:
parent
94bcdd9b08
commit
dd2e1943da
|
@ -28,7 +28,10 @@
|
|||
@blur="blurHandler(record, 'expected')"
|
||||
/>
|
||||
</template>
|
||||
<template #actualResult="{ record }">
|
||||
<template
|
||||
v-if="hasAnyPermission(['PROJECT_TEST_PLAN:READ+EXECUTE']) && !props.isDisabledTestPlan"
|
||||
#actualResult="{ record }"
|
||||
>
|
||||
<a-textarea
|
||||
v-model="record.actualResult"
|
||||
:max-length="1000"
|
||||
|
@ -40,7 +43,7 @@
|
|||
</template>
|
||||
<template #lastExecResult="{ record }">
|
||||
<a-select
|
||||
v-if="hasAnyPermission(['PROJECT_TEST_PLAN:READ+EXECUTE'])"
|
||||
v-if="hasAnyPermission(['PROJECT_TEST_PLAN:READ+EXECUTE']) && !props.isDisabledTestPlan"
|
||||
v-model:model-value="record.executeResult"
|
||||
:placeholder="t('common.pleaseSelect')"
|
||||
class="param-input w-full"
|
||||
|
@ -101,6 +104,7 @@
|
|||
isDisabled?: boolean;
|
||||
isScrollY?: boolean;
|
||||
isTestPlan?: boolean;
|
||||
isDisabledTestPlan?: boolean;
|
||||
}>(),
|
||||
{
|
||||
isDisabled: false,
|
||||
|
|
|
@ -67,6 +67,7 @@
|
|||
v-model:step-list="stepData"
|
||||
:is-scroll-y="false"
|
||||
:is-test-plan="props.isTestPlan"
|
||||
:is-disabled-test-plan="props.isDisabledTestPlan"
|
||||
:is-disabled="!isEditPreposition"
|
||||
/>
|
||||
</div>
|
||||
|
@ -304,6 +305,7 @@
|
|||
formRules?: FormRuleItem[]; // 编辑表单
|
||||
formApi?: any;
|
||||
isTestPlan?: boolean; // 测试计划页面的
|
||||
isDisabledTestPlan?: boolean; // 测试计划页面-已归档
|
||||
}>(),
|
||||
{
|
||||
allowEdit: true, // 是否允许编辑
|
||||
|
|
|
@ -101,7 +101,7 @@
|
|||
</template>
|
||||
</MsDescription>
|
||||
<div v-else-if="activeTab === 'detail'" class="align-content-start flex h-full flex-col">
|
||||
<CaseTabDetail ref="caseTabDetailRef" is-test-plan :form="caseDetail" />
|
||||
<CaseTabDetail ref="caseTabDetailRef" is-test-plan :form="caseDetail" :is-disabled-test-plan="!canEdit" />
|
||||
<!-- 开始执行 -->
|
||||
<div
|
||||
v-if="canEdit && hasAnyPermission(['PROJECT_TEST_PLAN:READ+EXECUTE'])"
|
||||
|
|
Loading…
Reference in New Issue