agilebuilder-ui 1.0.85-temp1 → 1.0.85-temp3

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.
@@ -15,27 +15,32 @@ export function initialization(
15
15
  const result = {}
16
16
  if (jumpPage) {
17
17
  if (Array.isArray(jumpPage)) {
18
+ debugger
18
19
  for (let i = 0; i < jumpPage.length; i++) {
20
+ const enable = false
19
21
  const jumpPageItem = jumpPage[i]
20
- if (jumpPageItem[jumpConditionType] === 'none') {
21
- return initialization(
22
- jumpPageItem.jumpPageSetting,
23
- entity,
24
- isSql,
25
- additionalParamerter,
26
- contextParameter,
27
- tableName,
28
- parentFormData,
29
- pageContext
30
- )
31
- } else if (jumpPageItem[jumpConditionType] === 'config') {
32
- if (jumpPage.conditions) {
33
- debugger
22
+ if (jumpPageItem.jumpConditionType === 'none') {
23
+ enable = true
24
+ } else if (jumpPageItem.jumpConditionType === 'config') {
25
+ if (jumpPageItem.conditions && jumpPageItem.conditions.length > 0) {
26
+ const visible = analysisCondition(
27
+ JSON.stringify(jumpPageItem.conditions),
28
+ entity,
29
+ additionalParameterMap,
30
+ contextParameterMap,
31
+ isSql,
32
+ tableName,
33
+ parentFormData,
34
+ pageContext
35
+ )
36
+ enable = visible ? true : false
37
+ } else {
38
+ enable = true
34
39
  }
35
- } else if (jumpPageItem[jumpConditionType] === 'customFunc') {
40
+ } else if (jumpPageItem.jumpConditionType === 'customFunc') {
36
41
  }
37
42
  const jumpPageResult = initialization(
38
- jumpPageItem,
43
+ jumpPageItem.jumpPageSetting,
39
44
  entity,
40
45
  isSql,
41
46
  additionalParamerter,
@@ -45,7 +50,9 @@ export function initialization(
45
50
  pageContext
46
51
  )
47
52
  if (jumpPageResult && jumpPageResult.visible) {
48
- return jumpPageResult
53
+ const res = { ...jumpPageResult }
54
+ res.jumpPageSetting = JSON.stringify(jumpPageItem.jumpPageSetting)
55
+ return res
49
56
  }
50
57
  }
51
58
  }