Browse Source

流程新建处理

koul 1 year ago
parent
commit
04cffc07c4
1 changed files with 12 additions and 12 deletions
  1. 12 12
      uas-office-web/wxuasapproval/src/pages/approval/ApprovalHome.jsx

+ 12 - 12
uas-office-web/wxuasapproval/src/pages/approval/ApprovalHome.jsx

@@ -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,