@steedos/service-core-objects 3.0.0-beta.109 → 3.0.0-beta.112
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.
|
@@ -444,7 +444,12 @@ module.exports = {
|
|
|
444
444
|
standard_print: {
|
|
445
445
|
label: "Print",
|
|
446
446
|
visible: function (object_name, record_id, record_permissions, data) {
|
|
447
|
-
|
|
447
|
+
var uiSchema = data.uiSchema;
|
|
448
|
+
// 记录详细页面中如果有相关子记录,用RecordService组件显示子记录的话,子记录中打印按钮取的uiSchema是父记录的uiSchema,造成子记录详细界面也显示了打印按钮,这里判断下对象名称不一致时重新取uiSchema变量
|
|
449
|
+
if (!uiSchema || uiSchema.name !== object_name){
|
|
450
|
+
uiSchema = window.getUISchemaSync(object_name);
|
|
451
|
+
}
|
|
452
|
+
return uiSchema && uiSchema.enable_print;
|
|
448
453
|
},
|
|
449
454
|
on: "record_only",
|
|
450
455
|
type: 'amis_button',
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-core-objects",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.112",
|
|
4
4
|
"main": "package.service.js",
|
|
5
|
-
"private": false,
|
|
6
5
|
"publishConfig": {
|
|
7
6
|
"access": "public"
|
|
8
7
|
},
|
|
@@ -10,12 +9,12 @@
|
|
|
10
9
|
"steedos"
|
|
11
10
|
],
|
|
12
11
|
"dependencies": {
|
|
13
|
-
"@steedos/service-package-loader": "3.0.0-beta.
|
|
12
|
+
"@steedos/service-package-loader": "3.0.0-beta.112",
|
|
14
13
|
"json2xls": "^0.1.2",
|
|
15
14
|
"lodash": "^4.17.21"
|
|
16
15
|
},
|
|
17
16
|
"description": "steedos package",
|
|
18
17
|
"repository": {},
|
|
19
18
|
"license": "MIT",
|
|
20
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "742d399ecaca836729c200044deee3ef0988be14"
|
|
21
20
|
}
|