Commit 1659edc4 by zhaochengxiang

bug fix

parent 5bc641fc
...@@ -310,15 +310,16 @@ const ModelTable = (props) => { ...@@ -310,15 +310,16 @@ const ModelTable = (props) => {
let newCols = [...cols]; let newCols = [...cols];
if ((visibleColNames||[]).length > 0) { if ((visibleColNames||[]).length > 0) {
newCols = newCols.filter(col => visibleColNames.indexOf(col.name)!==-1 || col.name==='序号' || col.name==='标签'); newCols = newCols.filter(col => visibleColNames.indexOf(col.name)!==-1 || col.name==='序号' || col.name==='标签');
if (view === 'branch') {
newCols = newCols.filter(col => col.name!=='标签')
}
if (visibleColNames.indexOf('模型描述') === -1) { if (visibleColNames.indexOf('模型描述') === -1) {
newCols[newCols.length-1].width = null; newCols[newCols.length-1].width = null;
} }
} }
if (view === 'branch') {
newCols = newCols.filter(col => col.name!=='标签')
}
return newCols; return newCols;
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
}, [visibleColNames, resoureTagMap, view, behindAlramData]) }, [visibleColNames, resoureTagMap, view, behindAlramData])
......
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