This commit is contained in:
katherinehhh 2025-06-24 22:40:03 +08:00
parent c65debf8a0
commit 8606d0bde7
2 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,7 @@ FormModel.registerFlow({
resource.setAPIClient(ctx.globals.api);
ctx.model.resource = resource;
}
await ctx.model.applySubModelsAutoFlows('fields');
if (ctx.shared.parentRecord) {
ctx.model.resource.setFilterByTk(ctx.shared.parentRecord.id);
await ctx.model.resource.refresh();

View File

@ -45,6 +45,7 @@ export class TableAssociationSelectFieldModel extends TableFieldModel {
use: fieldClass?.name || 'TableFieldModel',
});
model.collectionField = targetLabelField;
model.setParent(this.parent);
if (Array.isArray(value)) {
return (
<>