fix 测试计划状态修改权限

This commit is contained in:
chenjianxing 2020-06-12 11:08:04 +08:00
parent e00aac7bee
commit f5d91992a3
2 changed files with 8 additions and 6 deletions

View File

@ -29,8 +29,8 @@
:label="$t('test_track.plan.plan_status')"
show-overflow-tooltip>
<template v-slot:default="scope">
<div @click.stop="false">
<el-dropdown class="test-case-status" @command="statusChange">
<span @click.stop="clickt = 'stop'">
<el-dropdown v-permission="['test_manager','test_user']" class="test-case-status" @command="statusChange">
<span class="el-dropdown-link">
<plan-status-table-item :value="scope.row.status"/>
</span>
@ -46,7 +46,8 @@
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</span>
<plan-status-table-item v-permission="['test_viewer']" :value="scope.row.status"/>
</template>
</el-table-column>
<el-table-column

View File

@ -88,8 +88,8 @@
column-key="status"
:label="$t('test_track.plan_view.execute_result')">
<template v-slot:default="scope">
<div @click.stop="false">
<el-dropdown class="test-case-status" @command="statusChange" >
<span @click.stop="clickt = 'stop'">
<el-dropdown v-permission="['test_manager','test_user']" class="test-case-status" @command="statusChange" >
<span class="el-dropdown-link">
<status-table-item :value="scope.row.status"/>
</span>
@ -108,7 +108,8 @@
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</span>
<status-table-item v-permission="['test_viewer']" :value="scope.row.status"/>
</template>
</el-table-column>