保护模式
This commit is contained in:
parent
44715650db
commit
8eb704e23d
|
|
@ -326,7 +326,8 @@ export default class Company extends React.Component {
|
||||||
company
|
company
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const {
|
const {
|
||||||
isPanelShow, companyName, conditionNum, visible, condition, form, tableStore, dataSource, columns
|
isPanelShow, companyName, conditionNum, visible, condition, form,
|
||||||
|
tableStore, dataSource, columns,loading
|
||||||
} = company;
|
} = company;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -373,6 +374,7 @@ export default class Company extends React.Component {
|
||||||
rowSelection={rowSelection}
|
rowSelection={rowSelection}
|
||||||
indentSize={15}
|
indentSize={15}
|
||||||
defaultExpandedRowKeys={[1,2]}
|
defaultExpandedRowKeys={[1,2]}
|
||||||
|
loading={loading}
|
||||||
/>
|
/>
|
||||||
</WeaTop>
|
</WeaTop>
|
||||||
</WeaRightMenu>
|
</WeaRightMenu>
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ export class CompanyStore {
|
||||||
@observable dataSource = [];
|
@observable dataSource = [];
|
||||||
@observable columns = [];
|
@observable columns = [];
|
||||||
@observable tableStore = new TableStore();
|
@observable tableStore = new TableStore();
|
||||||
|
@observable loading = true;
|
||||||
@observable searchCondition = [];
|
@observable searchCondition = [];
|
||||||
@observable isPanelShow = false; //高级搜索面板
|
@observable isPanelShow = false; //高级搜索面板
|
||||||
@observable form = new WeaForm();
|
@observable form = new WeaForm();
|
||||||
|
|
@ -43,6 +44,7 @@ export class CompanyStore {
|
||||||
@observable date = '';
|
@observable date = '';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@action
|
@action
|
||||||
getTableInfo() {
|
getTableInfo() {
|
||||||
let params;
|
let params;
|
||||||
|
|
@ -62,6 +64,7 @@ export class CompanyStore {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
res.data.pageInfo.list && this.setDataSource(res.data.pageInfo.list);
|
res.data.pageInfo.list && this.setDataSource(res.data.pageInfo.list);
|
||||||
res.data.pageInfo.columns && this.setColumns(res.data.pageInfo.columns);
|
res.data.pageInfo.columns && this.setColumns(res.data.pageInfo.columns);
|
||||||
|
this.setLoading(false);
|
||||||
} else {
|
} else {
|
||||||
message.warning(res.msg);
|
message.warning(res.msg);
|
||||||
}
|
}
|
||||||
|
|
@ -228,4 +231,8 @@ export class CompanyStore {
|
||||||
this.selectedRowKeys = selectedRowKeys;
|
this.selectedRowKeys = selectedRowKeys;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setLoading(bool) {
|
||||||
|
this.loading = bool;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue