瀏覽代碼

feat: 审批流程增加操作后的message提示

lanjianrong 3 年之前
父節點
當前提交
e111e5730a

+ 2 - 1
src/pages/Project/Verification/Detail/Flow/components/Drawer/index.tsx

@@ -94,6 +94,7 @@ const FlowDrawer = () => {
       participantInfo
     })
     if (code === consts.RET_CODE.SUCCESS) {
+      message.success('保存成功')
       dispatch({
         type: Actions.SET_FLOW_NODE,
         payload
@@ -186,7 +187,7 @@ const FlowDrawer = () => {
             type="primary"
             disabled={!state.accounts.length}
             onClick={handleOnOk}>
-            确
+            确
           </Button>
         </div>
       }

+ 2 - 0
src/pages/Project/Verification/Detail/Flow/components/Node/index.tsx

@@ -5,6 +5,7 @@ import { CloseOutlined, RightOutlined } from '@ant-design/icons'
 import { removeApprovalNode } from '@/services/api/project'
 import consts from '@/utils/consts'
 import { generateElements, genreateElementEnum } from '../../utils'
+import { message } from 'antd'
 export const InputNode = () => {
   return (
     <>
@@ -47,6 +48,7 @@ export const CommonNode = props => {
       flowProcess: newElements
     })
     if (code === consts.RET_CODE.SUCCESS) {
+      message.success('删除成功')
       dispatch({
         type: Actions.REMOVE_FLOW_NODE,
         payload: { ...node, newElements }