feat: 심사자 심의 진행

main
minuk926 3 years ago
parent 2af89d02a8
commit bc337d63d8

@ -134,6 +134,7 @@ export async function judgeFileDownload(params, alert) {
if (res?.isAxiosError || res?.status === 404) {
alert.show('파일을 다운로드 할 수 없습니다 [파일정보 오류]');
} else {
if (res?.size <= 0) alert.show('File not found!');
// const onChangeFile = (e) => {
// const file = e.target.files[0];
// if (file.type.includes('image')) {
@ -147,6 +148,7 @@ export async function judgeFileDownload(params, alert) {
// eslint-disable-next-line no-lonely-if
if (res?.type.includes('image')) {
// const url = window.URL.createObjectURL(res);
alert.show(<img alt="~~~" src={URL.createObjectURL(res)} style={{ margin: 'auto' }} />);
} else {
FileSaver.saveAs(res, 'filename');

@ -292,7 +292,7 @@ const JudgeByUserReview = ({ msDatagb, menuName }) => {
// selectionModel={selectionModel}
/>
<CmmModal isBackdrop title={title} open={open} setOpen={setOpen}>
<ProcessJudge rowDatas={rowDatas} />
<ProcessJudge rowDatas={rowDatas} showAlert={showAlert} />
</CmmModal>
</MainCard>
);

Loading…
Cancel
Save