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

元数据字段的宽度设置

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