fix(测试跟踪): 测试计划已归档遗留部分处理
--user=郭雨琦 --bug=1013105 【测试计划】“已归档”状态的计划,计划内的功能用例,脑图模式可以进行操作 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001013105
This commit is contained in:
parent
ed6ece862a
commit
cb0f5ce58b
|
@ -490,7 +490,9 @@ export const TEST_PLAN_STATUS = {
|
|||
options: [
|
||||
{label: 'test_track.plan.plan_status_prepare', value: 'Prepare'},
|
||||
{label: 'test_track.plan.plan_status_running', value: 'Underway'},
|
||||
{label: 'test_track.plan.plan_status_completed', value: 'Completed'}
|
||||
{label: 'test_track.plan.plan_status_completed', value: 'Completed'},
|
||||
{label: 'test_track.plan.plan_status_finished', value: 'Finished'},
|
||||
{label: 'test_track.plan.plan_status_archived', value: 'Archived'}
|
||||
],
|
||||
props: {
|
||||
multiple: true
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
:tags="tags"
|
||||
:tag-enable="true"
|
||||
minder-key="testPlan"
|
||||
:disabled=disableMinder
|
||||
:select-node="selectNode"
|
||||
:distinct-tags="[...tags, this.$t('test_track.plan.plan_status_prepare')]"
|
||||
:ignore-num="true"
|
||||
|
@ -67,6 +68,9 @@ name: "TestPlanMinder",
|
|||
planId: {
|
||||
type: String
|
||||
},
|
||||
planStatus: {
|
||||
type: String
|
||||
},
|
||||
projectId: String,
|
||||
condition: Object
|
||||
},
|
||||
|
@ -76,6 +80,13 @@ name: "TestPlanMinder",
|
|||
},
|
||||
workspaceId(){
|
||||
return getCurrentWorkspaceId();
|
||||
},
|
||||
disableMinder(){
|
||||
if (this.planStatus === 'Archived') {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
|
|
@ -289,7 +289,7 @@
|
|||
<el-icon class="el-icon-more"></el-icon>
|
||||
</el-link>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item command="delete" v-permission="['PROJECT_TRACK_PLAN:READ+DELETE']" :disabled="scope.row.status === 'Archived'" >
|
||||
<el-dropdown-item command="delete" v-permission="['PROJECT_TRACK_PLAN:READ+DELETE']" >
|
||||
{{ $t('commons.delete') }}
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item command="schedule_task" v-permission="['PROJECT_TRACK_PLAN:READ+SCHEDULE']" :disabled="scope.row.status === 'Archived'" >
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
:project-id="projectId"
|
||||
:condition="condition"
|
||||
:plan-id="planId"
|
||||
:plan-status="planStatus "
|
||||
v-if="activeDom === 'right'"
|
||||
ref="minder"
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue