fix: 工作台处理

This commit is contained in:
guoyuqi 2021-10-28 14:45:44 +08:00 committed by 刘瑞斌
parent 674073bd0e
commit 2604523dd2
4 changed files with 29 additions and 12 deletions

View File

@ -153,19 +153,36 @@
#{value}
</foreach>
</when>
<otherwise>
<when test="key=='status'">
<choose>
<when test="request.executorOrPrincipal != null">
AND (( test_plan_principal.principal_id = '${@io.metersphere.commons.utils.SessionUtils@getUserId()}' and
test_plan.status in
<foreach collection="values" item="value" separator="," open="(" close=")">
#{value}
</foreach>
)
or
(test_plan_test_case.executor = '${@io.metersphere.commons.utils.SessionUtils@getUserId()}' and
test_plan_test_case.status in
<foreach collection="values" item="value" separator="," open="(" close=")">
#{value}
</foreach>
))
</when>
<otherwise >
and test_plan.status in
<foreach collection="values" item="value" separator="," open="(" close=")">
#{value}
</foreach>
</otherwise>
</choose>
</when>
</choose>
</if>
</foreach>
</if>
<if test="request.executorOrPrincipal != null">
AND ( test_plan.creator = '${@io.metersphere.commons.utils.SessionUtils@getUserId()}' or test_plan_principal.principal_id = '${@io.metersphere.commons.utils.SessionUtils@getUserId()}' or test_plan_test_case.executor = '${@io.metersphere.commons.utils.SessionUtils@getUserId()}')
</if>
</where>
<if test="request.orders != null and request.orders.size() > 0">

View File

@ -8,7 +8,7 @@
@select="handleSelect"
:key="menuKey"
router>
<el-menu-item index="/workstation" v-xpack onselectstart="return false"
<el-menu-item index="/workstation" onselectstart="return false"
v-permission="['PROJECT_API_DEFINITION:READ','PROJECT_API_SCENARIO:READ','PROJECT_API_REPORT:READ']">
{{ $t('commons.my_workstation') }}
</el-menu-item>

View File

@ -342,7 +342,7 @@ export default {
workstation:{
dash_board: '我的仪表盘',
upcoming: '我的待办',
focus: '我关注',
focus: '我关注',
creation: '我创建的',
table_name:{
track_case:'功能用例',

View File

@ -342,7 +342,7 @@ export default {
workstation:{
dash_board: '我的儀錶盤',
upcoming: '我的待辦',
focus: '我關注',
focus: '我關注',
creation: '我創建的',
table_name:{
track_case:'功能用例',