lanjianrong 3 年之前
父节点
当前提交
b4c67d80d9
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7 7
      src/pages/Project/Verification/index.tsx

+ 7 - 7
src/pages/Project/Verification/index.tsx

@@ -2,7 +2,7 @@ import AnimateContent from '@/components/AnimateContent'
 import consts from '@/utils/consts'
 import { PageContainer } from '@ant-design/pro-layout'
 import ProTable from '@ant-design/pro-table'
-import { message } from 'antd'
+import { Button, message } from 'antd'
 import { useRef, useState } from 'react'
 import { useRequest } from 'umi'
 import { getApprovalList, publishApproval, saveApproval } from '@/services/api/project'
@@ -170,12 +170,12 @@ const FlowList = () => {
             onSearch: value => setState({ ...state, params: { ...state.params, search: value } })
           },
           actions: [
-            // <Button
-            //   type="primary"
-            //   onClick={() => setState({ ...state, modalType: 'add', modalVisible: true })}
-            //   key="add_flow_btn">
-            //   新建流程
-            // </Button>
+            <Button
+              type="primary"
+              onClick={() => setState({ ...state, modalType: 'add', modalVisible: true })}
+              key="add_flow_btn">
+              新建流程
+            </Button>
           ]
         }}
       />