@steedos/standard-object-database 2.7.11-beta.1 → 2.7.11-beta.3

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.
@@ -0,0 +1,10 @@
1
+ name: authentication_header_key
2
+ type: text
3
+ label: Header Name
4
+ group: 认证
5
+ sort_no: 180
6
+ visible_on: ${type === 'url' && authentication_type === 'header'}
7
+ amis:
8
+ - options:
9
+ - label: authorization
10
+ value: authorization
@@ -0,0 +1,6 @@
1
+ name: authentication_header_value
2
+ type: text
3
+ label: Header Value
4
+ group: 认证
5
+ sort_no: 190
6
+ visible_on: ${type === 'url' && authentication_type === 'header'}
@@ -0,0 +1,12 @@
1
+ name: authentication_type
2
+ label: 认证类型
3
+ type: select
4
+ group: 认证
5
+ options:
6
+ - label: 不认证
7
+ value: none
8
+ - label: Header Auth
9
+ value: header
10
+ defaultValue: none
11
+ sort_no: 170
12
+ visible_on: ${type === 'url'}
@@ -23,3 +23,4 @@ editorDidMount: >-
23
23
  result
24
24
  );
25
25
  sort_no: 150
26
+ visible_on: ${type != 'url'}
@@ -0,0 +1,10 @@
1
+ name: type
2
+ label: 类型
3
+ type: select
4
+ options:
5
+ - label: 代码
6
+ value: code
7
+ - label: 接口
8
+ value: url
9
+ defaultValue: code
10
+ sort_no: 132
@@ -0,0 +1,6 @@
1
+ name: url
2
+ type: url
3
+ label: URL
4
+ sort_no: 160
5
+ is_wide: true
6
+ visible_on: ${type === 'url'}
@@ -391,6 +391,10 @@ module.exports = {
391
391
  _.each(bodyItem.body, (field)=>{
392
392
  if(_.startsWith(field.type, 'sfield-')){
393
393
 
394
+ if(field.config){
395
+ field.config.object = object.name
396
+ }
397
+
394
398
  if(field.config && field.config.amis){
395
399
  delete field.config.amis.name
396
400
  delete field.config.amis.mode
@@ -406,6 +410,9 @@ module.exports = {
406
410
  visible_on: bodyItem.visible_on
407
411
  })
408
412
  }else if(_.startsWith(bodyItem.type, 'sfield-')){
413
+ if(bodyItem.config){
414
+ bodyItem.config.object = object.name
415
+ }
409
416
  if(bodyItem.config && bodyItem.config.amis){
410
417
  delete bodyItem.config.amis.name
411
418
  delete bodyItem.config.amis.mode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-object-database",
3
- "version": "2.7.11-beta.1",
3
+ "version": "2.7.11-beta.3",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -12,14 +12,14 @@
12
12
  "description": "steedos package",
13
13
  "dependencies": {
14
14
  "@steedos-widgets/amis-lib": "^1.0.22",
15
- "@steedos/metadata-core": "2.7.11-beta.1",
16
- "@steedos/service-object-mixin": "2.7.11-beta.1",
17
- "@steedos/standard-objects": "2.7.11-beta.1",
15
+ "@steedos/metadata-core": "2.7.11-beta.3",
16
+ "@steedos/service-object-mixin": "2.7.11-beta.3",
17
+ "@steedos/standard-objects": "2.7.11-beta.3",
18
18
  "amis-formula": "~6.3.0",
19
19
  "clone": "^2.1.2",
20
20
  "moleculer-bullmq": "3.0.0"
21
21
  },
22
22
  "repository": {},
23
23
  "license": "MIT",
24
- "gitHead": "fec77cc34bb34fb76878ee04861815bc0505f669"
24
+ "gitHead": "5c2a07d7c33ca991a5264bffe2ef160cc57614b2"
25
25
  }