diff --git a/pc4mobx/organization/components/office/components/leftTree.js b/pc4mobx/organization/components/office/components/leftTree.js index e8d7f80..c7f6ab8 100644 --- a/pc4mobx/organization/components/office/components/leftTree.js +++ b/pc4mobx/organization/components/office/components/leftTree.js @@ -152,15 +152,15 @@ class LeftTree extends Component { return arr; }; onChange = value => { - if (value == "") { - let { copyTree, copyExpandedKeys } = this.state; + if (_.isEmpty(value)) { + let { copyTree, copyExpandedKeys, expandedKeys } = this.state; this.setState({ treeData: JSON.parse(copyTree), - expandedKeys: copyExpandedKeys, + expandedKeys, searchValue: value }); } else { - let { copyTree, copyExpandedKeys } = this.state; + let { copyTree } = this.state; let res = this.arrayTreeFilter( JSON.parse(copyTree), this.filterFn, diff --git a/pc4mobx/organization/components/office/officeManage.js b/pc4mobx/organization/components/office/officeManage.js index 5f088b2..4d25114 100644 --- a/pc4mobx/organization/components/office/officeManage.js +++ b/pc4mobx/organization/components/office/officeManage.js @@ -57,9 +57,9 @@ export default class OfficeManage extends Component { showlog = () => { window.setLogViewProp({ logMoudleType: 6, - keys: new Date().getTime(), + keys: new Date().getTime() }); - } + }; handleMenuClick = key => { const { officeManageStore } = this.props; @@ -278,7 +278,7 @@ export default class OfficeManage extends Component { updateForbiddenTagById(payload).then(({ code, msg }) => { if (code === 200) { message.success("操作成功"); - officeManageStore.getPostInfoTable(officeManageStore.officeClassifyId,true); + officeManageStore.getPostInfoTable(officeManageStore.officeClassifyId, true); } else { message.error(msg || "操作失败"); } @@ -423,67 +423,66 @@ export default class OfficeManage extends Component { return ( hasRight &&