agilebuilder-ui 1.0.85-temp2 → 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.
@@ -17,18 +17,10 @@ export function initialization(
17
17
  if (Array.isArray(jumpPage)) {
18
18
  debugger
19
19
  for (let i = 0; i < jumpPage.length; i++) {
20
+ const enable = false
20
21
  const jumpPageItem = jumpPage[i]
21
22
  if (jumpPageItem.jumpConditionType === 'none') {
22
- return initialization(
23
- jumpPageItem.jumpPageSetting,
24
- entity,
25
- isSql,
26
- additionalParamerter,
27
- contextParameter,
28
- tableName,
29
- parentFormData,
30
- pageContext
31
- )
23
+ enable = true
32
24
  } else if (jumpPageItem.jumpConditionType === 'config') {
33
25
  if (jumpPageItem.conditions && jumpPageItem.conditions.length > 0) {
34
26
  const visible = analysisCondition(
@@ -41,34 +33,14 @@ export function initialization(
41
33
  parentFormData,
42
34
  pageContext
43
35
  )
44
- if (visible) {
45
- return initialization(
46
- jumpPageItem.jumpPageSetting,
47
- entity,
48
- isSql,
49
- additionalParamerter,
50
- contextParameter,
51
- tableName,
52
- parentFormData,
53
- pageContext
54
- )
55
- }
36
+ enable = visible ? true : false
56
37
  } else {
57
- return initialization(
58
- jumpPageItem.jumpPageSetting,
59
- entity,
60
- isSql,
61
- additionalParamerter,
62
- contextParameter,
63
- tableName,
64
- parentFormData,
65
- pageContext
66
- )
38
+ enable = true
67
39
  }
68
40
  } else if (jumpPageItem.jumpConditionType === 'customFunc') {
69
41
  }
70
42
  const jumpPageResult = initialization(
71
- jumpPageItem,
43
+ jumpPageItem.jumpPageSetting,
72
44
  entity,
73
45
  isSql,
74
46
  additionalParamerter,
@@ -78,7 +50,9 @@ export function initialization(
78
50
  pageContext
79
51
  )
80
52
  if (jumpPageResult && jumpPageResult.visible) {
81
- return jumpPageResult
53
+ const res = { ...jumpPageResult }
54
+ res.jumpPageSetting = JSON.stringify(jumpPageItem.jumpPageSetting)
55
+ return res
82
56
  }
83
57
  }
84
58
  }