260803_01_ENH: 에디터에 QR 코드 삽입 추가
This commit is contained in:
@@ -53,6 +53,7 @@ export type ListBatchEditDialogProps = {
|
||||
headerOptions: BatchEditOption[]
|
||||
resultCodes: ResultCode[]
|
||||
surveys: ProjectSurvey[]
|
||||
selectedSids: string[]
|
||||
filterSummary?: string[]
|
||||
initialRows?: BatchEditRow[]
|
||||
initialResultCodes?: BatchEditResultCodes
|
||||
@@ -80,6 +81,7 @@ const ListBatchEditDialog = ({
|
||||
headerOptions,
|
||||
resultCodes,
|
||||
surveys,
|
||||
selectedSids,
|
||||
filterSummary,
|
||||
initialRows = [],
|
||||
initialResultCodes = {},
|
||||
@@ -169,7 +171,7 @@ const ListBatchEditDialog = ({
|
||||
|
||||
const handleConfirm = async () => {
|
||||
setInvalidRowId(null)
|
||||
if (!validateApplyFilterTarget(target, filterSummary)) return
|
||||
if (!validateApplyFilterTarget(target, { selectedCount: selectedSids.length, filterSummary })) return
|
||||
|
||||
const normalized = rows.filter((row) => row.headerId > 0 && row.value.trim().length > 0)
|
||||
const surveyResultCodes = Object.entries(surveyResultSelections).map(([prjctSurveyIdx, resultCd]) => ({
|
||||
@@ -229,7 +231,13 @@ const ListBatchEditDialog = ({
|
||||
>
|
||||
<div className="rounded-md border p-4 space-y-4">
|
||||
<p className="text-lg font-semibold">적용 대상</p>
|
||||
<ApplyFilterOption value={target} onValueChange={setTarget} idPrefix="batch-edit-target" filterSummary={filterSummary} />
|
||||
<ApplyFilterOption
|
||||
value={target}
|
||||
onValueChange={setTarget}
|
||||
idPrefix="batch-edit-target"
|
||||
selectedSids={selectedSids}
|
||||
filterSummary={filterSummary}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="rounded-md border p-4 space-y-3">
|
||||
|
||||
Reference in New Issue
Block a user