@steedos/service-core-objects 3.0.0-beta.109 → 3.0.0-beta.113

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.
@@ -16,7 +16,7 @@ const SocketRoomParts = {
16
16
  }
17
17
 
18
18
  // 连接到服务器
19
- const socket = window.io("/", {
19
+ const socket = window.io(Builder.settings.context.rootUrl, {
20
20
  path: "/socket.io"
21
21
  });
22
22
 
@@ -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
- return data.uiSchema && data.uiSchema.enable_print;
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',
@@ -219,6 +219,9 @@ const updateRecord = async function(userId, object_name, new_doc, previous_doc,
219
219
  for(var i = 0; i < keys.length; i++ ){
220
220
  const k = keys[i];
221
221
  const v = modifier[k];
222
+ if(k == "modified"){
223
+ continue
224
+ }
222
225
  var auditRecordsObject, db_new_value, db_previous_value, doc, field, new_value, previous_value;
223
226
  field = fields != null ? fields[k] : void 0;
224
227
  previous_value = previous_doc[k];
@@ -20,7 +20,7 @@ amis_schema: |-
20
20
  "args": {
21
21
  "options": {},
22
22
  "api": {
23
- "url": "${context.rootUrl}/api/users/${record.user}/clear_login_tokens",
23
+ "url": "${context.rootUrl}/api/users/${user}/clear_login_tokens",
24
24
  "method": "get",
25
25
  "requestAdaptor": "",
26
26
  "adaptor": "return payload.success ? {data: {...payload}, status: 0, msg: t('CustomLabels.space_users_actions_clear_login_tokens_success')} : {...payload, status: 1};"
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2022-12-02 16:53:23
4
- * @LastEditors: baozhoutao@steedos.com
5
- * @LastEditTime: 2024-02-27 15:20:23
4
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
5
+ * @LastEditTime: 2025-10-22 09:32:01
6
6
  * @Description:
7
7
  */
8
8
  "use strict";
@@ -98,6 +98,9 @@ module.exports = {
98
98
  }
99
99
  })
100
100
  }
101
+ return {
102
+ success: true
103
+ };
101
104
  }
102
105
  },
103
106
  invite_user: {
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@steedos/service-core-objects",
3
- "version": "3.0.0-beta.109",
3
+ "version": "3.0.0-beta.113",
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.109",
12
+ "@steedos/service-package-loader": "3.0.0-beta.113",
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": "5c0958e88a1e3db12f511609cd827e3e93782822"
19
+ "gitHead": "fb75d2f8f1d8b4c840c632cee8966841540b6349"
21
20
  }