新增草稿返修接口

This commit is contained in:
何童崇 2021-12-20 08:59:26 +08:00
parent 72d060393d
commit 5bb51eb775
2 changed files with 19 additions and 1 deletions

View File

@ -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({

View File

@ -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);