@steedos/service-plugin-amis 2.3.0-beta.9 → 2.3.0
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/main/default/client/amis.render.client.js +60 -14
- package/main/default/client/creator.function.client.js +7 -6
- package/main/default/client/load.assets.client.js +19 -0
- package/main/default/pages/apps_form.page.amis.json +554 -0
- package/main/default/pages/apps_form.page.yml +14 -0
- package/main/default/pages/generate_object_tabs.page.amis.json +104 -0
- package/main/default/pages/generate_object_tabs.page.yml +7 -0
- package/main/default/pages/listview_form.page.amis.json +38 -23
- package/main/default/pages/object_layouts.page.amis.json +727 -706
- package/main/default/pages/space_user_info_record.page.amis.json +603 -0
- package/main/default/pages/space_user_info_record.page.yml +7 -0
- package/main/default/services/amis-design.service.js +157 -0
- package/main/default/services/metadata/listviews.service.js +96 -78
- package/main/default/services/metadata/objects.service.js +137 -0
- package/main/default/services/metadata/space_users.service.js +201 -0
- package/main/default/services/utils/fields/index.js +50 -58
- package/main/default/services/utils/graphql.js +2 -2
- package/main/default/services/utils/object-record.js +13 -5
- package/package.json +2 -2
- package/public/amis/amis.css +1 -1
|
@@ -0,0 +1,603 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "page",
|
|
3
|
+
"title": "Welcome to Steedos",
|
|
4
|
+
"body": [
|
|
5
|
+
{
|
|
6
|
+
"type": "service",
|
|
7
|
+
"name": "page_readonly_i6sPKAkRowmGb6GQb",
|
|
8
|
+
"id": "detail_i6sPKAkRowmGb6GQb",
|
|
9
|
+
"data": {},
|
|
10
|
+
"api": {
|
|
11
|
+
"method": "post",
|
|
12
|
+
"url": "${context.rootUrl}/graphql?rf=1667296468797",
|
|
13
|
+
"cache": 100,
|
|
14
|
+
"adaptor": "if (payload.data.data) {\n var data = payload.data.data[0];\n payload.data = {record: data};\n //window.postMessage(Object.assign({type: \"record.loaded\"}, {record: data}), \"*\")\n}\nreturn payload;\n",
|
|
15
|
+
"data": {
|
|
16
|
+
"query": "{data:space_users(filters:[\"_id\", \"=\", \"${id}\"]){_id,company_id,company_ids,name,username,email,email_verified,mobile,mobile_verified,organizations,organizations_parents,organization,position,manager,profile,contact_id,is_supplier,is_customer,work_phone,locale,sort_no,email_notification,sms_notification,user_accepted,password_expired,avatar,created,created_by,modified,modified_by,instance_state,_display:_ui{company_id,company_ids,email_verified,mobile_verified,organizations,organizations_parents,organization,manager,profile,contact_id,is_supplier,is_customer,locale,sort_no,email_notification,sms_notification,user_accepted,password_expired,avatar,created,created_by,modified,modified_by,instance_state}}}"
|
|
17
|
+
},
|
|
18
|
+
"headers": {
|
|
19
|
+
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"body": [
|
|
23
|
+
{
|
|
24
|
+
"type": "panel",
|
|
25
|
+
"title": "标题",
|
|
26
|
+
"header": {
|
|
27
|
+
"type": "wrapper",
|
|
28
|
+
"body": [
|
|
29
|
+
{
|
|
30
|
+
"type": "grid",
|
|
31
|
+
"columns": [
|
|
32
|
+
{
|
|
33
|
+
"body": [
|
|
34
|
+
{
|
|
35
|
+
"type": "grid",
|
|
36
|
+
"columns": [
|
|
37
|
+
{
|
|
38
|
+
"body": {
|
|
39
|
+
"type": "tpl",
|
|
40
|
+
"className": "block",
|
|
41
|
+
"tpl": "<img class='slds-icon slds-icon_container slds-icon-standard-user' src='${context.rootUrl}/unpkg.com/@salesforce-ux/design-system/assets/icons/standard/user.svg'>",
|
|
42
|
+
"id": "u:9207cb731ca4"
|
|
43
|
+
},
|
|
44
|
+
"md": "auto",
|
|
45
|
+
"className": "",
|
|
46
|
+
"columnClassName": "flex justify-center items-center",
|
|
47
|
+
"id": "u:cc87836b4d77"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"body": [
|
|
51
|
+
{
|
|
52
|
+
"type": "tpl",
|
|
53
|
+
"tpl": "我的资料",
|
|
54
|
+
"inline": false,
|
|
55
|
+
"wrapperComponent": "",
|
|
56
|
+
"style": {
|
|
57
|
+
"fontFamily": "",
|
|
58
|
+
"fontSize": 13
|
|
59
|
+
},
|
|
60
|
+
"className": "leading-none",
|
|
61
|
+
"id": "u:d1587714b279"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "tpl",
|
|
65
|
+
"tpl": "${record.name}",
|
|
66
|
+
"inline": false,
|
|
67
|
+
"wrapperComponent": "",
|
|
68
|
+
"style": {
|
|
69
|
+
"fontFamily": "",
|
|
70
|
+
"fontSize": 20,
|
|
71
|
+
"fontWeight": "bold",
|
|
72
|
+
"textAlign": "left"
|
|
73
|
+
},
|
|
74
|
+
"className": "leading-none",
|
|
75
|
+
"id": "u:cea8ff4d1169"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"id": "u:137fd50d3ef5"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"id": "u:49a7b98d4d92"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"md": 9,
|
|
85
|
+
"id": "u:16858b47c444"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"body": [],
|
|
89
|
+
"id": "u:34a9d6c22f03"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"id": "u:625cd251cce5"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"size": "xs",
|
|
96
|
+
"id": "u:e51302406b82"
|
|
97
|
+
},
|
|
98
|
+
"affixFooter": false,
|
|
99
|
+
"headerClassName": "",
|
|
100
|
+
"bodyClassName": "p-none",
|
|
101
|
+
"id": "u:c49c3f47954a"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "tabs",
|
|
105
|
+
"tabs": [
|
|
106
|
+
{
|
|
107
|
+
"title": "详情",
|
|
108
|
+
"id": "u:2bd9939746ef",
|
|
109
|
+
"body": [
|
|
110
|
+
{
|
|
111
|
+
"type": "form",
|
|
112
|
+
"persistData": false,
|
|
113
|
+
"promptPageLeave": false,
|
|
114
|
+
"name": "form_readonly_space_user_info",
|
|
115
|
+
"title": "",
|
|
116
|
+
"wrapWithPanel": false,
|
|
117
|
+
"body": [
|
|
118
|
+
{
|
|
119
|
+
"type": "fieldSet",
|
|
120
|
+
"title": "通用",
|
|
121
|
+
"collapsable": true,
|
|
122
|
+
"body": [
|
|
123
|
+
{
|
|
124
|
+
"name": "name",
|
|
125
|
+
"label": "姓名",
|
|
126
|
+
"labelRemark": "",
|
|
127
|
+
"required": true,
|
|
128
|
+
"type": "static-text",
|
|
129
|
+
"className": "m-1 slds-form-element_readonly",
|
|
130
|
+
"labelClassName": "text-left",
|
|
131
|
+
"quickEdit": false,
|
|
132
|
+
"clearValueOnHidden": true,
|
|
133
|
+
"id": "u:cfca5135d38a"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "username",
|
|
137
|
+
"label": "用户名",
|
|
138
|
+
"required": false,
|
|
139
|
+
"type": "static-text",
|
|
140
|
+
"className": "m-1 slds-form-element_readonly",
|
|
141
|
+
"labelClassName": "text-left",
|
|
142
|
+
"quickEdit": false,
|
|
143
|
+
"clearValueOnHidden": true,
|
|
144
|
+
"id": "u:8f293421dc26"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "email",
|
|
148
|
+
"label": "邮件",
|
|
149
|
+
"required": false,
|
|
150
|
+
"type": "static-text",
|
|
151
|
+
"className": "m-1 slds-form-element_readonly",
|
|
152
|
+
"labelClassName": "text-left",
|
|
153
|
+
"quickEdit": false,
|
|
154
|
+
"clearValueOnHidden": true,
|
|
155
|
+
"id": "u:96796db5e1f0"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "email_verified",
|
|
159
|
+
"label": "邮件已验证",
|
|
160
|
+
"required": false,
|
|
161
|
+
"type": "static",
|
|
162
|
+
"tpl": "<% if (data.email_verified) { %>\n <span class=\"slds-icon_container slds-icon-utility-check slds-current-color\" title=\"<%=data._display.email_verified%>\">\n <span ><%=data._display.email_verified%></span>\n </span>\n <% } %>",
|
|
163
|
+
"className": "m-1 slds-form-element_readonly",
|
|
164
|
+
"labelClassName": "text-left",
|
|
165
|
+
"quickEdit": false,
|
|
166
|
+
"visibleOn": "${global.mode ==='read' ? true : false}",
|
|
167
|
+
"clearValueOnHidden": true,
|
|
168
|
+
"id": "u:9dd07a8e4d52"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "mobile",
|
|
172
|
+
"label": "手机",
|
|
173
|
+
"required": true,
|
|
174
|
+
"type": "static-text",
|
|
175
|
+
"className": "m-1 slds-form-element_readonly",
|
|
176
|
+
"labelClassName": "text-left",
|
|
177
|
+
"quickEdit": false,
|
|
178
|
+
"clearValueOnHidden": true,
|
|
179
|
+
"id": "u:e6b778e340ed"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "mobile_verified",
|
|
183
|
+
"label": "手机已验证",
|
|
184
|
+
"required": false,
|
|
185
|
+
"type": "static",
|
|
186
|
+
"tpl": "<% if (data.mobile_verified) { %>\n <span class=\"slds-icon_container slds-icon-utility-check slds-current-color\" title=\"<%=data._display.mobile_verified%>\">\n <span ><%=data._display.mobile_verified%></span>\n </span>\n <% } %>",
|
|
187
|
+
"className": "m-1 slds-form-element_readonly",
|
|
188
|
+
"labelClassName": "text-left",
|
|
189
|
+
"quickEdit": false,
|
|
190
|
+
"visibleOn": "${global.mode ==='read' ? true : false}",
|
|
191
|
+
"clearValueOnHidden": true,
|
|
192
|
+
"id": "u:ce4b1eaaf305"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "organizations",
|
|
196
|
+
"label": "部门(多选)",
|
|
197
|
+
"required": true,
|
|
198
|
+
"type": "static",
|
|
199
|
+
"tpl": "\n <% if (data._display.organizations && data._display.organizations.length) { %><% data._display.organizations.forEach(function(item) { %> <a href=\"/app/admin/<%=item.objectName%>/view/<%=item.value%>\"><%=item.label%></a> <% }); %><% } %>\n ",
|
|
200
|
+
"className": "m-1 slds-form-element_readonly",
|
|
201
|
+
"labelClassName": "text-left",
|
|
202
|
+
"quickEdit": false,
|
|
203
|
+
"clearValueOnHidden": true,
|
|
204
|
+
"id": "u:a1d78a1894d1"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "organizations_parents",
|
|
208
|
+
"label": "部门(含上级)",
|
|
209
|
+
"required": false,
|
|
210
|
+
"type": "static",
|
|
211
|
+
"tpl": "\n <% if (data._display.organizations_parents && data._display.organizations_parents.length) { %><% data._display.organizations_parents.forEach(function(item) { %> <a href=\"/app/admin/<%=item.objectName%>/view/<%=item.value%>\"><%=item.label%></a> <% }); %><% } %>\n ",
|
|
212
|
+
"className": "m-1 slds-form-element_readonly",
|
|
213
|
+
"labelClassName": "text-left",
|
|
214
|
+
"quickEdit": false,
|
|
215
|
+
"visibleOn": "${global.mode ==='read' ? true : false}",
|
|
216
|
+
"clearValueOnHidden": true,
|
|
217
|
+
"id": "u:7ff38e62af20"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "organization",
|
|
221
|
+
"label": "主部门",
|
|
222
|
+
"required": false,
|
|
223
|
+
"type": "static",
|
|
224
|
+
"tpl": "<a href=\"/app/admin/${_display.organization.objectName}/view/${_display.organization.value}\">${_display.organization.label}</a>",
|
|
225
|
+
"className": "m-1 slds-form-element_readonly",
|
|
226
|
+
"labelClassName": "text-left",
|
|
227
|
+
"quickEdit": false,
|
|
228
|
+
"visibleOn": "${global.mode ==='read' ? true : false}",
|
|
229
|
+
"clearValueOnHidden": true,
|
|
230
|
+
"id": "u:ccf18b122391"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "company_ids",
|
|
234
|
+
"label": "分部(多选)",
|
|
235
|
+
"required": false,
|
|
236
|
+
"type": "static",
|
|
237
|
+
"tpl": "\n <% if (data._display.company_ids && data._display.company_ids.length) { %><% data._display.company_ids.forEach(function(item) { %> <a href=\"/app/admin/<%=item.objectName%>/view/<%=item.value%>\"><%=item.label%></a> <% }); %><% } %>\n ",
|
|
238
|
+
"className": "m-1 slds-form-element_readonly",
|
|
239
|
+
"labelClassName": "text-left",
|
|
240
|
+
"quickEdit": false,
|
|
241
|
+
"visibleOn": "${global.mode ==='read' ? true : false}",
|
|
242
|
+
"clearValueOnHidden": true,
|
|
243
|
+
"id": "u:51de8b9102f2"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "company_id",
|
|
247
|
+
"label": "主分部",
|
|
248
|
+
"required": false,
|
|
249
|
+
"type": "static",
|
|
250
|
+
"tpl": "<a href=\"/app/admin/${_display.company_id.objectName}/view/${_display.company_id.value}\">${_display.company_id.label}</a>",
|
|
251
|
+
"className": "m-1 slds-form-element_readonly",
|
|
252
|
+
"labelClassName": "text-left",
|
|
253
|
+
"quickEdit": false,
|
|
254
|
+
"visibleOn": "${global.mode ==='read' ? true : false}",
|
|
255
|
+
"clearValueOnHidden": true,
|
|
256
|
+
"id": "u:bae777e5b75b"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "position",
|
|
260
|
+
"label": "职务",
|
|
261
|
+
"required": false,
|
|
262
|
+
"type": "static-text",
|
|
263
|
+
"className": "m-1 slds-form-element_readonly",
|
|
264
|
+
"labelClassName": "text-left",
|
|
265
|
+
"quickEdit": false,
|
|
266
|
+
"clearValueOnHidden": true,
|
|
267
|
+
"id": "u:e7607ee04c53"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "manager",
|
|
271
|
+
"label": "上级主管",
|
|
272
|
+
"required": false,
|
|
273
|
+
"type": "static",
|
|
274
|
+
"tpl": "<a href=\"/app/admin/${_display.manager.objectName}/view/${_display.manager.value}\">${_display.manager.label}</a>",
|
|
275
|
+
"className": "m-1 slds-form-element_readonly",
|
|
276
|
+
"labelClassName": "text-left",
|
|
277
|
+
"quickEdit": false,
|
|
278
|
+
"clearValueOnHidden": true,
|
|
279
|
+
"id": "u:10c4fcc8cc2b"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "profile",
|
|
283
|
+
"label": "简档",
|
|
284
|
+
"required": true,
|
|
285
|
+
"type": "static",
|
|
286
|
+
"tpl": "<a href=\"/app/admin/${_display.profile.objectName}/view/${_display.profile.value}\">${_display.profile.label}</a>",
|
|
287
|
+
"className": "m-1 slds-form-element_readonly",
|
|
288
|
+
"labelClassName": "text-left",
|
|
289
|
+
"quickEdit": false,
|
|
290
|
+
"visibleOn": "${global.user.is_space_admin}",
|
|
291
|
+
"clearValueOnHidden": true,
|
|
292
|
+
"id": "u:e951fece1ea5"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "contact_id",
|
|
296
|
+
"label": "联系人",
|
|
297
|
+
"required": false,
|
|
298
|
+
"type": "static",
|
|
299
|
+
"tpl": "<a href=\"/app/admin/${_display.contact_id.objectName}/view/${_display.contact_id.value}\">${_display.contact_id.label}</a>",
|
|
300
|
+
"className": "m-1 slds-form-element_readonly",
|
|
301
|
+
"labelClassName": "text-left",
|
|
302
|
+
"quickEdit": false,
|
|
303
|
+
"visibleOn": "${global.mode ==='read' ? true : false}",
|
|
304
|
+
"clearValueOnHidden": true,
|
|
305
|
+
"id": "u:f51281455dc3"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "is_supplier",
|
|
309
|
+
"label": "是供应商",
|
|
310
|
+
"required": false,
|
|
311
|
+
"type": "static",
|
|
312
|
+
"tpl": "<% if (data.is_supplier) { %>\n <span class=\"slds-icon_container slds-icon-utility-check slds-current-color\" title=\"<%=data._display.is_supplier%>\">\n <span ><%=data._display.is_supplier%></span>\n </span>\n <% } %>",
|
|
313
|
+
"className": "m-1 slds-form-element_readonly",
|
|
314
|
+
"labelClassName": "text-left",
|
|
315
|
+
"quickEdit": false,
|
|
316
|
+
"visibleOn": "${global.mode ==='read' ? true : false}",
|
|
317
|
+
"clearValueOnHidden": true,
|
|
318
|
+
"id": "u:75039601927d"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "is_customer",
|
|
322
|
+
"label": "是客户",
|
|
323
|
+
"required": false,
|
|
324
|
+
"type": "static",
|
|
325
|
+
"tpl": "<% if (data.is_customer) { %>\n <span class=\"slds-icon_container slds-icon-utility-check slds-current-color\" title=\"<%=data._display.is_customer%>\">\n <span ><%=data._display.is_customer%></span>\n </span>\n <% } %>",
|
|
326
|
+
"className": "m-1 slds-form-element_readonly",
|
|
327
|
+
"labelClassName": "text-left",
|
|
328
|
+
"quickEdit": false,
|
|
329
|
+
"visibleOn": "${global.mode ==='read' ? true : false}",
|
|
330
|
+
"clearValueOnHidden": true,
|
|
331
|
+
"id": "u:8899c25d8eff"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"name": "work_phone",
|
|
335
|
+
"label": "工作电话",
|
|
336
|
+
"required": false,
|
|
337
|
+
"type": "static-text",
|
|
338
|
+
"className": "m-1 slds-form-element_readonly",
|
|
339
|
+
"labelClassName": "text-left",
|
|
340
|
+
"quickEdit": false,
|
|
341
|
+
"clearValueOnHidden": true,
|
|
342
|
+
"id": "u:917062497fc8"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"name": "locale",
|
|
346
|
+
"label": "语言",
|
|
347
|
+
"required": true,
|
|
348
|
+
"type": "static",
|
|
349
|
+
"joinValues": false,
|
|
350
|
+
"options": [
|
|
351
|
+
{
|
|
352
|
+
"label": "简体中文",
|
|
353
|
+
"value": "zh-cn"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"label": "English",
|
|
357
|
+
"value": "en-us"
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
|
+
"extractValue": true,
|
|
361
|
+
"clearable": true,
|
|
362
|
+
"labelField": "label",
|
|
363
|
+
"valueField": "value",
|
|
364
|
+
"tpl": "<div>${_display.locale}</div>",
|
|
365
|
+
"className": "m-1 slds-form-element_readonly",
|
|
366
|
+
"labelClassName": "text-left",
|
|
367
|
+
"quickEdit": false,
|
|
368
|
+
"clearValueOnHidden": true,
|
|
369
|
+
"id": "u:80099aafc1f8"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "sort_no",
|
|
373
|
+
"label": "排序号",
|
|
374
|
+
"required": false,
|
|
375
|
+
"type": "static-tpl",
|
|
376
|
+
"tpl": "<div>${_display.sort_no}</div>",
|
|
377
|
+
"className": "m-1 slds-form-element_readonly",
|
|
378
|
+
"labelClassName": "text-left",
|
|
379
|
+
"quickEdit": false,
|
|
380
|
+
"clearValueOnHidden": true,
|
|
381
|
+
"id": "u:ef6e978eb64d"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"name": "email_notification",
|
|
385
|
+
"label": "接收邮件通知",
|
|
386
|
+
"required": false,
|
|
387
|
+
"type": "static",
|
|
388
|
+
"tpl": "<% if (data.email_notification) { %>\n <span class=\"slds-icon_container slds-icon-utility-check slds-current-color\" title=\"<%=data._display.email_notification%>\">\n <span ><%=data._display.email_notification%></span>\n </span>\n <% } %>",
|
|
389
|
+
"className": "m-1 slds-form-element_readonly",
|
|
390
|
+
"labelClassName": "text-left",
|
|
391
|
+
"quickEdit": false,
|
|
392
|
+
"clearValueOnHidden": true,
|
|
393
|
+
"id": "u:830b9acfb227"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "sms_notification",
|
|
397
|
+
"label": "接收短信提醒",
|
|
398
|
+
"required": false,
|
|
399
|
+
"type": "static",
|
|
400
|
+
"tpl": "<% if (data.sms_notification) { %>\n <span class=\"slds-icon_container slds-icon-utility-check slds-current-color\" title=\"<%=data._display.sms_notification%>\">\n <span ><%=data._display.sms_notification%></span>\n </span>\n <% } %>",
|
|
401
|
+
"className": "m-1 slds-form-element_readonly",
|
|
402
|
+
"labelClassName": "text-left",
|
|
403
|
+
"quickEdit": false,
|
|
404
|
+
"clearValueOnHidden": true,
|
|
405
|
+
"id": "u:10d56e424111"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "user_accepted",
|
|
409
|
+
"label": "有效",
|
|
410
|
+
"required": false,
|
|
411
|
+
"type": "static",
|
|
412
|
+
"tpl": "<% if (data.user_accepted) { %>\n <span class=\"slds-icon_container slds-icon-utility-check slds-current-color\" title=\"<%=data._display.user_accepted%>\">\n <span ><%=data._display.user_accepted%></span>\n </span>\n <% } %>",
|
|
413
|
+
"className": "m-1 slds-form-element_readonly",
|
|
414
|
+
"labelClassName": "text-left",
|
|
415
|
+
"quickEdit": false,
|
|
416
|
+
"clearValueOnHidden": true,
|
|
417
|
+
"id": "u:fec9a339924c"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "password_expired",
|
|
421
|
+
"label": "密码已过期",
|
|
422
|
+
"required": false,
|
|
423
|
+
"type": "static",
|
|
424
|
+
"tpl": "<% if (data.password_expired) { %>\n <span class=\"slds-icon_container slds-icon-utility-check slds-current-color\" title=\"<%=data._display.password_expired%>\">\n <span ><%=data._display.password_expired%></span>\n </span>\n <% } %>",
|
|
425
|
+
"className": "m-1 slds-form-element_readonly",
|
|
426
|
+
"labelClassName": "text-left",
|
|
427
|
+
"quickEdit": false,
|
|
428
|
+
"clearValueOnHidden": true,
|
|
429
|
+
"id": "u:15e45bb97561"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "avatar",
|
|
433
|
+
"label": "头像",
|
|
434
|
+
"required": false,
|
|
435
|
+
"type": "static-image",
|
|
436
|
+
"defaultImage": "",
|
|
437
|
+
"enlargeAble": true,
|
|
438
|
+
"showToolbar": true,
|
|
439
|
+
"className": "m-1 slds-form-element_readonly",
|
|
440
|
+
"labelClassName": "text-left",
|
|
441
|
+
"quickEdit": false,
|
|
442
|
+
"clearValueOnHidden": true,
|
|
443
|
+
"id": "u:b3b0bf81a3da",
|
|
444
|
+
"value": "${_display.avatar.url}"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"name": "instance_state",
|
|
448
|
+
"label": "审批状态",
|
|
449
|
+
"required": false,
|
|
450
|
+
"type": "static",
|
|
451
|
+
"joinValues": false,
|
|
452
|
+
"options": [
|
|
453
|
+
{
|
|
454
|
+
"label": "草稿",
|
|
455
|
+
"value": "draft"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"label": "进行中",
|
|
459
|
+
"value": "pending"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"label": "已完成",
|
|
463
|
+
"value": "completed"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"label": "已核准",
|
|
467
|
+
"value": "approved"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"label": "已驳回",
|
|
471
|
+
"value": "rejected"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"label": "已取消",
|
|
475
|
+
"value": "terminated"
|
|
476
|
+
}
|
|
477
|
+
],
|
|
478
|
+
"extractValue": true,
|
|
479
|
+
"clearable": true,
|
|
480
|
+
"labelField": "label",
|
|
481
|
+
"valueField": "value",
|
|
482
|
+
"tpl": "<div>${_display.instance_state}</div>",
|
|
483
|
+
"className": "m-1 slds-form-element_readonly",
|
|
484
|
+
"labelClassName": "text-left",
|
|
485
|
+
"quickEdit": false,
|
|
486
|
+
"visibleOn": "${false}",
|
|
487
|
+
"clearValueOnHidden": true,
|
|
488
|
+
"id": "u:de3dac2149fe"
|
|
489
|
+
}
|
|
490
|
+
],
|
|
491
|
+
"id": "u:634e8104bcd1"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"type": "fieldSet",
|
|
495
|
+
"title": "系统信息",
|
|
496
|
+
"collapsable": true,
|
|
497
|
+
"body": [
|
|
498
|
+
{
|
|
499
|
+
"name": "created",
|
|
500
|
+
"label": "创建时间",
|
|
501
|
+
"required": false,
|
|
502
|
+
"type": "static",
|
|
503
|
+
"inputFormat": "YYYY-MM-DD HH:mm",
|
|
504
|
+
"format": "YYYY-MM-DDTHH:mm:ss.SSS[Z]",
|
|
505
|
+
"tpl": "<div>${_display.created}</div>",
|
|
506
|
+
"utc": true,
|
|
507
|
+
"className": "m-1 slds-form-element_readonly",
|
|
508
|
+
"labelClassName": "text-left",
|
|
509
|
+
"quickEdit": false,
|
|
510
|
+
"clearValueOnHidden": true,
|
|
511
|
+
"id": "u:307ec9ee5984"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "created_by",
|
|
515
|
+
"label": "创建人",
|
|
516
|
+
"required": false,
|
|
517
|
+
"type": "static",
|
|
518
|
+
"tpl": "<a href=\"/app/admin/${_display.created_by.objectName}/view/${_display.created_by.value}\">${_display.created_by.label}</a>",
|
|
519
|
+
"className": "m-1 slds-form-element_readonly",
|
|
520
|
+
"labelClassName": "text-left",
|
|
521
|
+
"quickEdit": false,
|
|
522
|
+
"clearValueOnHidden": true,
|
|
523
|
+
"id": "u:c47d0ceb3dbb"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "modified",
|
|
527
|
+
"label": "修改时间",
|
|
528
|
+
"required": false,
|
|
529
|
+
"type": "static",
|
|
530
|
+
"inputFormat": "YYYY-MM-DD HH:mm",
|
|
531
|
+
"format": "YYYY-MM-DDTHH:mm:ss.SSS[Z]",
|
|
532
|
+
"tpl": "<div>${_display.modified}</div>",
|
|
533
|
+
"utc": true,
|
|
534
|
+
"className": "m-1 slds-form-element_readonly",
|
|
535
|
+
"labelClassName": "text-left",
|
|
536
|
+
"quickEdit": false,
|
|
537
|
+
"clearValueOnHidden": true,
|
|
538
|
+
"id": "u:afa9e32e8b4d"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"name": "modified_by",
|
|
542
|
+
"label": "修改人",
|
|
543
|
+
"required": false,
|
|
544
|
+
"type": "static",
|
|
545
|
+
"tpl": "<a href=\"/app/admin/${_display.modified_by.objectName}/view/${_display.modified_by.value}\">${_display.modified_by.label}</a>",
|
|
546
|
+
"className": "m-1 slds-form-element_readonly",
|
|
547
|
+
"labelClassName": "text-left",
|
|
548
|
+
"quickEdit": false,
|
|
549
|
+
"clearValueOnHidden": true,
|
|
550
|
+
"id": "u:8ee7cdce49d2"
|
|
551
|
+
}
|
|
552
|
+
],
|
|
553
|
+
"id": "u:6f08de6f90b4"
|
|
554
|
+
}
|
|
555
|
+
],
|
|
556
|
+
"className": "steedos-amis-form",
|
|
557
|
+
"actions": [],
|
|
558
|
+
"id": "form_readonly_space_user_info",
|
|
559
|
+
"debug": false
|
|
560
|
+
}
|
|
561
|
+
]
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"id": "u:ab1b39f4011e",
|
|
565
|
+
"className": "",
|
|
566
|
+
"linksClassName": "px-10 py-2 text-black",
|
|
567
|
+
"toolbarClassName": "",
|
|
568
|
+
"contentClassName": ""
|
|
569
|
+
}
|
|
570
|
+
],
|
|
571
|
+
"messages": {},
|
|
572
|
+
"onEvent": {
|
|
573
|
+
"fetchInited": {
|
|
574
|
+
"actions": [
|
|
575
|
+
{
|
|
576
|
+
"actionType": "setValue",
|
|
577
|
+
"args": {
|
|
578
|
+
"value": "${event.data && event.data.record}"
|
|
579
|
+
},
|
|
580
|
+
"componentId": "form_readonly_space_user_info"
|
|
581
|
+
}
|
|
582
|
+
]
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
],
|
|
587
|
+
"regions": [
|
|
588
|
+
"body"
|
|
589
|
+
],
|
|
590
|
+
"data": {
|
|
591
|
+
"recordId": "",
|
|
592
|
+
"initialValues": {},
|
|
593
|
+
"appId": "builder",
|
|
594
|
+
"title": "",
|
|
595
|
+
"context": {
|
|
596
|
+
"rootUrl": "https://5000-steedos-steedosplatform-uwiv6wkdp2o.ws-us73.gitpod.io",
|
|
597
|
+
"tenantId": "e4YD58Xx68PQNPD2G",
|
|
598
|
+
"userId": "62ea04550167020d189ce439",
|
|
599
|
+
"authToken": "077c2bb0f4a7c594572fceb47086e2ebd439c6689852b2264c2b20905a38f0f2fbe3491ce3aebfd1872bd5"
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"id": "u:b80a805eb7fa"
|
|
603
|
+
}
|