@steedos/standard-ui 2.4.0-beta.37 → 2.4.0-beta.38

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.
@@ -35,5 +35,5 @@ label: 编辑
35
35
  type: amis_button
36
36
  visible: !!js/function |
37
37
  function (object_name, record_id, record_permissions, record) {
38
- return Creator.baseObject.actions.standard_edit.visible() && !record.is_system;
38
+ return Creator.baseObject.actions.standard_edit.visible(object_name, record_id, record_permissions) && !record.is_system;
39
39
  }
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * @Author: baozhoutao@hotoa.com
3
3
  * @Date: 2021-12-27 10:49:33
4
- * @LastEditors: baozhoutao@steedos.com
5
- * @LastEditTime: 2022-12-20 16:51:05
4
+ * @LastEditors: 廖大雪 2291335922@qq.com
5
+ * @LastEditTime: 2023-03-05 18:11:32
6
6
  * @Description:
7
7
  */
8
8
  module.exports = {
@@ -36,8 +36,9 @@ module.exports = {
36
36
  Creator.odata.update(object_name, record_id, newRecord);
37
37
  FlowRouter.reload();
38
38
  },
39
- resetVisible: function(object_name, record_id, record_permissions, record){
40
- if(Creator.baseObject.actions.standard_edit.visible()){
39
+ resetVisible: function(object_name, record_id, record_permissions, data){
40
+ const record = data && data.record;
41
+ if(Creator.baseObject.actions.standard_edit.visible(object_name, record_id, record_permissions)){
41
42
  return record.from_code_id;
42
43
  }
43
44
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-ui",
3
- "version": "2.4.0-beta.37",
3
+ "version": "2.4.0-beta.38",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -12,5 +12,5 @@
12
12
  "description": "steedos package",
13
13
  "repository": {},
14
14
  "license": "MIT",
15
- "gitHead": "3fe675c2fb030976c7e43729b754ce772c07d8e8"
15
+ "gitHead": "5f12dbff1ba92abe7fa9e4b050412cd8fa461b0b"
16
16
  }