@steedos/standard-ui 3.0.0-beta.69 → 3.0.0-beta.70
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,30 +1,30 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* @Author: baozhoutao@hotoa.com
|
|
3
3
|
* @Date: 2021-12-27 10:49:33
|
|
4
|
-
* @LastEditors:
|
|
5
|
-
* @LastEditTime:
|
|
4
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
5
|
+
* @LastEditTime: 2025-08-11 18:09:33
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
module.exports = {
|
|
9
|
-
customize: function (object_name, record_id, fields) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
// customize: function (object_name, record_id, fields) {
|
|
10
|
+
// var doc = Creator.odata.get(object_name, record_id);
|
|
11
|
+
// var newRecord = _.pick(doc, Creator.getObjectFieldsName(object_name));
|
|
12
|
+
// delete newRecord.is_system;
|
|
13
|
+
// delete newRecord._id;
|
|
14
|
+
// delete newRecord.record_permissions;
|
|
15
|
+
// newRecord.from_code_id = record_id;
|
|
16
|
+
// Creator.odata.insert(object_name, newRecord, function(result, error){
|
|
17
|
+
// if(result){
|
|
18
|
+
// FlowRouter.go(`/app/-/${object_name}/view/${result._id}`)
|
|
19
|
+
// }
|
|
20
|
+
// });
|
|
21
21
|
|
|
22
|
-
},
|
|
23
|
-
customizeVisible: function(object_name, record_id, record_permissions, data){
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
22
|
+
// },
|
|
23
|
+
// customizeVisible: function(object_name, record_id, record_permissions, data){
|
|
24
|
+
// var record = data && data.record;
|
|
25
|
+
// if(record._id === 'admin'){return false;}
|
|
26
|
+
// return Steedos.Object.base.actions.standard_new.visible() && record.is_system && !record.from_code_id;
|
|
27
|
+
// },
|
|
28
28
|
reset: function(object_name, record_id, fields){
|
|
29
29
|
var record = Creator.odata.get(object_name, record_id);
|
|
30
30
|
var doc = Creator.odata.get(object_name, record.from_code_id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-ui",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.70",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"repository": {},
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "597f124ef73efa97a2da52b4de3c7d733ebd6887",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"clone": "^2.1.2"
|
|
18
18
|
}
|