@steedos/standard-object-database 2.7.1-beta.6 → 2.7.1-beta.7
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.
|
@@ -10,204 +10,255 @@
|
|
|
10
10
|
"id": "service_field_design",
|
|
11
11
|
"body": [
|
|
12
12
|
{
|
|
13
|
-
"type": "
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
"type": "tpl",
|
|
20
|
-
"tpl": "<p><h4><strong>设计字段布局</strong></h4> ${designObjectLabel}<span style=\"color: rgb(149, 165, 166);\"> ${designObjectName}</span></p>",
|
|
21
|
-
"id": "u:4c7bef616400"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
13
|
+
"type": "form",
|
|
14
|
+
"title": "",
|
|
15
|
+
"body": [
|
|
16
|
+
{
|
|
17
|
+
"type": "panel",
|
|
18
|
+
"header": {
|
|
24
19
|
"type": "flex",
|
|
25
|
-
"id": "u:
|
|
20
|
+
"id": "u:b2c8374e93fe",
|
|
26
21
|
"items": [
|
|
27
22
|
{
|
|
28
|
-
"type": "
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
23
|
+
"type": "tpl",
|
|
24
|
+
"tpl": "<p><h4><strong>设计字段布局</strong></h4> ${designObjectLabel}<span style=\"color: rgb(149, 165, 166);\"> ${designObjectName}</span></p>",
|
|
25
|
+
"id": "u:4c7bef616400"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "flex",
|
|
29
|
+
"id": "u:1bfde03380f8",
|
|
30
|
+
"items": [
|
|
31
|
+
{
|
|
32
|
+
"type": "button",
|
|
33
|
+
"id": "u:ec9931ea883c",
|
|
34
|
+
"actionType": "dialog",
|
|
35
|
+
"dialog": {
|
|
36
|
+
"type": "dialog",
|
|
37
|
+
"title": "设置分组",
|
|
38
|
+
"size": "lg",
|
|
39
|
+
"data": {
|
|
40
|
+
"&": "$$",
|
|
41
|
+
"groups": "${groups|filter:is_default:isFalse|filter:is_hidden:isFalse}",
|
|
42
|
+
"designObjectName": "${designObjectName}",
|
|
43
|
+
"__updateDone": false
|
|
44
|
+
},
|
|
44
45
|
"body": [
|
|
45
46
|
{
|
|
46
|
-
"type": "
|
|
47
|
+
"type": "form",
|
|
48
|
+
"mode": "normal",
|
|
49
|
+
"onEvent": {
|
|
50
|
+
"change": {
|
|
51
|
+
"actions": [
|
|
52
|
+
{
|
|
53
|
+
"actionType": "setValue",
|
|
54
|
+
"componentId": "steedos-set-group",
|
|
55
|
+
"args": {
|
|
56
|
+
"value": {
|
|
57
|
+
"__updateDone": true
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
47
64
|
"body": [
|
|
48
65
|
{
|
|
49
|
-
"type": "
|
|
50
|
-
"
|
|
51
|
-
"fields": [
|
|
52
|
-
{
|
|
53
|
-
"name": "group_name",
|
|
54
|
-
"label": "名称",
|
|
55
|
-
"type": "text",
|
|
56
|
-
"id": "u:31952daa443c"
|
|
57
|
-
},
|
|
66
|
+
"type": "service",
|
|
67
|
+
"body": [
|
|
58
68
|
{
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
"type": "steedos-input-table",
|
|
70
|
+
"enableDialog": false,
|
|
71
|
+
"input-table": {
|
|
72
|
+
"onEvent": {
|
|
73
|
+
"change": {
|
|
74
|
+
"actions": [
|
|
75
|
+
{
|
|
76
|
+
"actionType": "setValue",
|
|
77
|
+
"componentId": "steedos-set-group",
|
|
78
|
+
"args": {
|
|
79
|
+
"value": {
|
|
80
|
+
"__updateDone": false
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
68
87
|
},
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
88
|
+
"fields": [
|
|
89
|
+
{
|
|
90
|
+
"name": "group_name",
|
|
91
|
+
"label": "名称",
|
|
92
|
+
"type": "text",
|
|
93
|
+
"id": "u:31952daa443c"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "visible_on",
|
|
97
|
+
"label": "显示条件",
|
|
98
|
+
"type": "text",
|
|
99
|
+
"amis": {
|
|
100
|
+
"type": "input-formula",
|
|
101
|
+
"name": "formula",
|
|
102
|
+
"evalMode": false,
|
|
103
|
+
"variableMode": "tabs",
|
|
104
|
+
"variables": "${variables}"
|
|
105
|
+
},
|
|
106
|
+
"id": "u:8d7551abcd28",
|
|
107
|
+
"value": null
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "collapsed",
|
|
111
|
+
"label": "默认折叠",
|
|
112
|
+
"type": "boolean"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"columns": [
|
|
116
|
+
{
|
|
117
|
+
"name": "group_name"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "visible_on"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "collapsed",
|
|
124
|
+
"width": 50
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"name": "groups",
|
|
128
|
+
"addable": true,
|
|
129
|
+
"editable": true,
|
|
130
|
+
"removable": true,
|
|
131
|
+
"draggable": false,
|
|
132
|
+
"id": "u:776ec89804c0",
|
|
133
|
+
"label": "",
|
|
134
|
+
"visibleOn": "${variables}"
|
|
76
135
|
}
|
|
77
136
|
],
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
{
|
|
86
|
-
"name": "collapsed",
|
|
87
|
-
"width": 50
|
|
137
|
+
"api": {
|
|
138
|
+
"method": "get",
|
|
139
|
+
"url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/${designObjectName}/fields/options",
|
|
140
|
+
"adaptor": "payload = {data: {variables: SteedosUI.getFormulaVariables(payload.data.options)}};return payload;",
|
|
141
|
+
"cache": 30000,
|
|
142
|
+
"headers": {
|
|
143
|
+
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
88
144
|
}
|
|
89
|
-
|
|
90
|
-
"name": "groups",
|
|
91
|
-
"addable": true,
|
|
92
|
-
"editable": true,
|
|
93
|
-
"removable": true,
|
|
94
|
-
"draggable": false,
|
|
95
|
-
"id": "u:776ec89804c0",
|
|
96
|
-
"label": "",
|
|
97
|
-
"visibleOn": "${variables}"
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"api": {
|
|
101
|
-
"method": "get",
|
|
102
|
-
"url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/${designObjectName}/fields/options",
|
|
103
|
-
"adaptor": "payload = {data: {variables: SteedosUI.getFormulaVariables(payload.data.options)}};return payload;",
|
|
104
|
-
"cache": 30000,
|
|
105
|
-
"headers": {
|
|
106
|
-
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
145
|
+
}
|
|
107
146
|
}
|
|
108
|
-
|
|
147
|
+
]
|
|
109
148
|
}
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
],
|
|
113
|
-
"onEvent": {
|
|
114
|
-
"confirm": {
|
|
149
|
+
],
|
|
115
150
|
"actions": [
|
|
116
151
|
{
|
|
117
|
-
"
|
|
118
|
-
"
|
|
152
|
+
"type": "action",
|
|
153
|
+
"label": "取消",
|
|
154
|
+
"actionType": "cancel"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"type": "action",
|
|
158
|
+
"label": "确认",
|
|
159
|
+
"level": "primary",
|
|
160
|
+
"onEvent": {
|
|
161
|
+
"click": {
|
|
162
|
+
"actions": [
|
|
163
|
+
{
|
|
164
|
+
"actionType": "custom",
|
|
165
|
+
"script": "///整理分组数据\nconst defaultGroupName = \"未分组\";\nconst hiddenGroupName = \"隐藏\";\nlet setting_groups = _.cloneDeep(event.data.groups);\nif (!_.find(setting_groups, { is_default: true })) {\n setting_groups.unshift({\n \"id\": defaultGroupName,\n \"group_name\": defaultGroupName,\n \"visible_on\": \"\",\n \"is_default\": true\n })\n}\nif (!_.find(setting_groups, { is_hidden: true })) {\n setting_groups.push({\n id: hiddenGroupName,\n group_name: hiddenGroupName,\n visible_on: \"\",\n is_hidden: true\n });\n}\nsetting_groups.forEach(function (group) {\n if (!group.id || group.id != group.group_name) {\n group.id = group.group_name;\n }\n if (/\\$\\{.+\\}/.test(group.visible_on)) {\n group.visible_on = group.visible_on.replaceAll('${', '\\\\${');\n }\n})\n\n//整理字段与分组关系的数据\nlet design_field = {};\nlet oldGroup = _.cloneDeep(event.data.design_field);\nsetting_groups.forEach(function (group) {\n if (_.has(oldGroup, group.id)) {\n design_field[group.id] = oldGroup[group.id];\n oldGroup = _.omit(oldGroup, group.id);\n } else {\n design_field[group.id] = [];\n }\n})\nif (oldGroup && !_.isEmpty(oldGroup)) {\n _.forEach(oldGroup, function (value, key) {\n design_field[defaultGroupName] = _.unionBy(design_field[defaultGroupName], value);\n });\n}\n\n//未分组 放在所有分组开头,隐藏 放在所有分组最后\nconst defaultGroup = design_field[defaultGroupName];\nconst hiddenGroup = design_field[hiddenGroupName];\ndelete design_field[defaultGroupName];\ndelete design_field[hiddenGroupName];\ndesign_field = _.merge({ [defaultGroupName]: defaultGroup }, design_field, { [hiddenGroupName]: hiddenGroup });\n\n//根据design_field调整groups顺序,设置分组与保存时需要groups按照顺序\nconst keys = _.keys(design_field);\nsetting_groups = _.sortBy(setting_groups, function (group) { return _.findIndex(keys, function (key) { return key == group.group_name }) });\n\ndoAction({\n actionType: 'setValue',\n componentId: 'form_field_design',\n args: {\n value: {\n groups: setting_groups,\n design_field\n }\n }\n});"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"actionType": "closeDialog"
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"disabledOn": "${!__updateDone}"
|
|
119
174
|
}
|
|
120
|
-
]
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
"className": ""
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"type": "button",
|
|
135
|
-
"label": "新增字段",
|
|
136
|
-
"actionType": "dialog",
|
|
137
|
-
"id": "u:5857ae729799",
|
|
138
|
-
"visible": false,
|
|
139
|
-
"dialog": {
|
|
140
|
-
"type": "dialog",
|
|
141
|
-
"title": "新增字段",
|
|
142
|
-
"data": {
|
|
143
|
-
"appId": "${appId}",
|
|
144
|
-
"global": "${global}",
|
|
145
|
-
"context": "${context}",
|
|
146
|
-
"designObjectName": "${designObjectName}",
|
|
147
|
-
"_master": "${_master}"
|
|
175
|
+
],
|
|
176
|
+
"id": "steedos-set-group",
|
|
177
|
+
"closeOnEsc": false,
|
|
178
|
+
"closeOnOutside": false,
|
|
179
|
+
"showCloseButton": true,
|
|
180
|
+
"showErrorMsg": true,
|
|
181
|
+
"showLoading": true
|
|
182
|
+
},
|
|
183
|
+
"label": "设置分组",
|
|
184
|
+
"className": "",
|
|
185
|
+
"disabledOn": "${!__changeDone}"
|
|
148
186
|
},
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"
|
|
157
|
-
|
|
187
|
+
{
|
|
188
|
+
"type": "button",
|
|
189
|
+
"label": "新增字段",
|
|
190
|
+
"actionType": "dialog",
|
|
191
|
+
"id": "u:5857ae729799",
|
|
192
|
+
"visible": false,
|
|
193
|
+
"dialog": {
|
|
194
|
+
"type": "dialog",
|
|
195
|
+
"title": "新增字段",
|
|
196
|
+
"data": {
|
|
197
|
+
"appId": "${appId}",
|
|
198
|
+
"global": "${global}",
|
|
199
|
+
"context": "${context}",
|
|
200
|
+
"designObjectName": "${designObjectName}",
|
|
201
|
+
"_master": "${_master}"
|
|
158
202
|
},
|
|
159
|
-
"
|
|
160
|
-
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
}
|
|
203
|
+
"body": [
|
|
204
|
+
{
|
|
205
|
+
"type": "steedos-object-form",
|
|
206
|
+
"label": "对象表单",
|
|
207
|
+
"objectApiName": "object_fields",
|
|
208
|
+
"recordId": "",
|
|
209
|
+
"mode": "edit",
|
|
210
|
+
"defaultData": {
|
|
211
|
+
"object": "${designObjectName}"
|
|
212
|
+
},
|
|
213
|
+
"fieldsExtend": {
|
|
214
|
+
"object": {
|
|
215
|
+
"amis": {
|
|
216
|
+
"disabledOn": "true"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"group": {
|
|
220
|
+
"amis": {
|
|
221
|
+
"hidden": true
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"fields": "",
|
|
226
|
+
"id": "u:b71796d3cb8c",
|
|
227
|
+
"className": "mb-4",
|
|
228
|
+
"enableTabs": true,
|
|
229
|
+
"tabsMode": "line"
|
|
169
230
|
}
|
|
170
|
-
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
231
|
+
],
|
|
232
|
+
"showCloseButton": true,
|
|
233
|
+
"showErrorMsg": true,
|
|
234
|
+
"showLoading": true,
|
|
235
|
+
"closeOnEsc": false,
|
|
236
|
+
"dataMapSwitch": false,
|
|
237
|
+
"size": "lg",
|
|
238
|
+
"id": "u:066b3884bdd8"
|
|
176
239
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
"type": "button",
|
|
189
|
-
"label": "保存",
|
|
190
|
-
"actionType": "submit",
|
|
191
|
-
"id": "u:d9039421ea6b",
|
|
192
|
-
"target": "form_field_design",
|
|
193
|
-
"level": "primary"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"type": "button",
|
|
243
|
+
"label": "保存",
|
|
244
|
+
"actionType": "submit",
|
|
245
|
+
"id": "u:d9039421ea6b",
|
|
246
|
+
"target": "form_field_design",
|
|
247
|
+
"level": "primary",
|
|
248
|
+
"disabledOn": "${!__changeDone}"
|
|
249
|
+
}
|
|
250
|
+
]
|
|
194
251
|
}
|
|
195
|
-
]
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
"isFixedWidth": false
|
|
206
|
-
},
|
|
207
|
-
"body": [
|
|
208
|
-
{
|
|
209
|
-
"type": "form",
|
|
210
|
-
"title": "",
|
|
252
|
+
],
|
|
253
|
+
"style": {
|
|
254
|
+
"position": "static",
|
|
255
|
+
"flexWrap": "nowrap",
|
|
256
|
+
"justifyContent": "space-between",
|
|
257
|
+
"alignItems": "baseline"
|
|
258
|
+
},
|
|
259
|
+
"isFixedHeight": false,
|
|
260
|
+
"isFixedWidth": false
|
|
261
|
+
},
|
|
211
262
|
"body": [
|
|
212
263
|
{
|
|
213
264
|
"type": "steedos-board",
|
|
@@ -340,55 +391,73 @@
|
|
|
340
391
|
},
|
|
341
392
|
"cardSource": "${fields}",
|
|
342
393
|
"vertical": true,
|
|
394
|
+
"value": "${fieldForGroup}",
|
|
343
395
|
"onEvent": {
|
|
344
396
|
"change": {
|
|
345
397
|
"actions": [
|
|
346
398
|
{
|
|
347
|
-
"actionType": "
|
|
348
|
-
"
|
|
399
|
+
"actionType": "setValue",
|
|
400
|
+
"componentId": "service_field_design",
|
|
401
|
+
"args": {
|
|
402
|
+
"value": {
|
|
403
|
+
"__changeDone": false
|
|
404
|
+
}
|
|
405
|
+
}
|
|
349
406
|
}
|
|
350
407
|
]
|
|
351
408
|
}
|
|
352
|
-
}
|
|
353
|
-
"value": "${fieldForGroup}"
|
|
409
|
+
}
|
|
354
410
|
}
|
|
355
411
|
],
|
|
356
|
-
"
|
|
357
|
-
"
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
412
|
+
"className": "Panel--default max-w-4xl m-auto",
|
|
413
|
+
"id": "u:3a90104cb6b4"
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"id": "form_field_design",
|
|
417
|
+
"api": {
|
|
418
|
+
"url": "${context.rootUrl}/graphql",
|
|
419
|
+
"method": "post",
|
|
420
|
+
"dataType": "json",
|
|
421
|
+
"headers": {
|
|
422
|
+
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
423
|
+
},
|
|
424
|
+
"requestAdaptor": "var graphqlOrder = \"\";\nvar field_groups = _.cloneDeep(api.data.groups);\n//先修改字段,使系统对象自行自定义\n//根据design_field,修改对象字段的sort_no与groups\nvar index = 1;\nconst defaultGroupName = _.find(field_groups, { 'is_default': true })?.name || \"未分组\";\nconst hiddenGroupName = _.find(field_groups, { 'is_hidden': true })?.name || \"隐藏\";\n_.forEach(api.data.design_field, function (items, key) {\n let group = key;\n if (key == defaultGroupName || key == hiddenGroupName) {\n group = null;\n }\n _.forEach(items, function (item) {\n const field = _.find(api.data.fields, { 'id': item });\n //如果是在隐藏分组里的字段,就给visible_on属性赋予{{false}};如果不在隐藏分组里,就判断来自数据库内的visible_on属性是不是{{false}},是就清除,不是就保持不变\n const visible_on = key == hiddenGroupName ? \"{{false}}\" : (field.attr_visible_on == \"{{false}}\" ? \"{{true}}\" : field.attr_visible_on);\n let docJson = {\n sort_no: index * 10,\n group, visible_on\n }\n if (field.id == field._id && field.is_system) {\n docJson = {\n object: api.data.$self.designObjectName,\n type: field.type,\n _name: field._name,\n label: field.label,\n sort_no: index * 10,\n group,\n visible_on,\n is_system: field.is_system\n }\n }\n if (key != hiddenGroupName) {\n docJson.hidden = false;\n }\n let itemOrder = 'upsert' + index + ':object_fields__upsert(id:\"' + item + '\" , doc:' + JSON.stringify(JSON.stringify(docJson)) + '){_id}\\n';\n graphqlOrder += itemOrder;\n index++;\n })\n})\n\n//根据groups,修改对象的字段分组field_groups\n_.remove(field_groups, { is_default: true });\n_.remove(field_groups, { is_hidden: true });\nfield_groups = field_groups.map(function (group) {\n return _.omit(group, 'id');\n})\nconst keys = _.keys(api.data.design_field);\nfield_groups = _.sortBy(field_groups, function (group) { return _.findIndex(keys, function (key) { return key == group.group_name }) });\nconst groupOrder = 'upsert0:objects__upsert(id:\"' + api.data.$self.designObjectId + '\" , doc:' + JSON.stringify(JSON.stringify({ field_groups, name: api.data.$self.designObjectName })) + ') {_id}';\ngraphqlOrder += groupOrder;\n\n\ngraphqlOrder = 'mutation {' + graphqlOrder + '}';\nreturn {\n ...api,\n data: {\n query: graphqlOrder\n }\n}",
|
|
425
|
+
"adaptor": "if (payload.errors) {\n payload.status = 2;\n payload.msg = window.t ? window.t(payload.errors[\n 0\n ].message) : payload.errors[\n 0\n ].message;\n}\nreturn payload;",
|
|
426
|
+
"messages": {},
|
|
427
|
+
"data": {
|
|
428
|
+
"design_field": "${design_field}",
|
|
429
|
+
"groups": "${groups}",
|
|
430
|
+
"fields": "${fields}",
|
|
431
|
+
"$self": "$$"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
"visibleOn": "${dataInitialed}",
|
|
435
|
+
"wrapWithPanel": false,
|
|
436
|
+
"name": "form_field_design",
|
|
437
|
+
"onEvent": {
|
|
438
|
+
"submitSucc": {
|
|
439
|
+
"weight": 0,
|
|
440
|
+
"actions": [
|
|
441
|
+
{
|
|
442
|
+
"actionType": "custom",
|
|
443
|
+
"script": "setTimeout(() => {\n doAction({\n \"actionType\": \"broadcast\",\n \"args\": {\n \"eventName\": \"@data.changed.object_fields\"\n }\n });\n}, 500);\n\n\n"
|
|
372
444
|
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
"
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
"
|
|
380
|
-
"
|
|
381
|
-
{
|
|
382
|
-
"
|
|
383
|
-
"script": "setTimeout(() => {\n doAction({\n \"actionType\": \"broadcast\",\n \"args\": {\n \"eventName\": \"@data.changed.object_fields\"\n }\n });\n}, 500);\n\n\n"
|
|
445
|
+
]
|
|
446
|
+
},
|
|
447
|
+
"change": {
|
|
448
|
+
"actions": [
|
|
449
|
+
{
|
|
450
|
+
"actionType": "setValue",
|
|
451
|
+
"componentId": "service_field_design",
|
|
452
|
+
"args": {
|
|
453
|
+
"value": {
|
|
454
|
+
"__changeDone": true
|
|
384
455
|
}
|
|
385
|
-
|
|
456
|
+
}
|
|
386
457
|
}
|
|
387
|
-
|
|
458
|
+
]
|
|
388
459
|
}
|
|
389
|
-
|
|
390
|
-
"className": "Panel--default max-w-4xl m-auto",
|
|
391
|
-
"id": "u:3a90104cb6b4"
|
|
460
|
+
}
|
|
392
461
|
}
|
|
393
462
|
],
|
|
394
463
|
"api": {
|
|
@@ -424,7 +493,8 @@
|
|
|
424
493
|
},
|
|
425
494
|
"initFetch": false,
|
|
426
495
|
"data": {
|
|
427
|
-
"eventData": ""
|
|
496
|
+
"eventData": "",
|
|
497
|
+
"__changeDone": true
|
|
428
498
|
}
|
|
429
499
|
}
|
|
430
500
|
],
|
|
@@ -199,6 +199,18 @@
|
|
|
199
199
|
"data": {
|
|
200
200
|
"context": {}
|
|
201
201
|
},
|
|
202
|
+
"onEvent": {
|
|
203
|
+
"init": {
|
|
204
|
+
"weight": 0,
|
|
205
|
+
"actions": [
|
|
206
|
+
{
|
|
207
|
+
"actionType": "custom",
|
|
208
|
+
"script": "//初始化时给外层dialog加上类名,使过滤组件popover正常显示\n$('.steedos-object-fields-form-page').closest('.amis-dialog-widget.antd-Modal').addClass('steedos-overflow-visible-dialog');"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
},
|
|
202
213
|
"name": "object_fields_form",
|
|
214
|
+
"className": "steedos-object-fields-form-page",
|
|
203
215
|
"id": "steedos_object_fields_service"
|
|
204
216
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-object-database",
|
|
3
|
-
"version": "2.7.1-beta.
|
|
3
|
+
"version": "2.7.1-beta.7",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@steedos-widgets/amis-lib": "^1.0.22",
|
|
15
|
-
"@steedos/metadata-core": "2.7.1-beta.
|
|
16
|
-
"@steedos/service-object-mixin": "2.7.1-beta.
|
|
17
|
-
"@steedos/standard-objects": "2.7.1-beta.
|
|
15
|
+
"@steedos/metadata-core": "2.7.1-beta.7",
|
|
16
|
+
"@steedos/service-object-mixin": "2.7.1-beta.7",
|
|
17
|
+
"@steedos/standard-objects": "2.7.1-beta.7",
|
|
18
18
|
"amis-formula": "~6.3.0",
|
|
19
19
|
"moleculer-bullmq": "3.0.0"
|
|
20
20
|
},
|
|
21
21
|
"repository": {},
|
|
22
22
|
"license": "MIT",
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "ac7c4ee3325e982e30d4891d67a782c84e4347e1"
|
|
24
24
|
}
|