@steedos/standard-ui 2.4.0-beta.8 → 2.4.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/applications/admin.app.yml +3 -0
- package/main/default/objects/apps/buttons/amis_edit.button.yml +1 -1
- package/main/default/objects/apps.action.js +7 -5
- package/main/default/objects/apps.object.yml +8 -3
- package/main/default/objects/tabs.object.yml +0 -4
- package/main/default/tabs/admin_charts.tab.yml +1 -1
- package/main/default/tabs/admin_permission_set.tab.yml +2 -2
- package/main/default/tabs/admin_workflow_outbound_messages.tab.yml +21 -0
- package/package.json +2 -2
|
@@ -35,5 +35,5 @@ label: 编辑
|
|
|
35
35
|
type: amis_button
|
|
36
36
|
visible: !!js/function |
|
|
37
37
|
function (object_name, record_id, record_permissions, record) {
|
|
38
|
-
return Creator.baseObject.actions.standard_edit.visible() && !record.is_system;
|
|
38
|
+
return Creator.baseObject.actions.standard_edit.visible(object_name, record_id, record_permissions) && !record.is_system;
|
|
39
39
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* @Author: baozhoutao@hotoa.com
|
|
3
3
|
* @Date: 2021-12-27 10:49:33
|
|
4
|
-
* @LastEditors:
|
|
5
|
-
* @LastEditTime:
|
|
4
|
+
* @LastEditors: 廖大雪 2291335922@qq.com
|
|
5
|
+
* @LastEditTime: 2023-03-05 18:11:32
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
module.exports = {
|
|
@@ -20,7 +20,8 @@ module.exports = {
|
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
},
|
|
23
|
-
customizeVisible: function(object_name, record_id, record_permissions,
|
|
23
|
+
customizeVisible: function(object_name, record_id, record_permissions, data){
|
|
24
|
+
var record = data && data.record;
|
|
24
25
|
if(record._id === 'admin'){return false;}
|
|
25
26
|
return Creator.baseObject.actions.standard_new.visible() && record.is_system && !record.from_code_id;
|
|
26
27
|
},
|
|
@@ -35,8 +36,9 @@ module.exports = {
|
|
|
35
36
|
Creator.odata.update(object_name, record_id, newRecord);
|
|
36
37
|
FlowRouter.reload();
|
|
37
38
|
},
|
|
38
|
-
resetVisible: function(object_name, record_id, record_permissions,
|
|
39
|
-
|
|
39
|
+
resetVisible: function(object_name, record_id, record_permissions, data){
|
|
40
|
+
const record = data && data.record;
|
|
41
|
+
if(Creator.baseObject.actions.standard_edit.visible(object_name, record_id, record_permissions)){
|
|
40
42
|
return record.from_code_id;
|
|
41
43
|
}
|
|
42
44
|
},
|
|
@@ -109,11 +109,11 @@ fields:
|
|
|
109
109
|
is_creator:
|
|
110
110
|
type: boolean
|
|
111
111
|
label: Show this app for Desktop
|
|
112
|
-
defaultValue: true
|
|
112
|
+
# defaultValue: true
|
|
113
113
|
mobile:
|
|
114
114
|
type: boolean
|
|
115
115
|
label: Show this app for Mobile
|
|
116
|
-
defaultValue: true
|
|
116
|
+
# defaultValue: true
|
|
117
117
|
icon:
|
|
118
118
|
label: Icon
|
|
119
119
|
type: text
|
|
@@ -121,8 +121,13 @@ fields:
|
|
|
121
121
|
visible:
|
|
122
122
|
label: Visible
|
|
123
123
|
type: boolean
|
|
124
|
-
defaultValue: true
|
|
124
|
+
# defaultValue: true
|
|
125
125
|
|
|
126
|
+
showSidebar:
|
|
127
|
+
label: Show Sidebar
|
|
128
|
+
type: boolean
|
|
129
|
+
defaultValue: false
|
|
130
|
+
|
|
126
131
|
# members:
|
|
127
132
|
# type: object
|
|
128
133
|
# label: Members
|
|
@@ -69,10 +69,6 @@ fields:
|
|
|
69
69
|
type: lookup
|
|
70
70
|
reference_to: objects
|
|
71
71
|
reference_to_field: name
|
|
72
|
-
optionsFunction: !!js/function |
|
|
73
|
-
function () {
|
|
74
|
-
return Steedos.getObjectsOptions()
|
|
75
|
-
}
|
|
76
72
|
filterable: true
|
|
77
73
|
required: "{{'object' === formData.type ? true: false}}"
|
|
78
74
|
visible_on: "{{'object' === formData.type ? true: false}}"
|
|
@@ -2,7 +2,7 @@ name: admin_permission_set
|
|
|
2
2
|
desktop: true
|
|
3
3
|
icon: groups
|
|
4
4
|
is_new_window: false
|
|
5
|
-
label: 权限集
|
|
5
|
+
label: 简档 & 权限集
|
|
6
6
|
mobile: true
|
|
7
7
|
permissions:
|
|
8
8
|
- permission: 'on'
|
|
@@ -18,4 +18,4 @@ permissions:
|
|
|
18
18
|
- permission: 'off'
|
|
19
19
|
permission_set: workflow_admin
|
|
20
20
|
type: url
|
|
21
|
-
url: /app/admin/permission_set/grid/
|
|
21
|
+
url: /app/admin/permission_set/grid/all
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: admin_workflow_outbound_messages
|
|
2
|
+
desktop: true
|
|
3
|
+
icon: app
|
|
4
|
+
is_new_window: false
|
|
5
|
+
label: 出站消息
|
|
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: url
|
|
21
|
+
url: /app/admin/workflow_outbound_messages/grid/all
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-ui",
|
|
3
|
-
"version": "2.4.0
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"repository": {},
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "70a4e7417d8d86c47cf5c7e3bbe0e89f2cee4222"
|
|
16
16
|
}
|