Commit 26ccf916 by zhaochengxiang

只服务管理显示统计

parent a9159b22
......@@ -632,7 +632,7 @@ const ModelTree = (props) => {
title = `${title}_已停用`
}
if (serviceCountMapping?.[nodeData.id] !== null && serviceCountMapping?.[nodeData.id] !== undefined) {
if (isOnlyEnding && serviceCountMapping?.[nodeData.id] !== null && serviceCountMapping?.[nodeData.id] !== undefined) {
title = `${title} (${serviceCountMapping?.[nodeData.id]})`
}
......
......@@ -711,7 +711,7 @@ class Model extends React.Component {
axis='x'
minConstraints={[230, Infinity]} maxConstraints={[Infinity, Infinity]}
>
<ModelTree onViewChange={this.onViewChange} onSelect={this.onTreeSelect} importStockModel={this.importStockModel} keyword={keyword} {...this.props} />
<ModelTree onViewChange={this.onViewChange} onSelect={this.onTreeSelect} importStockModel={this.importStockModel} keyword={keyword} isOnlyEnding={isOnlyEnding} {...this.props} />
</ResizableBox>
<div className='tree-toggle-wrap'>
<div className='tree-toggle' onClick={this.treeToggleClick}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment