@steedos/schemas 3.0.0-beta.2 → 3.0.0-beta.8
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/button/schema.json +84 -99
- package/object/schema.json +1034 -1110
- package/package.json +2 -2
package/object/schema.json
CHANGED
|
@@ -1,1157 +1,1081 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
]
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"name": "steedos-schema_object",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"properties": {
|
|
9
|
+
"type": {
|
|
10
|
+
"enum": ["library"]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": ["type", "name", "description"]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"properties": {
|
|
17
|
+
"type": {
|
|
18
|
+
"not": {
|
|
19
|
+
"enum": ["library"]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"properties": {
|
|
26
|
+
"name": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "对象名称",
|
|
29
|
+
"pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$"
|
|
30
|
+
},
|
|
31
|
+
"isMetadata": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"description": "元数据对象"
|
|
34
|
+
},
|
|
35
|
+
"internal": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"description": "内置"
|
|
38
|
+
},
|
|
39
|
+
"table_name": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "数据库表名称"
|
|
42
|
+
},
|
|
43
|
+
"extend": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "要继承的对象标识"
|
|
46
|
+
},
|
|
47
|
+
"label": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "对象显示名称"
|
|
50
|
+
},
|
|
51
|
+
"icon": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "对象图标,对应https://www.lightningdesignsystem.com/icons/#standard"
|
|
54
|
+
},
|
|
55
|
+
"enable_search": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"description": "允许搜索"
|
|
58
|
+
},
|
|
59
|
+
"enable_dataloader": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"description": "graphql api中启用dataloader缓存"
|
|
62
|
+
},
|
|
63
|
+
"is_enable": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"description": "是否启用,如果为false,则对象不可见"
|
|
66
|
+
},
|
|
67
|
+
"enable_files": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"description": "允许上传附件"
|
|
70
|
+
},
|
|
71
|
+
"enable_tasks": {
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"description": "允许创建任务"
|
|
74
|
+
},
|
|
75
|
+
"enable_notes": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"description": "允许创建备忘"
|
|
78
|
+
},
|
|
79
|
+
"enable_form_tabs": {
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"description": "表单启用选项卡模式"
|
|
82
|
+
},
|
|
83
|
+
"enable_events": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"description": "允许创建事件"
|
|
86
|
+
},
|
|
87
|
+
"enable_api": {
|
|
88
|
+
"type": "boolean",
|
|
89
|
+
"description": "TODO..."
|
|
90
|
+
},
|
|
91
|
+
"enable_share": {
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"description": "允许分享"
|
|
94
|
+
},
|
|
95
|
+
"enable_instances": {
|
|
96
|
+
"type": "boolean",
|
|
97
|
+
"description": "显示审批单子表"
|
|
98
|
+
},
|
|
99
|
+
"enable_chatter": {
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"description": "允许留言"
|
|
102
|
+
},
|
|
103
|
+
"enable_audit": {
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"description": "允许记录字段历史"
|
|
106
|
+
},
|
|
107
|
+
"enable_trash": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"description": "允许假删除。如果为true,则开启回收站功能,此对象数据删除后,会进入回收站。如果为false,则直接删除"
|
|
110
|
+
},
|
|
111
|
+
"enable_space_global": {
|
|
112
|
+
"type": "boolean",
|
|
113
|
+
"description": "允许数据夸工作区使用"
|
|
114
|
+
},
|
|
115
|
+
"enable_tree": {
|
|
116
|
+
"type": "boolean",
|
|
117
|
+
"description": "启用树状结构显示记录"
|
|
118
|
+
},
|
|
119
|
+
"enable_enhanced_lookup": {
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"description": "启用增强lookup模式,当开启时,指向该对象的lookup字段会弹出窗口显示可选项!"
|
|
122
|
+
},
|
|
123
|
+
"parent_field": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"description": "树状结构父字段,默认为parent"
|
|
126
|
+
},
|
|
127
|
+
"children_field": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"description": "树状结构子节点字段,默认为children"
|
|
130
|
+
},
|
|
131
|
+
"enable_approvals": {
|
|
132
|
+
"type": "boolean",
|
|
133
|
+
"description": "历史步骤"
|
|
134
|
+
},
|
|
135
|
+
"enable_follow": {
|
|
136
|
+
"type": "boolean",
|
|
137
|
+
"description": "允许关注"
|
|
138
|
+
},
|
|
139
|
+
"enable_workflow": {
|
|
140
|
+
"type": "boolean",
|
|
141
|
+
"description": "允许对象流程同步"
|
|
142
|
+
},
|
|
143
|
+
"enable_open_workflow": {
|
|
144
|
+
"type": "boolean",
|
|
145
|
+
"description": "允许配置对象开放流程"
|
|
146
|
+
},
|
|
147
|
+
"enable_web_forms": {
|
|
148
|
+
"type": "boolean",
|
|
149
|
+
"description": "允许在线表单"
|
|
150
|
+
},
|
|
151
|
+
"enable_inline_edit": {
|
|
152
|
+
"type": "boolean",
|
|
153
|
+
"description": "允许单个字段编辑"
|
|
154
|
+
},
|
|
155
|
+
"enable_lock_detail": {
|
|
156
|
+
"type": "boolean",
|
|
157
|
+
"description": "当主表锁定时,所有子表只读。"
|
|
158
|
+
},
|
|
159
|
+
"is_view": {
|
|
160
|
+
"type": "boolean",
|
|
161
|
+
"description": "此对象是否对应数据库中的视图"
|
|
162
|
+
},
|
|
163
|
+
"hidden": {
|
|
164
|
+
"type": "boolean",
|
|
165
|
+
"description": "是否隐藏对象"
|
|
166
|
+
},
|
|
167
|
+
"description": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"description": "对象描述"
|
|
170
|
+
},
|
|
171
|
+
"sidebar": {
|
|
172
|
+
"type": "object",
|
|
173
|
+
"description": "TODO"
|
|
174
|
+
},
|
|
175
|
+
"custom": {
|
|
176
|
+
"type": "boolean",
|
|
177
|
+
"description": "创建的实体表是否加默认的前缀,默认前缀为:c_${spaceId}_"
|
|
178
|
+
},
|
|
179
|
+
"owner": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"description": "对象拥有者"
|
|
182
|
+
},
|
|
183
|
+
"objects_group": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"description": "对象分组"
|
|
186
|
+
},
|
|
187
|
+
"process_state": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"description": "审批状态"
|
|
190
|
+
},
|
|
191
|
+
"is_system": {
|
|
192
|
+
"type": "boolean",
|
|
193
|
+
"description": "是否系统对象"
|
|
194
|
+
},
|
|
195
|
+
"methods": {
|
|
196
|
+
"type": "object",
|
|
197
|
+
"description": "对象可执行的方法,用于odata接口",
|
|
198
|
+
"patternProperties": {
|
|
199
|
+
"^[a-zA-Z_]\\w*(\\.\\$\\.\\w+)?[a-zA-Z0-9].*$": {
|
|
200
|
+
"$ref": "#/definitions/method"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"fields": {
|
|
205
|
+
"type": "object",
|
|
206
|
+
"additionalProperties": false,
|
|
207
|
+
"patternProperties": {
|
|
208
|
+
"^[a-zA-Z_]\\w*(\\.\\$\\.\\w+)?[a-zA-Z0-9].*$": {
|
|
209
|
+
"$ref": "#/definitions/field"
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"list_views": {
|
|
214
|
+
"type": "object",
|
|
215
|
+
"additionalProperties": false,
|
|
216
|
+
"patternProperties": {
|
|
217
|
+
"^[a-zA-Z_]\\w*(\\.\\$\\.\\w+)?[a-zA-Z0-9]*$": {
|
|
218
|
+
"$ref": "#/definitions/list_view"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"paging": {
|
|
223
|
+
"type": "object",
|
|
224
|
+
"additionalProperties": false,
|
|
225
|
+
"properties": {
|
|
226
|
+
"enabled": {
|
|
227
|
+
"type": "boolean",
|
|
228
|
+
"description": "启用分页"
|
|
229
|
+
},
|
|
230
|
+
"page_size": {
|
|
231
|
+
"type": "number",
|
|
232
|
+
"description": "每页显示记录数量"
|
|
233
|
+
},
|
|
234
|
+
"mode": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"description": "指定滚动模式",
|
|
237
|
+
"enum": ["infinite", "standard", "virtual"]
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"actions": {
|
|
242
|
+
"type": "object",
|
|
243
|
+
"additionalProperties": false,
|
|
244
|
+
"patternProperties": {
|
|
245
|
+
"^[a-zA-Z_]\\w*(\\.\\$\\.\\w+)?[a-zA-Z0-9]*$": {
|
|
246
|
+
"$ref": "#/definitions/action"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"permission_set": {
|
|
251
|
+
"type": "object",
|
|
252
|
+
"additionalProperties": false,
|
|
253
|
+
"patternProperties": {
|
|
254
|
+
"^[a-zA-Z_]\\w*(\\.\\$\\.\\w+)?[a-zA-Z0-9]*$": {
|
|
255
|
+
"$ref": "#/definitions/permission"
|
|
31
256
|
}
|
|
32
|
-
|
|
33
|
-
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"triggers": {
|
|
260
|
+
"type": "object",
|
|
261
|
+
"additionalProperties": false,
|
|
262
|
+
"patternProperties": {
|
|
263
|
+
"^[a-zA-Z_]\\w*(\\.\\$\\.\\w+)?[a-zA-Z0-9]*$": {
|
|
264
|
+
"$ref": "#/definitions/trigger"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"calendar": {
|
|
269
|
+
"type": "object"
|
|
270
|
+
},
|
|
271
|
+
"listeners": {
|
|
272
|
+
"type": "object",
|
|
273
|
+
"additionalProperties": false,
|
|
274
|
+
"patternProperties": {
|
|
275
|
+
"^[a-zA-Z_]\\w*(\\.\\$\\.\\w+)?[a-zA-Z0-9]*$": {
|
|
276
|
+
"$ref": "#/definitions/listener"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"form": {
|
|
281
|
+
"type": "object",
|
|
282
|
+
"properties": {
|
|
283
|
+
"initialValues": {
|
|
284
|
+
"type": "string",
|
|
285
|
+
"description": "表单初始化数据时执行, 函数的返回值作为新建数据的默认值"
|
|
286
|
+
},
|
|
287
|
+
"onSubmit": {
|
|
288
|
+
"type": "string",
|
|
289
|
+
"description": "表单提交时执行, 参数为表单中的字段值,如果成功返回undefined,如果失败返回错误数组"
|
|
290
|
+
},
|
|
291
|
+
"validate": {
|
|
292
|
+
"type": "string",
|
|
293
|
+
"description": "表单字段修改时执行, 传入表单中的字段值,如果成功返回undefined,如果失败返回错误数组"
|
|
294
|
+
},
|
|
295
|
+
"onRendered": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"description": "表单加载完成后执行"
|
|
298
|
+
},
|
|
299
|
+
"onDestroy": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"description": "表单销毁时执行"
|
|
302
|
+
},
|
|
303
|
+
"onValuesChange": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"description": "表单字段修改时执行"
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"relatedList": {
|
|
310
|
+
"type": "array",
|
|
311
|
+
"description": "主表想在详细页显示的相关子表"
|
|
312
|
+
},
|
|
313
|
+
"version": {
|
|
314
|
+
"type": "number",
|
|
315
|
+
"description": "对象版本, 默认1.0"
|
|
316
|
+
},
|
|
317
|
+
"pages": {
|
|
318
|
+
"type": "object",
|
|
319
|
+
"additionalProperties": false,
|
|
320
|
+
"patternProperties": {
|
|
321
|
+
"^[a-zA-Z_]\\w*(\\.\\$\\.\\w+)?[a-zA-Z0-9]*$": {
|
|
322
|
+
"$ref": "#/definitions/page"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"compactLayouts": {
|
|
327
|
+
"type": "array",
|
|
328
|
+
"description": "高亮字段"
|
|
329
|
+
},
|
|
330
|
+
"enable_split": {
|
|
331
|
+
"type": "boolean",
|
|
332
|
+
"description": "是否配置默认分屏"
|
|
333
|
+
},
|
|
334
|
+
"field_groups": {
|
|
335
|
+
"type": "array",
|
|
336
|
+
"description": "字段分组"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"definitions": {
|
|
340
|
+
"field": {
|
|
341
|
+
"type": "object",
|
|
342
|
+
"description": "对象字段",
|
|
343
|
+
"additionalProperties": false,
|
|
344
|
+
"properties": {
|
|
34
345
|
"name": {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$"
|
|
38
|
-
},
|
|
39
|
-
"internal": {
|
|
40
|
-
"type": "boolean",
|
|
41
|
-
"description": "内置对象"
|
|
42
|
-
},
|
|
43
|
-
"table_name": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"description": "数据库表名称"
|
|
46
|
-
},
|
|
47
|
-
"extend": {
|
|
48
|
-
"type": "string",
|
|
49
|
-
"description": "要继承的对象标识"
|
|
346
|
+
"type": "string",
|
|
347
|
+
"description": "字段名称"
|
|
50
348
|
},
|
|
51
349
|
"label": {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
},
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
"description": "允许假删除。如果为true,则开启回收站功能,此对象数据删除后,会进入回收站。如果为false,则直接删除"
|
|
114
|
-
},
|
|
115
|
-
"enable_space_global": {
|
|
116
|
-
"type": "boolean",
|
|
117
|
-
"description": "允许数据夸工作区使用"
|
|
118
|
-
},
|
|
119
|
-
"enable_tree": {
|
|
120
|
-
"type": "boolean",
|
|
121
|
-
"description": "启用树状结构显示记录"
|
|
122
|
-
},
|
|
123
|
-
"enable_enhanced_lookup": {
|
|
124
|
-
"type": "boolean",
|
|
125
|
-
"description": "启用增强lookup模式,当开启时,指向该对象的lookup字段会弹出窗口显示可选项!"
|
|
350
|
+
"type": "string",
|
|
351
|
+
"description": "字段显示名称"
|
|
352
|
+
},
|
|
353
|
+
"is_name": {
|
|
354
|
+
"type": "boolean",
|
|
355
|
+
"description": "将当前字段叫标记为name字段,用于选择数据时的显示名称"
|
|
356
|
+
},
|
|
357
|
+
"column_name": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"description": "数据库字段名"
|
|
360
|
+
},
|
|
361
|
+
"object": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"description": "字段所属对象"
|
|
364
|
+
},
|
|
365
|
+
"type": {
|
|
366
|
+
"type": "string",
|
|
367
|
+
"description": "字段类型",
|
|
368
|
+
"anyOf": [
|
|
369
|
+
{
|
|
370
|
+
"enum": [
|
|
371
|
+
"text",
|
|
372
|
+
"textarea",
|
|
373
|
+
"html",
|
|
374
|
+
"select",
|
|
375
|
+
"color",
|
|
376
|
+
"boolean",
|
|
377
|
+
"toggle",
|
|
378
|
+
"date",
|
|
379
|
+
"datetime",
|
|
380
|
+
"time",
|
|
381
|
+
"number",
|
|
382
|
+
"currency",
|
|
383
|
+
"percent",
|
|
384
|
+
"password",
|
|
385
|
+
"lookup",
|
|
386
|
+
"master_detail",
|
|
387
|
+
"grid",
|
|
388
|
+
"table",
|
|
389
|
+
"url",
|
|
390
|
+
"email",
|
|
391
|
+
"avatar",
|
|
392
|
+
"location",
|
|
393
|
+
"image",
|
|
394
|
+
"object",
|
|
395
|
+
"[object]",
|
|
396
|
+
"[Object]",
|
|
397
|
+
"[grid]",
|
|
398
|
+
"[text]",
|
|
399
|
+
"selectCity",
|
|
400
|
+
"audio",
|
|
401
|
+
"filesize",
|
|
402
|
+
"file",
|
|
403
|
+
"code",
|
|
404
|
+
"autonumber",
|
|
405
|
+
"markdown",
|
|
406
|
+
"formula",
|
|
407
|
+
"summary"
|
|
408
|
+
]
|
|
409
|
+
}
|
|
410
|
+
]
|
|
126
411
|
},
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
|
|
412
|
+
"sort_no": {
|
|
413
|
+
"type": "integer",
|
|
414
|
+
"description": "排序号, 默认值100"
|
|
130
415
|
},
|
|
131
|
-
"
|
|
132
|
-
|
|
133
|
-
|
|
416
|
+
"group": {
|
|
417
|
+
"type": "string",
|
|
418
|
+
"description": "分组名称"
|
|
134
419
|
},
|
|
135
|
-
"
|
|
136
|
-
|
|
137
|
-
|
|
420
|
+
"defaultValue": {
|
|
421
|
+
"type": ["string", "boolean", "array", "integer"],
|
|
422
|
+
"description": "默认值"
|
|
138
423
|
},
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
|
|
424
|
+
"allowedValues": {
|
|
425
|
+
"type": ["string", "boolean", "array"],
|
|
426
|
+
"description": "允许的值"
|
|
142
427
|
},
|
|
143
|
-
"
|
|
144
|
-
|
|
145
|
-
|
|
428
|
+
"multiple": {
|
|
429
|
+
"type": "boolean",
|
|
430
|
+
"description": "支持多选"
|
|
146
431
|
},
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
|
|
432
|
+
"required": {
|
|
433
|
+
"type": ["boolean", "string"],
|
|
434
|
+
"description": "是否必填"
|
|
150
435
|
},
|
|
151
|
-
"
|
|
152
|
-
|
|
153
|
-
|
|
436
|
+
"enable_encryption": {
|
|
437
|
+
"type": ["boolean"],
|
|
438
|
+
"description": "是否加密"
|
|
154
439
|
},
|
|
155
|
-
"
|
|
156
|
-
|
|
157
|
-
|
|
440
|
+
"is_wide": {
|
|
441
|
+
"type": "boolean",
|
|
442
|
+
"description": "是否宽字段,如果为true,则在详细页面,一个字段占一行"
|
|
158
443
|
},
|
|
159
|
-
"
|
|
160
|
-
|
|
161
|
-
|
|
444
|
+
"readonly": {
|
|
445
|
+
"type": "boolean",
|
|
446
|
+
"description": "是否只读"
|
|
162
447
|
},
|
|
163
|
-
"
|
|
164
|
-
|
|
165
|
-
|
|
448
|
+
"static": {
|
|
449
|
+
"type": "boolean",
|
|
450
|
+
"description": "静态模式,显示为只读,但是可以通过默认值,自动填充或自定义脚本设置该字段值"
|
|
166
451
|
},
|
|
167
452
|
"hidden": {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
},
|
|
171
|
-
"
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
},
|
|
175
|
-
"
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
},
|
|
179
|
-
"
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
},
|
|
183
|
-
"
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
},
|
|
187
|
-
"
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
},
|
|
191
|
-
"
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
},
|
|
195
|
-
"
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
},
|
|
199
|
-
"
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
453
|
+
"type": "boolean",
|
|
454
|
+
"description": "是否隐藏"
|
|
455
|
+
},
|
|
456
|
+
"omit": {
|
|
457
|
+
"type": "boolean",
|
|
458
|
+
"description": "忽略此字段"
|
|
459
|
+
},
|
|
460
|
+
"index": {
|
|
461
|
+
"type": "boolean",
|
|
462
|
+
"description": "创建索引"
|
|
463
|
+
},
|
|
464
|
+
"searchable": {
|
|
465
|
+
"type": "boolean",
|
|
466
|
+
"description": "允许搜索"
|
|
467
|
+
},
|
|
468
|
+
"sortable": {
|
|
469
|
+
"type": "boolean",
|
|
470
|
+
"description": "允许排序"
|
|
471
|
+
},
|
|
472
|
+
"precision": {
|
|
473
|
+
"type": "integer",
|
|
474
|
+
"description": "数值类型字段的最大长度,默认值18"
|
|
475
|
+
},
|
|
476
|
+
"scale": {
|
|
477
|
+
"type": "integer",
|
|
478
|
+
"description": "数值类型的小数位数,默认值2"
|
|
479
|
+
},
|
|
480
|
+
"reference_to": {
|
|
481
|
+
"type": ["string", "array"],
|
|
482
|
+
"description": "引用的对象"
|
|
483
|
+
},
|
|
484
|
+
"reference_to_field": {
|
|
485
|
+
"type": "string",
|
|
486
|
+
"description": "引用的对象的字段,按照此字段去查找相关记录"
|
|
487
|
+
},
|
|
488
|
+
"modal_mode": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"description": "lookup字段弹出框模式: 'dialog' | 'drawer' ",
|
|
491
|
+
"enum": ["dialog", "drawer"]
|
|
492
|
+
},
|
|
493
|
+
"show_as_qr": {
|
|
494
|
+
"type": "boolean",
|
|
495
|
+
"description": "显示为二维码"
|
|
496
|
+
},
|
|
497
|
+
"table_schema": {
|
|
498
|
+
"type": ["string", "object"],
|
|
499
|
+
"description": "lookup字段弹出框表格定义,可以定义为列表视图名称或列表属性"
|
|
500
|
+
},
|
|
501
|
+
"rows": {
|
|
502
|
+
"type": "integer",
|
|
503
|
+
"description": "多行文本默认行数"
|
|
504
|
+
},
|
|
505
|
+
"firstOption": {
|
|
506
|
+
"type": "boolean"
|
|
507
|
+
},
|
|
508
|
+
"options": {
|
|
509
|
+
"anyOf": [
|
|
510
|
+
{
|
|
511
|
+
"items": {
|
|
512
|
+
"type": "string",
|
|
513
|
+
"pattern": "^[^:]+(:[^:]+)?(:[0-9a-fA-F]{6})?$"
|
|
514
|
+
},
|
|
515
|
+
"type": "array",
|
|
516
|
+
"title": "One option per line. Three definition formats are supported. value, label:value, label:value:FFFFFF, the third format can set the color of each option, if supply as a string array."
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"items": {
|
|
520
|
+
"type": "object",
|
|
521
|
+
"required": ["label", "value"],
|
|
522
|
+
"additionalProperties": false,
|
|
523
|
+
"properties": {
|
|
524
|
+
"label": {
|
|
525
|
+
"type": "string",
|
|
526
|
+
"title": "Options display name"
|
|
527
|
+
},
|
|
528
|
+
"value": {
|
|
529
|
+
"type": ["string", "number", "boolean"],
|
|
530
|
+
"title": "Options value saved as"
|
|
531
|
+
},
|
|
532
|
+
"color": {
|
|
533
|
+
"title": "Options color showed as background",
|
|
534
|
+
"anyOf": [
|
|
535
|
+
{
|
|
536
|
+
"type": "string",
|
|
537
|
+
"pattern": "^[0-9a-fA-F]{6}$"
|
|
538
|
+
}
|
|
539
|
+
]
|
|
540
|
+
},
|
|
541
|
+
"description": {
|
|
542
|
+
"type": "string",
|
|
543
|
+
"title": "Options description "
|
|
544
|
+
},
|
|
545
|
+
"icon": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"title": "Options icon name"
|
|
548
|
+
}
|
|
205
549
|
}
|
|
550
|
+
},
|
|
551
|
+
"type": "array",
|
|
552
|
+
"title": "The label and value propertie is required if supply as a object array."
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"type": "string",
|
|
556
|
+
"title": "Only support a function string if supply as a string."
|
|
206
557
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
558
|
+
],
|
|
559
|
+
"description": "字段选项"
|
|
560
|
+
},
|
|
561
|
+
"auto_fill_mapping": {
|
|
562
|
+
"anyOf": [
|
|
563
|
+
{
|
|
564
|
+
"items": {
|
|
565
|
+
"type": "object",
|
|
566
|
+
"required": ["from", "to"],
|
|
567
|
+
"additionalProperties": false,
|
|
568
|
+
"properties": {
|
|
569
|
+
"from": {
|
|
570
|
+
"type": "string",
|
|
571
|
+
"title": "从:引用对象中的字段"
|
|
572
|
+
},
|
|
573
|
+
"to": {
|
|
574
|
+
"type": "string",
|
|
575
|
+
"title": "填充到:当前表单字段"
|
|
576
|
+
}
|
|
214
577
|
}
|
|
578
|
+
},
|
|
579
|
+
"type": "array",
|
|
580
|
+
"title": "自动填充规则,选择数据后,将按此规则中的映射关系把引用对象中的字段值自动填充到当前表单字段中。"
|
|
215
581
|
}
|
|
582
|
+
],
|
|
583
|
+
"description": "自动填充规则,选择数据后,将按此规则中的映射关系把引用对象中的字段值自动填充到当前表单字段中。"
|
|
216
584
|
},
|
|
217
|
-
"
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
"patternProperties": {
|
|
221
|
-
"^[a-zA-Z_]\\w*(\\.\\$\\.\\w+)?[a-zA-Z0-9]*$": {
|
|
222
|
-
"$ref": "#/definitions/list_view"
|
|
223
|
-
}
|
|
224
|
-
}
|
|
585
|
+
"description": {
|
|
586
|
+
"type": "string",
|
|
587
|
+
"description": "字段描述"
|
|
225
588
|
},
|
|
226
|
-
"
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
589
|
+
"filterable": {
|
|
590
|
+
"type": "boolean",
|
|
591
|
+
"description": "过滤器默认字段"
|
|
592
|
+
},
|
|
593
|
+
"inlineHelpText": {
|
|
594
|
+
"type": "string",
|
|
595
|
+
"description": "提示文本"
|
|
596
|
+
},
|
|
597
|
+
"unique": {
|
|
598
|
+
"type": "boolean",
|
|
599
|
+
"description": "重复"
|
|
600
|
+
},
|
|
601
|
+
"optionsFunction": {
|
|
602
|
+
"type": "string",
|
|
603
|
+
"description": "字段选项函数名称"
|
|
604
|
+
},
|
|
605
|
+
"min": {
|
|
606
|
+
"type": ["integer", "string"],
|
|
607
|
+
"description": "最小长度。支持字符串,数字,金额,日期类型字段"
|
|
608
|
+
},
|
|
609
|
+
"max": {
|
|
610
|
+
"type": ["integer", "string"],
|
|
611
|
+
"description": "最大长度。支持字符串,数字,金额,日期类型字段"
|
|
612
|
+
},
|
|
613
|
+
"blackbox": {
|
|
614
|
+
"type": "boolean",
|
|
615
|
+
"description": "不校验字段类型"
|
|
616
|
+
},
|
|
617
|
+
"disabled": {
|
|
618
|
+
"type": "boolean",
|
|
619
|
+
"description": "禁用"
|
|
620
|
+
},
|
|
621
|
+
"reference_sort": {
|
|
622
|
+
"type": "object",
|
|
623
|
+
"description": "排序方式"
|
|
624
|
+
},
|
|
625
|
+
"reference_limit": {
|
|
626
|
+
"type": "number",
|
|
627
|
+
"description": "一次最多显示数据"
|
|
628
|
+
},
|
|
629
|
+
"is_company_only": {
|
|
630
|
+
"type": "boolean",
|
|
631
|
+
"description": "本公司"
|
|
632
|
+
},
|
|
633
|
+
"is_company_limited": {
|
|
634
|
+
"type": ["boolean", "string"],
|
|
635
|
+
"description": "本公司"
|
|
636
|
+
},
|
|
637
|
+
"system": {
|
|
638
|
+
"type": "string"
|
|
639
|
+
},
|
|
640
|
+
"depend_on": {
|
|
641
|
+
"type": "array"
|
|
642
|
+
},
|
|
643
|
+
"defaultIcon": {
|
|
644
|
+
"type": "string"
|
|
645
|
+
},
|
|
646
|
+
"showIcon": {
|
|
647
|
+
"type": "boolean"
|
|
648
|
+
},
|
|
649
|
+
"primary": {
|
|
650
|
+
"type": "boolean",
|
|
651
|
+
"description": "主键"
|
|
652
|
+
},
|
|
653
|
+
"generated": {
|
|
654
|
+
"type": "boolean",
|
|
655
|
+
"description": "自增"
|
|
656
|
+
},
|
|
657
|
+
"fieldDBType": {
|
|
658
|
+
"type": "string",
|
|
659
|
+
"description": "字段数据库类型"
|
|
660
|
+
},
|
|
661
|
+
"collection": {
|
|
662
|
+
"type": "string",
|
|
663
|
+
"description": "对应对象名"
|
|
664
|
+
},
|
|
665
|
+
"language": {
|
|
666
|
+
"type": "string",
|
|
667
|
+
"description": "模板名"
|
|
668
|
+
},
|
|
669
|
+
"create": {
|
|
670
|
+
"type": "boolean",
|
|
671
|
+
"description": "关联时是否允许创建"
|
|
672
|
+
},
|
|
673
|
+
"regEx": {
|
|
674
|
+
"type": "object",
|
|
675
|
+
"description": "正则表达式"
|
|
676
|
+
},
|
|
677
|
+
"formula": {
|
|
678
|
+
"type": "string",
|
|
679
|
+
"description": "公式"
|
|
680
|
+
},
|
|
681
|
+
"data_type": {
|
|
682
|
+
"type": "string",
|
|
683
|
+
"description": "数据类型",
|
|
684
|
+
"anyOf": [
|
|
685
|
+
{
|
|
686
|
+
"enum": [
|
|
687
|
+
"text",
|
|
688
|
+
"boolean",
|
|
689
|
+
"date",
|
|
690
|
+
"datetime",
|
|
691
|
+
"number",
|
|
692
|
+
"currency",
|
|
693
|
+
"percent"
|
|
694
|
+
]
|
|
247
695
|
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
696
|
+
]
|
|
697
|
+
},
|
|
698
|
+
"summary_object": {
|
|
699
|
+
"type": "string",
|
|
700
|
+
"description": "要汇总的对象"
|
|
701
|
+
},
|
|
702
|
+
"summary_type": {
|
|
703
|
+
"type": "string",
|
|
704
|
+
"description": "汇总类型",
|
|
705
|
+
"anyOf": [
|
|
706
|
+
{
|
|
707
|
+
"enum": ["count", "sum", "min", "max", "avg"]
|
|
256
708
|
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
709
|
+
]
|
|
710
|
+
},
|
|
711
|
+
"summary_field": {
|
|
712
|
+
"type": "string",
|
|
713
|
+
"description": "要聚合的字段"
|
|
714
|
+
},
|
|
715
|
+
"summary_filters": {
|
|
716
|
+
"type": ["array", "string"],
|
|
717
|
+
"description": "要汇总的子表记录的过滤条件"
|
|
718
|
+
},
|
|
719
|
+
"formula_blank_value": {
|
|
720
|
+
"type": "string",
|
|
721
|
+
"description": "空白字段处理,zeroes表示将空白字段视为零,blanks表示将空白字段视为空白,默认为zeroes",
|
|
722
|
+
"anyOf": [
|
|
723
|
+
{
|
|
724
|
+
"enum": ["zeroes", "blanks"]
|
|
265
725
|
}
|
|
726
|
+
]
|
|
266
727
|
},
|
|
267
|
-
"
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
"patternProperties": {
|
|
271
|
-
"^[a-zA-Z_]\\w*(\\.\\$\\.\\w+)?[a-zA-Z0-9]*$": {
|
|
272
|
-
"$ref": "#/definitions/trigger"
|
|
273
|
-
}
|
|
274
|
-
}
|
|
728
|
+
"filters": {
|
|
729
|
+
"type": ["array", "string"],
|
|
730
|
+
"description": "过滤条件"
|
|
275
731
|
},
|
|
276
|
-
"
|
|
277
|
-
|
|
732
|
+
"filtersFunction": {
|
|
733
|
+
"type": "string",
|
|
734
|
+
"description": "过滤条件函数名称"
|
|
278
735
|
},
|
|
279
|
-
"
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
"patternProperties": {
|
|
283
|
-
"^[a-zA-Z_]\\w*(\\.\\$\\.\\w+)?[a-zA-Z0-9]*$": {
|
|
284
|
-
"$ref": "#/definitions/listener"
|
|
285
|
-
}
|
|
286
|
-
}
|
|
736
|
+
"relatedList": {
|
|
737
|
+
"type": "boolean",
|
|
738
|
+
"description": "用于表示是否在相关表的详细页面中作为子表显示"
|
|
287
739
|
},
|
|
288
|
-
"
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
"initialValues": {
|
|
292
|
-
"type": "string",
|
|
293
|
-
"description": "表单初始化数据时执行, 函数的返回值作为新建数据的默认值"
|
|
294
|
-
},
|
|
295
|
-
"onSubmit": {
|
|
296
|
-
"type": "string",
|
|
297
|
-
"description": "表单提交时执行, 参数为表单中的字段值,如果成功返回undefined,如果失败返回错误数组"
|
|
298
|
-
},
|
|
299
|
-
"validate": {
|
|
300
|
-
"type": "string",
|
|
301
|
-
"description": "表单字段修改时执行, 传入表单中的字段值,如果成功返回undefined,如果失败返回错误数组"
|
|
302
|
-
},
|
|
303
|
-
"onRendered": {
|
|
304
|
-
"type": "string",
|
|
305
|
-
"description": "表单加载完成后执行"
|
|
306
|
-
},
|
|
307
|
-
"onDestroy": {
|
|
308
|
-
"type": "string",
|
|
309
|
-
"description": "表单销毁时执行"
|
|
310
|
-
},
|
|
311
|
-
"onValuesChange": {
|
|
312
|
-
"type": "string",
|
|
313
|
-
"description": "表单字段修改时执行"
|
|
314
|
-
}
|
|
315
|
-
}
|
|
740
|
+
"write_requires_master_read": {
|
|
741
|
+
"type": "boolean",
|
|
742
|
+
"description": "设置主记录上创建、编辑或删除子记录所需的最低访问级别。此字段仅适用于master_detail字段类型。true--允许具有'读取'访问权限的用户创建、编辑或删除子记录。false = 允许具有'读取/写入'访问权限的用户创建、编辑或删除子记录的权限。此设置比 true 更严格,并且是默认值。"
|
|
316
743
|
},
|
|
317
|
-
"
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
},
|
|
321
|
-
"
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
"type": "object",
|
|
327
|
-
"additionalProperties": false,
|
|
328
|
-
"patternProperties": {
|
|
329
|
-
"^[a-zA-Z_]\\w*(\\.\\$\\.\\w+)?[a-zA-Z0-9]*$": {
|
|
330
|
-
"$ref": "#/definitions/page"
|
|
331
|
-
}
|
|
332
|
-
}
|
|
744
|
+
"picklist": {
|
|
745
|
+
"type": "string",
|
|
746
|
+
"description": "指定字段的选项列表值集"
|
|
747
|
+
},
|
|
748
|
+
"modal_mode": {
|
|
749
|
+
"type": "string"
|
|
750
|
+
},
|
|
751
|
+
"visible_on": {
|
|
752
|
+
"type": "string"
|
|
333
753
|
},
|
|
334
|
-
"
|
|
335
|
-
|
|
336
|
-
|
|
754
|
+
"amis": {
|
|
755
|
+
"type": "object",
|
|
756
|
+
"description": "amis属性"
|
|
337
757
|
},
|
|
338
|
-
"
|
|
339
|
-
|
|
340
|
-
|
|
758
|
+
"editorDidMount": {
|
|
759
|
+
"type": "string",
|
|
760
|
+
"description": "编辑器渲染完成后执行"
|
|
341
761
|
},
|
|
342
|
-
"
|
|
343
|
-
|
|
344
|
-
|
|
762
|
+
"enable_enhanced_lookup": {
|
|
763
|
+
"type": "boolean",
|
|
764
|
+
"description": "启用增强lookup模式,当开启时,该字段会弹出窗口显示可选项!"
|
|
765
|
+
},
|
|
766
|
+
"enable_thousands": {
|
|
767
|
+
"type": "boolean",
|
|
768
|
+
"description": "显示千分符"
|
|
345
769
|
}
|
|
770
|
+
}
|
|
346
771
|
},
|
|
347
|
-
"
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
"autonumber",
|
|
413
|
-
"markdown",
|
|
414
|
-
"formula",
|
|
415
|
-
"summary"
|
|
416
|
-
]
|
|
417
|
-
}
|
|
418
|
-
]
|
|
419
|
-
},
|
|
420
|
-
"sort_no": {
|
|
421
|
-
"type": "integer",
|
|
422
|
-
"description": "排序号, 默认值100"
|
|
423
|
-
},
|
|
424
|
-
"group": {
|
|
425
|
-
"type": "string",
|
|
426
|
-
"description": "分组名称"
|
|
427
|
-
},
|
|
428
|
-
"defaultValue": {
|
|
429
|
-
"type": [
|
|
430
|
-
"string",
|
|
431
|
-
"boolean",
|
|
432
|
-
"array",
|
|
433
|
-
"integer"
|
|
434
|
-
],
|
|
435
|
-
"description": "默认值"
|
|
436
|
-
},
|
|
437
|
-
"allowedValues": {
|
|
438
|
-
"type": [
|
|
439
|
-
"string",
|
|
440
|
-
"boolean",
|
|
441
|
-
"array"
|
|
442
|
-
],
|
|
443
|
-
"description": "允许的值"
|
|
444
|
-
},
|
|
445
|
-
"multiple": {
|
|
446
|
-
"type": "boolean",
|
|
447
|
-
"description": "支持多选"
|
|
448
|
-
},
|
|
449
|
-
"required": {
|
|
450
|
-
"type": [
|
|
451
|
-
"boolean",
|
|
452
|
-
"string"
|
|
453
|
-
],
|
|
454
|
-
"description": "是否必填"
|
|
455
|
-
},
|
|
456
|
-
"enable_encryption": {
|
|
457
|
-
"type": [
|
|
458
|
-
"boolean"
|
|
459
|
-
],
|
|
460
|
-
"description": "是否加密"
|
|
461
|
-
},
|
|
462
|
-
"is_wide": {
|
|
463
|
-
"type": "boolean",
|
|
464
|
-
"description": "是否宽字段,如果为true,则在详细页面,一个字段占一行"
|
|
465
|
-
},
|
|
466
|
-
"readonly": {
|
|
467
|
-
"type": "boolean",
|
|
468
|
-
"description": "是否只读"
|
|
469
|
-
},
|
|
470
|
-
"static": {
|
|
471
|
-
"type": "boolean",
|
|
472
|
-
"description": "静态模式,显示为只读,但是可以通过默认值,自动填充或自定义脚本设置该字段值"
|
|
473
|
-
},
|
|
474
|
-
"hidden": {
|
|
475
|
-
"type": "boolean",
|
|
476
|
-
"description": "是否隐藏"
|
|
477
|
-
},
|
|
478
|
-
"omit": {
|
|
479
|
-
"type": "boolean",
|
|
480
|
-
"description": "忽略此字段"
|
|
481
|
-
},
|
|
482
|
-
"index": {
|
|
483
|
-
"type": "boolean",
|
|
484
|
-
"description": "创建索引"
|
|
485
|
-
},
|
|
486
|
-
"searchable": {
|
|
487
|
-
"type": "boolean",
|
|
488
|
-
"description": "允许搜索"
|
|
489
|
-
},
|
|
490
|
-
"sortable": {
|
|
491
|
-
"type": "boolean",
|
|
492
|
-
"description": "允许排序"
|
|
493
|
-
},
|
|
494
|
-
"precision": {
|
|
495
|
-
"type": "integer",
|
|
496
|
-
"description": "数值类型字段的最大长度,默认值18"
|
|
497
|
-
},
|
|
498
|
-
"scale": {
|
|
499
|
-
"type": "integer",
|
|
500
|
-
"description": "数值类型的小数位数,默认值2"
|
|
501
|
-
},
|
|
502
|
-
"reference_to": {
|
|
503
|
-
"type": [
|
|
504
|
-
"string",
|
|
505
|
-
"array"
|
|
506
|
-
],
|
|
507
|
-
"description": "引用的对象"
|
|
508
|
-
},
|
|
509
|
-
"reference_to_field": {
|
|
510
|
-
"type": "string",
|
|
511
|
-
"description": "引用的对象的字段,按照此字段去查找相关记录"
|
|
512
|
-
},
|
|
513
|
-
"modal_mode": {
|
|
514
|
-
"type": "string",
|
|
515
|
-
"description": "lookup字段弹出框模式: 'dialog' | 'drawer' ",
|
|
516
|
-
"enum": [
|
|
517
|
-
"dialog",
|
|
518
|
-
"drawer"
|
|
519
|
-
]
|
|
520
|
-
},
|
|
521
|
-
"show_as_qr": {
|
|
522
|
-
"type": "boolean",
|
|
523
|
-
"description": "显示为二维码"
|
|
524
|
-
},
|
|
525
|
-
"table_schema": {
|
|
526
|
-
"type": ["string", "object"],
|
|
527
|
-
"description": "lookup字段弹出框表格定义,可以定义为列表视图名称或列表属性"
|
|
528
|
-
},
|
|
529
|
-
"rows": {
|
|
530
|
-
"type": "integer",
|
|
531
|
-
"description": "多行文本默认行数"
|
|
532
|
-
},
|
|
533
|
-
"firstOption": {
|
|
534
|
-
"type": "boolean"
|
|
535
|
-
},
|
|
536
|
-
"options": {
|
|
537
|
-
"anyOf": [
|
|
538
|
-
{
|
|
539
|
-
"items": {
|
|
540
|
-
"type": "string",
|
|
541
|
-
"pattern": "^[^:]+(:[^:]+)?(:[0-9a-fA-F]{6})?$"
|
|
542
|
-
},
|
|
543
|
-
"type": "array",
|
|
544
|
-
"title": "One option per line. Three definition formats are supported. value, label:value, label:value:FFFFFF, the third format can set the color of each option, if supply as a string array."
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
"items": {
|
|
548
|
-
"type": "object",
|
|
549
|
-
"required": [
|
|
550
|
-
"label",
|
|
551
|
-
"value"
|
|
552
|
-
],
|
|
553
|
-
"additionalProperties": false,
|
|
554
|
-
"properties": {
|
|
555
|
-
"label": {
|
|
556
|
-
"type": "string",
|
|
557
|
-
"title": "Options display name"
|
|
558
|
-
},
|
|
559
|
-
"value": {
|
|
560
|
-
"type": ["string", "number", "boolean"],
|
|
561
|
-
"title": "Options value saved as"
|
|
562
|
-
},
|
|
563
|
-
"color": {
|
|
564
|
-
"title": "Options color showed as background",
|
|
565
|
-
"anyOf": [
|
|
566
|
-
{
|
|
567
|
-
"type": "string",
|
|
568
|
-
"pattern": "^[0-9a-fA-F]{6}$"
|
|
569
|
-
}
|
|
570
|
-
]
|
|
571
|
-
},
|
|
572
|
-
"description" : {
|
|
573
|
-
"type": "string",
|
|
574
|
-
"title": "Options description "
|
|
575
|
-
},
|
|
576
|
-
"icon": {
|
|
577
|
-
"type": "string",
|
|
578
|
-
"title": "Options icon name"
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
},
|
|
582
|
-
"type": "array",
|
|
583
|
-
"title": "The label and value propertie is required if supply as a object array."
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
"type": "string",
|
|
587
|
-
"title": "Only support a function string if supply as a string."
|
|
588
|
-
}
|
|
589
|
-
],
|
|
590
|
-
"description": "字段选项"
|
|
591
|
-
},
|
|
592
|
-
"auto_fill_mapping": {
|
|
593
|
-
"anyOf": [
|
|
594
|
-
{
|
|
595
|
-
"items": {
|
|
596
|
-
"type": "object",
|
|
597
|
-
"required": ["from", "to"],
|
|
598
|
-
"additionalProperties": false,
|
|
599
|
-
"properties": {
|
|
600
|
-
"from" : {
|
|
601
|
-
"type": "string",
|
|
602
|
-
"title": "从:引用对象中的字段"
|
|
603
|
-
},
|
|
604
|
-
"to" : {
|
|
605
|
-
"type": "string",
|
|
606
|
-
"title": "填充到:当前表单字段"
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
},
|
|
610
|
-
"type": "array",
|
|
611
|
-
"title": "自动填充规则,选择数据后,将按此规则中的映射关系把引用对象中的字段值自动填充到当前表单字段中。"
|
|
612
|
-
}
|
|
613
|
-
],
|
|
614
|
-
"description": "自动填充规则,选择数据后,将按此规则中的映射关系把引用对象中的字段值自动填充到当前表单字段中。"
|
|
615
|
-
},
|
|
616
|
-
"description": {
|
|
617
|
-
"type": "string",
|
|
618
|
-
"description": "字段描述"
|
|
619
|
-
},
|
|
620
|
-
"filterable": {
|
|
621
|
-
"type": "boolean",
|
|
622
|
-
"description": "过滤器默认字段"
|
|
623
|
-
},
|
|
624
|
-
"inlineHelpText": {
|
|
625
|
-
"type": "string",
|
|
626
|
-
"description": "提示文本"
|
|
627
|
-
},
|
|
628
|
-
"unique": {
|
|
629
|
-
"type": "boolean",
|
|
630
|
-
"description": "重复"
|
|
631
|
-
},
|
|
632
|
-
"optionsFunction": {
|
|
633
|
-
"type": "string",
|
|
634
|
-
"description": "字段选项函数名称"
|
|
635
|
-
},
|
|
636
|
-
"min": {
|
|
637
|
-
"type": [
|
|
638
|
-
"integer",
|
|
639
|
-
"string"
|
|
640
|
-
],
|
|
641
|
-
"description": "最小长度。支持字符串,数字,金额,日期类型字段"
|
|
642
|
-
},
|
|
643
|
-
"max": {
|
|
644
|
-
"type": [
|
|
645
|
-
"integer",
|
|
646
|
-
"string"
|
|
647
|
-
],
|
|
648
|
-
"description": "最大长度。支持字符串,数字,金额,日期类型字段"
|
|
649
|
-
},
|
|
650
|
-
"blackbox": {
|
|
651
|
-
"type": "boolean",
|
|
652
|
-
"description": "不校验字段类型"
|
|
653
|
-
},
|
|
654
|
-
"disabled": {
|
|
655
|
-
"type": "boolean",
|
|
656
|
-
"description": "禁用"
|
|
657
|
-
},
|
|
658
|
-
"reference_sort": {
|
|
659
|
-
"type": "object",
|
|
660
|
-
"description": "排序方式"
|
|
661
|
-
},
|
|
662
|
-
"reference_limit": {
|
|
663
|
-
"type": "number",
|
|
664
|
-
"description": "一次最多显示数据"
|
|
665
|
-
},
|
|
666
|
-
"is_company_only": {
|
|
667
|
-
"type": "boolean",
|
|
668
|
-
"description": "本公司"
|
|
669
|
-
},
|
|
670
|
-
"is_company_limited": {
|
|
671
|
-
"type": [
|
|
672
|
-
"boolean",
|
|
673
|
-
"string"
|
|
674
|
-
],
|
|
675
|
-
"description": "本公司"
|
|
676
|
-
},
|
|
677
|
-
"system": {
|
|
678
|
-
"type": "string"
|
|
679
|
-
},
|
|
680
|
-
"depend_on": {
|
|
681
|
-
"type": "array"
|
|
682
|
-
},
|
|
683
|
-
"defaultIcon": {
|
|
684
|
-
"type": "string"
|
|
685
|
-
},
|
|
686
|
-
"showIcon": {
|
|
687
|
-
"type": "boolean"
|
|
688
|
-
},
|
|
689
|
-
"primary": {
|
|
690
|
-
"type": "boolean",
|
|
691
|
-
"description": "主键"
|
|
692
|
-
},
|
|
693
|
-
"generated": {
|
|
694
|
-
"type": "boolean",
|
|
695
|
-
"description": "自增"
|
|
696
|
-
},
|
|
697
|
-
"fieldDBType": {
|
|
698
|
-
"type": "string",
|
|
699
|
-
"description": "字段数据库类型"
|
|
700
|
-
},
|
|
701
|
-
"collection": {
|
|
702
|
-
"type": "string",
|
|
703
|
-
"description": "对应对象名"
|
|
704
|
-
},
|
|
705
|
-
"language": {
|
|
706
|
-
"type": "string",
|
|
707
|
-
"description": "模板名"
|
|
708
|
-
},
|
|
709
|
-
"create": {
|
|
710
|
-
"type": "boolean",
|
|
711
|
-
"description": "关联时是否允许创建"
|
|
712
|
-
},
|
|
713
|
-
"regEx": {
|
|
714
|
-
"type": "object",
|
|
715
|
-
"description": "正则表达式"
|
|
716
|
-
},
|
|
717
|
-
"formula": {
|
|
718
|
-
"type": "string",
|
|
719
|
-
"description": "公式"
|
|
720
|
-
},
|
|
721
|
-
"data_type": {
|
|
722
|
-
"type": "string",
|
|
723
|
-
"description": "数据类型",
|
|
724
|
-
"anyOf": [
|
|
725
|
-
{
|
|
726
|
-
"enum": [
|
|
727
|
-
"text",
|
|
728
|
-
"boolean",
|
|
729
|
-
"date",
|
|
730
|
-
"datetime",
|
|
731
|
-
"number",
|
|
732
|
-
"currency",
|
|
733
|
-
"percent"
|
|
734
|
-
]
|
|
735
|
-
}
|
|
736
|
-
]
|
|
737
|
-
},
|
|
738
|
-
"summary_object": {
|
|
739
|
-
"type": "string",
|
|
740
|
-
"description": "要汇总的对象"
|
|
741
|
-
},
|
|
742
|
-
"summary_type": {
|
|
743
|
-
"type": "string",
|
|
744
|
-
"description": "汇总类型",
|
|
745
|
-
"anyOf": [
|
|
746
|
-
{
|
|
747
|
-
"enum": [
|
|
748
|
-
"count",
|
|
749
|
-
"sum",
|
|
750
|
-
"min",
|
|
751
|
-
"max",
|
|
752
|
-
"avg"
|
|
753
|
-
]
|
|
754
|
-
}
|
|
755
|
-
]
|
|
756
|
-
},
|
|
757
|
-
"summary_field": {
|
|
758
|
-
"type": "string",
|
|
759
|
-
"description": "要聚合的字段"
|
|
760
|
-
},
|
|
761
|
-
"summary_filters": {
|
|
762
|
-
"type": [
|
|
763
|
-
"array",
|
|
764
|
-
"string"
|
|
765
|
-
],
|
|
766
|
-
"description": "要汇总的子表记录的过滤条件"
|
|
767
|
-
},
|
|
768
|
-
"formula_blank_value": {
|
|
769
|
-
"type": "string",
|
|
770
|
-
"description": "空白字段处理,zeroes表示将空白字段视为零,blanks表示将空白字段视为空白,默认为zeroes",
|
|
771
|
-
"anyOf": [
|
|
772
|
-
{
|
|
773
|
-
"enum": [
|
|
774
|
-
"zeroes",
|
|
775
|
-
"blanks"
|
|
776
|
-
]
|
|
777
|
-
}
|
|
778
|
-
]
|
|
779
|
-
},
|
|
780
|
-
"filters": {
|
|
781
|
-
"type": [
|
|
782
|
-
"array",
|
|
783
|
-
"string"
|
|
784
|
-
],
|
|
785
|
-
"description": "过滤条件"
|
|
786
|
-
},
|
|
787
|
-
"filtersFunction": {
|
|
788
|
-
"type": "string",
|
|
789
|
-
"description": "过滤条件函数名称"
|
|
790
|
-
},
|
|
791
|
-
"relatedList": {
|
|
792
|
-
"type": "boolean",
|
|
793
|
-
"description": "用于表示是否在相关表的详细页面中作为子表显示"
|
|
794
|
-
},
|
|
795
|
-
"write_requires_master_read": {
|
|
796
|
-
"type": "boolean",
|
|
797
|
-
"description": "设置主记录上创建、编辑或删除子记录所需的最低访问级别。此字段仅适用于master_detail字段类型。true--允许具有'读取'访问权限的用户创建、编辑或删除子记录。false = 允许具有'读取/写入'访问权限的用户创建、编辑或删除子记录的权限。此设置比 true 更严格,并且是默认值。"
|
|
798
|
-
},
|
|
799
|
-
"picklist": {
|
|
800
|
-
"type": "string",
|
|
801
|
-
"description": "指定字段的选项列表值集"
|
|
802
|
-
},
|
|
803
|
-
"modal_mode": {
|
|
804
|
-
"type": "string"
|
|
805
|
-
},
|
|
806
|
-
"visible_on": {
|
|
807
|
-
"type": "string"
|
|
808
|
-
},
|
|
809
|
-
"amis": {
|
|
810
|
-
"type": "object",
|
|
811
|
-
"description": "amis属性"
|
|
812
|
-
},
|
|
813
|
-
"editorDidMount":{
|
|
814
|
-
"type": "string",
|
|
815
|
-
"description": "编辑器渲染完成后执行"
|
|
816
|
-
},
|
|
817
|
-
"enable_enhanced_lookup": {
|
|
818
|
-
"type": "boolean",
|
|
819
|
-
"description": "启用增强lookup模式,当开启时,该字段会弹出窗口显示可选项!"
|
|
820
|
-
},
|
|
821
|
-
"enable_thousands": {
|
|
822
|
-
"type": "boolean",
|
|
823
|
-
"description": "显示千分符"
|
|
824
|
-
}
|
|
825
|
-
}
|
|
772
|
+
"list_view": {
|
|
773
|
+
"type": "object",
|
|
774
|
+
"description": "列表视图",
|
|
775
|
+
"additionalProperties": false,
|
|
776
|
+
"properties": {
|
|
777
|
+
"label": {
|
|
778
|
+
"type": "string",
|
|
779
|
+
"description": "视图显示名称"
|
|
780
|
+
},
|
|
781
|
+
"type": {
|
|
782
|
+
"type": "string",
|
|
783
|
+
"description": "列表显示类型,默认为list",
|
|
784
|
+
"enum": ["calendar"]
|
|
785
|
+
},
|
|
786
|
+
"filter_scope": {
|
|
787
|
+
"type": "string",
|
|
788
|
+
"description": "范围",
|
|
789
|
+
"enum": ["space", "mine", "all"]
|
|
790
|
+
},
|
|
791
|
+
"columns": {
|
|
792
|
+
"type": "array",
|
|
793
|
+
"description": "列表显示的字段"
|
|
794
|
+
},
|
|
795
|
+
"mobile_columns": {
|
|
796
|
+
"type": "array",
|
|
797
|
+
"description": "手机模式下列表显示的字段"
|
|
798
|
+
},
|
|
799
|
+
"extra_columns": {
|
|
800
|
+
"type": "array",
|
|
801
|
+
"description": "额外在列表显示的字段"
|
|
802
|
+
},
|
|
803
|
+
"order": {
|
|
804
|
+
"type": "array",
|
|
805
|
+
"description": "排序"
|
|
806
|
+
},
|
|
807
|
+
"filters": {
|
|
808
|
+
"type": ["array", "string"],
|
|
809
|
+
"description": "过滤条件"
|
|
810
|
+
},
|
|
811
|
+
"filter_fields": {
|
|
812
|
+
"type": "array",
|
|
813
|
+
"description": "过滤的字段"
|
|
814
|
+
},
|
|
815
|
+
"sort": {
|
|
816
|
+
"type": "array",
|
|
817
|
+
"description": "排序"
|
|
818
|
+
},
|
|
819
|
+
"options": {
|
|
820
|
+
"type": "object",
|
|
821
|
+
"description": "额外选项"
|
|
822
|
+
},
|
|
823
|
+
"show_count": {
|
|
824
|
+
"type": "boolean",
|
|
825
|
+
"description": "显示条目数"
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
"action": {
|
|
830
|
+
"type": "object",
|
|
831
|
+
"description": "操作按钮",
|
|
832
|
+
"additionalProperties": false,
|
|
833
|
+
"properties": {
|
|
834
|
+
"name": {
|
|
835
|
+
"type": "string",
|
|
836
|
+
"description": "按钮名称"
|
|
826
837
|
},
|
|
827
|
-
"
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
"additionalProperties": false,
|
|
831
|
-
"properties": {
|
|
832
|
-
"label": {
|
|
833
|
-
"type": "string",
|
|
834
|
-
"description": "视图显示名称"
|
|
835
|
-
},
|
|
836
|
-
"type": {
|
|
837
|
-
"type": "string",
|
|
838
|
-
"description": "列表显示类型,默认为list",
|
|
839
|
-
"enum": [
|
|
840
|
-
"calendar"
|
|
841
|
-
]
|
|
842
|
-
},
|
|
843
|
-
"filter_scope": {
|
|
844
|
-
"type": "string",
|
|
845
|
-
"description": "范围",
|
|
846
|
-
"enum": [
|
|
847
|
-
"space",
|
|
848
|
-
"mine",
|
|
849
|
-
"all"
|
|
850
|
-
]
|
|
851
|
-
},
|
|
852
|
-
"columns": {
|
|
853
|
-
"type": "array",
|
|
854
|
-
"description": "列表显示的字段"
|
|
855
|
-
},
|
|
856
|
-
"mobile_columns": {
|
|
857
|
-
"type": "array",
|
|
858
|
-
"description": "手机模式下列表显示的字段"
|
|
859
|
-
},
|
|
860
|
-
"extra_columns": {
|
|
861
|
-
"type": "array",
|
|
862
|
-
"description": "额外在列表显示的字段"
|
|
863
|
-
},
|
|
864
|
-
"order": {
|
|
865
|
-
"type": "array",
|
|
866
|
-
"description": "排序"
|
|
867
|
-
},
|
|
868
|
-
"filters": {
|
|
869
|
-
"type": [
|
|
870
|
-
"array",
|
|
871
|
-
"string"
|
|
872
|
-
],
|
|
873
|
-
"description": "过滤条件"
|
|
874
|
-
},
|
|
875
|
-
"filter_fields": {
|
|
876
|
-
"type": "array",
|
|
877
|
-
"description": "过滤的字段"
|
|
878
|
-
},
|
|
879
|
-
"sort": {
|
|
880
|
-
"type": "array",
|
|
881
|
-
"description": "排序"
|
|
882
|
-
},
|
|
883
|
-
"options": {
|
|
884
|
-
"type": "object",
|
|
885
|
-
"description": "额外选项"
|
|
886
|
-
},
|
|
887
|
-
"show_count": {
|
|
888
|
-
"type": "boolean",
|
|
889
|
-
"description": "显示条目数"
|
|
890
|
-
}
|
|
891
|
-
}
|
|
838
|
+
"label": {
|
|
839
|
+
"type": "string",
|
|
840
|
+
"description": "按钮显示名称"
|
|
892
841
|
},
|
|
893
|
-
"
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
"description": "执行的脚本"
|
|
932
|
-
},
|
|
933
|
-
"sort": {
|
|
934
|
-
"type": "number",
|
|
935
|
-
"description": "显示顺序"
|
|
936
|
-
},
|
|
937
|
-
"is_file": {
|
|
938
|
-
"type": "boolean",
|
|
939
|
-
"description": "是否是附件"
|
|
940
|
-
},
|
|
941
|
-
"type": {
|
|
942
|
-
"type": "string",
|
|
943
|
-
"description": "按钮类型",
|
|
944
|
-
"anyOf": [
|
|
945
|
-
{
|
|
946
|
-
"enum": [
|
|
947
|
-
"script",
|
|
948
|
-
"amis_button"
|
|
949
|
-
]
|
|
950
|
-
}
|
|
951
|
-
]
|
|
952
|
-
},
|
|
953
|
-
"amis_schema": {
|
|
954
|
-
"type": [
|
|
955
|
-
"string",
|
|
956
|
-
"object"
|
|
957
|
-
],
|
|
958
|
-
"description": ""
|
|
959
|
-
}
|
|
842
|
+
"is_enable": {
|
|
843
|
+
"type": "boolean",
|
|
844
|
+
"description": "是否启用"
|
|
845
|
+
},
|
|
846
|
+
"visible": {
|
|
847
|
+
"type": ["string", "boolean"],
|
|
848
|
+
"description": "是否有效"
|
|
849
|
+
},
|
|
850
|
+
"on": {
|
|
851
|
+
"type": "string",
|
|
852
|
+
"description": "显示位置, list: 只显示在列表右上角; record: 显示在记录查看页右上角,以及列表视图中每项的下拉菜单中; record_more: 显示在记录查看页右上角的“更多”下拉菜单中,以及列表视图中每项的下拉菜单中; list_item: 只显示在列表视图中每项的下拉菜单中; record_only: 只显示在记录查看页右上角;record_only_more: 只显示在记录查看页右上角的“更多”下拉菜单中",
|
|
853
|
+
"enum": [
|
|
854
|
+
"list",
|
|
855
|
+
"record",
|
|
856
|
+
"record_more",
|
|
857
|
+
"list_item",
|
|
858
|
+
"record_only",
|
|
859
|
+
"record_only_more"
|
|
860
|
+
]
|
|
861
|
+
},
|
|
862
|
+
"todo": {
|
|
863
|
+
"type": "string",
|
|
864
|
+
"description": "执行的脚本"
|
|
865
|
+
},
|
|
866
|
+
"sort": {
|
|
867
|
+
"type": "number",
|
|
868
|
+
"description": "显示顺序"
|
|
869
|
+
},
|
|
870
|
+
"is_file": {
|
|
871
|
+
"type": "boolean",
|
|
872
|
+
"description": "是否是附件"
|
|
873
|
+
},
|
|
874
|
+
"type": {
|
|
875
|
+
"type": "string",
|
|
876
|
+
"description": "按钮类型",
|
|
877
|
+
"anyOf": [
|
|
878
|
+
{
|
|
879
|
+
"enum": ["script", "amis_button"]
|
|
960
880
|
}
|
|
881
|
+
]
|
|
961
882
|
},
|
|
962
|
-
"
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
883
|
+
"amis_schema": {
|
|
884
|
+
"type": ["string", "object"],
|
|
885
|
+
"description": ""
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
"permission": {
|
|
890
|
+
"type": "object",
|
|
891
|
+
"description": "对象权限",
|
|
892
|
+
"additionalProperties": false,
|
|
893
|
+
"properties": {
|
|
894
|
+
"allowRead": {
|
|
895
|
+
"type": "boolean",
|
|
896
|
+
"description": "允许查看"
|
|
897
|
+
},
|
|
898
|
+
"allowCreate": {
|
|
899
|
+
"type": "boolean",
|
|
900
|
+
"description": "允许创建"
|
|
901
|
+
},
|
|
902
|
+
"allowEdit": {
|
|
903
|
+
"type": "boolean",
|
|
904
|
+
"description": "允许修改"
|
|
905
|
+
},
|
|
906
|
+
"allowDelete": {
|
|
907
|
+
"type": "boolean",
|
|
908
|
+
"description": "允许删除"
|
|
909
|
+
},
|
|
910
|
+
"viewAllRecords": {
|
|
911
|
+
"type": "boolean",
|
|
912
|
+
"description": "查看所有记录"
|
|
913
|
+
},
|
|
914
|
+
"modifyAllRecords": {
|
|
915
|
+
"type": "boolean",
|
|
916
|
+
"description": "修改所有记录"
|
|
917
|
+
},
|
|
918
|
+
"viewCompanyRecords": {
|
|
919
|
+
"type": "boolean",
|
|
920
|
+
"description": "查看本分部"
|
|
921
|
+
},
|
|
922
|
+
"modifyCompanyRecords": {
|
|
923
|
+
"type": "boolean",
|
|
924
|
+
"description": "修改本分部"
|
|
925
|
+
},
|
|
926
|
+
"allowReadFiles": {
|
|
927
|
+
"type": "boolean",
|
|
928
|
+
"description": "允许查看附件"
|
|
929
|
+
},
|
|
930
|
+
"allowCreateFiles": {
|
|
931
|
+
"type": "boolean",
|
|
932
|
+
"description": "允许创建附件"
|
|
933
|
+
},
|
|
934
|
+
"allowEditFiles": {
|
|
935
|
+
"type": "boolean",
|
|
936
|
+
"description": "允许修改附件"
|
|
937
|
+
},
|
|
938
|
+
"allowDeleteFiles": {
|
|
939
|
+
"type": "boolean",
|
|
940
|
+
"description": "允许删除附件"
|
|
941
|
+
},
|
|
942
|
+
"viewAllFiles": {
|
|
943
|
+
"type": "boolean",
|
|
944
|
+
"description": "查看所有附件"
|
|
945
|
+
},
|
|
946
|
+
"modifyAllFiles": {
|
|
947
|
+
"type": "boolean",
|
|
948
|
+
"description": "修改所有附件"
|
|
949
|
+
},
|
|
950
|
+
"disabled_list_views": {
|
|
951
|
+
"type": "array",
|
|
952
|
+
"description": "禁用对象列表视图"
|
|
953
|
+
},
|
|
954
|
+
"disabled_actions": {
|
|
955
|
+
"type": "array",
|
|
956
|
+
"description": "禁用操作按钮"
|
|
957
|
+
},
|
|
958
|
+
"unreadable_fields": {
|
|
959
|
+
"type": "array",
|
|
960
|
+
"description": "不可见字段"
|
|
961
|
+
},
|
|
962
|
+
"uneditable_fields": {
|
|
963
|
+
"type": "array",
|
|
964
|
+
"description": "不可编辑字段"
|
|
965
|
+
},
|
|
966
|
+
"unrelated_objects": {
|
|
967
|
+
"type": "array",
|
|
968
|
+
"description": "禁用关联对象"
|
|
969
|
+
},
|
|
970
|
+
"uneditable_related_list": {
|
|
971
|
+
"type": "array",
|
|
972
|
+
"description": "关联对象只读"
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
"trigger": {
|
|
977
|
+
"type": "object",
|
|
978
|
+
"description": "触发器",
|
|
979
|
+
"additionalProperties": false,
|
|
980
|
+
"properties": {
|
|
981
|
+
"name": {
|
|
982
|
+
"type": "string",
|
|
983
|
+
"description": "操作名称"
|
|
1048
984
|
},
|
|
1049
|
-
"
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
"additionalProperties": false,
|
|
1053
|
-
"properties": {
|
|
1054
|
-
"name": {
|
|
1055
|
-
"type": "string",
|
|
1056
|
-
"description": "操作名称"
|
|
1057
|
-
},
|
|
1058
|
-
"label": {
|
|
1059
|
-
"type": "string",
|
|
1060
|
-
"description": "操作显示名称"
|
|
1061
|
-
},
|
|
1062
|
-
"is_enable": {
|
|
1063
|
-
"type": "boolean",
|
|
1064
|
-
"description": "是否启用"
|
|
1065
|
-
},
|
|
1066
|
-
"on": {
|
|
1067
|
-
"type": "string",
|
|
1068
|
-
"description": "显示位置, client: 在客户端执行; server: 在服务端执行",
|
|
1069
|
-
"enum": [
|
|
1070
|
-
"client",
|
|
1071
|
-
"server"
|
|
1072
|
-
]
|
|
1073
|
-
},
|
|
1074
|
-
"when": {
|
|
1075
|
-
"type": "string",
|
|
1076
|
-
"description": "在什么时候触发:before.insert: 新增记录之前;after.insert:新增记录之后;before.update:修改记录之前;after.update:修改记录之后;after.remove:删除记录之前;after.remove:删除记录之后;",
|
|
1077
|
-
"enum": [
|
|
1078
|
-
"before.insert",
|
|
1079
|
-
"after.insert",
|
|
1080
|
-
"before.update",
|
|
1081
|
-
"after.update",
|
|
1082
|
-
"before.remove",
|
|
1083
|
-
"after.remove"
|
|
1084
|
-
]
|
|
1085
|
-
},
|
|
1086
|
-
"todo": {
|
|
1087
|
-
"type": "string",
|
|
1088
|
-
"description": "执行的脚本"
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
985
|
+
"label": {
|
|
986
|
+
"type": "string",
|
|
987
|
+
"description": "操作显示名称"
|
|
1091
988
|
},
|
|
1092
|
-
"
|
|
1093
|
-
|
|
989
|
+
"is_enable": {
|
|
990
|
+
"type": "boolean",
|
|
991
|
+
"description": "是否启用"
|
|
992
|
+
},
|
|
993
|
+
"on": {
|
|
994
|
+
"type": "string",
|
|
995
|
+
"description": "显示位置, client: 在客户端执行; server: 在服务端执行",
|
|
996
|
+
"enum": ["client", "server"]
|
|
997
|
+
},
|
|
998
|
+
"when": {
|
|
999
|
+
"type": "string",
|
|
1000
|
+
"description": "在什么时候触发:before.insert: 新增记录之前;after.insert:新增记录之后;before.update:修改记录之前;after.update:修改记录之后;after.remove:删除记录之前;after.remove:删除记录之后;",
|
|
1001
|
+
"enum": [
|
|
1002
|
+
"before.insert",
|
|
1003
|
+
"after.insert",
|
|
1004
|
+
"before.update",
|
|
1005
|
+
"after.update",
|
|
1006
|
+
"before.remove",
|
|
1007
|
+
"after.remove"
|
|
1008
|
+
]
|
|
1009
|
+
},
|
|
1010
|
+
"todo": {
|
|
1011
|
+
"type": "string",
|
|
1012
|
+
"description": "执行的脚本"
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
},
|
|
1016
|
+
"method": {
|
|
1017
|
+
"type": "string"
|
|
1018
|
+
},
|
|
1019
|
+
"listener": {
|
|
1020
|
+
"type": "object",
|
|
1021
|
+
"description": "触发器",
|
|
1022
|
+
"additionalProperties": false,
|
|
1023
|
+
"properties": {
|
|
1024
|
+
"name": {
|
|
1025
|
+
"type": "string",
|
|
1026
|
+
"description": "监听器名称"
|
|
1094
1027
|
},
|
|
1095
|
-
"
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
"additionalProperties": false,
|
|
1099
|
-
"properties": {
|
|
1100
|
-
"name": {
|
|
1101
|
-
"type": "string",
|
|
1102
|
-
"description": "监听器名称"
|
|
1103
|
-
},
|
|
1104
|
-
"listenTo": {
|
|
1105
|
-
"type": "string",
|
|
1106
|
-
"description": "监听对象名"
|
|
1107
|
-
},
|
|
1108
|
-
"beforeInsert": {
|
|
1109
|
-
"type": "string",
|
|
1110
|
-
"description": "新增前事件"
|
|
1111
|
-
},
|
|
1112
|
-
"beforeUpdate": {
|
|
1113
|
-
"type": "string",
|
|
1114
|
-
"description": "修改前事件"
|
|
1115
|
-
},
|
|
1116
|
-
"beforeDelete": {
|
|
1117
|
-
"type": "string",
|
|
1118
|
-
"description": "删除前事件"
|
|
1119
|
-
},
|
|
1120
|
-
"afterInsert": {
|
|
1121
|
-
"type": "string",
|
|
1122
|
-
"description": "新增后事件"
|
|
1123
|
-
},
|
|
1124
|
-
"afterUpdate": {
|
|
1125
|
-
"type": "string",
|
|
1126
|
-
"description": "修改后事件"
|
|
1127
|
-
},
|
|
1128
|
-
"afterDelete": {
|
|
1129
|
-
"type": "string",
|
|
1130
|
-
"description": "删除后事件"
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1028
|
+
"listenTo": {
|
|
1029
|
+
"type": "string",
|
|
1030
|
+
"description": "监听对象名"
|
|
1133
1031
|
},
|
|
1134
|
-
"
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1032
|
+
"beforeInsert": {
|
|
1033
|
+
"type": "string",
|
|
1034
|
+
"description": "新增前事件"
|
|
1035
|
+
},
|
|
1036
|
+
"beforeUpdate": {
|
|
1037
|
+
"type": "string",
|
|
1038
|
+
"description": "修改前事件"
|
|
1039
|
+
},
|
|
1040
|
+
"beforeDelete": {
|
|
1041
|
+
"type": "string",
|
|
1042
|
+
"description": "删除前事件"
|
|
1043
|
+
},
|
|
1044
|
+
"afterInsert": {
|
|
1045
|
+
"type": "string",
|
|
1046
|
+
"description": "新增后事件"
|
|
1047
|
+
},
|
|
1048
|
+
"afterUpdate": {
|
|
1049
|
+
"type": "string",
|
|
1050
|
+
"description": "修改后事件"
|
|
1051
|
+
},
|
|
1052
|
+
"afterDelete": {
|
|
1053
|
+
"type": "string",
|
|
1054
|
+
"description": "删除后事件"
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
"page": {
|
|
1059
|
+
"type": "object",
|
|
1060
|
+
"description": "微页面",
|
|
1061
|
+
"additionalProperties": false,
|
|
1062
|
+
"properties": {
|
|
1063
|
+
"lookup": {
|
|
1064
|
+
"type": "object",
|
|
1065
|
+
"additionalProperties": false,
|
|
1066
|
+
"description": "lookup类型微页面",
|
|
1067
|
+
"properties": {
|
|
1068
|
+
"is_enable": {
|
|
1069
|
+
"type": "boolean",
|
|
1070
|
+
"description": "是否启用"
|
|
1071
|
+
},
|
|
1072
|
+
"amis_schema": {
|
|
1073
|
+
"type": "object",
|
|
1074
|
+
"description": "amis schema"
|
|
1154
1075
|
}
|
|
1076
|
+
}
|
|
1155
1077
|
}
|
|
1078
|
+
}
|
|
1156
1079
|
}
|
|
1157
|
-
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|