@steedos/standard-object-database 2.6.7-beta.13 → 2.6.7-beta.15
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.
|
@@ -78,6 +78,7 @@ function initObjectPermission(userId, doc){
|
|
|
78
78
|
}
|
|
79
79
|
let psetsUserId = null;
|
|
80
80
|
let psetsUserLabel = null;
|
|
81
|
+
let psetsUserName = null;
|
|
81
82
|
let psetsUser = Creator.getCollection("permission_set").findOne({space: spaceId, name: 'user'});
|
|
82
83
|
if(!psetsUser){
|
|
83
84
|
psetsUserLabel = TAPi18n.__(`permission_set_user`, {}, lng)
|
|
@@ -88,14 +89,14 @@ function initObjectPermission(userId, doc){
|
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
Creator.getCollection("permission_objects").insert(Object.assign({}, Creator.getObject("base").permission_set.user, {
|
|
91
|
-
name: doc.
|
|
92
|
+
name: doc.name + '.' + "user",
|
|
92
93
|
permission_set_id : psetsUserId,
|
|
93
94
|
object_name : doc.name,
|
|
94
95
|
space: doc.space
|
|
95
96
|
}));
|
|
96
97
|
|
|
97
98
|
Creator.getCollection("permission_objects").insert(Object.assign({}, Creator.getObject("base").permission_set.admin, {
|
|
98
|
-
name: doc.
|
|
99
|
+
name: doc.name + '.' + "admin",
|
|
99
100
|
permission_set_id : psetsAdminId,
|
|
100
101
|
object_name : doc.name,
|
|
101
102
|
space: doc.space
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"body": [
|
|
40
40
|
{
|
|
41
41
|
"type": "steedos-input-table",
|
|
42
|
+
"inlineEditMode": true,
|
|
42
43
|
"fields": [
|
|
43
44
|
{
|
|
44
45
|
"name": "group_name",
|
|
@@ -52,6 +53,22 @@
|
|
|
52
53
|
"type": "text",
|
|
53
54
|
"id": "u:8d7551abcd28",
|
|
54
55
|
"value": null
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "collapsed",
|
|
59
|
+
"label": "默认折叠",
|
|
60
|
+
"type": "boolean"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"columns": [
|
|
64
|
+
{
|
|
65
|
+
"name": "group_name",
|
|
66
|
+
"inlineEditMode": false
|
|
67
|
+
},
|
|
68
|
+
"visible_on",
|
|
69
|
+
{
|
|
70
|
+
"name": "collapsed",
|
|
71
|
+
"width": 50
|
|
55
72
|
}
|
|
56
73
|
],
|
|
57
74
|
"name": "groups",
|
|
@@ -378,7 +395,7 @@
|
|
|
378
395
|
},
|
|
379
396
|
"messages": {},
|
|
380
397
|
"requestAdaptor": "",
|
|
381
|
-
"adaptor": "const field_groups = payload.data.objects[0] && _.map(payload.data.objects[0].field_groups, function (obj) {\
|
|
398
|
+
"adaptor": "const field_groups = payload.data.objects[0] && _.map(payload.data.objects[0].field_groups, function (obj) {\n return {\n \"id\": obj.group_name,\n \"group_name\": obj.group_name,\n \"visible_on\": obj.visible_on,\n \"default_folded\": obj.default_folded\n }\n});\nfield_groups.unshift({\n id: \"隐藏\",\n group_name: \"隐藏\",\n visible_on: \"\",\n is_hidden: true\n});\nfield_groups.unshift({\n id: \"未分组\",\n group_name: \"未分组\",\n visible_on: \"\",\n is_default: true\n});\n\n\n\nconst designObjectId = payload.data.objects[0] && payload.data.objects[0]._id;\nreturn payload = {\n data: {\n field_groups,\n designObjectId,\n designObjectLabel: payload.data.objects[0] && payload.data.objects[0].label,\n _master: {\n recordId: designObjectId\n }\n }\n}"
|
|
382
399
|
},
|
|
383
400
|
"messages": {},
|
|
384
401
|
"onEvent": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-object-database",
|
|
3
|
-
"version": "2.6.7-beta.
|
|
3
|
+
"version": "2.6.7-beta.15",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@steedos-widgets/amis-lib": "^1.0.22",
|
|
15
|
-
"@steedos/standard-objects": "2.6.7-beta.
|
|
15
|
+
"@steedos/standard-objects": "2.6.7-beta.15"
|
|
16
16
|
},
|
|
17
17
|
"repository": {},
|
|
18
18
|
"license": "MIT",
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "95b4e4191a00b65589ef3c56d645778e50fcdd59"
|
|
20
20
|
}
|