From 7b51ba708e46226d20a326318b50f04b6504c650 Mon Sep 17 00:00:00 2001 From: jl-zhoujl2 Date: Tue, 11 Apr 2023 09:43:50 +0800 Subject: [PATCH] =?UTF-8?q?4.11=20=E8=AF=84=E5=A7=94=E4=BC=9A=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=A2=9E=E5=8A=A0=E4=B8=93=E5=AE=B6=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E8=A7=A3=E9=94=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectManager/JudgingPanel/List/index.tsx | 16 +++++++++++++++- .../ProjectManager/JudgingPanel/List/service.ts | 7 +++++++ 2 files changed, 22 insertions(+), 1 deletion(-) 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