forked from Gitlink/forgeplus-react
新增草稿返修接口
This commit is contained in:
parent
72d060393d
commit
5bb51eb775
|
|
@ -26,6 +26,15 @@ export function getUserInfo() {
|
|||
});
|
||||
}
|
||||
|
||||
// 查看当前登录用户专家信息
|
||||
export function getCurrentExpert(params) {
|
||||
return fetch({
|
||||
url: '/api/experts/getCurrentExpert',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
//专家注册
|
||||
export async function expertRegister(data){
|
||||
let res = await fetch({
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React, { useEffect, useState, useCallback } from 'react';
|
|||
import { Button, Icon, Form, Modal, Input, Select } from 'antd';
|
||||
import Upload from '../components/Upload';
|
||||
import { unitType, natureOfWork, highestEducation, positionLevel, professionalType, reviewArea } from '../static';
|
||||
import { expertRegister } from '../api';
|
||||
import { expertRegister,getCurrentExpert } from '../api';
|
||||
|
||||
import './index.scss';
|
||||
import '../index.scss';
|
||||
|
|
@ -27,6 +27,15 @@ export default Form.create()(({ match, history, showNotification, form, current_
|
|||
const [honorList, setHonorListList] = useState([]);
|
||||
const [honorIds, setHonorIds] = useState();
|
||||
|
||||
// 获取列表
|
||||
useEffect(() => {
|
||||
let params={};
|
||||
getCurrentExpert(params).then(res => {
|
||||
console.log(res);
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
||||
// 上传附件后得到的文件数组
|
||||
function uploadResume(fileList, files) {
|
||||
setResumeList(fileList);
|
||||
|
|
|
|||
Loading…
Reference in New Issue