Merge branch '20230407-评标专家外网登录安全防护' into 'release_20230512'

5.11 评委会设置增加专家账号解锁功能

See merge request eshop/fe_service_ebtp_frontend!235
This commit is contained in:
jl-zhoujl2
2023-05-11 02:09:34 +00:00
2 changed files with 22 additions and 1 deletions

View File

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

View File

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