Skip to content

Commit

Permalink
[Task]: 优化对象与字段表单 #6706
Browse files Browse the repository at this point in the history
  • Loading branch information
hotlong committed Apr 10, 2024
1 parent b12ae1a commit 00ee423
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/i18n/translations/zh-CN.translation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ CustomLabels:
objects_enable_instances: 显示审批单子表
objects_description: 描述
objects_amis_details: 详情
objects_amis_field: 对象字段
objects_amis_field: 字段与关系
objects_amis_list_view: 列表视图
objects_amis_action_button: 操作按钮
objects_amis_object_page: 对象页面
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fields:
description:
_name:
label: 字段名
help:
help: API 名称只能包含小写字母、数字,必须以字母开头,不能以下划线字符结尾或包含两个连续的下划线字符
description:
name:
label: API 名称
Expand Down Expand Up @@ -187,7 +187,7 @@ fields:
label: 数据类型
help: 字段类型为公式时,必须填写此字段。
options:
- label: 复选框
- label: 布尔
value: boolean
- label: 数值
value: number
Expand Down Expand Up @@ -368,7 +368,7 @@ fields:
groups:
external_data_source: 外部数据源
advanced: 高级
ui: 界面布局
ui: 界面
listviews:
all:
label: 所有
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ fields:
help:
description:
label:
label: 显示名
label: 显示名称
help:
description:
name:
label: API 名称
label: 对象名
help: API 名称只能包含小写字母、数字,必须以字母开头,不能以下划线字符结尾或包含两个连续的下划线字符
description:
table_name:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ function triggerReloadObject(objectName, type, value, event)
const objectRecord = Creator.getCollection("objects").findOne({
name: objectName
})
if(objectRecord && objectRecord.is_system != true && objectName != "objects"){
if(objectRecord && objectRecord.is_system != true && objectName != "objects" && objectName != "object_fields"){
Creator.getCollection("objects").update({name: objectName}, {$set: {reload_time: new Date()}})
}else{
Creator.getCollection("_object_reload_logs").insert({
Expand Down

0 comments on commit 00ee423

Please sign in to comment.