|
|
@@ -209,8 +209,7 @@ class ApprovalHome extends Component {
|
|
|
prerenderingSiblingsNumber={2}
|
|
|
hidden={this.state.tabHidden}
|
|
|
>
|
|
|
-
|
|
|
- {/*{this.getNewTab()}*/}
|
|
|
+ {this.getNewTab()}
|
|
|
{this.getReceiveTab()}
|
|
|
{this.getSendTab()}
|
|
|
</TabBar>
|
|
|
@@ -222,7 +221,7 @@ class ApprovalHome extends Component {
|
|
|
* 【新建】
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
-/* getNewTab = () => {
|
|
|
+ getNewTab = () => {
|
|
|
return (
|
|
|
<TabBar.Item
|
|
|
title="新建"
|
|
|
@@ -236,7 +235,7 @@ class ApprovalHome extends Component {
|
|
|
{this.renderNewTab()}
|
|
|
</TabBar.Item>
|
|
|
)
|
|
|
- }*/
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 【我的审批】
|
|
|
@@ -789,14 +788,15 @@ class ApprovalHome extends Component {
|
|
|
this.setState({
|
|
|
isNewMenuLoading: false,
|
|
|
})
|
|
|
- // let configs = response.configs
|
|
|
- // if (isObjEmpty(configs)) {
|
|
|
- // message.warn('菜单数据为空')
|
|
|
- // } else {
|
|
|
- // saveNewState({
|
|
|
- // newMenuList: configs,
|
|
|
- // })()
|
|
|
- // }
|
|
|
+ let configs = response.configs
|
|
|
+
|
|
|
+ if (isObjEmpty(configs)) {
|
|
|
+ message.warn('菜单数据为空')
|
|
|
+ } else {
|
|
|
+ saveNewState({
|
|
|
+ newMenuList: configs,
|
|
|
+ })()
|
|
|
+ }
|
|
|
}).catch(error => {
|
|
|
this.setState({
|
|
|
isNewMenuLoading: false,
|