diff --git a/src/pages/Tender/ProjectManager/JudgingPanel/List/index.tsx b/src/pages/Tender/ProjectManager/JudgingPanel/List/index.tsx index 75a3d18..fd65f12 100644 --- a/src/pages/Tender/ProjectManager/JudgingPanel/List/index.tsx +++ b/src/pages/Tender/ProjectManager/JudgingPanel/List/index.tsx @@ -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<{}> = () => { + ); } diff --git a/src/pages/Tender/ProjectManager/JudgingPanel/List/service.ts b/src/pages/Tender/ProjectManager/JudgingPanel/List/service.ts index c68d1bf..8578459 100644 --- a/src/pages/Tender/ProjectManager/JudgingPanel/List/service.ts +++ b/src/pages/Tender/ProjectManager/JudgingPanel/List/service.ts @@ -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