|
@@ -1,7 +1,8 @@
|
|
|
import { connect, useRequest } from 'umi'
|
|
|
import { useEffect, useRef, useState } from 'react'
|
|
|
import { Drawer, message, Tabs } from 'antd'
|
|
|
-import { queryAcountList, getApprovalList, setApproval } from '@/services/api/project'
|
|
|
+import { getApprovalList, setApproval } from '@/services/api/project'
|
|
|
+import { queryAcountList } from '@/services/api/institution'
|
|
|
import { delay } from '@/utils/util'
|
|
|
import FormRender, { useForm } from 'form-render'
|
|
|
import { BaseMenuEnum } from '@/pages/Schema/Base'
|
|
@@ -121,13 +122,19 @@ const DetailModal: React.FC<ProjectModalProps> = ({
|
|
|
name="accountID"
|
|
|
label={'上报人'}
|
|
|
placeholder="请选择上报人"
|
|
|
- options={state.acountList.map(item => ({ label: item.name, value: item.ID }))}
|
|
|
+ options={state.acountList.map(item => ({
|
|
|
+ label: item.name,
|
|
|
+ value: item.ID
|
|
|
+ }))}
|
|
|
/>
|
|
|
<ProFormSelect
|
|
|
name="approvalID"
|
|
|
label={'审批流程'}
|
|
|
placeholder="请选择审批流程"
|
|
|
- options={state.approvalList.map(item => ({ label: item.name, value: item.ID }))}
|
|
|
+ options={state.approvalList.map(item => ({
|
|
|
+ label: item.name,
|
|
|
+ value: item.ID
|
|
|
+ }))}
|
|
|
/>
|
|
|
</ProForm>
|
|
|
</TabPane>
|