lanjianrong 3 gadi atpakaļ
vecāks
revīzija
c66b7a6e54

+ 0 - 1
src/pages/Project/Verification/Detail/Flow/components/Graph/index.tsx

@@ -5,7 +5,6 @@ import { Actions, FlowContext, initialElements } from '../../context'
 import type { Elements, NodeTypesType, EdgeTypesType } from 'react-flow-renderer'
 import { CommonNode, InputNode, OutputNode } from '../Node'
 import { CommonEdge } from '../Edge'
-import type { ApprovalMethod, ApprovalType } from '../../enum'
 
 const nodeTypes: NodeTypesType = {
   start: InputNode,

+ 3 - 3
src/pages/Project/Verification/Detail/index.tsx

@@ -1,13 +1,13 @@
 import ApprovalFlow from '@/pages/Project/Verification/Detail/Flow'
 import type { FC } from 'react'
 type ApprovalDetailProps = {
-  ID: string
+  dataID: string
   name: string
   readPretty?: boolean
   onVisibleChange: (visible: boolean) => void
 }
 const ApprovalDetail: FC<ApprovalDetailProps> = ({
-  ID,
+  dataID,
   name,
   readPretty = false,
   onVisibleChange
@@ -15,7 +15,7 @@ const ApprovalDetail: FC<ApprovalDetailProps> = ({
   return (
     <div className="w-full h-full">
       <ApprovalFlow
-        dataID={ID}
+        dataID={dataID}
         name={name}
         closeAnimateContent={onVisibleChange}
         readPretty={readPretty}

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

@@ -26,7 +26,7 @@ const FlowList = () => {
     modalType: 'add',
     modalVisible: false,
     current: {
-      ID: null,
+      dataID: null,
       name: null,
       readPretty: false
     }
@@ -75,7 +75,7 @@ const FlowList = () => {
             setState({
               ...state,
               visible: true,
-              current: { ...record.approval, readPretty: true }
+              current: { dataID: record.ID, name: record.name, readPretty: true }
             })
           }}>
           {record.name}
@@ -110,7 +110,7 @@ const FlowList = () => {
               setState({
                 ...state,
                 visible: true,
-                current: record.approval
+                current: { dataID: record.ID, name: record.name }
               })
             }}>
             编辑流程