260713_01_ENH: 미진행인 모니터링 평가에 대해서도 upload가 가능하도록 수정 및 재단 계정에서도 업로드 가능하게 수정
This commit is contained in:
@@ -146,7 +146,9 @@ function ReviewFileActions({
|
||||
const upload = async (file?: File) => {
|
||||
try {
|
||||
if (!file) return;
|
||||
await withLoadingAsync(() => uploadMutation.mutateAsync({performanceId, reviewType, file}));
|
||||
await withLoadingAsync(() =>
|
||||
uploadMutation.mutateAsync({performanceId, reviewType, file, paramUserId: userId})
|
||||
);
|
||||
alert("파일 업로드가 완료되었습니다.");
|
||||
} finally {
|
||||
if (fileInputRef.current) fileInputRef.current.value = "";
|
||||
@@ -179,7 +181,7 @@ function ReviewFileActions({
|
||||
|
||||
return (
|
||||
<div className="flex flex-wrap gap-1">
|
||||
{canEdit && (
|
||||
{canEdit && userId && (
|
||||
<>
|
||||
<input ref={fileInputRef} type="file" className="hidden" onChange={(event) => void upload(event.target.files?.[0])} />
|
||||
<FileActionButton icon="upload" disabled={uploadMutation.isPending || !canUpload} onClick={() => fileInputRef.current?.click()}>파일 업로드</FileActionButton>
|
||||
@@ -335,8 +337,10 @@ function MonitoringStatusRow({
|
||||
uploadFileName={row.review?.uploadFileName}
|
||||
pdfFileName={row.review?.pdfFileName}
|
||||
pdfConvert={row.review?.pdfConvert}
|
||||
canUpload={canEdit && isReviewComplete(row.review)}
|
||||
canEdit={canEdit}
|
||||
//canUpload={canEdit && isReviewComplete(row.review)}
|
||||
//canEdit={canEdit}
|
||||
canUpload={true}
|
||||
canEdit={true}
|
||||
/>
|
||||
</div>
|
||||
{row.slot.visit?.length ? (
|
||||
|
||||
Reference in New Issue
Block a user