提交 4da887e3 authored 作者: 徐立's avatar 徐立

修改bug

上级 97b766c0
......@@ -424,6 +424,7 @@ class FormList extends React.Component {
let column = {};
column.title = datas[t].title;
column.dataIndex = datas[t].name;
column.width = datas[t].width;
if(i==0) column.fixed='left';
if(columnRights.length>0&&!columnRights.includes(datas[t].id)){
......@@ -906,6 +907,7 @@ class FormList extends React.Component {
const column = {
title: '操作',
fixed: 'right',
width: 150,
render: (text, record) => {
return <Fragment>
<div >
......@@ -918,9 +920,11 @@ class FormList extends React.Component {
this.columns[this.columns.length-1]=column;
}
}else{
console.log(rights)
const column = {
title: '操作',
fixed: 'right',
width: Array.isArray(rights)&&rights.length>0?rights.length*70:150,
render: (text, record) => {
return <Fragment>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论