Commit f2e91a43 by zhaochengxiang

bug fix

parent 73f097e3
...@@ -189,13 +189,13 @@ const ModelTable = (props) => { ...@@ -189,13 +189,13 @@ const ModelTable = (props) => {
}); });
const cols = [ const cols = [
{ // {
name: '序号', // name: '序号',
key: 'index', // key: 'index',
width: 60, // width: 60,
sortable: false, // sortable: false,
resizable: true, // resizable: true,
}, // },
{ {
name: '模型名称', name: '模型名称',
key: 'name', key: 'name',
...@@ -299,7 +299,7 @@ const ModelTable = (props) => { ...@@ -299,7 +299,7 @@ const ModelTable = (props) => {
{ {
name:'标签', name:'标签',
key:'tag', key:'tag',
minWidth:360, width:360,
className: 'table-tag-cell', className: 'table-tag-cell',
formatter(props) { formatter(props) {
return ( return (
...@@ -335,10 +335,6 @@ const ModelTable = (props) => { ...@@ -335,10 +335,6 @@ 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 (visibleColNames.indexOf('模型描述') === -1) {
newCols[newCols.length-1].width = null;
}
} }
if (view === 'branch') { if (view === 'branch') {
......
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