|
@@ -15,6 +15,7 @@ import { useRequest, useModel } from '@umijs/max';
|
|
import { connect } from 'umi';
|
|
import { connect } from 'umi';
|
|
import {
|
|
import {
|
|
queryApproval,
|
|
queryApproval,
|
|
|
|
+ queryApprovalProject,
|
|
queryCompany,
|
|
queryCompany,
|
|
queryContract,
|
|
queryContract,
|
|
queryContractCancel,
|
|
queryContractCancel,
|
|
@@ -310,7 +311,7 @@ const ConteactManager = (props) => {
|
|
});
|
|
});
|
|
|
|
|
|
//请求项目列表
|
|
//请求项目列表
|
|
- const { data: projectData } = useRequest(queryApproval, {
|
|
|
|
|
|
+ const { data: projectData } = useRequest(queryApprovalProject, {
|
|
defaultParams: [{ pageSize: 99999 }],
|
|
defaultParams: [{ pageSize: 99999 }],
|
|
});
|
|
});
|
|
|
|
|
|
@@ -498,7 +499,7 @@ const ConteactManager = (props) => {
|
|
project_name: e,
|
|
project_name: e,
|
|
});
|
|
});
|
|
}}
|
|
}}
|
|
- options={projectData?.list?.map((item) => {
|
|
|
|
|
|
+ options={projectData?.map((item) => {
|
|
return {
|
|
return {
|
|
value: item.project_name,
|
|
value: item.project_name,
|
|
label: item.project_name,
|
|
label: item.project_name,
|
|
@@ -589,7 +590,7 @@ const ConteactManager = (props) => {
|
|
detail={detail}
|
|
detail={detail}
|
|
type={typeRef.current}
|
|
type={typeRef.current}
|
|
parent_id={parentIdRef.current}
|
|
parent_id={parentIdRef.current}
|
|
- projectList={projectData?.list}
|
|
|
|
|
|
+ projectList={projectData}
|
|
visible={visible}
|
|
visible={visible}
|
|
handleOk={handleOk}
|
|
handleOk={handleOk}
|
|
handleCancel={() => setVisible(false)}
|
|
handleCancel={() => setVisible(false)}
|