@steedos-labs/plugin-workflow 3.0.9 → 3.0.11

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.
@@ -286,7 +286,7 @@ actions:
286
286
  designForm:
287
287
  label: 表单设计器
288
288
  design_form_layout:
289
- label: 表单设计器(New)
289
+ label: 表单设计器
290
290
  enableFlow:
291
291
  label: 启用
292
292
  disableFlow:
@@ -77,3 +77,17 @@ permission_set:
77
77
  unreadable_fields: []
78
78
  uneditable_fields: []
79
79
  unrelated_objects: []
80
+ organization_admin:
81
+ allowCreate: true
82
+ allowDelete: true
83
+ allowEdit: true
84
+ allowRead: true
85
+ modifyAllRecords: false
86
+ viewAllRecords: false
87
+ modifyCompanyRecords: true
88
+ viewCompanyRecords: true
89
+ disabled_list_views: []
90
+ disabled_actions: []
91
+ unreadable_fields: []
92
+ uneditable_fields: []
93
+ unrelated_objects: []
@@ -48,6 +48,20 @@ permission_set:
48
48
  modifyAllRecords: true
49
49
  viewAllRecords: true
50
50
  workflow_admin:
51
+ allowCreate: true
52
+ allowDelete: true
53
+ allowEdit: true
54
+ allowRead: true
55
+ modifyAllRecords: false
56
+ viewAllRecords: false
57
+ modifyCompanyRecords: true
58
+ viewCompanyRecords: true
59
+ disabled_list_views: []
60
+ disabled_actions: []
61
+ unreadable_fields: []
62
+ uneditable_fields: []
63
+ unrelated_objects: []
64
+ organization_admin:
51
65
  allowCreate: true
52
66
  allowDelete: true
53
67
  allowEdit: true
@@ -840,7 +840,7 @@ actions:
840
840
  'on': record_more
841
841
  visible: !<tag:yaml.org,2002:js/function> |-
842
842
  function () {
843
- return true;
843
+ return false;
844
844
  }
845
845
  todo: !<tag:yaml.org,2002:js/function> |-
846
846
  function (object_name, record_id, fields) {
@@ -919,7 +919,21 @@ permission_set:
919
919
  viewAllRecords: true
920
920
  workflow_admin:
921
921
  allowCreate: true
922
- allowDelete: false
922
+ allowDelete: true
923
+ allowEdit: true
924
+ allowRead: true
925
+ modifyAllRecords: false
926
+ viewAllRecords: false
927
+ modifyCompanyRecords: true
928
+ viewCompanyRecords: true
929
+ disabled_list_views: []
930
+ disabled_actions: []
931
+ unreadable_fields: []
932
+ uneditable_fields: []
933
+ unrelated_objects: []
934
+ organization_admin:
935
+ allowCreate: true
936
+ allowDelete: true
923
937
  allowEdit: true
924
938
  allowRead: true
925
939
  modifyAllRecords: false
@@ -336,7 +336,7 @@ permission_set:
336
336
  modifyAllRecords: true
337
337
  viewAllRecords: true
338
338
  workflow_admin:
339
- allowCreate: false
339
+ allowCreate: true
340
340
  allowDelete: false
341
341
  allowEdit: true
342
342
  allowRead: true
@@ -349,3 +349,12 @@ permission_set:
349
349
  unreadable_fields: []
350
350
  uneditable_fields: []
351
351
  unrelated_objects: []
352
+ organization_admin:
353
+ allowCreate: true
354
+ allowDelete: false
355
+ allowEdit: true
356
+ allowRead: true
357
+ modifyAllRecords: false
358
+ viewAllRecords: false
359
+ modifyCompanyRecords: true
360
+ viewCompanyRecords: true
@@ -78,8 +78,12 @@ permission_set:
78
78
  viewAllRecords: false
79
79
  modifyCompanyRecords: true
80
80
  viewCompanyRecords: true
81
- disabled_list_views: []
82
- disabled_actions: []
83
- unreadable_fields: []
84
- uneditable_fields: []
85
- unrelated_objects: []
81
+ organization_admin:
82
+ allowCreate: true
83
+ allowDelete: true
84
+ allowEdit: true
85
+ allowRead: true
86
+ modifyAllRecords: false
87
+ viewAllRecords: false
88
+ modifyCompanyRecords: true
89
+ viewCompanyRecords: true
@@ -278,6 +278,23 @@ permission_set:
278
278
  unreadable_fields: []
279
279
  uneditable_fields: []
280
280
  unrelated_objects: []
281
+ organization_admin:
282
+ allowCreate: false
283
+ allowDelete: false
284
+ allowEdit: false
285
+ allowRead: true
286
+ modifyAllRecords: false
287
+ viewAllRecords: false
288
+ modifyCompanyRecords: false
289
+ viewCompanyRecords: true
290
+ allowCreateListViews: false
291
+ disabled_list_views:
292
+ - inbox
293
+ - outbox
294
+ disabled_actions: []
295
+ unreadable_fields: []
296
+ uneditable_fields: []
297
+ unrelated_objects: []
281
298
  actions:
282
299
  view_instance:
283
300
  label: View Instance
@@ -70,3 +70,21 @@ permission_set:
70
70
  allowRead: true
71
71
  modifyAllRecords: false
72
72
  viewAllRecords: false
73
+ workflow_admin:
74
+ allowCreate: true
75
+ allowDelete: true
76
+ allowEdit: true
77
+ allowRead: true
78
+ modifyAllRecords: false
79
+ viewAllRecords: false
80
+ modifyCompanyRecords: true
81
+ viewCompanyRecords: true
82
+ organization_admin:
83
+ allowCreate: true
84
+ allowDelete: true
85
+ allowEdit: true
86
+ allowRead: true
87
+ modifyAllRecords: false
88
+ viewAllRecords: false
89
+ modifyCompanyRecords: true
90
+ viewCompanyRecords: true
@@ -54,8 +54,12 @@ permission_set:
54
54
  viewAllRecords: false
55
55
  modifyCompanyRecords: true
56
56
  viewCompanyRecords: true
57
- disabled_list_views: []
58
- disabled_actions: []
59
- unreadable_fields: []
60
- uneditable_fields: []
61
- unrelated_objects: []
57
+ organization_admin:
58
+ allowCreate: true
59
+ allowDelete: true
60
+ allowEdit: true
61
+ allowRead: true
62
+ modifyAllRecords: false
63
+ viewAllRecords: false
64
+ modifyCompanyRecords: true
65
+ viewCompanyRecords: true
@@ -630,7 +630,7 @@
630
630
  "current.fields.$.visibleOn"
631
631
  ],
632
632
  "fieldsExtend": "{\n \"current\": {\n \"label\": false\n },\n \"current.fields\": {\n \"label\": false\n }\n}",
633
- "formDataFilter": "if (!form.onEvent.change) {\n form.onEvent.change = { actions: [] }\n};\nform.onEvent.change.actions.push({\n actionType: \"custom\",\n script: \"console.log('onChange event.data', event.data)\"\n}, {\n \"actionType\": \"ajax\",\n \"outputVar\": \"responseResult\",\n \"args\": {\n \"options\": { \"silent\": false },\n \"api\": {\n \"url\": \"/api/workflow/updateFormFields\",\n \"method\": \"post\",\n \"requestAdaptor\": `\n console.log('api.data', api, 'context', context);\n var fields = (context.current.fields || []).map(function(item){\n if(item.config.type){item.type='steedos-field'} // 有时编辑children子行记录时未同步到fields属性值中,造成保存数据不成功\n if(item.children){\n var newItem = _.clone(item);\n newItem.fields = newItem.children;\n delete newItem.children;\n return newItem;\n }\n else{\n return item;\n }\n });\n api.data = { \n formId: context.current.form, \n fields: fields\n };\n return api;\n `,\n \"adaptor\": \"\",\n \"messages\": {},\n \"dataType\": \"json\"\n }\n }\n})"
633
+ "formDataFilter": "if (!form.onEvent.change) {\n form.onEvent.change = { actions: [] }\n};\nform.onEvent.change.actions.push({\n actionType: \"custom\",\n script: \"console.log('onChange event.data', event.data)\"\n}, {\n \"actionType\": \"ajax\",\n \"outputVar\": \"responseResult\",\n \"args\": {\n \"options\": { \"silent\": false },\n \"api\": {\n \"url\": \"/api/workflow/updateFormFields\",\n \"method\": \"post\",\n \"requestAdaptor\": `\n console.log('api.data', api, 'context', context);\n var fields = (context.current.fields || []).map(function(item){\n if(item.config && item.config.type){item.type='steedos-field'} // 有时编辑children子行记录时未同步到fields属性值中,造成保存数据不成功\n if(item.children){\n var newItem = _.clone(item);\n newItem.fields = newItem.children;\n delete newItem.children;\n return newItem;\n }\n else{\n return item;\n }\n });\n api.data = { \n formId: context.current.form, \n fields: fields\n };\n return api;\n `,\n \"adaptor\": \"\",\n \"messages\": {},\n \"dataType\": \"json\"\n }\n }\n})"
634
634
  }
635
635
  ],
636
636
  "id": "u:827750209c5d",
@@ -13,9 +13,9 @@ permissions:
13
13
  permission_set: customer
14
14
  - permission: 'off'
15
15
  permission_set: supplier
16
- - permission: 'off'
16
+ - permission: 'on'
17
17
  permission_set: organization_admin
18
- - permission: 'off'
18
+ - permission: 'on'
19
19
  permission_set: workflow_admin
20
20
  type: object
21
21
  object: categories
@@ -13,9 +13,9 @@ permissions:
13
13
  permission_set: customer
14
14
  - permission: 'off'
15
15
  permission_set: supplier
16
- - permission: 'off'
16
+ - permission: 'on'
17
17
  permission_set: organization_admin
18
- - permission: 'off'
18
+ - permission: 'on'
19
19
  permission_set: workflow_admin
20
20
  type: object
21
21
  object: flow_roles
@@ -13,9 +13,9 @@ permissions:
13
13
  permission_set: customer
14
14
  - permission: 'off'
15
15
  permission_set: supplier
16
- - permission: 'off'
16
+ - permission: 'on'
17
17
  permission_set: organization_admin
18
- - permission: 'off'
18
+ - permission: 'on'
19
19
  permission_set: workflow_admin
20
20
  type: object
21
21
  object: flows
@@ -13,9 +13,9 @@ permissions:
13
13
  permission_set: customer
14
14
  - permission: 'off'
15
15
  permission_set: supplier
16
- - permission: 'off'
16
+ - permission: 'on'
17
17
  permission_set: organization_admin
18
- - permission: 'off'
18
+ - permission: 'on'
19
19
  permission_set: workflow_admin
20
20
  type: object
21
21
  object: instance_number_rules
@@ -13,9 +13,9 @@ permissions:
13
13
  permission_set: customer
14
14
  - permission: 'off'
15
15
  permission_set: supplier
16
- - permission: 'off'
16
+ - permission: 'on'
17
17
  permission_set: organization_admin
18
- - permission: 'off'
18
+ - permission: 'on'
19
19
  permission_set: workflow_admin
20
20
  type: object
21
21
  object: process_delegation_rules
@@ -13,9 +13,9 @@ permissions:
13
13
  permission_set: customer
14
14
  - permission: 'off'
15
15
  permission_set: supplier
16
- - permission: 'off'
16
+ - permission: 'on'
17
17
  permission_set: organization_admin
18
- - permission: 'off'
18
+ - permission: 'on'
19
19
  permission_set: workflow_admin
20
20
  type: object
21
21
  object: space_user_signs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-labs/plugin-workflow",
3
- "version": "3.0.9",
3
+ "version": "3.0.11",
4
4
  "main": "package.service.js",
5
5
  "license": "MIT",
6
6
  "scripts": {