4.11 评委会设置增加专家账号解锁功能
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import React, { useEffect, useRef, useState } from 'react';
|
||||
import { Button, Checkbox, Col, Collapse, DatePicker, Drawer, Form, Input, message, Modal, Popconfirm, Row, Select, Spin, Upload, Image, Radio, RadioChangeEvent, Tooltip, Popover, Typography } from 'antd'
|
||||
import ProTable, { ActionType, ProColumns } from '@ant-design/pro-table';
|
||||
import { getList, getSecs, saveGroup, delOne, saveMember, changeEx, queryVoList, changeMember, applyFor, roomStatus, juryTem, rePassWord, getUserPhoto } from './service';
|
||||
import { getList, getSecs, saveGroup, delOne, saveMember, changeEx, queryVoList, changeMember, applyFor, roomStatus, juryTem, rePassWord, getUserPhoto, unlockAccount } from './service';
|
||||
import moment from 'moment';
|
||||
import { getDefId, getProId, getProMethod, getSessionProjectData, getSessionUserData } from '@/utils/session';
|
||||
import { getURLInformation } from '@/utils/CommonUtils';
|
||||
@ -330,6 +330,17 @@ const JudgingPanel: React.FC<{}> = () => {
|
||||
)
|
||||
)
|
||||
}
|
||||
//专家账号解锁
|
||||
const unlockExportAccount = async (record: any, juryId: any, proId: any) => {
|
||||
try {
|
||||
const res = await unlockAccount(record.id, juryId, proId);
|
||||
if (res.success) {
|
||||
message.success(res.data);
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1247,6 +1258,9 @@ const JudgingPanel: React.FC<{}> = () => {
|
||||
<Button type='text' hidden={!open || allEnd || btnAuthority(['ebtp-agency-project-manager', 'ebtp-purchase'])} onClick={async () => {
|
||||
await rePassWord(record.id);
|
||||
}}>重置密码</Button>
|
||||
<Button type='text' hidden={!open || allEnd || btnAuthority(['ebtp-agency-project-manager', 'ebtp-purchase'])} onClick={async () => {
|
||||
unlockExportAccount(record, juryId, proId)
|
||||
}}>账号解锁</Button>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
@ -97,6 +97,13 @@ export const rePassWord = async (id: any) => {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
/**
|
||||
* 专家账号解除锁定
|
||||
* @returns
|
||||
*/
|
||||
export async function unlockAccount(id: any, juryId: any, projectId: any) {
|
||||
return request("/api/biz-service-ebtp-rsms/v1/jury/account/debLocking", { method: 'POST', data: { id, juryId, projectId } });
|
||||
};
|
||||
/**
|
||||
* 成员录入-获取照片
|
||||
* @returns
|
||||
|
Reference in New Issue
Block a user