@steedos/standard-object-database 2.6.1-beta.7 → 2.6.2-beta.3

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.
Files changed (54) hide show
  1. package/main/default/client/coordtransform.client.js +153 -0
  2. package/main/default/client/object_fields.client.js +150 -44
  3. package/main/default/objectTranslations/object_actions.en/object_actions.en.objectTranslation.yml +2 -0
  4. package/main/default/objectTranslations/object_actions.zh-CN/object_actions.zh-CN.objectTranslation.yml +2 -0
  5. package/main/default/objectTranslations/object_fields.en/object_fields.en.objectTranslation.yml +27 -2
  6. package/main/default/objectTranslations/object_fields.zh-CN/object_fields.zh-CN.objectTranslation.yml +32 -4
  7. package/main/default/objectTranslations/object_layouts.en/object_layouts.en.objectTranslation.yml +2 -0
  8. package/main/default/objectTranslations/object_layouts.zh-CN/object_layouts.zh-CN.objectTranslation.yml +2 -0
  9. package/main/default/objectTranslations/object_listviews.en/object_listviews.en.objectTranslation.yml +29 -1
  10. package/main/default/objectTranslations/object_listviews.zh-CN/object_listviews.zh-CN.objectTranslation.yml +27 -1
  11. package/main/default/objectTranslations/object_triggers.en/object_triggers.en.objectTranslation.yml +7 -1
  12. package/main/default/objectTranslations/object_triggers.zh-CN/object_triggers.zh-CN.objectTranslation.yml +8 -2
  13. package/main/default/objectTranslations/object_validation_rules.en/object_validation_rules.en.objectTranslation.yml +2 -0
  14. package/main/default/objectTranslations/object_validation_rules.zh-CN/object_validation_rules.zh-CN.objectTranslation.yml +2 -0
  15. package/main/default/objects/1.objects.observe.object.js +4 -1
  16. package/main/default/objects/7.object_actions.observe.object.js +7 -1
  17. package/main/default/objects/object_actions.action.js +34 -3
  18. package/main/default/objects/object_actions.object.js +4 -2
  19. package/main/default/objects/object_actions.object.yml +26 -1
  20. package/main/default/objects/object_fields.object.js +33 -19
  21. package/main/default/objects/object_fields.object.yml +129 -83
  22. package/main/default/objects/object_layouts.action.js +4 -4
  23. package/main/default/objects/object_layouts.object.yml +16 -2
  24. package/main/default/objects/object_listviews.object.yml +67 -16
  25. package/main/default/objects/object_triggers.object.yml +13 -4
  26. package/main/default/objects/object_validation_rules.object.yml +10 -0
  27. package/main/default/objects/objects/buttons/custom.button.js +48 -0
  28. package/main/default/objects/objects/buttons/custom.button.yml +6 -0
  29. package/main/default/objects/objects.action.js +26 -3
  30. package/main/default/objects/objects.core.js +17 -1
  31. package/main/default/objects/objects.object.js +3 -2
  32. package/main/default/objects/objects.object.yml +28 -2
  33. package/main/default/objects/objects.tree.js +3 -2
  34. package/main/default/pages/design_field_layout.page.amis.json +418 -0
  35. package/main/default/pages/design_field_layout.page.yml +7 -0
  36. package/main/default/pages/object_detail.page.amis.json +6 -6
  37. package/main/default/pages/object_fields_form.page.amis.json +35 -0
  38. package/main/default/pages/{object_fields.page.yml → object_fields_form.page.yml} +5 -5
  39. package/main/default/pages/object_form.page.amis.json +31 -0
  40. package/main/default/pages/object_form.page.yml +12 -0
  41. package/main/default/routes/amis_button_design.router.js +11 -2
  42. package/main/default/routes/amis_listview_design.router.js +11 -2
  43. package/main/default/services/suggestions.service.js +4 -5
  44. package/main/default/triggers/object_actions.trigger.js +6 -2
  45. package/main/default/triggers/object_fields.trigger.js +67 -10
  46. package/main/default/triggers/object_listviews.trigger.js +11 -4
  47. package/main/default/triggers/objects.trigger.js +4 -26
  48. package/package.json +2 -2
  49. package/package.service.js +132 -3
  50. package/src/triggers/index.js +11 -0
  51. package/src/triggers/object_fields_trigger_create_index.js +58 -0
  52. package/main/default/objects/object_layouts/buttons/standard_edit.button.yml +0 -44
  53. package/main/default/pages/object_fields.page.amis.json +0 -42
  54. package/main/default/services/object_fields.service.js +0 -242
@@ -17,12 +17,16 @@ fields:
17
17
  write_requires_master_read: true
18
18
  filters: ['name', 'notcontains', ['base','core','space_users_invite','_object_reload_logs']]
19
19
  sort_no: 110
20
+ amis:
21
+ disabledOn: "true"
20
22
  label:
21
23
  type: text
22
24
  required: true
23
25
  label: Label
24
26
  is_name: true
25
27
  sort_no: 120
28
+ amis:
29
+ disabledOn: "${is_system == true}"
26
30
  _name:
27
31
  type: text
28
32
  label: Field Name
@@ -31,6 +35,8 @@ fields:
31
35
  required: true
32
36
  visible_on: "{{global.mode !='read' ? true : false}}"
33
37
  sort_no: 130
38
+ amis:
39
+ disabledOn: "${is_system == true}"
34
40
  name:
35
41
  type: text
36
42
  label: API Name
@@ -41,6 +47,8 @@ fields:
41
47
  readonly: true
42
48
  visible_on: "{{global.mode !='read' ? false : true}}"
43
49
  sort_no: 140
50
+ amis:
51
+ disabledOn: "${is_system == true}"
44
52
  type:
45
53
  type: select
46
54
  label: Type
@@ -86,6 +94,8 @@ fields:
86
94
  value: url
87
95
  - label: Email
88
96
  value: email
97
+ - label: Location
98
+ value: location
89
99
  - label: Image
90
100
  value: image
91
101
  - label: File
@@ -96,26 +106,8 @@ fields:
96
106
  value: summary
97
107
  sort_no: 150
98
108
  amis:
99
- onEvent:
100
- change:
101
- weight: 0
102
- actions:
103
- - componentId: 'u:6a556d8a8514'
104
- args:
105
- value: '${"lookup"=== type}'
106
- actionType: visibility
107
- - componentId: 'u:6a556d8a8514'
108
- args:
109
- value: clear
110
- groupType: component
111
- actionType: setValue
112
- expression: '${"lookup"=== type && required!=true}'
113
- - componentId: 'u:6a556d8a8514'
114
- args:
115
- value: retain
116
- groupType: component
117
- actionType: setValue
118
- expression: '${"lookup"=== type && required==true}'
109
+ disabledOn: "${is_system == true}"
110
+ searchable: true
119
111
  language:
120
112
  type: select
121
113
  label: 语言
@@ -202,52 +194,35 @@ fields:
202
194
  value: yaml
203
195
  sort_no: 155
204
196
  visible_on: "{{['code'].indexOf(formData.type) > -1 ? true: false}}"
197
+ amis:
198
+ disabledOn: "${is_system == true}"
205
199
  defaultValue:
206
- type: object
207
- blackbox: true
200
+ type: text
208
201
  label: Default Value
209
202
  sort_no: 160
210
- amis:
211
- type: service
212
- className:
213
- antd-Form-item: true
214
- antd-Form-item--normal: true
215
- m-1: true
216
- "md:border-b": global.mode === "read"
217
- defaultValue_field: true
218
- flex: true
219
- schemaApi:
220
- url: "${context.rootUrl}/service/api/object_fields/defaultValue/schema?object=${object}&name=${name}&options=${options}&type=${type}&reference_to=${reference_to}&multiple=${multiple}&filtersFunction=${filtersFunction}&reference_to_field=${reference_to_field}&mode=${global.mode}&_id=${_id}"
221
- method: get
222
- headers:
223
- Authorization: "Bearer ${context.tenantId},${context.authToken}"
224
- # sendOn: "!!this.type"
225
- onEvent:
226
- fetchSchemaInited:
227
- weight: 0
228
- actions:
229
- - actionType: "setValue"
230
- componentId: "service_detail_page"
231
- args:
232
- value:
233
- defaultValue: "${event.data.body[0].value}"
234
- expression: "global.mode ==='read' && event.data.body[0].value"
235
-
236
-
237
203
  group:
238
204
  type: text
239
205
  label: Group
240
206
  sort_no: 170
207
+ coordinatesType:
208
+ type: text
209
+ label: 坐标类型
210
+ sort_no: 175
211
+ defaultValue: bd09
212
+ visible_on: "{{['location'].indexOf(formData.type) > -1 ? true: false}}"
213
+ amis:
214
+ disabledOn: "${is_system == true}"
241
215
  reference_to:
242
216
  type: lookup
243
217
  label: Reference to
244
218
  reference_to: objects
245
219
  reference_to_field: name
246
220
  visible_on: "{{['lookup', 'master_detail'].indexOf(formData.type) > -1 ? true: false}}"
247
- required: "{{['master_detail'].indexOf(formData.type) > -1 ? true: false}}"
221
+ required: "{{['lookup','master_detail'].indexOf(formData.type) > -1 ? true: false}}"
248
222
  sort_no: 180
249
223
  amis:
250
224
  menuTpl: "<div>${label}(${value})</div>"
225
+ disabledOn: "${is_system == true}"
251
226
  depend_on:
252
227
  type: lookup
253
228
  group: Advanced
@@ -268,6 +243,16 @@ fields:
268
243
  }
269
244
  }
270
245
  sort_no: 445
246
+ amis:
247
+ disabledOn: "${is_system == true}"
248
+ create:
249
+ type: boolean
250
+ label: 是否显示新建按钮
251
+ defaultValue: true
252
+ visible_on: "{{['lookup'].indexOf(formData.type) > -1 ? true: false}}"
253
+ sort_no: 185
254
+ amis:
255
+ disabledOn: "${is_system == true}"
271
256
  reference_to_field:
272
257
  type: lookup
273
258
  group: Advanced
@@ -288,18 +273,24 @@ fields:
288
273
  }
289
274
  }
290
275
  sort_no: 440
276
+ amis:
277
+ disabledOn: "${is_system == true}"
291
278
  multiple:
292
279
  type: boolean
293
280
  label: Multiple
294
281
  inlineHelpText: Single choice and multiple choice switch to each other. Please resubmit the existing records or modify the saving format of this field in the database.
295
282
  visible_on: "{{['select', 'lookup', 'image','file'].indexOf(formData.type) > -1 ? true: false}}"
296
283
  sort_no: 190
284
+ amis:
285
+ disabledOn: "${is_system == true}"
297
286
  write_requires_master_read:
298
287
  label: Write requires master read
299
288
  type: boolean
300
289
  inlineHelpText: Sets the minimum sharing access level required on the master record to create, edit, or delete child records. This field applies only to master-detail or junction object custom field types. true—Allows users with “Read” access to the master record permission to create, edit, or delete child records. This setting makes sharing less restrictive. false—Allows users with “Read/Write” access to the master record permission to create, edit, or delete child records. This setting is more restrictive than true, and is the default value.
301
290
  visible_on: "{{formData.type === 'master_detail' ? true: false}}"
302
291
  sort_no: 200
292
+ amis:
293
+ disabledOn: "${is_system == true}"
303
294
  formula:
304
295
  label: Formula
305
296
  type: textarea
@@ -308,6 +299,8 @@ fields:
308
299
  visible_on: "{{['autonumber', 'formula'].indexOf(formData.type) > -1 ? true: false}}"
309
300
  required: "{{['autonumber', 'formula'].indexOf(formData.type) > -1 ? true: false}}"
310
301
  sort_no: 210
302
+ amis:
303
+ disabledOn: "${is_system == true}"
311
304
  data_type:
312
305
  type: lookup
313
306
  label: Data Type
@@ -322,6 +315,8 @@ fields:
322
315
  visible_on: "{{['formula','select'].indexOf(formData.type) > -1 ? true: false}}"
323
316
  required: "{{['formula'].indexOf(formData.type) > -1 ? true: false}}"
324
317
  sort_no: 220
318
+ amis:
319
+ disabledOn: "${is_system == true}"
325
320
  filtersFunction:
326
321
  label: filters Function
327
322
  type: code
@@ -331,6 +326,7 @@ fields:
331
326
  sort_no: 448
332
327
  group: Advanced
333
328
  amis:
329
+ disabledOn: "${is_system == true}"
334
330
  placeholder: |-
335
331
  function(filters, values){
336
332
 
@@ -347,6 +343,7 @@ fields:
347
343
  scale: 0
348
344
  amis:
349
345
  value: 18
346
+ disabledOn: "${is_system == true}"
350
347
  # defaultValue: 18
351
348
  visible_on: "{{
352
349
  (function(){
@@ -386,6 +383,7 @@ fields:
386
383
  # defaultValue: 2
387
384
  amis:
388
385
  value: 2
386
+ disabledOn: "${is_system == true}"
389
387
  min: 0
390
388
  inlineHelpText: If the field type is a Percent, this indicates the number of decimal places the field will display, for example, two decimal places will display as 10.20%.
391
389
  visible_on: "{{
@@ -440,6 +438,8 @@ fields:
440
438
  visible_on: "{{formData.type === 'select' ? true: false}}"
441
439
  required: "{{formData.type === 'select' ? true: false}}"
442
440
  sort_no: 280
441
+ amis:
442
+ disabledOn: "${is_system == true}"
443
443
  options.$:
444
444
  label: Options
445
445
  blackbox: true
@@ -473,6 +473,8 @@ fields:
473
473
  visible_on: "{{['formula'].indexOf(formData.type) > -1 ? true: false}}"
474
474
  required: "{{['formula'].indexOf(formData.type) > -1 ? true: false}}"
475
475
  sort_no: 290
476
+ amis:
477
+ disabledOn: "${is_system == true}"
476
478
  summary_object:
477
479
  type: lookup
478
480
  label: Object to Summarize
@@ -482,6 +484,7 @@ fields:
482
484
  depend_on:
483
485
  - object
484
486
  amis:
487
+ disabledOn: "${is_system == true}"
485
488
  "source":
486
489
  "method": "get"
487
490
  "url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/${object}/detailLists/options?depend_on_object=${object}"
@@ -546,6 +549,8 @@ fields:
546
549
  visible_on: "{{formData.type === 'summary' ? true: false}}"
547
550
  required: "{{formData.type === 'summary' ? true: false}}"
548
551
  sort_no: 310
552
+ amis:
553
+ disabledOn: "${is_system == true}"
549
554
  summary_field:
550
555
  type: lookup
551
556
  label: Field to Aggregate
@@ -556,7 +561,9 @@ fields:
556
561
  - summary_object
557
562
  - summary_type
558
563
  defaultIcon: service_contract
564
+ enable_enhanced_lookup: false
559
565
  amis:
566
+ disabledOn: "${is_system == true}"
560
567
  "autoComplete":
561
568
  "method": "get"
562
569
  "url": "${context.rootUrl}/service/api/@${summary_object}/uiSchema?summary_object=${summary_object}&summary_type=${summary_type}&term=${term}"
@@ -566,7 +573,7 @@ fields:
566
573
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
567
574
  "sendOn": "!!this.summary_object && !!this.summary_type"
568
575
  "adaptor": "const summary_type = api.body.summary_type;\nconst term = api.query.term;\nlet fields = payload.fields;\nlet options = [];\nif (fields) {\n if (summary_type && summary_type !== \"count\") {\n if (summary_type === \"sum\" || summary_type === \"avg\") {\n /*sum/avg类型可以汇总数值、金额、百分比字段*/\n _.forEach(fields, (value, key) => {\n let fieldType = value.type;\n if ([\"formula\", \"summary\"].indexOf(fieldType) > -1) {\n /*要聚合的字段为公式或汇总字段时,按其字段数据类型判断是否支持聚合*/\n fieldType = value.data_type;\n }\n if ([\"number\", \"currency\", \"percent\"].indexOf(fieldType) > -1) {\n options.push({ label: value.label, value: value.name });\n }\n })\n }\n else {\n /*min、max类型可以汇总数值、金额、百分比、日期、日期时间字段*/\n _.forEach(fields, (value, key) => {\n let fieldType = value.type;\n if ([\"formula\", \"summary\"].indexOf(fieldType) > -1) {\n /*要聚合的字段为公式或汇总字段时,按其字段数据类型判断是否支持聚合*/\n fieldType = value.data_type;\n }\n if ([\"number\", \"currency\", \"percent\", \"date\", \"datetime\"].indexOf(fieldType) > -1) {\n options.push({ label: value.label, value: value.name });\n }\n })\n }\n }\n if (term) {\n options = _.filter(options, (item) => {\n return item.label.toLowerCase().indexOf(term.toLowerCase()) > -1;\n })\n }\n}\npayload = {\n data: { options: options },\n msg: \"\",\n status: 0\n}\nreturn payload;"
569
- visible_on: "{{formData.type === 'summary' && formData.summary_type !== 'count' ? true: false}}"
576
+ visible_on: "{{formData.type === 'summary' && formData.summary_object && formData.summary_type && formData.summary_type !== 'count'}}"
570
577
  required: "{{formData.type === 'summary' && formData.summary_type !== 'count' ? true: false}}"
571
578
  sort_no: 320
572
579
  summary_filters:
@@ -578,6 +585,8 @@ fields:
578
585
  - summary_object
579
586
  visible_on: "{{formData.type === 'summary' && global.mode !='read' ? true: false}}"
580
587
  sort_no: 330
588
+ amis:
589
+ disabledOn: "${is_system == true}"
581
590
  summary_filters.$:
582
591
  label: Filter Criteria
583
592
  blackbox: true
@@ -638,48 +647,45 @@ fields:
638
647
  group: External data source
639
648
  # visible_on: "{{true}}"
640
649
  sort_no: 340
650
+ amis:
651
+ disabledOn: "${is_system == true}"
641
652
  primary:
642
653
  type: boolean
643
654
  label: Primary Key
644
655
  group: External data source
645
656
  # visible_on: "{{true}}"
646
657
  sort_no: 350
658
+ amis:
659
+ disabledOn: "${is_system == true}"
647
660
  generated:
648
661
  type: boolean
649
662
  label: Generated
650
663
  group: External data source
651
664
  # visible_on: "{{formData.database_name || formData.datasource ? true: false}}"
652
665
  sort_no: 360
666
+ amis:
667
+ disabledOn: "${is_system == true}"
653
668
  sort_no:
654
669
  label: Sort Number
655
670
  type: number
656
671
  defaultValue: 100
657
672
  scale: 0
658
673
  sortable: true
659
- group: Advanced
674
+ group: ui
660
675
  sort_no: 370
661
676
  is_name:
662
677
  type: boolean
663
678
  label: Is Name
664
- group: Advanced
679
+ group: External data source
665
680
  sort_no: 380
681
+ amis:
682
+ disabledOn: "${is_system == true}"
666
683
  required:
667
684
  type: boolean
668
685
  label: Required
669
686
  # group: Advanced
670
687
  visible_on: "{{['autonumber','summary','formula'].indexOf(formData.type) > -1 ? false: true}}"
671
688
  sort_no: 272
672
- amis:
673
- onEvent:
674
- change:
675
- weight: 0
676
- actions:
677
- - componentId: 'u:6a556d8a8514'
678
- args:
679
- value: retain
680
- groupType: component
681
- actionType: setValue
682
- expression: '${"lookup"=== type && required==true}'
683
689
  deleted_lookup_record_behavior:
684
690
  type: select
685
691
  label: 如果相关表记录被删除怎么办?
@@ -692,45 +698,53 @@ fields:
692
698
  value: retain
693
699
  sort_no: 276
694
700
  is_wide: true
695
- defaultValue: clear
696
701
  amis:
697
- "id": "u:6a556d8a8514"
698
702
  "disabledOn": "${required==true}"
703
+ "value": "${IFS(true===required, \"retain\", !required && !deleted_lookup_record_behavior, \"clear\", deleted_lookup_record_behavior)}"
699
704
  is_wide:
700
705
  type: boolean
701
706
  label: Is Wide
702
707
  # group: Advanced
703
- # readonly:
704
- # type: boolean
705
- # label: Readonly
706
- # group: Advanced
707
- # hidden:
708
- # type: boolean
709
- # label: Hidden
710
- # group: Advanced
708
+ sort_no: 274
709
+ group: ui
710
+ readonly:
711
+ type: boolean
712
+ label: Readonly
713
+ group: ui
714
+ hidden:
715
+ type: boolean
716
+ label: Hidden
717
+ group: ui
711
718
  # omit:
712
719
  # type: boolean
713
720
  # label: Omit
714
721
  # group: Advanced
715
- sort_no: 274
716
722
  index:
717
723
  type: boolean
718
724
  label: Is Index Field
719
725
  group: Advanced
720
726
  sort_no: 410
727
+ inlineHelpText: The Creation Is Executed Once A Day By Default And The Existing Indexes Are Not Repeatedly Created.
728
+ unique:
729
+ type: boolean
730
+ label: Unique Index
731
+ group: Advanced
732
+ sort_no: 411
733
+ inlineHelpText: The Creation Is Executed Once A Day By Default And The Existing Indexes Are Not Repeatedly Created.
721
734
  sortable:
722
735
  type: boolean
723
736
  label: Sortable
724
- group: Advanced
725
- # searchable:
726
- # type: boolean
727
- # label: Searchable
728
- # group: Advanced
737
+ group: ui
729
738
  sort_no: 420
739
+ searchable:
740
+ type: boolean
741
+ label: Searchable
742
+ group: ui
743
+ sort_no: 428
730
744
  filterable:
731
745
  type: boolean
732
746
  label: Filterable
733
- group: Advanced
747
+ group: ui
734
748
  sort_no: 430
735
749
  show_as_qr:
736
750
  type: boolean
@@ -738,12 +752,15 @@ fields:
738
752
  # group: Advanced
739
753
  visible_on: "{{formData.type === 'url' ? true: false}}"
740
754
  sort_no: 440
755
+ amis:
756
+ disabledOn: "${is_system == true}"
741
757
  visible_on:
742
758
  type: textarea
743
759
  label: Visible On
744
760
  is_wide: true
745
- group: Advanced
761
+ group: ui
746
762
  sort_no: 450
763
+ inlineHelpText: <a href='https://docs.steedos.com/zh-CN/no-code/customize/fields/field-attributes#%E5%AD%97%E6%AE%B5%E6%98%BE%E7%A4%BA%E5%85%AC%E5%BC%8F' target='_blank'>查看帮助</a>
747
764
  inlineHelpText:
748
765
  label: Prompt text
749
766
  type: textarea
@@ -763,6 +780,15 @@ fields:
763
780
  is_wide: true
764
781
  group: Advanced
765
782
  sort_no: 455
783
+ inlineHelpText: <a href='https://docs.steedos.com/zh-CN/no-code/customize/fields/field-attributes/#amis-%E5%B1%9E%E6%80%A7' target='_blank'>查看帮助</a>
784
+ is_system:
785
+ type: boolean
786
+ label: System
787
+ visible_on: "{{false}}"
788
+ enable_enhanced_lookup:
789
+ type: boolean
790
+ label: Enable Enhanced Lookup
791
+ hidden: true # 这里不可以用 visible_on: "{{false}}",否则在界面上新建字段时会被默认设置为false
766
792
  paging:
767
793
  enabled: false
768
794
  list_views:
@@ -775,11 +801,30 @@ list_views:
775
801
  - object
776
802
  - sort_no
777
803
  - modified
804
+ - hidden
805
+ - readonly
806
+ - is_system
778
807
  sort:
779
808
  - field_name: sort_no
780
809
  order: asc
781
810
  label: All
782
811
  filter_scope: space
812
+ customize:
813
+ columns:
814
+ - label
815
+ - name
816
+ - group
817
+ - type
818
+ - object
819
+ - sort_no
820
+ - modified
821
+ - hidden
822
+ - readonly
823
+ - is_system
824
+ label: 自定义
825
+ filters:
826
+ - ["is_system","<>",true]
827
+ filter_scope: space
783
828
  actions:
784
829
  recomputeFormulaValues:
785
830
  label: Recompute Formula Values
@@ -807,7 +852,8 @@ relatedList:
807
852
  form:
808
853
  initialValues: !!js/function |
809
854
  function(){
810
- var object = Creator.odata.get('objects', Session.get("record_id"), "fields_serial_number");
855
+ //应用程序微页面内Session.get("record_id")获取不到值(比如设计字段布局微页面)
856
+ var object = Creator.odata.get('objects', Session.get("record_id") || (this.master && this.master.recordId), "fields_serial_number");
811
857
  if(object){
812
858
  let fields_serial_number = object.fields_serial_number
813
859
  if(!fields_serial_number || fields_serial_number < 100){
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * @Author: baozhoutao@steedos.com
3
3
  * @Date: 2022-03-28 09:35:34
4
- * @LastEditors: sunhaolin@hotoa.com
5
- * @LastEditTime: 2023-03-05 16:47:05
4
+ * @LastEditors: baozhoutao@steedos.com
5
+ * @LastEditTime: 2023-10-16 16:50:45
6
6
  * @Description:
7
7
  */
8
8
  module.exports = {
@@ -22,8 +22,8 @@ module.exports = {
22
22
  FlowRouter.reload();
23
23
  }
24
24
  },
25
- createDefaultRecordViewVisible: function(object_name, record_id, record_permissions){
26
- if(!Creator.isSpaceAdmin()){
25
+ createDefaultRecordViewVisible: function(object_name, record_id, record_permissions, data){
26
+ if(!Creator.isSpaceAdmin() || data.record.name == 'users'){
27
27
  return false
28
28
  }
29
29
  return true;
@@ -1,7 +1,7 @@
1
1
  name: object_layouts
2
2
  label: Object Layouts
3
3
  icon: dashboard_ea
4
- hidden: false
4
+ hidden: true
5
5
  version: 2
6
6
  enable_dataloader: false
7
7
  fields:
@@ -84,9 +84,11 @@ fields:
84
84
  type: grid
85
85
  blackbox: true
86
86
  is_wide: true
87
- hidden: true
87
+ hidden: false
88
88
  field_groups.$.group_name:
89
89
  type: text
90
+ field_groups.$.visible_on:
91
+ type: text
90
92
  fields:
91
93
  type: grid
92
94
  is_wide: true
@@ -130,6 +132,8 @@ fields:
130
132
  group: related_lists
131
133
  related_lists.$.related_field_fullname:
132
134
  type: lookup
135
+ amis:
136
+ tpl: ${related_field_fullname.label}
133
137
  optionsFunction: !!js/function |
134
138
  function(values) {
135
139
  if (!(values != null ? values.object_name : void 0)) {
@@ -311,6 +315,16 @@ list_views:
311
315
  - is_system
312
316
  label: All
313
317
  filter_scope: space
318
+ customize:
319
+ columns:
320
+ - label
321
+ - object_name
322
+ - profiles
323
+ - is_system
324
+ label: 自定义
325
+ filters:
326
+ - ["is_system","<>",true]
327
+ filter_scope: space
314
328
  actions:
315
329
  createDefaultRecordView:
316
330
  on: list