Commit 54d84f86 by zhaochengxiang

分支隐藏标签

parent 88dcded2
......@@ -285,7 +285,10 @@ const ModelTable = (props) => {
const columns = useMemo(() => {
let newCols = [...cols];
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==='序号');
if (view === 'branch') {
newCols = newCols.filter(col => col.name!=='标签')
}
if (visibleColNames.indexOf('模型描述') === -1) {
newCols[newCols.length-1].width = null;
......@@ -294,7 +297,7 @@ const ModelTable = (props) => {
return newCols;
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [visibleColNames, resoureTagMap])
}, [visibleColNames, resoureTagMap, view])
const summarySelectedCount = useMemo(() => {
let newSelectedRowKeys = Array.from(new Set([...selectedRowKeys, ...expandedSelectedRowKeys]));
......
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