@steedos/standard-object-database 2.7.0-beta.12 → 2.7.0-beta.15

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.
@@ -169,7 +169,7 @@ fields:
169
169
  description:
170
170
  auto_fill_mapping:
171
171
  label: Auto Fill Mapping
172
- help: When the data is selected, the field values in the reference object are automatically filled into the current form field according to the following mapping.
172
+ help: In a form, after you fill in one field, other fields are automatically filled according to preset rules. For example, in the New Payment history form, after selecting a contract, the amount of the contract is automatically filled into the payment amount field.
173
173
  description:
174
174
  auto_fill_mapping.$:
175
175
  label: Auto Fill Mapping
@@ -161,7 +161,7 @@ fields:
161
161
  description:
162
162
  auto_fill_mapping:
163
163
  label: 自动填充规则
164
- help: 选择数据后,将按以下映射关系将引用对象中的字段值自动填充到当前表单字段中。
164
+ help: 在表单中,填写某个字段后,会根据预设规则自动填充其他字段。例如,在新建付款记录表单中,选择合同后,会自动将合同的金额填入付款金额字段。
165
165
  description:
166
166
  auto_fill_mapping.$:
167
167
  label: 自动填充规则
@@ -587,11 +587,16 @@ fields:
587
587
  }else if (fromField) {
588
588
  currentFilter.push(['type', 'in', fieldFilters[fromField.type] || fromField.type.split()]);
589
589
  if (fromField.type == "lookup" || fromField.type == "master_detail") {
590
- if (fromField.reference_to) {
591
- currentFilter.push(['reference_to', '=', fromField.reference_to]);
590
+ if(fromField.reference_to === "users"){
591
+ currentFilter.push([['reference_to', '=', "users"],"or", ['reference_to', '=', "space_users"]]);
592
592
  }
593
- if (fromField.reference_to_field) {
594
- currentFilter.push(['reference_to_field', '=', fromField.reference_to_field]);
593
+ else{
594
+ if (fromField.reference_to) {
595
+ currentFilter.push(['reference_to', '=', fromField.reference_to]);
596
+ }
597
+ if (fromField.reference_to_field) {
598
+ currentFilter.push(['reference_to_field', '=', fromField.reference_to_field]);
599
+ }
595
600
  }
596
601
  }
597
602
  }
@@ -964,6 +969,8 @@ list_views:
964
969
  - readonly
965
970
  - is_system
966
971
  - is_customize
972
+ extra_columns:
973
+ - reference_to #GraphQL查询对象字段时,如果过滤条件中有按reference_to过滤,要查询返回的字段不配置reference_to的话过滤结果不对,解决了#6649
967
974
  sort:
968
975
  - field_name: sort_no
969
976
  order: asc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-object-database",
3
- "version": "2.7.0-beta.12",
3
+ "version": "2.7.0-beta.15",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -12,10 +12,10 @@
12
12
  "description": "steedos package",
13
13
  "dependencies": {
14
14
  "@steedos-widgets/amis-lib": "^1.0.22",
15
- "@steedos/metadata-core": "2.7.0-beta.12",
16
- "@steedos/standard-objects": "2.7.0-beta.12"
15
+ "@steedos/metadata-core": "2.7.0-beta.15",
16
+ "@steedos/standard-objects": "2.7.0-beta.15"
17
17
  },
18
18
  "repository": {},
19
19
  "license": "MIT",
20
- "gitHead": "838aacb5d33c2ddb2e9b3a5e1cf50b0e8a8ec37a"
20
+ "gitHead": "c1913615a0a0b12e3fd943346d5cf535506577d5"
21
21
  }