fix(缺陷管理): 缺陷表头增加字段说明
--story=1015108 --user=宋昌昌 【缺陷管理】增加字段说明(v3同步加)#github 29149 https://www.tapd.cn/55049933/s/1521101
This commit is contained in:
parent
4a62c69c7f
commit
ab132746fa
|
@ -57,6 +57,13 @@ export default {
|
|||
return true;
|
||||
}
|
||||
},
|
||||
showHeaderTooltip: {
|
||||
type: Boolean,
|
||||
default() {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
headerTips: String,
|
||||
// 开启排序,后端mapper添加ExtBaseMapper.orders
|
||||
sortable: {
|
||||
type: [Boolean, String],
|
||||
|
@ -98,6 +105,26 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
renderHeader(h, data) {
|
||||
if (this.showHeaderTooltip) {
|
||||
// 如果表头提示开启, 则显示表头提示
|
||||
return h(
|
||||
'div',[
|
||||
h('span', data.column.label),
|
||||
h('el-tooltip',{
|
||||
props:{
|
||||
effect:'dark',
|
||||
content: this.$t(this.field.tips),
|
||||
placement:'top'
|
||||
},
|
||||
},[
|
||||
h('i', {
|
||||
class:'el-icon-info',
|
||||
style:'margin-left:5px;'
|
||||
})
|
||||
])
|
||||
]
|
||||
);
|
||||
}
|
||||
if (data.column.label.length > 7) {
|
||||
return h("span", [
|
||||
h("el-tooltip", {
|
||||
|
|
|
@ -611,6 +611,7 @@ export default {
|
|||
"Cover mode :<br>1. If the defect ID already exists, the original defect of the system will be overwritten. <br>2. If the defect ID does not exist or is missing, a new defect is added; <br> Not cover mode :<br>1. If the defect ID already exists, it will not be changed; <br>2. If the defect ID does not exist or is missing, a new defect is added;",
|
||||
status_suspended: "suspended",
|
||||
status_verified: "verified",
|
||||
creator_header_tips: "MS platform issue creator or synchronizer",
|
||||
},
|
||||
report: {
|
||||
name: "Test Plan Report",
|
||||
|
|
|
@ -576,6 +576,7 @@ export default {
|
|||
"覆盖模式:<br>1.缺陷ID已存在,则覆盖系统原缺陷;<br>2.缺陷ID不存在或为空缺失,则新增缺陷;<br>不覆盖模式:<br>1.缺陷ID已存在,则不作变更;<br>2.缺陷ID不存在或为空缺失,则新增缺陷;",
|
||||
status_suspended: "挂起",
|
||||
status_verified: "已验证",
|
||||
creator_header_tips: "MS平台的缺陷创建人或者同步人",
|
||||
},
|
||||
report: {
|
||||
name: "测试计划报告",
|
||||
|
|
|
@ -575,6 +575,7 @@ export default {
|
|||
"覆蓋模式:<br>1.缺陷ID已存在,則覆蓋系統原缺陷;<br>2.缺陷ID不存在或爲空缺失,則新增缺陷;<br>不覆蓋模式:<br>1.缺陷ID已存在,則不作變更;<br>2.缺陷ID不存在或爲空缺失,則新增缺陷;",
|
||||
status_suspended: "挂起",
|
||||
status_verified: "已驗證",
|
||||
creator_header_tips: "MS平臺的缺陷創建人或者同步人",
|
||||
},
|
||||
report: {
|
||||
name: "測試計劃報告",
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
:width="item.width"
|
||||
:fields-width="fieldsWidth"
|
||||
:filters="item.filters"
|
||||
:show-header-tooltip="item.id === 'creatorName'"
|
||||
>
|
||||
<template v-slot="scope">
|
||||
|
||||
|
@ -161,36 +162,36 @@ import IssueSyncSelect from "@/business/issue/IssueSyncSelect";
|
|||
import IssueImport from "@/business/issue/components/import/IssueImport";
|
||||
import IssueExport from "@/business/issue/components/export/IssueExport";
|
||||
import {
|
||||
batchDeleteIssue,
|
||||
checkSyncIssues,
|
||||
deleteIssue,
|
||||
getIssuePartTemplateWithProject,
|
||||
getIssues,
|
||||
syncIssues,
|
||||
deleteIssue,
|
||||
getIssuesById, batchDeleteIssue, getPlatformOption, syncAllIssues, getPlatformStatus
|
||||
getIssuesById,
|
||||
getPlatformOption,
|
||||
getPlatformStatus,
|
||||
syncAllIssues,
|
||||
syncIssues
|
||||
} from "@/api/issue";
|
||||
import {
|
||||
getCustomFieldFilter,
|
||||
getCustomFieldValue,
|
||||
getCustomTableWidth,
|
||||
getLastTableSortField,
|
||||
getPageInfo,
|
||||
getTableHeaderWithCustomFields,
|
||||
getLastTableSortField,
|
||||
getCustomFieldFilter,
|
||||
parseCustomFilesForList,
|
||||
parseCustomFilesForItem
|
||||
parseCustomFilesForItem,
|
||||
parseCustomFilesForList
|
||||
} from "metersphere-frontend/src/utils/tableUtils";
|
||||
import MsContainer from "metersphere-frontend/src/components/MsContainer";
|
||||
import MsMainContainer from "metersphere-frontend/src/components/MsMainContainer";
|
||||
import {getCurrentProjectID, getCurrentWorkspaceId, getCurrentUserId} from "metersphere-frontend/src/utils/token";
|
||||
import {hasPermission} from "metersphere-frontend/src/utils/permission";
|
||||
import {getCurrentProjectID, getCurrentUserId, getCurrentWorkspaceId} from "metersphere-frontend/src/utils/token";
|
||||
import {hasLicense, hasPermission} from "metersphere-frontend/src/utils/permission";
|
||||
import {getProjectMember, getProjectMemberUserFilter} from "@/api/user";
|
||||
import {LOCAL} from "metersphere-frontend/src/utils/constants";
|
||||
import {TEST_TRACK_ISSUE_LIST} from "metersphere-frontend/src/components/search/search-components";
|
||||
import {
|
||||
generateColumnKey,
|
||||
getAdvSearchCustomField
|
||||
} from "metersphere-frontend/src/components/search/custom-component";
|
||||
import {generateColumnKey, getAdvSearchCustomField} from "metersphere-frontend/src/components/search/custom-component";
|
||||
import MsMarkDownText from "metersphere-frontend/src/components/MsMarkDownText";
|
||||
import {hasLicense} from "metersphere-frontend/src/utils/permission";
|
||||
import MsReviewTableItem from "@/business/issue/MsReviewTableItem";
|
||||
import {setIssuePlatformComponent} from "@/business/issue/issue";
|
||||
|
||||
|
|
|
@ -134,7 +134,7 @@ const TRACK_HEADER = {
|
|||
{id: 'title', key: '2', label: 'test_track.issue.title'},
|
||||
{id: 'platformStatus', key: '3', label: 'test_track.issue.platform_status', width: 120},
|
||||
{id: 'platform', key: '4', label: 'test_track.issue.issue_platform'},
|
||||
{id: 'creatorName', key: '5', label: 'custom_field.issue_creator'},
|
||||
{id: 'creatorName', key: '5', label: 'custom_field.issue_creator', tips: 'test_track.issue.creator_header_tips'},
|
||||
{id: 'resourceName', key: '6', label: 'test_track.issue.issue_resource'},
|
||||
{id: 'description', key: '7', label: 'test_track.issue.description'},
|
||||
{id: 'caseCount', key: '9', label: 'api_test.definition.api_case_number'},
|
||||
|
|
Loading…
Reference in New Issue