开源度量-暂时隐藏分支和浏览数量

This commit is contained in:
caishi 2024-11-08 16:55:41 +08:00
parent 47861f81ac
commit 3ea8c55d8f
2 changed files with 7 additions and 2 deletions

View File

@ -21,7 +21,12 @@ function Indicator({owner , projectsId , data , subCardIndex}){
title: "指标名称",
dataIndex: "name",
render:(value)=>{
return(<Link to={`/${owner}/${projectsId}/service/measurement/${value}`} className='color-blue'>{fieldData[value]}</Link>)
return(
(value !=="branchNum" && value !== "browseNum") ?
<Link to={`/${owner}/${projectsId}/service/measurement/${value}`} className='color-blue'>{fieldData[value]}</Link>
:
<span>{fieldData[value]}</span>
)
// return fieldData[value]
}
},

View File

@ -14,7 +14,7 @@ const dimensionData = {
开发效率: ['PR数量', 'PR处理间隔', 'Commit数量', 'Issue处理间隔','项目活跃度'],
个体开发者:['活跃开发者占比','长期贡献者占比','长期贡献者稳定性'],
商业公司:['公司主导','公司贡献者流失预测','公司贡献者数量','长期公司贡献者数量'],
项目影响:['分支数量','浏览次数','Fork次数','点赞次数','关注数量']
项目影响:['Fork次数','点赞次数','关注数量']//'','',
};
function Dimension(props){