@steedos/standard-object-database 2.6.8-beta.4 → 2.6.8-beta.6
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/objectTranslations/object_fields.en/object_fields.en.objectTranslation.yml +4 -0
- package/main/default/objectTranslations/object_fields.zh-CN/object_fields.zh-CN.objectTranslation.yml +4 -0
- package/main/default/objects/object_fields.object.yml +5 -0
- package/main/default/objects/object_listviews.action.js +2 -2
- package/main/default/objects/objects/buttons/custom.button.js +4 -2
- package/main/default/services/object_fields.service.js +5 -6
- package/package.json +4 -4
package/main/default/objectTranslations/object_fields.en/object_fields.en.objectTranslation.yml
CHANGED
|
@@ -315,6 +315,10 @@ fields:
|
|
|
315
315
|
label: Readonly
|
|
316
316
|
help:
|
|
317
317
|
description:
|
|
318
|
+
static:
|
|
319
|
+
label: Static
|
|
320
|
+
help: Static mode, displayed as read-only, but the field value can be set by default, autofill, or custom scripts.
|
|
321
|
+
description:
|
|
318
322
|
hidden:
|
|
319
323
|
label: Hidden
|
|
320
324
|
help:
|
|
@@ -821,6 +821,11 @@ fields:
|
|
|
821
821
|
type: boolean
|
|
822
822
|
label: Readonly
|
|
823
823
|
group: ui
|
|
824
|
+
static:
|
|
825
|
+
type: boolean
|
|
826
|
+
label: Static
|
|
827
|
+
group: Advanced
|
|
828
|
+
inlineHelpText: Static mode, displayed as read-only, but the field value can be set by default, autofill, or custom scripts.
|
|
824
829
|
hidden:
|
|
825
830
|
type: boolean
|
|
826
831
|
label: Hidden
|
|
@@ -62,11 +62,11 @@ module.exports = {
|
|
|
62
62
|
var data = newRecord || { _filters_type_controller: 'conditions' };
|
|
63
63
|
//数据格式转换
|
|
64
64
|
if (data) {
|
|
65
|
-
data.columns = lodash.map(data.columns, 'field');
|
|
66
65
|
data.sort = lodash.map(data.sort, (item) => {
|
|
67
66
|
return `${item.field_name}:${item.order || 'asc'}`
|
|
68
67
|
});
|
|
69
|
-
|
|
68
|
+
|
|
69
|
+
data.searchable_fields = lodash.map(data.searchable_fields, 'field');
|
|
70
70
|
|
|
71
71
|
if (data.filters && lodash.isString(data.filters)) {
|
|
72
72
|
try {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: baozhoutaon@hotoa.com
|
|
3
3
|
* @Date: 2022-03-29 20:33:44
|
|
4
4
|
* @LastEditors: baozhoutao@steedos.com
|
|
5
|
-
* @LastEditTime:
|
|
5
|
+
* @LastEditTime: 2024-02-23 13:37:49
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
module.exports = {
|
|
@@ -23,7 +23,6 @@ module.exports = {
|
|
|
23
23
|
query: `mutation{objects__upsert(id: "${obj.name}", doc: ${JSON.stringify(JSON.stringify(obj))}){_id,name}}`
|
|
24
24
|
}),
|
|
25
25
|
success: function (data) {
|
|
26
|
-
console.log(`data====>`, data)
|
|
27
26
|
SteedosUI.notification.success({
|
|
28
27
|
message: '对象已自定义。'
|
|
29
28
|
});
|
|
@@ -42,6 +41,9 @@ module.exports = {
|
|
|
42
41
|
Steedos.authRequest(url, options);
|
|
43
42
|
},
|
|
44
43
|
customVisible: function (object_name, record_id, permission, data) {
|
|
44
|
+
if(Meteor.settings.public.enable_saas){
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
45
47
|
var record = data && data.record;
|
|
46
48
|
return record && record.is_system && !record.created;
|
|
47
49
|
}
|
|
@@ -107,7 +107,7 @@ module.exports = {
|
|
|
107
107
|
defaultValue_schema.type = type;
|
|
108
108
|
defaultValue_schema.scale = scale;
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
let body = [];
|
|
111
111
|
let steedos_field = {
|
|
112
112
|
type:'steedos-field',
|
|
113
113
|
name:'defaultValue',
|
|
@@ -214,13 +214,12 @@ module.exports = {
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
steedos_field
|
|
220
|
-
]
|
|
221
|
-
if(mode === 'edit'){
|
|
217
|
+
body = [steedos_field];
|
|
218
|
+
}else{
|
|
219
|
+
body = [steedos_field];
|
|
222
220
|
body[0].field.amis = {
|
|
223
221
|
// disabledOn: "!!this.defaultValue_formula",
|
|
222
|
+
"clearable": true,
|
|
224
223
|
"className": {
|
|
225
224
|
"defaultValue_field_hidden": "!this.defaultValue && (!this.defaultValue || '').toString() && !!this.defaultValue_formula"
|
|
226
225
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-object-database",
|
|
3
|
-
"version": "2.6.8-beta.
|
|
3
|
+
"version": "2.6.8-beta.6",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@steedos-widgets/amis-lib": "^1.0.22",
|
|
15
|
-
"@steedos/metadata-core": "2.6.8-beta.
|
|
16
|
-
"@steedos/standard-objects": "2.6.8-beta.
|
|
15
|
+
"@steedos/metadata-core": "2.6.8-beta.6",
|
|
16
|
+
"@steedos/standard-objects": "2.6.8-beta.6"
|
|
17
17
|
},
|
|
18
18
|
"repository": {},
|
|
19
19
|
"license": "MIT",
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "dc91074a4f6662d1a2f49e03d6b5efd45e8cb9bf"
|
|
21
21
|
}
|