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 &&
+ } + iconBgcolor="#217346" + loading={true} + buttons={this.getTopMenuBtns()} + showDropIcon={true} + dropMenuDatas={this.getDropMenuDatas()} + onDropMenuClick={e => this.handleMenuClick(e)}> + - } - onCollapse={showLeft => console.log("showLeft:", showLeft)}> + }> this.handleMenuClick(key)}> - } - iconBgcolor="#217346" - loading={true} - buttons={this.getTopMenuBtns()} - showDropIcon={true} - dropMenuDatas={this.getDropMenuDatas()} - onDropMenuClick={e => this.handleMenuClick(e)}> - officeManageStore.setPanelStatus(bool)} + hideSearchAd={() => officeManageStore.setPanelStatus(false)} + searchsAd={isPanelShow ? this.getPanelComponents() :
} + advanceHeight={Math.ceil(conditionNum / 2) * 52 + 20} + hasMask={false} + buttonsAd={this.getTabBtn()} + onSearch={() => officeManageStore.getPostInfoTable()} + onSearchChange={val => this.onSearchChange(val)} + /> + { + console.log(record); + return { + disabled: true // 配置无法勾选的列 + }; } - setShowSearchAd={bool => officeManageStore.setPanelStatus(bool)} - hideSearchAd={() => officeManageStore.setPanelStatus(false)} - searchsAd={isPanelShow ? this.getPanelComponents() :
} - advanceHeight={Math.ceil(conditionNum / 2) * 52 + 20} - hasMask={false} - buttonsAd={this.getTabBtn()} - onSearch={() => officeManageStore.getPostInfoTable()} - onSearchChange={val => this.onSearchChange(val)} - /> - { - console.log(record); - return { - disabled: true // 配置无法勾选的列 - }; - } - }} - getColumns={c => this.reRenderColumns(c)} - onOperatesClick={(record, index, operate) => - this.onOperatesClick(record, index, operate)} - /> - + }} + getColumns={c => this.reRenderColumns(c)} + onOperatesClick={(record, index, operate) => + this.onOperatesClick(record, index, operate)} + />