|
@@ -10,7 +10,9 @@ import type { SchemaBaseModelState } from '@/pages/Schema/Base/model'
|
|
|
import type { ConnectProps } from 'umi'
|
|
|
import type { ProjectModelState } from '../../model'
|
|
|
import ProForm, { ProFormSelect } from '@ant-design/pro-form'
|
|
|
+import TreeNodeSelect from './TreeNodeSelect'
|
|
|
|
|
|
+const { TreeNode } = TreeSelect
|
|
|
export enum ModalType {
|
|
|
ADD = 0,
|
|
|
UPDATE = 1
|
|
@@ -136,22 +138,18 @@ const DetailModal: React.FC<ProjectModalProps> = ({
|
|
|
submitter={{ resetButtonProps: { style: { display: 'none' } } }}
|
|
|
onFinish={onFinish}>
|
|
|
<Form.Item label="上报人" name="accountID">
|
|
|
- <TreeSelect
|
|
|
+ <TreeNodeSelect
|
|
|
+ treeData={state.acountInstitutionList}
|
|
|
+ onChange={onChange}
|
|
|
+ value={state.acountInstitutionList.value}
|
|
|
+ />
|
|
|
+ {/* <TreeSelect
|
|
|
style={{ width: '100%' }}
|
|
|
placeholder="请选择上报人"
|
|
|
treeDefaultExpandAll
|
|
|
treeData={state.acountInstitutionList}
|
|
|
- />
|
|
|
+ /> */}
|
|
|
</Form.Item>
|
|
|
- {/* <ProFormSelect
|
|
|
- name="accountID"
|
|
|
- label={'上报人'}
|
|
|
- placeholder="请选择上报人"
|
|
|
- options={state.acountList.map(item => ({
|
|
|
- label: item.name,
|
|
|
- value: item.ID
|
|
|
- }))}
|
|
|
- /> */}
|
|
|
<ProFormSelect
|
|
|
name="approvalID"
|
|
|
label={'审批流程'}
|