保护模式

This commit is contained in:
Chengliang 2022-05-18 15:50:35 +08:00
parent 44715650db
commit 8eb704e23d
2 changed files with 10 additions and 1 deletions

View File

@ -326,7 +326,8 @@ export default class Company extends React.Component {
company
} = this.props;
const {
isPanelShow, companyName, conditionNum, visible, condition, form, tableStore, dataSource, columns
isPanelShow, companyName, conditionNum, visible, condition, form,
tableStore, dataSource, columns,loading
} = company;
@ -373,6 +374,7 @@ export default class Company extends React.Component {
rowSelection={rowSelection}
indentSize={15}
defaultExpandedRowKeys={[1,2]}
loading={loading}
/>
</WeaTop>
</WeaRightMenu>

View File

@ -29,6 +29,7 @@ export class CompanyStore {
@observable dataSource = [];
@observable columns = [];
@observable tableStore = new TableStore();
@observable loading = true;
@observable searchCondition = [];
@observable isPanelShow = false; //高级搜索面板
@observable form = new WeaForm();
@ -43,6 +44,7 @@ export class CompanyStore {
@observable date = '';
@action
getTableInfo() {
let params;
@ -62,6 +64,7 @@ export class CompanyStore {
if (res.code === 200) {
res.data.pageInfo.list && this.setDataSource(res.data.pageInfo.list);
res.data.pageInfo.columns && this.setColumns(res.data.pageInfo.columns);
this.setLoading(false);
} else {
message.warning(res.msg);
}
@ -228,4 +231,8 @@ export class CompanyStore {
this.selectedRowKeys = selectedRowKeys;
}
setLoading(bool) {
this.loading = bool;
}
}