@steedos/standard-ui 2.5.15-beta.8 → 2.5.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.
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
* @Author: baozhoutao@steedos.com
|
|
3
3
|
* @Date: 2023-04-11 14:05:42
|
|
4
4
|
* @LastEditors: baozhoutao@steedos.com
|
|
5
|
-
* @LastEditTime: 2023-
|
|
5
|
+
* @LastEditTime: 2023-10-09 15:44:47
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
module.exports = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
if(!record.enable_nav_schema){
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
if (record_permissions) {
|
|
22
|
-
perms = record_permissions;
|
|
23
|
-
} else {
|
|
24
|
-
record_permissions = Creator.getRecordPermissions(object_name, record, Meteor.userId());
|
|
25
|
-
if (record_permissions) {
|
|
26
|
-
perms = record_permissions;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return perms["allowEdit"];
|
|
9
|
+
amis_nav_schema_design: function (object_name, record_id) {
|
|
10
|
+
document.location = Steedos.absoluteUrl(`/api/amisAppNavSchemaDesign?id=${record_id}&object=${this.record.object_name}&assetUrls=${Builder.settings.assetUrls}&locale=${Builder.settings.locale}`);
|
|
11
|
+
},
|
|
12
|
+
amis_nav_schema_designVisible: function (object_name, record_id, record_permissions, data) {
|
|
13
|
+
var perms = {};
|
|
14
|
+
var record = data.record;
|
|
15
|
+
if (!record) {
|
|
16
|
+
return false;
|
|
30
17
|
}
|
|
31
|
-
|
|
18
|
+
if (!record.enable_nav_schema) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
if (record_permissions) {
|
|
22
|
+
perms = record_permissions;
|
|
23
|
+
} else {
|
|
24
|
+
record_permissions = Creator.getRecordPermissions(object_name, record, Meteor.userId());
|
|
25
|
+
if (record_permissions) {
|
|
26
|
+
perms = record_permissions;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return perms["allowEdit"];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* @Author: baozhoutao@steedos.com
|
|
3
3
|
* @Date: 2022-08-05 14:17:44
|
|
4
|
-
* @LastEditors:
|
|
5
|
-
* @LastEditTime: 2023-
|
|
4
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
5
|
+
* @LastEditTime: 2023-10-09 15:46:06
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
const _ = require('underscore');
|
|
@@ -81,8 +81,10 @@ module.exports = {
|
|
|
81
81
|
if(id && _.isEmpty(this.data.values)){
|
|
82
82
|
let lng = await getLng(this.userId);
|
|
83
83
|
let app = await objectql.getAppConfig(id);
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
if(app){
|
|
85
|
+
i18n.translationApp(lng, app._id, app)
|
|
86
|
+
Object.assign(this.data.values, Object.assign({code: app._id}, clone(app), baseRecord))
|
|
87
|
+
}
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
90
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-ui",
|
|
3
|
-
"version": "2.5.15
|
|
3
|
+
"version": "2.5.15",
|
|
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": "dd588460d9a446d76c1d065c342594e9bec1f14d"
|
|
16
16
|
}
|