@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
- var object = Creator.getObject(object_name);
21
- var gridName = this.action.gridName;
22
- // var isRelated = this.action.isRelated;
23
- var relatedFieldName = this.action.relatedFieldName;
24
- var masterRecordId = this.action.masterRecordId;
25
- var initialValues = this.action.initialValues
26
- if(!initialValues){
27
- initialValues = {};
28
- initialValues[relatedFieldName] = masterRecordId
29
- }
30
- const appId = Session.get("app_id");
31
- const page = Steedos.Page.getPage('form', appId, object_name);
32
- const title = t('New') + ' ' + object.label;
33
- if (page && page.schema) {
34
- const options = {
35
- gridName: gridName
36
- };
37
- const fullScreenProps = {
38
- "width": "96%",
39
- className: "!max-w-[96%]"
40
- };
41
- Steedos.Page.render(SteedosUI.Modal, page, Object.assign({}, options, {
42
- appId: appId,
43
- objectName: object_name,
44
- title: title,
45
- data: initialValues,
46
- }), {
47
- props: fullScreenProps
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.8",
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": "b2393877080bbb08d758ce883522d37bc0a12ba2"
18
+ "gitHead": "682f41819d741c294540902dce1a0c3d53092da5"
19
19
  }