fix(测试跟踪): 测试计划分享功能用例统计无法展示
--bug=1015668 --user=陈建星 【测试跟踪】测试计划-详情中报告统计-分享链接中没有功能用例统计信息 {#_orginal_url#}
This commit is contained in:
parent
32a2c4f506
commit
9e34a7a328
|
@ -10,7 +10,7 @@
|
|||
</template>
|
||||
<functional-cases :is-db="isDb" :share-id="shareId" :is-share="isShare" :is-template="isTemplate" :report="report" :plan-id="planId" @setSize="setFailureSize"/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane v-if="issueEnable && (isTemplate || hasPermission('PROJECT_TRACK_ISSUE:READ'))" name="third">
|
||||
<el-tab-pane v-if="issueEnable && (isTemplate || isShare || hasPermission('PROJECT_TRACK_ISSUE:READ'))" name="third">
|
||||
<template v-slot:label>
|
||||
<tab-pane-count :title="$t('test_track.report.issue_list')" :count="issueSize"/>
|
||||
</template>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
<script>
|
||||
import MsDrawer from "@/business/components/common/components/MsDrawer";
|
||||
import {DEFAULT_LANGUAGE, EN_US} from "@/common/js/constants";
|
||||
import {DEFAULT_LANGUAGE, EN_US, ZH_CN} from "@/common/js/constants";
|
||||
import {getCurrentUser} from "@/common/js/utils";
|
||||
export default {
|
||||
name: "TestPlanReportNavigationBar",
|
||||
|
@ -80,8 +80,11 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
navBtnClass() {
|
||||
let lang = getCurrentUser().language;
|
||||
if (!lang) {
|
||||
let user = getCurrentUser();
|
||||
let lang = ZH_CN;
|
||||
if (user && user.language) {
|
||||
lang = user.language;
|
||||
} else {
|
||||
lang = localStorage.getItem(DEFAULT_LANGUAGE);
|
||||
}
|
||||
if (lang === EN_US) {
|
||||
|
|
Loading…
Reference in New Issue