@things-factory/meta-ui 7.0.1-alpha.0 → 7.0.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1382,10 +1382,22 @@ export class MetaUiUtil {
|
|
|
1382
1382
|
} else if (paramInfo.includes('grist_selected')) {
|
|
1383
1383
|
params['grist'] = grist.selected
|
|
1384
1384
|
} else if (paramInfo.includes('grist_changed')) {
|
|
1385
|
-
|
|
1386
|
-
if (!
|
|
1385
|
+
let changedList = ServiceUtil.patchesForUpdateMultiple(grist)
|
|
1386
|
+
if (!changedList) {
|
|
1387
1387
|
return
|
|
1388
1388
|
}
|
|
1389
|
+
|
|
1390
|
+
// 화면이 팝업 화면이라면 부모 ID를 레코드에 추가한다.
|
|
1391
|
+
let pId = pageView.parent_id ? pageView.parent_id : null
|
|
1392
|
+
let parentIdField = ValueUtil.getParams(logic, 'parent_field')
|
|
1393
|
+
|
|
1394
|
+
changedList.forEach(item => {
|
|
1395
|
+
if (pId && parentIdField && !item[parentIdField]) {
|
|
1396
|
+
item[parentIdField] = pId
|
|
1397
|
+
}
|
|
1398
|
+
})
|
|
1399
|
+
|
|
1400
|
+
params['grist'] = changedList
|
|
1389
1401
|
}
|
|
1390
1402
|
|
|
1391
1403
|
// 페이지 이동
|