@steedos/standard-object-database 2.4.0-beta.2 → 2.4.0-beta.20
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
|
|
@@ -167,7 +169,7 @@ fields:
|
|
|
167
169
|
required: "{{['autonumber', 'formula'].indexOf(formData.type) > -1 ? true: false}}"
|
|
168
170
|
sort_no: 210
|
|
169
171
|
data_type:
|
|
170
|
-
type:
|
|
172
|
+
type: lookup
|
|
171
173
|
label: Data Type
|
|
172
174
|
inlineHelpText: This field must be filled when the field type is 'Formula'
|
|
173
175
|
depend_on:
|
|
@@ -51,6 +51,8 @@ fields:
|
|
|
51
51
|
multiple: true
|
|
52
52
|
required: true
|
|
53
53
|
create: false
|
|
54
|
+
reference_to: permission_set
|
|
55
|
+
reference_to_field: name
|
|
54
56
|
optionsFunction: !<tag:yaml.org,2002:js/function> |-
|
|
55
57
|
function () {
|
|
56
58
|
var profiles = Creator.odata.query('permission_set', {$filter: "(type eq 'profile')"}, true);
|
|
@@ -42,7 +42,7 @@ fields:
|
|
|
42
42
|
_options = [];
|
|
43
43
|
|
|
44
44
|
_.forEach(Creator.objectsByName, function (o, k) {
|
|
45
|
-
if(_.
|
|
45
|
+
if(_.includes(['cms_files', 'instances', 'tasks', 'notes', 'events', 'approvals', 'audit_records'], k)){
|
|
46
46
|
return _options.push({
|
|
47
47
|
label: o.label,
|
|
48
48
|
value: k,
|
|
@@ -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.20",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
],
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@steedos-widgets/amis-lib": "^1.0.
|
|
14
|
+
"@steedos-widgets/amis-lib": "^1.0.20"
|
|
15
15
|
},
|
|
16
16
|
"repository": {},
|
|
17
17
|
"license": "MIT",
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "21e6705921d682193a70b10a2e0e402a3ca32539"
|
|
19
19
|
}
|