fix(测试跟踪): 测试计划及用例评审上传附件禁用

This commit is contained in:
song-cc-rock 2022-09-08 15:04:23 +08:00 committed by f2c-ci-robot[bot]
parent 5af0ff3b60
commit aa39aa5a8d
2 changed files with 4 additions and 4 deletions

View File

@ -73,8 +73,8 @@
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-success="handleSuccess" :on-success="handleSuccess"
:on-error="handleError" :on-error="handleError"
:disabled="(readOnly && isTestPlanEdit) || isCopy"> :disabled="readOnly || isCopy">
<el-button :disabled="(readOnly && isTestPlanEdit) || isCopy" type="primary" size="mini">{{$t('test_track.case.add_attachment')}}</el-button> <el-button :disabled="readOnly || isCopy" type="primary" size="mini">{{$t('test_track.case.add_attachment')}}</el-button>
<span slot="tip" class="el-upload__tip"> {{ $t('test_track.case.upload_tip') }} </span> <span slot="tip" class="el-upload__tip"> {{ $t('test_track.case.upload_tip') }} </span>
</el-upload> </el-upload>
</el-col> </el-col>
@ -152,7 +152,7 @@ export default {
ReviewCommentItem, ReviewCommentItem,
FormRichTextItem, TestCaseIssueRelate, TestCaseAttachment, MsRichText, TestCaseRichText FormRichTextItem, TestCaseIssueRelate, TestCaseAttachment, MsRichText, TestCaseRichText
}, },
props: ['form', 'labelWidth', 'caseId', 'readOnly', 'projectId', 'isTestPlan', 'planId', 'versionEnable', 'isCopy', 'copyCaseId', 'isTestPlanEdit', props: ['form', 'labelWidth', 'caseId', 'readOnly', 'projectId', 'isTestPlan', 'planId', 'versionEnable', 'isCopy', 'copyCaseId',
'type', 'comments', 'isClickAttachmentTab', 'type', 'comments', 'isClickAttachmentTab',
'defaultOpen' 'defaultOpen'
], ],

View File

@ -111,7 +111,7 @@
v-if="testCase.stepModel === 'STEP'" :form="testCase"/> v-if="testCase.stepModel === 'STEP'" :form="testCase"/>
<el-form-item :label="$t('test_track.case.other_info')" :label-width="formLabelWidth"> <el-form-item :label="$t('test_track.case.other_info')" :label-width="formLabelWidth">
<test-case-edit-other-info @openTest="openTest" :read-only="true" :is-test-plan="true" <test-case-edit-other-info @openTest="openTest" :read-only="true"
:project-id="projectId" :form="testCase" :case-id="testCase.caseId" :project-id="projectId" :form="testCase" :case-id="testCase.caseId"
ref="otherInfo"/> ref="otherInfo"/>
</el-form-item> </el-form-item>