261022_05_ENH: 리스트 초기화 범위 세분화 및 설문별 상태이력 초기화 추가
This commit is contained in:
@@ -44,8 +44,8 @@ import {
|
||||
type ListFilterTarget,
|
||||
type listHeader,
|
||||
type ListSearchUiState,
|
||||
ListResetMode,
|
||||
type ListResetScope,
|
||||
type ListResetRequest,
|
||||
type ListResetSelection,
|
||||
type ListUploadRequest,
|
||||
} from '@/types/list'
|
||||
import { type ResultCode, ResultCodeType } from '@/types/project'
|
||||
@@ -264,11 +264,12 @@ const ListManagePage = () => {
|
||||
showDialog('messageSendDialog')
|
||||
}
|
||||
|
||||
const handleResetConfirm = async (payload: { target: ListFilterTarget; scope: ListResetScope }) => {
|
||||
await submitJob.mutateAsync({ jobType: 'LIST_RESET', path: 'reset', body: {
|
||||
resetMode: payload.scope === 'result-and-history' ? ListResetMode.HIST : ListResetMode.ALL,
|
||||
const handleResetConfirm = async (payload: { target: ListFilterTarget; selection: ListResetSelection }) => {
|
||||
const body: ListResetRequest = {
|
||||
...payload.selection,
|
||||
listFilter: buildTargetFilter(payload.target),
|
||||
} })
|
||||
}
|
||||
await submitJob.mutateAsync({ jobType: 'LIST_RESET', path: 'reset', body })
|
||||
}
|
||||
|
||||
const handleUploadConfirm = async (file: File, request: ListUploadRequest) => {
|
||||
@@ -375,7 +376,9 @@ const ListManagePage = () => {
|
||||
{isInternal && (
|
||||
<>
|
||||
<ListResetDialog
|
||||
key={prjctIdx}
|
||||
prjctIdx={prjctIdx}
|
||||
surveys={projectInfoQuery.data?.surveys}
|
||||
selectedSids={selectedSidSet}
|
||||
filterSummary={filterSummary}
|
||||
onConfirm={handleResetConfirm}
|
||||
|
||||
Reference in New Issue
Block a user