Skip to content

Commit

Permalink
fix 添加字段 - 设置子表,子表保存后只读页面显示错误 #546
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhoutao committed Sep 17, 2023
1 parent 346d405 commit a1f68ec
Showing 1 changed file with 39 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,24 +172,45 @@
"title": "${'flows_tabs_binding_object'|t}",
"body": [
{
"type": "steedos-object-form",
"label": "对象表单",
"objectApiName": "flows",
"recordId": "${recordId}",
"id": "u:31a417c79ce2",
"className": "bg-white m--8",
"mode": "read",
"fields": [
"object_name",
"instance_fields",
"instance_fields.$.name",
"instance_fields.$.required",
"instance_table_fields",
"instance_table_fields.$.detail_field_fullname",
"instance_table_fields.$.label",
"instance_table_fields.$.field_names"
],
"fieldsExtend": ""
"type": "service",
"id": "u:dbadaff47153",
"api": {
"method": "get",
"url": "/service/api/amis-metadata-objects/objects/${object_name}/relatedLists/options",
"sendOn": "!!this.object_name",
"adaptor": "let data = payload.data;\ndata.related_lists_options = data.options;\ndelete data.options\npayload.data = data;\nreturn payload;\n",
"headers": {
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
}
},
"body": [
{
"type": "steedos-object-form",
"label": "对象表单",
"objectApiName": "flows",
"recordId": "${recordId}",
"id": "u:31a417c79ce2",
"className": "bg-white m--8",
"mode": "read",
"fields": [
"object_name",
"instance_fields",
"instance_fields.$.name",
"instance_fields.$.required",
"instance_table_fields",
"instance_table_fields.$.detail_field_fullname",
"instance_table_fields.$.label",
"instance_table_fields.$.field_names"
],
"fieldsExtend": {
"instance_table_fields.$.detail_field_fullname": {
"amis": {
"tpl": "${related_lists_options|filter:value:equals:detail_field_fullname.value|pick:label}"
}
}
}
}
]
}
],
"id": "u:fa2adcce8268",
Expand Down

0 comments on commit a1f68ec

Please sign in to comment.