提交 350b2000 authored 作者: 徐立's avatar 徐立
...@@ -149,9 +149,9 @@ const CreateForm = Form.create()(props => { ...@@ -149,9 +149,9 @@ const CreateForm = Form.create()(props => {
); );
}); });
@connect(({ formList, loading }) => ({ @connect(({ formList,DataColumn,DataObj, loading }) => ({
formList, formList,DataColumn,DataObj,
loading: loading.models.formList, loading: loading.models.formList||loading.models.DataColumn||loading.models.DataObj,
})) }))
@Form.create() @Form.create()
class FormList extends React.Component { class FormList extends React.Component {
...@@ -429,11 +429,14 @@ class FormList extends React.Component { ...@@ -429,11 +429,14 @@ class FormList extends React.Component {
// 表头筛选逻辑 // 表头筛选逻辑
Array.isArray(this.props.value.columns) && Array.isArray(this.props.value.columns) &&
this.props.value.columns.map(item => { this.props.value.columns.map(item => {
cacheList.push({ if(item.dataIndex!=null){
label: item.title, cacheList.push({
value: item.dataIndex, label: item.title,
}); value: item.dataIndex,
cacheChecked.push(item.dataIndex); });
cacheChecked.push(item.dataIndex);
}
}); });
this.checkList = cacheList; this.checkList = cacheList;
...@@ -503,11 +506,13 @@ class FormList extends React.Component { ...@@ -503,11 +506,13 @@ class FormList extends React.Component {
let cacheChecked = []; let cacheChecked = [];
// 表头筛选逻辑 // 表头筛选逻辑
datas.map(item => { datas.map(item => {
if(item.name!=null){
cacheList.push({ cacheList.push({
label: item.title, label: item.title,
value: item.name, value: item.name,
}); });
cacheChecked.push(item.name); cacheChecked.push(item.name);
}
}); });
this.checkList = cacheList; this.checkList = cacheList;
this.setState({ this.setState({
......
...@@ -803,7 +803,7 @@ export default class tableCom extends Component { ...@@ -803,7 +803,7 @@ export default class tableCom extends Component {
reqUrls[url] = { params: params }; reqUrls[url] = { params: params };
isChange = true; isChange = true;
} }
console.log(isChange)
if (!isChange) { if (!isChange) {
if (callback) { if (callback) {
const data = reqUrls[url].data; const data = reqUrls[url].data;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论