@things-factory/meta-ui 8.0.0-alpha.30 → 8.0.0-alpha.32
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.
- package/client/utils/service-util.js +11 -3
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-client/utils/meta-api.d.ts +1 -1
- package/dist-client/utils/service-util.js +11 -3
- package/dist-client/utils/service-util.js.map +1 -1
- package/dist-client/utils/ui-util.d.ts +1 -1
- package/dist-server/service/index.d.ts +2 -2
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -460,9 +460,17 @@ export class ServiceUtil {
|
|
|
460
460
|
column.hidden !== true
|
|
461
461
|
)
|
|
462
462
|
.reduce((record, column) => {
|
|
463
|
-
record[column.imex.key] = column.imex.key
|
|
464
|
-
|
|
465
|
-
|
|
463
|
+
record[column.imex.key] = column.imex.key.split('.').reduce((obj, key) => {
|
|
464
|
+
const val = obj && obj[key] !== 'undefined' ? obj[key] : undefined
|
|
465
|
+
|
|
466
|
+
if (column.type == 'select') {
|
|
467
|
+
return column?.record?.options?.find(option => option.value == val)?.display
|
|
468
|
+
} else if (column.type.includes('object')) {
|
|
469
|
+
return val?.name
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
return val
|
|
473
|
+
}, item)
|
|
466
474
|
return record
|
|
467
475
|
}, {})
|
|
468
476
|
}
|