@steedos/standard-object-database 2.4.0-beta.7 → 2.4.0-beta.9
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.
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
show_object: function (object_name, record_id, item_element) {
|
|
3
3
|
var record = this.record || Creator.getObjectById(record_id);
|
|
4
|
+
if(record && record.record){
|
|
5
|
+
record = record.record;
|
|
6
|
+
}
|
|
4
7
|
if(!record){
|
|
5
8
|
return toastr.error("未找到记录");
|
|
6
9
|
}
|
|
@@ -19,15 +22,16 @@ module.exports = {
|
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
|
|
22
|
-
window.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
window.open(Creator.getRelativeUrl("/app/admin/" + record.name));
|
|
26
|
+
// SteedosUI.Object.getUISchema(record.name).then((res)=>{
|
|
27
|
+
// if(res.idFieldName){
|
|
28
|
+
// window.open(Creator.getRelativeUrl("/app/-/" + record.name));
|
|
29
|
+
// }else{
|
|
30
|
+
// return toastr.error("请配置主键字段");
|
|
31
|
+
// }
|
|
32
|
+
// }).catch(function(err){
|
|
33
|
+
// return window.toastr.error(err.message);
|
|
34
|
+
// })
|
|
31
35
|
|
|
32
36
|
|
|
33
37
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-object-database",
|
|
3
|
-
"version": "2.4.0-beta.
|
|
3
|
+
"version": "2.4.0-beta.9",
|
|
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": "7f75a50d8d5ac875eb577d586981ba654a5180ff"
|
|
19
19
|
}
|