vue2-client 1.12.98 → 1.12.100

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.
Files changed (36) hide show
  1. package/package.json +107 -107
  2. package/src/base-client/components/common/XCollapse/XCollapse.vue +251 -251
  3. package/src/base-client/components/common/XDatePicker/index.vue +3 -0
  4. package/src/base-client/components/common/XReport/index.js +3 -3
  5. package/src/base-client/components/common/XReportGrid/XReportDemo.vue +44 -44
  6. package/src/base-client/components/common/XTimeline/XTimeline.vue +19 -18
  7. package/src/base-client/components/his/XList/XList.vue +131 -131
  8. package/src/base-client/components/his/XRadio/XRadio.vue +1 -0
  9. package/src/base-client/components/his/XSidebar/XSidebar.vue +0 -1
  10. package/src/base-client/plugins/AppData.js +126 -126
  11. package/src/expression/ExpressionRunner.js +26 -26
  12. package/src/expression/TestExpression.js +509 -509
  13. package/src/expression/core/Delegate.js +115 -115
  14. package/src/expression/core/Expression.js +1358 -1358
  15. package/src/expression/core/Program.js +932 -932
  16. package/src/expression/core/Token.js +27 -27
  17. package/src/expression/enums/ExpressionType.js +81 -81
  18. package/src/expression/enums/TokenType.js +11 -11
  19. package/src/expression/exception/BreakWayException.js +2 -2
  20. package/src/expression/exception/ContinueWayException.js +2 -2
  21. package/src/expression/exception/ExpressionException.js +28 -28
  22. package/src/expression/exception/ReturnWayException.js +14 -14
  23. package/src/expression/exception/ServiceException.js +22 -22
  24. package/src/expression/instances/LogicConsole.js +44 -44
  25. package/src/logic/LogicRunner.js +62 -62
  26. package/src/logic/TestLogic.js +13 -13
  27. package/src/logic/plugins/common/VueTools.js +30 -30
  28. package/src/logic/ts/LogicRunner.ts +67 -67
  29. package/src/logic/ts/TestLogic.ts +13 -13
  30. package/src/pages/DynamicStatistics/FavoriteList.vue +50 -50
  31. package/src/pages/ReportGrid/index.vue +76 -76
  32. package/src/pages/userInfoDetailManage/uploadFilesHistory/index.vue +1 -1
  33. package/src/router/async/router.map.js +119 -124
  34. package/src/services/api/entity.js +18 -18
  35. package/src/utils/waterMark.js +31 -31
  36. package/src/base-client/components/common/XCollapse/XCollapseDemo.vue +0 -15
@@ -1,115 +1,115 @@
1
- import ExpressionType from '../enums/ExpressionType'
2
- import ReturnWayException from '../exception/ReturnWayException'
3
-
4
- export default class Delegate {
5
- exp
6
- source
7
- lambdaOutProps = []
8
- objectNames
9
-
10
- constructor (exp, source, objectNames) {
11
- this.exp = exp
12
- this.source = source
13
- if (objectNames) {
14
- this.objectNames = objectNames
15
- } else {
16
- this.objectNames = []
17
- }
18
- }
19
-
20
- // 执行程序,执行前,参数必须实例化
21
- async invoke (params) {
22
- if (params == null) {
23
- params = []
24
- }
25
- // 把初始参数给参数表
26
- this.objectNames = params
27
- // 沿根Expression节点遍历,把delegate传递下去
28
- this.putDelegate(this.exp)
29
- // 调用exp的执行过程
30
- try {
31
- return await this.exp.invoke()
32
- } catch (returnWay) {
33
- if (returnWay instanceof ReturnWayException) {
34
- return returnWay.getReturnObject()
35
- }
36
- throw returnWay
37
- }
38
- }
39
-
40
- // 沿根节点递归,传递delegate的过程
41
- putDelegate (parent) {
42
- for (const child of parent.children) {
43
- // 有些节点会放空的子节点
44
- if (child == null) {
45
- continue
46
- }
47
- // try特殊处理
48
- if (child.type === ExpressionType.Try) {
49
- const exps = child.value
50
- if (exps[0] != null) {
51
- exps[0].setDelegate(this)
52
- this.putDelegate(exps[0])
53
- }
54
- if (exps[1] != null) {
55
- exps[1].setDelegate(this)
56
- this.putDelegate(exps[1])
57
- }
58
- }
59
- child.setDelegate(this)
60
- this.putDelegate(child)
61
- }
62
- }
63
-
64
- // 获取表达式
65
- getExp () {
66
- return this.exp
67
- }
68
-
69
- // 获取对象值存储
70
- getObjectNames () {
71
- return this.objectNames
72
- }
73
-
74
- // 获取lambda外层参数名
75
- getLambdaOutProps () {
76
- return this.lambdaOutProps
77
- }
78
-
79
- // 存储对象值
80
- put (key, value) {
81
- this.objectNames[key] = value
82
- }
83
-
84
- // 获取对象值
85
- get (key) {
86
- return this.objectNames[key]
87
- }
88
-
89
- // 检查是否包含某个键
90
- containsKey (key) {
91
- return Object.prototype.hasOwnProperty.call(this.objectNames, key)
92
- }
93
-
94
- // 获取源代码
95
- getSource () {
96
- return this.source
97
- }
98
-
99
- // 使用参数调用
100
- async apply (params) {
101
- if (params === null) {
102
- params = {}
103
- }
104
- const map = this.objectNames
105
- if (this.lambdaOutProps.length === 0) {
106
- this.lambdaOutProps.push(Object.keys(map))
107
- }
108
- const lambdaMap = {}
109
- for (const key in map) {
110
- lambdaMap[key] = map[key]
111
- }
112
- lambdaMap.data = params
113
- return await this.invoke(lambdaMap)
114
- }
115
- }
1
+ import ExpressionType from '../enums/ExpressionType'
2
+ import ReturnWayException from '../exception/ReturnWayException'
3
+
4
+ export default class Delegate {
5
+ exp
6
+ source
7
+ lambdaOutProps = []
8
+ objectNames
9
+
10
+ constructor (exp, source, objectNames) {
11
+ this.exp = exp
12
+ this.source = source
13
+ if (objectNames) {
14
+ this.objectNames = objectNames
15
+ } else {
16
+ this.objectNames = []
17
+ }
18
+ }
19
+
20
+ // 执行程序,执行前,参数必须实例化
21
+ async invoke (params) {
22
+ if (params == null) {
23
+ params = []
24
+ }
25
+ // 把初始参数给参数表
26
+ this.objectNames = params
27
+ // 沿根Expression节点遍历,把delegate传递下去
28
+ this.putDelegate(this.exp)
29
+ // 调用exp的执行过程
30
+ try {
31
+ return await this.exp.invoke()
32
+ } catch (returnWay) {
33
+ if (returnWay instanceof ReturnWayException) {
34
+ return returnWay.getReturnObject()
35
+ }
36
+ throw returnWay
37
+ }
38
+ }
39
+
40
+ // 沿根节点递归,传递delegate的过程
41
+ putDelegate (parent) {
42
+ for (const child of parent.children) {
43
+ // 有些节点会放空的子节点
44
+ if (child == null) {
45
+ continue
46
+ }
47
+ // try特殊处理
48
+ if (child.type === ExpressionType.Try) {
49
+ const exps = child.value
50
+ if (exps[0] != null) {
51
+ exps[0].setDelegate(this)
52
+ this.putDelegate(exps[0])
53
+ }
54
+ if (exps[1] != null) {
55
+ exps[1].setDelegate(this)
56
+ this.putDelegate(exps[1])
57
+ }
58
+ }
59
+ child.setDelegate(this)
60
+ this.putDelegate(child)
61
+ }
62
+ }
63
+
64
+ // 获取表达式
65
+ getExp () {
66
+ return this.exp
67
+ }
68
+
69
+ // 获取对象值存储
70
+ getObjectNames () {
71
+ return this.objectNames
72
+ }
73
+
74
+ // 获取lambda外层参数名
75
+ getLambdaOutProps () {
76
+ return this.lambdaOutProps
77
+ }
78
+
79
+ // 存储对象值
80
+ put (key, value) {
81
+ this.objectNames[key] = value
82
+ }
83
+
84
+ // 获取对象值
85
+ get (key) {
86
+ return this.objectNames[key]
87
+ }
88
+
89
+ // 检查是否包含某个键
90
+ containsKey (key) {
91
+ return Object.prototype.hasOwnProperty.call(this.objectNames, key)
92
+ }
93
+
94
+ // 获取源代码
95
+ getSource () {
96
+ return this.source
97
+ }
98
+
99
+ // 使用参数调用
100
+ async apply (params) {
101
+ if (params === null) {
102
+ params = {}
103
+ }
104
+ const map = this.objectNames
105
+ if (this.lambdaOutProps.length === 0) {
106
+ this.lambdaOutProps.push(Object.keys(map))
107
+ }
108
+ const lambdaMap = {}
109
+ for (const key in map) {
110
+ lambdaMap[key] = map[key]
111
+ }
112
+ lambdaMap.data = params
113
+ return await this.invoke(lambdaMap)
114
+ }
115
+ }