@steedos/standard-object-database 2.3.8 → 2.3.10-beta.1
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,3 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 廖大雪 2291335922@qq.com
|
|
3
|
+
* @Date: 2023-01-09 15:34:24
|
|
4
|
+
* @LastEditors: 廖大雪 2291335922@qq.com
|
|
5
|
+
* @LastEditTime: 2023-03-14 09:15:15
|
|
6
|
+
* @FilePath: /steedos-platform/services/standard-object-database/main/default/objects/object_layouts.layouts.action.js
|
|
7
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+
*/
|
|
1
9
|
module.exports = {
|
|
2
10
|
listenTo: 'object_layouts',
|
|
3
11
|
|
|
@@ -16,38 +24,38 @@ module.exports = {
|
|
|
16
24
|
customizeVisible: function(object_name, record_id, record_permissions, record){
|
|
17
25
|
return Creator.baseObject.actions.standard_new.visible() && record.is_system;
|
|
18
26
|
},
|
|
19
|
-
standard_new: function (object_name, record_id, fields){
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
},
|
|
27
|
+
// standard_new: function (object_name, record_id, fields){
|
|
28
|
+
// var object = Creator.getObject(object_name);
|
|
29
|
+
// var gridName = this.action.gridName;
|
|
30
|
+
// // var isRelated = this.action.isRelated;
|
|
31
|
+
// var relatedFieldName = this.action.relatedFieldName;
|
|
32
|
+
// var masterRecordId = this.action.masterRecordId;
|
|
33
|
+
// var initialValues = this.action.initialValues
|
|
34
|
+
// if(!initialValues){
|
|
35
|
+
// initialValues = {};
|
|
36
|
+
// initialValues[relatedFieldName] = masterRecordId
|
|
37
|
+
// }
|
|
38
|
+
// const appId = Session.get("app_id");
|
|
39
|
+
// const page = Steedos.Page.getPage('form', appId, object_name);
|
|
40
|
+
// const title = t('New') + ' ' + object.label;
|
|
41
|
+
// if (page && page.schema) {
|
|
42
|
+
// const options = {
|
|
43
|
+
// gridName: gridName
|
|
44
|
+
// };
|
|
45
|
+
// const fullScreenProps = {
|
|
46
|
+
// "width": "96%",
|
|
47
|
+
// className: "!max-w-[96%]"
|
|
48
|
+
// };
|
|
49
|
+
// Steedos.Page.render(SteedosUI.Modal, page, Object.assign({}, options, {
|
|
50
|
+
// appId: appId,
|
|
51
|
+
// objectName: object_name,
|
|
52
|
+
// title: title,
|
|
53
|
+
// data: initialValues,
|
|
54
|
+
// }), {
|
|
55
|
+
// props: fullScreenProps
|
|
56
|
+
// });
|
|
57
|
+
// }
|
|
58
|
+
// },
|
|
51
59
|
/*
|
|
52
60
|
standard_edit: function (object_name, record_id, fields){
|
|
53
61
|
var object = Creator.getObject(object_name);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-object-database",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.10-beta.1",
|
|
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": "682f41819d741c294540902dce1a0c3d53092da5"
|
|
19
19
|
}
|