forked from Gitlink/forgeplus-react
初步联调新增及查询专家接口
This commit is contained in:
parent
9ef7811f57
commit
05646c17ee
|
@ -27,11 +27,11 @@ export function getUserInfo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
//专家注册
|
//专家注册
|
||||||
export async function expertRegister(params){
|
export async function expertRegister(data){
|
||||||
let res = await fetch({
|
let res = await fetch({
|
||||||
url: '/api/experts/register',
|
url: '/api/experts/register',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
params,
|
data,
|
||||||
});
|
});
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
return res.data;
|
return res.data;
|
||||||
|
|
|
@ -138,9 +138,8 @@ function List() {
|
||||||
curPage,
|
curPage,
|
||||||
status: '',
|
status: '',
|
||||||
reviewArea: '',
|
reviewArea: '',
|
||||||
statusString: '',
|
statusString: '-1,1,2',
|
||||||
};
|
};
|
||||||
// ?curPage=1&expertType=&orderBy=&pageSize=10&reviewArea=&searchInput=&statusString=
|
|
||||||
expertList(params).then(data => {
|
expertList(params).then(data => {
|
||||||
if (data && Array.isArray(data.rows)) {
|
if (data && Array.isArray(data.rows)) {
|
||||||
for (const item of data.rows) {
|
for (const item of data.rows) {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import '../index.scss';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
const Option = Select.Option;
|
const Option = Select.Option;
|
||||||
|
|
||||||
export default Form.create()(({ match, history, showNotification, form }) => {
|
export default Form.create()(({ match, history, showNotification, form,current_user }) => {
|
||||||
const { getFieldDecorator, validateFields, setFieldsValue } = form;
|
const { getFieldDecorator, validateFields, setFieldsValue } = form;
|
||||||
const [cancelConfirmValue, setCancelConfirmValue] = useState(false);
|
const [cancelConfirmValue, setCancelConfirmValue] = useState(false);
|
||||||
const [submitConfirmValue, setSubmitConfirmValue] = useState(false);
|
const [submitConfirmValue, setSubmitConfirmValue] = useState(false);
|
||||||
|
@ -61,7 +61,8 @@ export default Form.create()(({ match, history, showNotification, form }) => {
|
||||||
titleRank: expertRegisterValues.titleRank || "",
|
titleRank: expertRegisterValues.titleRank || "",
|
||||||
workNature: expertRegisterValues.workNature || "",
|
workNature: expertRegisterValues.workNature || "",
|
||||||
workplace: expertRegisterValues.workplace || "",
|
workplace: expertRegisterValues.workplace || "",
|
||||||
workplaceType: expertRegisterValues.workplaceType || ""
|
workplaceType: expertRegisterValues.workplaceType || "",
|
||||||
|
userId:current_user.user_id,
|
||||||
}
|
}
|
||||||
expertRegister(params).then(response=>{
|
expertRegister(params).then(response=>{
|
||||||
console.log('接口',response);
|
console.log('接口',response);
|
||||||
|
@ -181,7 +182,7 @@ export default Form.create()(({ match, history, showNotification, form }) => {
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{helper('职称职级',
|
{helper('职称职级',
|
||||||
'professionalYears',
|
'titleRank',
|
||||||
[{ required: true, message: "请选择职称职级" }],
|
[{ required: true, message: "请选择职称职级" }],
|
||||||
<Select placeholder="请选择" dropdownClassName="expert_register">
|
<Select placeholder="请选择" dropdownClassName="expert_register">
|
||||||
{positionLevel.map(item=>{
|
{positionLevel.map(item=>{
|
||||||
|
|
Loading…
Reference in New Issue