@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.
@@ -70,6 +70,8 @@ fields:
70
70
  value: html
71
71
  - label: Code
72
72
  value: code
73
+ - label: Markdown
74
+ value: markdown
73
75
  - label: Select
74
76
  value: select
75
77
  - label: Boolean
@@ -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.stores.API.client.sobject(record.name).getConfig().then((res)=>{
23
- if(res.idFieldName){
24
- window.open(Creator.getRelativeUrl("/app/-/" + record.name));
25
- }else{
26
- return toastr.error("请配置主键字段");
27
- }
28
- }).catch(function(err){
29
- return window.toastr.error(err.message);
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.7",
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": "581c4cad88be53dbc0c6f4c4f13a3e645702d555"
18
+ "gitHead": "7f75a50d8d5ac875eb577d586981ba654a5180ff"
19
19
  }