@steedos/service-core-objects 3.0.0-beta.103 → 3.0.0-beta.105
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/applications/.gitkeep +0 -0
- package/main/default/applications/admin.app.yml +176 -0
- package/main/default/objectTranslations/audit_records.en/audit_records.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/company.en/company.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/logs.en/logs.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/objects.en/objects.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/operation_logs.en/operation_logs.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/organizations.en/organizations.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/process_delegation_rules.en/process_delegation_rules.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/sessions.en/sessions.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/settings.en/settings.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/space_users.en/space_users.en.objectTranslation.yml +1 -1
- package/main/default/objects/_base/base.object.js +1 -1
- package/main/default/objects/audit_records.object.yml +1 -1
- package/main/default/objects/company/company.object.yml +1 -1
- package/main/default/objects/logs/logs.object.yml +1 -1
- package/main/default/objects/object_functions/object_functions.object.yml +1 -1
- package/main/default/objects/object_webhooks/object_webhooks.object.yml +1 -1
- package/main/default/objects/permission_set/buttons/copy.button.yml +114 -0
- package/main/default/objects/permission_set/buttons/set_permission_tabs.button.yml +166 -0
- package/main/default/objects/{permission_set.object.yml → permission_set/permission_set.object.yml} +1 -1
- package/main/default/objects/sessions.object.yml +1 -1
- package/main/default/pages/about.page.amis.json +21 -4
- package/main/default/tabs/admin_bull_dashboard.tab.yml +2 -1
- package/main/default/tabs/admin_object_functions.tab.yml +21 -0
- package/main/default/tabs/admin_swagger.tab.yml +22 -0
- package/main/default/translations/en.translation.yml +2 -2
- package/package.json +3 -3
|
File without changes
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
name: Setup
|
|
2
|
+
code: admin
|
|
3
|
+
description: 管理员设置公司、人员、权限等。
|
|
4
|
+
icon: ion-ios-people-outline
|
|
5
|
+
icon_slds: settings
|
|
6
|
+
is_creator: true
|
|
7
|
+
showSidebar: true
|
|
8
|
+
mobile: true
|
|
9
|
+
tab_groups:
|
|
10
|
+
- group_name: personal_settings
|
|
11
|
+
- group_name: company_settings
|
|
12
|
+
- group_name: apps
|
|
13
|
+
- group_name: object_settings
|
|
14
|
+
- group_name: user_interface
|
|
15
|
+
- group_name: statistical_analysis
|
|
16
|
+
default_open: false
|
|
17
|
+
- group_name: process_automation
|
|
18
|
+
default_open: false
|
|
19
|
+
- group_name: approval_workflow
|
|
20
|
+
default_open: false
|
|
21
|
+
- group_name: development
|
|
22
|
+
default_open: false
|
|
23
|
+
- group_name: advanced_settings
|
|
24
|
+
default_open: false
|
|
25
|
+
tab_items:
|
|
26
|
+
# admin_space_user_info:
|
|
27
|
+
# group: 个人设置
|
|
28
|
+
# index: 1
|
|
29
|
+
admin_personal_information:
|
|
30
|
+
group: personal_settings
|
|
31
|
+
index: 1
|
|
32
|
+
admin_space_info:
|
|
33
|
+
group: company_settings
|
|
34
|
+
index: 3
|
|
35
|
+
admin_company:
|
|
36
|
+
group: company_settings
|
|
37
|
+
index: 4
|
|
38
|
+
admin_organizations:
|
|
39
|
+
group: company_settings
|
|
40
|
+
index: 5
|
|
41
|
+
admin_space_users:
|
|
42
|
+
group: company_settings
|
|
43
|
+
index: 6
|
|
44
|
+
admin_permission_set:
|
|
45
|
+
group: company_settings
|
|
46
|
+
index: 7
|
|
47
|
+
admin_license:
|
|
48
|
+
group: company_settings
|
|
49
|
+
index: 9
|
|
50
|
+
admin_objects:
|
|
51
|
+
group: apps
|
|
52
|
+
index: 10
|
|
53
|
+
admin_pages:
|
|
54
|
+
group: apps
|
|
55
|
+
index: 11
|
|
56
|
+
admin_tabs:
|
|
57
|
+
group: apps
|
|
58
|
+
index: 12
|
|
59
|
+
admin_apps:
|
|
60
|
+
group: apps
|
|
61
|
+
index: 13
|
|
62
|
+
# admin_queue_import:
|
|
63
|
+
# group: apps
|
|
64
|
+
# index: 18
|
|
65
|
+
# admin_datasources:
|
|
66
|
+
# group: apps
|
|
67
|
+
# index: 20
|
|
68
|
+
admin_steedos_packages:
|
|
69
|
+
group: apps
|
|
70
|
+
index: 18
|
|
71
|
+
admin_developer:
|
|
72
|
+
group: development
|
|
73
|
+
index: 19.50
|
|
74
|
+
# admin_metadata:
|
|
75
|
+
# group: development
|
|
76
|
+
# index: 19.505
|
|
77
|
+
admin_process_definition:
|
|
78
|
+
group: process_automation
|
|
79
|
+
index: 20
|
|
80
|
+
admin_workflow_rule:
|
|
81
|
+
group: process_automation
|
|
82
|
+
index: 21
|
|
83
|
+
admin_action_field_updates:
|
|
84
|
+
group: process_automation
|
|
85
|
+
index: 23
|
|
86
|
+
admin_workflow_notifications:
|
|
87
|
+
group: process_automation
|
|
88
|
+
index: 24
|
|
89
|
+
admin_workflow_outbound_messages:
|
|
90
|
+
group: process_automation
|
|
91
|
+
index: 25
|
|
92
|
+
# admin_flows:
|
|
93
|
+
# group: approval_workflow
|
|
94
|
+
# index: 20
|
|
95
|
+
# admin_roles:
|
|
96
|
+
# group: approval_workflow
|
|
97
|
+
# index: 25
|
|
98
|
+
# admin_flow_roles:
|
|
99
|
+
# group: approval_workflow
|
|
100
|
+
# index: 26
|
|
101
|
+
# admin_flow_positions:
|
|
102
|
+
# group: approval_workflow
|
|
103
|
+
# index: 26.5
|
|
104
|
+
# admin_categories:
|
|
105
|
+
# group: approval_workflow
|
|
106
|
+
# index: 28
|
|
107
|
+
# admin_instance_number_rules:
|
|
108
|
+
# group: approval_workflow
|
|
109
|
+
# index: 29
|
|
110
|
+
# admin_space_user_signs:
|
|
111
|
+
# group: approval_workflow
|
|
112
|
+
# index: 30
|
|
113
|
+
# admin_instances_statistic:
|
|
114
|
+
# group: approval_workflow
|
|
115
|
+
# index: 31
|
|
116
|
+
# admin_webhooks:
|
|
117
|
+
# group: approval_workflow
|
|
118
|
+
# index: 32
|
|
119
|
+
# admin_object_workflows:
|
|
120
|
+
# group: approval_workflow
|
|
121
|
+
# index: 33
|
|
122
|
+
admin_sessions:
|
|
123
|
+
group: advanced_settings
|
|
124
|
+
index: 34
|
|
125
|
+
# admin_dashboard:
|
|
126
|
+
# group: 高级设置
|
|
127
|
+
# index: 35
|
|
128
|
+
admin_autonumber:
|
|
129
|
+
group: advanced_settings
|
|
130
|
+
index: 37
|
|
131
|
+
# admin_web_forms:
|
|
132
|
+
# group: 高级设置
|
|
133
|
+
# index: 38
|
|
134
|
+
# admin_holidays:
|
|
135
|
+
# group: advanced_settings
|
|
136
|
+
# index: 39
|
|
137
|
+
# admin_business_hours:
|
|
138
|
+
# group: advanced_settings
|
|
139
|
+
# index: 40
|
|
140
|
+
# admin_object_webhooks:
|
|
141
|
+
# group: 高级设置
|
|
142
|
+
# index: 41
|
|
143
|
+
admin_api_keys:
|
|
144
|
+
group: development
|
|
145
|
+
index: 41
|
|
146
|
+
admin_swagger:
|
|
147
|
+
group: development
|
|
148
|
+
index: 42
|
|
149
|
+
admin_developer_triggers:
|
|
150
|
+
group: development
|
|
151
|
+
index: 42.2
|
|
152
|
+
admin_object_functions:
|
|
153
|
+
group: development
|
|
154
|
+
index: 42.3
|
|
155
|
+
admin_object_webhooks:
|
|
156
|
+
group: development
|
|
157
|
+
index: 42.5
|
|
158
|
+
admin_bull_dashboard:
|
|
159
|
+
group: development
|
|
160
|
+
index: 43
|
|
161
|
+
admin_settings:
|
|
162
|
+
group: advanced_settings
|
|
163
|
+
index: 50
|
|
164
|
+
admin_logs:
|
|
165
|
+
group: advanced_settings
|
|
166
|
+
index: 52
|
|
167
|
+
admin_audit_records:
|
|
168
|
+
group: advanced_settings
|
|
169
|
+
index: 36
|
|
170
|
+
admin_operation_logs:
|
|
171
|
+
group: advanced_settings
|
|
172
|
+
index: 60
|
|
173
|
+
objects: []
|
|
174
|
+
sort: 999999
|
|
175
|
+
#url: /app/admin
|
|
176
|
+
visible: true
|
|
@@ -14,7 +14,7 @@ var standardCustomizeSaveRequestAdaptor = `
|
|
|
14
14
|
delete newDoc.responseStatus;
|
|
15
15
|
}
|
|
16
16
|
else if(objectName === "permission_set"){
|
|
17
|
-
objectFields = ['name', 'label', 'type', 'license', 'lockout_interval', 'max_login_attempts', 'password_history', 'default_standard_buttons'];
|
|
17
|
+
objectFields = ['name', 'label', 'type', 'license', 'lockout_interval', 'max_login_attempts', 'password_history', 'default_standard_buttons', 'assigned_apps'];
|
|
18
18
|
_.each(objectFields, function(v, k){
|
|
19
19
|
if(_.has(doc, v)){
|
|
20
20
|
newDoc[v] = doc[v];
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
name: copy
|
|
2
|
+
amis_schema: |-
|
|
3
|
+
{
|
|
4
|
+
"type": "service",
|
|
5
|
+
"body": [
|
|
6
|
+
{
|
|
7
|
+
"type": "button",
|
|
8
|
+
"label": "${'permission_set.copy.copy' | t}",
|
|
9
|
+
"id": "u:copy",
|
|
10
|
+
"onEvent": {
|
|
11
|
+
"click": {
|
|
12
|
+
"weight": 0,
|
|
13
|
+
"actions": [
|
|
14
|
+
{
|
|
15
|
+
"dialog": {
|
|
16
|
+
"type": "dialog",
|
|
17
|
+
"title": "${'permission_set.copy.copy_record' | t}",
|
|
18
|
+
"body": [
|
|
19
|
+
{
|
|
20
|
+
"type": "form",
|
|
21
|
+
"title": "表单",
|
|
22
|
+
"body": [
|
|
23
|
+
{
|
|
24
|
+
"label": "${'permission_set.copy.display_name' | t}",
|
|
25
|
+
"type": "input-text",
|
|
26
|
+
"value": "${'permission_set.copy.copy_of_record' | t:${record.label}}",
|
|
27
|
+
"name": "label_input",
|
|
28
|
+
"id": "u:24e89a11d437",
|
|
29
|
+
"required": true
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "input-text",
|
|
33
|
+
"name": "name_input",
|
|
34
|
+
"value": "${record.name}_copy",
|
|
35
|
+
"label": "${'permission_set.copy.api_name' | t}",
|
|
36
|
+
"id": "u:27bd7cfe3e12",
|
|
37
|
+
"required": true
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"api": {
|
|
41
|
+
"url": "${context.rootUrl}/api/permission/permission_set/copy",
|
|
42
|
+
"method": "post",
|
|
43
|
+
"messages": {
|
|
44
|
+
"success": "复制成功"
|
|
45
|
+
},
|
|
46
|
+
"requestAdaptor": "delete api.body.label_input;\ndelete api.body.name_input;",
|
|
47
|
+
"data": {
|
|
48
|
+
"&": "$$",
|
|
49
|
+
"label": "${label_input}",
|
|
50
|
+
"name": "${name_input}",
|
|
51
|
+
"originalPermissionSetId": "${record._id}"
|
|
52
|
+
},
|
|
53
|
+
"headers": {
|
|
54
|
+
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"onEvent": {
|
|
58
|
+
"submitSucc": {
|
|
59
|
+
"weight": 0,
|
|
60
|
+
"actions": [
|
|
61
|
+
{
|
|
62
|
+
"args": {
|
|
63
|
+
"url": "${context.rootUrl}/app/${appId}/${objectName}/view/${result.data.recordId}",
|
|
64
|
+
"blank": false
|
|
65
|
+
},
|
|
66
|
+
"actionType": "url"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"id": "u:818f7b68417b",
|
|
72
|
+
"mode": "normal"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"showCloseButton": true,
|
|
76
|
+
"showErrorMsg": true,
|
|
77
|
+
"showLoading": true,
|
|
78
|
+
"id": "u:9f9b042404a1",
|
|
79
|
+
"closeOnEsc": false,
|
|
80
|
+
"dataMapSwitch": false,
|
|
81
|
+
"size": "md"
|
|
82
|
+
},
|
|
83
|
+
"actionType": "dialog"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"regions": [
|
|
91
|
+
"body"
|
|
92
|
+
],
|
|
93
|
+
"data": {
|
|
94
|
+
"context": {},
|
|
95
|
+
"app_id": "",
|
|
96
|
+
"tab_id": "",
|
|
97
|
+
"object_name": "",
|
|
98
|
+
"dataComponentId": "",
|
|
99
|
+
"record_id": "",
|
|
100
|
+
"record": {},
|
|
101
|
+
"permissions": {}
|
|
102
|
+
},
|
|
103
|
+
"bodyClassName": "p-0",
|
|
104
|
+
"id": "u:4b81eda72f12"
|
|
105
|
+
}
|
|
106
|
+
is_enable: true
|
|
107
|
+
label: 复制
|
|
108
|
+
'on': record_only
|
|
109
|
+
type: amis_button
|
|
110
|
+
visible: !!js/function |
|
|
111
|
+
function (object_name, record_id, record_permissions, record) {
|
|
112
|
+
|
|
113
|
+
return record.record.type == 'profile';
|
|
114
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
name: set_permission_tabs
|
|
2
|
+
amis_schema: |-
|
|
3
|
+
{
|
|
4
|
+
"type": "service",
|
|
5
|
+
"body": [
|
|
6
|
+
{
|
|
7
|
+
"type": "button",
|
|
8
|
+
"label": "${'permission_set.set_permission_tabs.set_permission' | t}",
|
|
9
|
+
"id": "u:set_permission_tabs",
|
|
10
|
+
"onEvent": {
|
|
11
|
+
"click": {
|
|
12
|
+
"actions": [
|
|
13
|
+
{
|
|
14
|
+
"actionType": "dialog",
|
|
15
|
+
"dialog": {
|
|
16
|
+
"type": "dialog",
|
|
17
|
+
"title": "${'permission_set.set_permission_tabs.set_permission' | t}",
|
|
18
|
+
"body": [
|
|
19
|
+
{
|
|
20
|
+
"type": "form",
|
|
21
|
+
"id": "u:2281889ba1e7",
|
|
22
|
+
"body": [
|
|
23
|
+
{
|
|
24
|
+
"type": "input-table",
|
|
25
|
+
"id": "u:1516aff9070c",
|
|
26
|
+
"name": "permission_tabs_list",
|
|
27
|
+
"label": "",
|
|
28
|
+
"columns": [
|
|
29
|
+
{
|
|
30
|
+
"label": "${'permission_set.set_permission_tabs.tab' | t}",
|
|
31
|
+
"name": "tab.label",
|
|
32
|
+
"type": "text",
|
|
33
|
+
"id": "u:ebd95b18057a",
|
|
34
|
+
"placeholder": "-"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"label": "${'permission_set.set_permission_tabs.permission' | t}",
|
|
38
|
+
"name": "permission",
|
|
39
|
+
"type": "select",
|
|
40
|
+
"id": "u:ad5dcb76754f",
|
|
41
|
+
"options": [
|
|
42
|
+
{
|
|
43
|
+
"label": "默认打开",
|
|
44
|
+
"value": "on"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"label": "默认关闭",
|
|
48
|
+
"value": "off"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"value": "on"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"strictMode": true,
|
|
55
|
+
"disabled": false,
|
|
56
|
+
"mode": "normal"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"messages": {},
|
|
60
|
+
"initApi": {
|
|
61
|
+
"method": "post",
|
|
62
|
+
"url": "${context.rootUrl}/graphql",
|
|
63
|
+
"data": {
|
|
64
|
+
"&": "$$",
|
|
65
|
+
"record": "${record}"
|
|
66
|
+
},
|
|
67
|
+
"adaptor": "const data = payload.data\nconst { permission_tabs, tabs } = data\nconst tableOptions = []\nconst tabNames = [] // 用于存储已经遍历过的选项卡,防止重复\nfor (const pTab of permission_tabs) {\n tableOptions.push({\n tab: {\n _id: pTab.tab__expand?._id,\n name: pTab.tab__expand?.name,\n label: pTab.tab__expand?.label\n },\n permission: pTab.permission\n })\n tabNames.push(pTab.tab__expand?.name)\n}\n\nfor (const tab of tabs) {\n if (tabNames.includes(tab.name)) {\n continue\n }\n tableOptions.push({\n tab: {\n _id: tab._id,\n name: tab.name,\n label: tab.label\n },\n permission: 'on'\n })\n}\n\ndata.permission_tabs_list = tableOptions\n\nreturn payload\n",
|
|
68
|
+
"headers": {
|
|
69
|
+
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
70
|
+
},
|
|
71
|
+
"requestAdaptor": "const record = api.body.record\napi.data.query = `\n{\n permission_tabs(filters: [[\"permission_set\", \"=\", \"${record.name}\"]]) {\n _id\n permission\n tab__expand {\n _id\n name\n label\n }\n }\n tabs {\n _id\n name\n label\n }\n}\n`\ndelete api.body.record;\nreturn api;",
|
|
72
|
+
"dataType": "json"
|
|
73
|
+
},
|
|
74
|
+
"api": {
|
|
75
|
+
"method": "post",
|
|
76
|
+
"url": "${context.rootUrl}/api/permission/permission_set/batchSavePermissionTabs",
|
|
77
|
+
"data": {
|
|
78
|
+
"&": "$$",
|
|
79
|
+
"record": "${record}",
|
|
80
|
+
"record_id": "${record_id}"
|
|
81
|
+
},
|
|
82
|
+
"requestAdaptor": "api.data.permission_set_name = api.data.record.name\ndelete api.data.permission_tabs\ndelete api.data.record\ndelete api.data.tabs\n\nreturn api",
|
|
83
|
+
"dataType": "json"
|
|
84
|
+
},
|
|
85
|
+
"onEvent": {
|
|
86
|
+
"submitSucc": {
|
|
87
|
+
"weight": 0,
|
|
88
|
+
"actions": [
|
|
89
|
+
{
|
|
90
|
+
"actionType": "custom",
|
|
91
|
+
"script": "/* 自定义JS使用说明: \n * 1.动作执行函数doAction,可以执行所有类型的动作\n * 2.通过上下文对象context可以获取当前组件实例,例如context.props可以获取该组件相关属性\n * 3.事件对象event,在doAction之后执行event.stopPropagation = true;可以阻止后续动作执行\n*/\n\nSteedosUI.router.go({ objectName: 'permission_set', recordId: context.props.data.record_id, type: 'edit' });\n"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"id": "u:5d6ebd078296",
|
|
99
|
+
"closeOnEsc": false,
|
|
100
|
+
"closeOnOutside": false,
|
|
101
|
+
"showCloseButton": true,
|
|
102
|
+
"data": null,
|
|
103
|
+
"size": "lg",
|
|
104
|
+
"actions": [
|
|
105
|
+
{
|
|
106
|
+
"type": "button",
|
|
107
|
+
"label": "${'permission_set.set_permission_tabs.cancel' | t}",
|
|
108
|
+
"onEvent": {
|
|
109
|
+
"click": {
|
|
110
|
+
"actions": [
|
|
111
|
+
{
|
|
112
|
+
"componentId": "",
|
|
113
|
+
"args": {},
|
|
114
|
+
"actionType": "closeDialog"
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"id": "u:f1b8dabafee5",
|
|
120
|
+
"level": "default"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"type": "submit",
|
|
124
|
+
"label": "${'permission_set.set_permission_tabs.save' | t}",
|
|
125
|
+
"onEvent": {},
|
|
126
|
+
"id": "u:246398c1f14c",
|
|
127
|
+
"level": "primary",
|
|
128
|
+
"close": true,
|
|
129
|
+
"hidden": false
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"weight": 0
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"level": "enhance"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"regions": [
|
|
142
|
+
"body"
|
|
143
|
+
],
|
|
144
|
+
"data": {
|
|
145
|
+
"context": {
|
|
146
|
+
"rootUrl": "http://127.0.0.1:5100"
|
|
147
|
+
},
|
|
148
|
+
"app_id": "",
|
|
149
|
+
"tab_id": "",
|
|
150
|
+
"object_name": "",
|
|
151
|
+
"dataComponentId": "",
|
|
152
|
+
"record_id": "",
|
|
153
|
+
"record": {},
|
|
154
|
+
"permissions": {}
|
|
155
|
+
},
|
|
156
|
+
"id": "u:ae64657bc500",
|
|
157
|
+
"bodyClassName": "p-0"
|
|
158
|
+
}
|
|
159
|
+
is_enable: true
|
|
160
|
+
label: 设置选项卡权限
|
|
161
|
+
'on': record_only
|
|
162
|
+
type: amis_button
|
|
163
|
+
visible: !!js/function |
|
|
164
|
+
function (object_name, record_id, record_permissions, data) {
|
|
165
|
+
return data.record.type === 'profile';
|
|
166
|
+
}
|
|
@@ -10,6 +10,17 @@
|
|
|
10
10
|
"tpl": "<div class='flex' style='align-items: center;'><div style='margin-right: 10px;'><span><span><svg class='slds-icon slds-icon_container slds-icon-standard-team-member slds-page-header__icon' aria-hidden='true'><use xlink:href='/assets/icons/standard-sprite/svg/symbols.svg#team_member'></use></svg></span></span></div><div class='text-lg leading-none text-black font-bold'><span>关于</span></div></div>"
|
|
11
11
|
},
|
|
12
12
|
"body": [
|
|
13
|
+
{
|
|
14
|
+
"type": "input-text",
|
|
15
|
+
"label": {
|
|
16
|
+
"type": "tpl",
|
|
17
|
+
"tpl": "Product"
|
|
18
|
+
},
|
|
19
|
+
"name": "steedos",
|
|
20
|
+
"value": "Steedos Platform",
|
|
21
|
+
"static": true,
|
|
22
|
+
"className": "mb-0 border-b py-1 ml-2"
|
|
23
|
+
},
|
|
13
24
|
{
|
|
14
25
|
"type": "input-text",
|
|
15
26
|
"label": {
|
|
@@ -28,6 +39,7 @@
|
|
|
28
39
|
"tpl": "<%= ['资产包','Asset package','資産パッケージ'][['zh-cn','en-us','ja'].indexOf(data.global.user.locale || 'zh-cn')] %>"
|
|
29
40
|
},
|
|
30
41
|
"type": "input-text",
|
|
42
|
+
"hiddenOn": "true",
|
|
31
43
|
"name": "zichan",
|
|
32
44
|
"id": "u:65ad5545aeda",
|
|
33
45
|
"value": "${window:Builder.settings.assetUrls}",
|
|
@@ -41,6 +53,7 @@
|
|
|
41
53
|
"tpl": "<%= ['Amis版本','Amis Version','Amis バージョン'][['zh-cn','en-us','ja'].indexOf(data.global.user.locale || 'zh-cn')] %>"
|
|
42
54
|
},
|
|
43
55
|
"name": "Amis",
|
|
56
|
+
"hiddenOn": "true",
|
|
44
57
|
"id": "u:8a4d0a674931",
|
|
45
58
|
"value": "${window:Builder.settings.steedosAmisVersion}",
|
|
46
59
|
"static": true,
|
|
@@ -52,6 +65,7 @@
|
|
|
52
65
|
"tpl": "<%= ['CDN服务器','CDN Server','CDN サーバー'][['zh-cn','en-us','ja'].indexOf(data.global.user.locale || 'zh-cn')] %>"
|
|
53
66
|
},
|
|
54
67
|
"name": "CDN",
|
|
68
|
+
"hiddenOn": "true",
|
|
55
69
|
"type": "input-text",
|
|
56
70
|
"id": "u:5491c057ce27",
|
|
57
71
|
"value": "${window:Builder.settings.unpkgUrl}",
|
|
@@ -59,7 +73,7 @@
|
|
|
59
73
|
"className": "mb-0 border-b py-1 ml-2"
|
|
60
74
|
},
|
|
61
75
|
{
|
|
62
|
-
"label": "
|
|
76
|
+
"label": "URL",
|
|
63
77
|
"name": "RootUrl",
|
|
64
78
|
"type": "input-text",
|
|
65
79
|
"id": "u:184e9280ea50",
|
|
@@ -71,20 +85,20 @@
|
|
|
71
85
|
"type": "button-toolbar",
|
|
72
86
|
"label": {
|
|
73
87
|
"type": "tpl",
|
|
74
|
-
"tpl": "<%= ['
|
|
88
|
+
"tpl": "<%= ['官网','Website','テクニカルサポート'][['zh-cn','en-us','ja'].indexOf(data.global.user.locale || 'zh-cn')] %>"
|
|
75
89
|
},
|
|
76
90
|
"className": "mb-0 border-b py-1 ml-2",
|
|
77
91
|
"buttons": [
|
|
78
92
|
{
|
|
79
93
|
"type": "button",
|
|
80
|
-
"label": "https://www.steedos.
|
|
94
|
+
"label": "https://www.steedos.com/",
|
|
81
95
|
"level": "link",
|
|
82
96
|
"style": {
|
|
83
97
|
"padding": 0,
|
|
84
98
|
"margin": 0,
|
|
85
99
|
"height": "unset"
|
|
86
100
|
},
|
|
87
|
-
"onClick": "Steedos.openWindow('https://www.steedos.
|
|
101
|
+
"onClick": "Steedos.openWindow('https://www.steedos.com/');"
|
|
88
102
|
}
|
|
89
103
|
],
|
|
90
104
|
"inputClassName": "antd-Form-static m-0",
|
|
@@ -95,6 +109,7 @@
|
|
|
95
109
|
"type": "tpl",
|
|
96
110
|
"tpl": "<%= ['客服热线','Customer Service Hotline','カスタマーサービスホットライン'][['zh-cn','en-us','ja'].indexOf(data.global.user.locale || 'zh-cn')] %>"
|
|
97
111
|
},
|
|
112
|
+
"hiddenOn": "true",
|
|
98
113
|
"name": "rexian",
|
|
99
114
|
"type": "input-text",
|
|
100
115
|
"id": "u:27b9745bd047",
|
|
@@ -104,6 +119,7 @@
|
|
|
104
119
|
},
|
|
105
120
|
{
|
|
106
121
|
"type": "button-toolbar",
|
|
122
|
+
"hiddenOn": "true",
|
|
107
123
|
"label": {
|
|
108
124
|
"type": "tpl",
|
|
109
125
|
"tpl": "<%= ['客服邮箱','Customer Service Email','カスタマーサービスのメールアドレス'][['zh-cn','en-us','ja'].indexOf(data.global.user.locale || 'zh-cn')] %>"
|
|
@@ -123,6 +139,7 @@
|
|
|
123
139
|
},
|
|
124
140
|
{
|
|
125
141
|
"type": "button-toolbar",
|
|
142
|
+
"hiddenOn": "true",
|
|
126
143
|
"label": {
|
|
127
144
|
"type": "tpl",
|
|
128
145
|
"tpl": "<%= ['隐私政策','Privacy Policy','プライバシーポリシー'][['zh-cn','en-us','ja'].indexOf(data.global.user.locale || 'zh-cn')] %>"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: admin_object_functions
|
|
2
|
+
desktop: true
|
|
3
|
+
icon: formula
|
|
4
|
+
is_new_window: false
|
|
5
|
+
label: Object Functions
|
|
6
|
+
mobile: true
|
|
7
|
+
permissions:
|
|
8
|
+
- permission: 'on'
|
|
9
|
+
permission_set: admin
|
|
10
|
+
- permission: 'off'
|
|
11
|
+
permission_set: user
|
|
12
|
+
- permission: 'off'
|
|
13
|
+
permission_set: customer
|
|
14
|
+
- permission: 'off'
|
|
15
|
+
permission_set: supplier
|
|
16
|
+
- permission: 'off'
|
|
17
|
+
permission_set: organization_admin
|
|
18
|
+
- permission: 'off'
|
|
19
|
+
permission_set: workflow_admin
|
|
20
|
+
type: object
|
|
21
|
+
object: object_functions
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: admin_swagger
|
|
2
|
+
desktop: true
|
|
3
|
+
icon: data_model
|
|
4
|
+
is_new_window: false
|
|
5
|
+
is_use_iframe: true
|
|
6
|
+
label: OpenAPI
|
|
7
|
+
mobile: true
|
|
8
|
+
permissions:
|
|
9
|
+
- permission: 'off'
|
|
10
|
+
permission_set: user
|
|
11
|
+
- permission: 'off'
|
|
12
|
+
permission_set: customer
|
|
13
|
+
- permission: 'off'
|
|
14
|
+
permission_set: supplier
|
|
15
|
+
- permission: 'on'
|
|
16
|
+
permission_set: admin
|
|
17
|
+
- permission: 'off'
|
|
18
|
+
permission_set: organization_admin
|
|
19
|
+
- permission: 'off'
|
|
20
|
+
permission_set: workflow_admin
|
|
21
|
+
type: url
|
|
22
|
+
url: /api/v6/
|
|
@@ -90,7 +90,7 @@ CustomTabs:
|
|
|
90
90
|
admin_objects: Objects
|
|
91
91
|
admin_datasources: External Data Sources
|
|
92
92
|
admin_queue_import: Data Import
|
|
93
|
-
admin_pages:
|
|
93
|
+
admin_pages: Custom Pages
|
|
94
94
|
admin_tabs: Tabs
|
|
95
95
|
admin_queries: Queries
|
|
96
96
|
admin_charts: Charts
|
|
@@ -112,7 +112,7 @@ CustomTabs:
|
|
|
112
112
|
admin_instances_statistic: Efficiency Statistics
|
|
113
113
|
admin_webhooks: Webhooks
|
|
114
114
|
admin_object_workflows: Object Synchronization Rules
|
|
115
|
-
admin_sessions: Sessions
|
|
115
|
+
admin_sessions: Login Sessions
|
|
116
116
|
admin_audit_records: Audit Records
|
|
117
117
|
admin_autonumber: Auto Number
|
|
118
118
|
admin_holidays: Holidays
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-core-objects",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.105",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"steedos"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@steedos/service-package-loader": "3.0.0-beta.
|
|
13
|
+
"@steedos/service-package-loader": "3.0.0-beta.105",
|
|
14
14
|
"json2xls": "^0.1.2",
|
|
15
15
|
"lodash": "^4.17.21"
|
|
16
16
|
},
|
|
17
17
|
"description": "steedos package",
|
|
18
18
|
"repository": {},
|
|
19
19
|
"license": "MIT",
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "4c1305cf315baf00491df315c5c8d8ef508262d0"
|
|
21
21
|
}
|