|
@@ -1,6 +1,6 @@
|
|
import { connect, useRequest } from 'umi'
|
|
import { connect, useRequest } from 'umi'
|
|
import { useEffect, useRef, useState } from 'react'
|
|
import { useEffect, useRef, useState } from 'react'
|
|
-import { message, Tabs, TreeSelect, Form } from 'antd'
|
|
|
|
|
|
+import { message, Tabs, Form } from 'antd'
|
|
import { getApprovalList, setApproval } from '@/services/api/project'
|
|
import { getApprovalList, setApproval } from '@/services/api/project'
|
|
import { queryAcountInstitutionList } from '@/services/api/institution'
|
|
import { queryAcountInstitutionList } from '@/services/api/institution'
|
|
import { delay } from '@/utils/util'
|
|
import { delay } from '@/utils/util'
|
|
@@ -11,12 +11,7 @@ import type { ConnectProps } from 'umi'
|
|
import type { ProjectModelState } from '../../model'
|
|
import type { ProjectModelState } from '../../model'
|
|
import ProForm, { ProFormSelect } from '@ant-design/pro-form'
|
|
import ProForm, { ProFormSelect } from '@ant-design/pro-form'
|
|
import TreeNodeSelect from './TreeNodeSelect'
|
|
import TreeNodeSelect from './TreeNodeSelect'
|
|
-
|
|
|
|
-const { TreeNode } = TreeSelect
|
|
|
|
-export enum ModalType {
|
|
|
|
- ADD = 0,
|
|
|
|
- UPDATE = 1
|
|
|
|
-}
|
|
|
|
|
|
+import type { ModalType } from '@/utils/enum'
|
|
|
|
|
|
type ProjectModalProps = ConnectProps & {
|
|
type ProjectModalProps = ConnectProps & {
|
|
visible: boolean
|
|
visible: boolean
|
|
@@ -136,12 +131,12 @@ const DetailModal: React.FC<ProjectModalProps> = ({
|
|
<ProForm
|
|
<ProForm
|
|
formRef={ref}
|
|
formRef={ref}
|
|
submitter={{ resetButtonProps: { style: { display: 'none' } } }}
|
|
submitter={{ resetButtonProps: { style: { display: 'none' } } }}
|
|
- onFinish={onFinish}>
|
|
|
|
|
|
+ onFinish={onFinish}
|
|
|
|
+ >
|
|
<Form.Item label="上报人" name="accountID">
|
|
<Form.Item label="上报人" name="accountID">
|
|
<TreeNodeSelect
|
|
<TreeNodeSelect
|
|
treeData={state.acountInstitutionList}
|
|
treeData={state.acountInstitutionList}
|
|
- onChange={onChange}
|
|
|
|
- value={state.acountInstitutionList.value}
|
|
|
|
|
|
+ // onChange={onChange}
|
|
/>
|
|
/>
|
|
{/* <TreeSelect
|
|
{/* <TreeSelect
|
|
style={{ width: '100%' }}
|
|
style={{ width: '100%' }}
|