提交 7c8ecaee authored 作者: 钟是志's avatar 钟是志

元数据字段的宽度设置

在一站式后台搞事情
上级 815aecfd
......@@ -66,7 +66,8 @@ export default class AuditPage extends Component {
const tab1 = {
search: {
field: {},
getPageService: getWaitPage,
scroll: { x: 'max-content' },
getPageService: getWaitPage,
beforeSearchData: (data) => {
let searcherKeyValue = {};
for (let item of searchCondition) {
......@@ -92,7 +93,8 @@ export default class AuditPage extends Component {
const tab2 = {
search: {
field: {},
getPageService: getHandledPage,
scroll: { x: 'max-content' },
getPageService: getHandledPage,
responseCallBack: (response) => {
return response;
},
......
......@@ -300,7 +300,7 @@ export default class List extends Component {
loading,
noSelectRow: !listConfig.selectRows,
onSelectRow: this.handleSelectRows,
scroll: { x: true },
scroll: pageSearch.scroll || { x: true },
};
if (!listConfig.paging) {
tableProps.data = { list: data, pagination: false };
......
......@@ -103,6 +103,11 @@ export default class Index extends React.Component {
response = response.filter((x) => {
return x.title !== '流程进度';
});
for(let item of response){
if(!item.width){
item.width = 50; // 给一个默认宽度
}
}
if (response && response.length) {
this.setState(
{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论