@steedos/standard-object-database 2.4.2 → 2.4.4
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/objects/object_fields.object.yml +4 -0
- package/main/default/objects/objects/pages/object_detail.page.amis.json +3 -0
- package/main/default/routes/amis_button_design.router.js +1 -2
- package/main/default/routes/amis_listview_design.router.js +1 -1
- package/main/default/triggers/objects.trigger.js +8 -0
- package/package.json +2 -2
|
@@ -177,6 +177,8 @@ fields:
|
|
|
177
177
|
type: currency
|
|
178
178
|
label: Precision
|
|
179
179
|
scale: 0
|
|
180
|
+
amis:
|
|
181
|
+
value: 18
|
|
180
182
|
# defaultValue: 18
|
|
181
183
|
visible_on: "{{
|
|
182
184
|
(function(){
|
|
@@ -214,6 +216,8 @@ fields:
|
|
|
214
216
|
label: Scale
|
|
215
217
|
scale: 0
|
|
216
218
|
# defaultValue: 2
|
|
219
|
+
amis:
|
|
220
|
+
value: 2
|
|
217
221
|
min: 0
|
|
218
222
|
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%.
|
|
219
223
|
visible_on: "{{
|
|
@@ -112,6 +112,7 @@
|
|
|
112
112
|
"objectApiName": "objects",
|
|
113
113
|
"recordId": "${recordId}",
|
|
114
114
|
"relatedObjectApiName": "permission_objects",
|
|
115
|
+
"relatedKey": "object_name",
|
|
115
116
|
"perPage": 20
|
|
116
117
|
}
|
|
117
118
|
]
|
|
@@ -150,6 +151,7 @@
|
|
|
150
151
|
"objectApiName": "objects",
|
|
151
152
|
"recordId": "${recordId}",
|
|
152
153
|
"relatedObjectApiName": "restriction_rules",
|
|
154
|
+
"relatedKey": "object_name",
|
|
153
155
|
"perPage": 20
|
|
154
156
|
}
|
|
155
157
|
]
|
|
@@ -162,6 +164,7 @@
|
|
|
162
164
|
"objectApiName": "objects",
|
|
163
165
|
"recordId": "${recordId}",
|
|
164
166
|
"relatedObjectApiName": "share_rules",
|
|
167
|
+
"relatedKey": "object_name",
|
|
165
168
|
"perPage": 20
|
|
166
169
|
}
|
|
167
170
|
]
|
|
@@ -24,8 +24,7 @@ router.get('/api/amisButtonDesign', core.requireAuthentication, async function (
|
|
|
24
24
|
// userId: userSession.userId,
|
|
25
25
|
// authToken: userSession.authToken
|
|
26
26
|
// }
|
|
27
|
-
|
|
28
|
-
const retUrl = __meteor_runtime_config__.ROOT_URL + `/app/admin/objects/${req.query.object}/object_actions/grid?related_field_name=object`
|
|
27
|
+
const retUrl = __meteor_runtime_config__.ROOT_URL + `/app/admin/object_actions/view/${req.query.id}`
|
|
29
28
|
const steedosBuilderUrl = process.env.STEEDOS_BUILDER_URL || 'https://builder.steedos.cn';
|
|
30
29
|
const builderHost = `${steedosBuilderUrl}/amis?${assetUrl}retUrl=${retUrl}`;
|
|
31
30
|
|
|
@@ -24,7 +24,7 @@ router.get('/api/amisListviewDesign', core.requireAuthentication, async function
|
|
|
24
24
|
// authToken: userSession.authToken
|
|
25
25
|
// }
|
|
26
26
|
|
|
27
|
-
const retUrl = __meteor_runtime_config__.ROOT_URL + `/app/admin/
|
|
27
|
+
const retUrl = __meteor_runtime_config__.ROOT_URL + `/app/admin/object_listviews/view/${req.query.id}`
|
|
28
28
|
const steedosBuilderUrl = process.env.STEEDOS_BUILDER_URL || 'https://builder.steedos.cn';
|
|
29
29
|
const builderHost = `${steedosBuilderUrl}/amis?${assetUrl}retUrl=${retUrl}`;
|
|
30
30
|
|
|
@@ -4,6 +4,14 @@ const objectql = require('@steedos/objectql');
|
|
|
4
4
|
const objectTree = require('../objects/objects.tree.js');
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
7
|
+
beforeFind: async function () {
|
|
8
|
+
delete this.query.fields;
|
|
9
|
+
},
|
|
10
|
+
|
|
11
|
+
beforeAggregate: async function () {
|
|
12
|
+
delete this.query.fields;
|
|
13
|
+
},
|
|
14
|
+
|
|
7
15
|
afterFind: async function(){
|
|
8
16
|
let userId = this.userId
|
|
9
17
|
let spaceId = this.spaceId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-object-database",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
},
|
|
16
16
|
"repository": {},
|
|
17
17
|
"license": "MIT",
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "04caa0eb2226278f96c01825dd2828170c1f9789"
|
|
19
19
|
}
|