6.6 评审解锁-多轮招募添加评审解锁
This commit is contained in:
@ -13,7 +13,7 @@ import RiskPrevention from '@/utils/RiskPrevention';
|
||||
import { history } from 'umi';
|
||||
import { downloadPath } from '@/utils/DownloadUtils';
|
||||
import ExpertPhotoUpload from '@/components/ElecBidEvaluation/ExpertPhotoUpload';
|
||||
import { getUserPhoto } from '@/pages/Tender/ProjectManager/JudgingPanel/List/service';
|
||||
import { getUserPhoto, unlockAccount } from '@/pages/Tender/ProjectManager/JudgingPanel/List/service';
|
||||
import BidEvalAppointment from '@/components/ElecBidEvaluation/BidEvalAppointment';
|
||||
import OutsourcingManage from '@/pages/Tender/ProjectManager/JudgingPanel/List/OutsourcingManage';
|
||||
import { dateTimeFormatter } from '@/utils/DateUtils';
|
||||
@ -319,6 +319,17 @@ const JudgingPanel: React.FC<{}> = (props: any) => {
|
||||
)
|
||||
)
|
||||
}
|
||||
//专家账号解锁
|
||||
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) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(() => {//给表单赋值
|
||||
updateData && setIsReserve(String(updateData?.reserveStatus));//赋值给是否预约电子评标室
|
||||
@ -1115,6 +1126,9 @@ const JudgingPanel: React.FC<{}> = (props: any) => {
|
||||
<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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user