Commit dc1a1ef3 by zhaochengxiang

合并到基线bug

parent 450d31b7
...@@ -141,9 +141,9 @@ class Model extends React.Component { ...@@ -141,9 +141,9 @@ class Model extends React.Component {
}); });
} else { } else {
selectModelerIds?.forEach(id => { selectModelerIds?.forEach(id => {
if ((id??'').indexOf('-4') === -1) { const index = (tableData||[]).findIndex(item => item.id?.split('-')[0] === id?.split('-')[0]);
canBatchJoin = false; if (index !== -1 && !tableData[index].supportJoin) {
} canBatchJoin = false
}); });
} }
...@@ -827,7 +827,7 @@ class Model extends React.Component { ...@@ -827,7 +827,7 @@ class Model extends React.Component {
{ {
currentView === 'branch' && <PermissionButton currentView === 'branch' && <PermissionButton
defaultPermission={true} defaultPermission={true}
tip={this.state.canBatchJoin?((selectModelerIds||[]).length===0?'请先选择已发布的模型':''):'只有已发布的模型才能合并到基线'} tip={this.state.canBatchJoin?((selectModelerIds||[]).length===0?'请先选择已发布的分支模型':''):'只有已发布的分支模型才能合并到基线'}
onClick={this.onBatchMerge} onClick={this.onBatchMerge}
disabled={(selectModelerIds||[]).length===0||!this.state.canBatchJoin} disabled={(selectModelerIds||[]).length===0||!this.state.canBatchJoin}
> >
......
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