workflow-editor 0.9.83-dwtmp1 → 0.9.84-dw-tmp1

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 (61) hide show
  1. package/lib/css/workflow-editor.common~247b300f.28fbd3a3.css +1 -0
  2. package/lib/css/workflow-editor.common~62bcfb54.c1b3ecc5.css +1 -0
  3. package/lib/css/workflow-editor.common~95b80cda.16e04122.css +1 -0
  4. package/lib/css/workflow-editor.common~e19cd708.68e04fb4.css +1 -0
  5. package/lib/css/workflow-editor.umd.min~247b300f.28fbd3a3.css +1 -0
  6. package/lib/css/workflow-editor.umd.min~62bcfb54.c1b3ecc5.css +1 -0
  7. package/lib/css/workflow-editor.umd.min~95b80cda.16e04122.css +1 -0
  8. package/lib/css/workflow-editor.umd.min~e19cd708.68e04fb4.css +1 -0
  9. package/lib/css/workflow-editor.umd~247b300f.28fbd3a3.css +1 -0
  10. package/lib/css/workflow-editor.umd~62bcfb54.c1b3ecc5.css +1 -0
  11. package/lib/css/workflow-editor.umd~95b80cda.16e04122.css +1 -0
  12. package/lib/css/workflow-editor.umd~e19cd708.68e04fb4.css +1 -0
  13. package/lib/css/yarn.prismjs~0bd0e877.9093a967.css +1 -0
  14. package/lib/workflow-editor.common.vendors~workflow-editor.common~253ae210.js +4136 -0
  15. package/lib/workflow-editor.common.workflow-editor.common~0b5ad61a.js +1022 -0
  16. package/lib/workflow-editor.common.workflow-editor.common~247b300f.js +1948 -0
  17. package/lib/workflow-editor.common.workflow-editor.common~62bcfb54.js +14764 -0
  18. package/lib/workflow-editor.common.workflow-editor.common~95b80cda.js +3300 -0
  19. package/lib/workflow-editor.common.workflow-editor.common~e19cd708.js +1585 -0
  20. package/lib/workflow-editor.common.workflow-editor.common~e2e93592.js +1293 -0
  21. package/lib/workflow-editor.common.yarn.async-validator~7864cd12.js +1223 -0
  22. package/lib/workflow-editor.common.yarn.buffer~7e5e8261.js +1801 -0
  23. package/lib/workflow-editor.common.yarn.core-js~2b13b260.js +5078 -0
  24. package/lib/workflow-editor.common.yarn.imatrix-ui~f5767151.js +2256 -0
  25. package/lib/workflow-editor.common.yarn.prismjs~0bd0e877.js +2028 -0
  26. package/lib/workflow-editor.common.yarn.readable-stream~2b6d3a99.js +2435 -0
  27. package/lib/workflow-editor.common.yarn.sax~95191fae.js +1576 -0
  28. package/lib/workflow-editor.common.yarn.vue-i18n~02576867.js +2259 -0
  29. package/lib/workflow-editor.umd.min.js +1 -39
  30. package/lib/workflow-editor.umd.min.vendors~workflow-editor.umd.min~253ae210.js +12 -0
  31. package/lib/workflow-editor.umd.min.workflow-editor.umd.min~0b5ad61a.js +1 -0
  32. package/lib/workflow-editor.umd.min.workflow-editor.umd.min~247b300f.js +1 -0
  33. package/lib/workflow-editor.umd.min.workflow-editor.umd.min~62bcfb54.js +1 -0
  34. package/lib/workflow-editor.umd.min.workflow-editor.umd.min~95b80cda.js +1 -0
  35. package/lib/workflow-editor.umd.min.workflow-editor.umd.min~e19cd708.js +1 -0
  36. package/lib/workflow-editor.umd.min.workflow-editor.umd.min~e2e93592.js +1 -0
  37. package/lib/workflow-editor.umd.min.yarn.async-validator~7864cd12.js +1 -0
  38. package/lib/workflow-editor.umd.min.yarn.buffer~7e5e8261.js +8 -0
  39. package/lib/workflow-editor.umd.min.yarn.core-js~2b13b260.js +1 -0
  40. package/lib/workflow-editor.umd.min.yarn.imatrix-ui~f5767151.js +1 -0
  41. package/lib/workflow-editor.umd.min.yarn.prismjs~0bd0e877.js +9 -0
  42. package/lib/workflow-editor.umd.min.yarn.readable-stream~2b6d3a99.js +1 -0
  43. package/lib/workflow-editor.umd.min.yarn.sax~95191fae.js +2 -0
  44. package/lib/workflow-editor.umd.min.yarn.vue-i18n~02576867.js +6 -0
  45. package/lib/workflow-editor.umd.vendors~workflow-editor.umd~253ae210.js +4136 -0
  46. package/lib/workflow-editor.umd.workflow-editor.umd~0b5ad61a.js +1032 -0
  47. package/lib/workflow-editor.umd.workflow-editor.umd~247b300f.js +1948 -0
  48. package/lib/workflow-editor.umd.workflow-editor.umd~62bcfb54.js +14764 -0
  49. package/lib/workflow-editor.umd.workflow-editor.umd~95b80cda.js +3300 -0
  50. package/lib/workflow-editor.umd.workflow-editor.umd~e19cd708.js +1585 -0
  51. package/lib/workflow-editor.umd.workflow-editor.umd~e2e93592.js +1293 -0
  52. package/lib/workflow-editor.umd.yarn.async-validator~7864cd12.js +1223 -0
  53. package/lib/workflow-editor.umd.yarn.buffer~7e5e8261.js +1801 -0
  54. package/lib/workflow-editor.umd.yarn.core-js~2b13b260.js +5078 -0
  55. package/lib/workflow-editor.umd.yarn.imatrix-ui~f5767151.js +2256 -0
  56. package/lib/workflow-editor.umd.yarn.prismjs~0bd0e877.js +2028 -0
  57. package/lib/workflow-editor.umd.yarn.readable-stream~2b6d3a99.js +2435 -0
  58. package/lib/workflow-editor.umd.yarn.sax~95191fae.js +1576 -0
  59. package/lib/workflow-editor.umd.yarn.vue-i18n~02576867.js +2259 -0
  60. package/package.json +2 -2
  61. package/lib/workflow-editor.css +0 -1
@@ -0,0 +1,2256 @@
1
+ ((typeof self !== 'undefined' ? self : this)["webpackJsonpworkflow_editor"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpworkflow_editor"] || []).push([[11],{
2
+
3
+ /***/ "1d68":
4
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
+
6
+ "use strict";
7
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getAbstractUserFactoryWf; });
8
+ /* harmony import */ var core_js_modules_es6_reflect_construct__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2397");
9
+ /* harmony import */ var core_js_modules_es6_reflect_construct__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_reflect_construct__WEBPACK_IMPORTED_MODULE_0__);
10
+ /* harmony import */ var core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("6762");
11
+ /* harmony import */ var core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_1__);
12
+ /* harmony import */ var core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("2fdb");
13
+ /* harmony import */ var core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_2__);
14
+ /* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("c5f6");
15
+ /* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_3__);
16
+ /* harmony import */ var D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("262e");
17
+ /* harmony import */ var D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("99de");
18
+ /* harmony import */ var D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("7e84");
19
+ /* harmony import */ var D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("d4ec");
20
+ /* harmony import */ var D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("bee2");
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(this, result); }; }
31
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
32
+ var CalculatorFactoryWf = /*#__PURE__*/function () {
33
+ function CalculatorFactoryWf() {
34
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(this, CalculatorFactoryWf);
35
+ if ((this instanceof CalculatorFactoryWf ? this.constructor : void 0) === CalculatorFactoryWf) {
36
+ throw new Error('抽象类不能实例化!');
37
+ }
38
+ }
39
+ /**
40
+ * 空值时相等的处理
41
+ * @param leftVale
42
+ * @param operator
43
+ * @param rightValue
44
+ * @return
45
+ */
46
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(CalculatorFactoryWf, [{
47
+ key: "isEQEmptyValue",
48
+ value: function isEQEmptyValue(leftVale, operator, rightValue) {
49
+ var EQ = 'operator.number.eq';
50
+ var textEq = 'operator.text.eq';
51
+ var CONTAINS = 'operator.text.contain';
52
+ return (leftVale === undefined || leftVale === null || leftVale + '' === '') && (rightValue === undefined || rightValue === null || rightValue + '' === '') && (operator === EQ || operator === textEq || operator === CONTAINS);
53
+ }
54
+ }]);
55
+ return CalculatorFactoryWf;
56
+ }();
57
+ var AmountCalculator = /*#__PURE__*/function (_CalculatorFactoryWf) {
58
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(AmountCalculator, _CalculatorFactoryWf);
59
+ var _super = _createSuper(AmountCalculator);
60
+ /**
61
+ *
62
+ * @param subExpression 二元逻辑表达式 例如:2.5 operator.text.eq.not 2.5
63
+ * @param dataType 数据类型
64
+ * @return
65
+ */
66
+ function AmountCalculator(subExpression) {
67
+ var _this;
68
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(this, AmountCalculator);
69
+ _this = _super.call(this);
70
+ var NLT = 'operator.number.ge';
71
+ var NMT = 'operator.number.le';
72
+ var GT = 'operator.number.gt';
73
+ var LT = 'operator.number.lt';
74
+ var NET = 'operator.number.ne';
75
+ var EQ = 'operator.number.eq';
76
+ var textNet = 'operator.text.neq';
77
+ var textEq = 'operator.text.eq';
78
+ if (subExpression.indexOf(NLT) > 0) {
79
+ var operator = NLT;
80
+ var leftOperand = subExpression.substring(0, subExpression.indexOf(operator)).trim();
81
+ var rightOperand = subExpression.substring(subExpression.indexOf(operator) + operator.length).trim();
82
+ var preOperand = Number(leftOperand);
83
+ var value = Number(rightOperand);
84
+ if (preOperand === null) {
85
+ _this.result = false;
86
+ } else {
87
+ _this.result = preOperand >= value;
88
+ }
89
+ } else if (subExpression.indexOf(NMT) > 0) {
90
+ var _operator = NMT;
91
+ var _leftOperand = subExpression.substring(0, subExpression.indexOf(_operator)).trim();
92
+ var _rightOperand = subExpression.substring(subExpression.indexOf(_operator) + _operator.length).trim();
93
+ var _preOperand = Number(_leftOperand);
94
+ var _value = Number(_rightOperand);
95
+ if (_preOperand === null) {
96
+ _this.result = false;
97
+ } else {
98
+ _this.result = _preOperand <= _value;
99
+ }
100
+ } else if (subExpression.indexOf(GT) > 0) {
101
+ var _operator2 = GT;
102
+ var _leftOperand2 = subExpression.substring(0, subExpression.indexOf(_operator2)).trim();
103
+ var _rightOperand2 = subExpression.substring(subExpression.indexOf(_operator2) + _operator2.length).trim();
104
+ var _preOperand2 = Number(_leftOperand2);
105
+ var _value2 = Number(_rightOperand2);
106
+ if (_preOperand2 === null) {
107
+ _this.result = false;
108
+ } else {
109
+ _this.result = _preOperand2 > _value2;
110
+ }
111
+ } else if (subExpression.indexOf(LT) > 0) {
112
+ var _operator3 = LT;
113
+ var _leftOperand3 = subExpression.substring(0, subExpression.indexOf(_operator3)).trim();
114
+ var _rightOperand3 = subExpression.substring(subExpression.indexOf(_operator3) + _operator3.length).trim();
115
+ var _preOperand3 = Number(_leftOperand3);
116
+ var _value3 = Number(_rightOperand3);
117
+ if (_preOperand3 === null) {
118
+ _this.result = false;
119
+ } else {
120
+ _this.result = _preOperand3 < _value3;
121
+ }
122
+ } else if (subExpression.indexOf(NET) > 0 || subExpression.indexOf(textNet) > 0) {
123
+ var _operator4 = NET;
124
+ if (subExpression.indexOf(textNet) > 0) {
125
+ _operator4 = textNet;
126
+ }
127
+ var _leftOperand4 = subExpression.substring(0, subExpression.indexOf(_operator4)).trim();
128
+ var _rightOperand4 = subExpression.substring(subExpression.indexOf(_operator4) + _operator4.length).trim();
129
+ var _preOperand4 = Number(_leftOperand4);
130
+ var _value4 = Number(_rightOperand4);
131
+ if (_preOperand4 === null) {
132
+ _this.result = false;
133
+ } else {
134
+ _this.result = _preOperand4 !== _value4;
135
+ }
136
+ } else if (subExpression.indexOf(EQ) > 0 || subExpression.indexOf(textEq) > 0) {
137
+ var _operator5 = EQ;
138
+ if (subExpression.indexOf(textEq) > 0) {
139
+ _operator5 = textEq;
140
+ }
141
+ var _leftOperand5 = subExpression.substring(0, subExpression.indexOf(_operator5)).trim();
142
+ var _rightOperand5 = subExpression.substring(subExpression.indexOf(_operator5) + _operator5.length).trim();
143
+ var _preOperand5 = Number(_leftOperand5);
144
+ var _value5 = Number(_rightOperand5);
145
+ if (_this.isEQEmptyValue(_preOperand5, _operator5, _value5)) {
146
+ _this.result = true;
147
+ } else if (_preOperand5 === null) {
148
+ _this.result = false;
149
+ } else {
150
+ _this.result = _preOperand5 === _value5;
151
+ }
152
+ }
153
+ return _this;
154
+ }
155
+ return Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(AmountCalculator);
156
+ }(CalculatorFactoryWf);
157
+ var NumberCalculator = /*#__PURE__*/function (_CalculatorFactoryWf2) {
158
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(NumberCalculator, _CalculatorFactoryWf2);
159
+ var _super2 = _createSuper(NumberCalculator);
160
+ /**
161
+ *
162
+ * @param subExpression 二元逻辑表达式 例如:2.5 operator.text.eq.not 2.5
163
+ * @param dataType 数据类型
164
+ * @return
165
+ */
166
+ function NumberCalculator(subExpression) {
167
+ var _this2;
168
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(this, NumberCalculator);
169
+ _this2 = _super2.call(this);
170
+ var NLT = 'operator.number.ge';
171
+ var NMT = 'operator.number.le';
172
+ var GT = 'operator.number.gt';
173
+ var LT = 'operator.number.lt';
174
+ var NET = 'operator.number.ne';
175
+ var EQ = 'operator.number.eq';
176
+ var textNet = 'operator.text.neq';
177
+ var textEq = 'operator.text.eq';
178
+ if (subExpression.indexOf(NLT) > 0) {
179
+ var operator = NLT;
180
+ var leftOperand = subExpression.substring(0, subExpression.indexOf(operator)).trim();
181
+ var rightOperand = subExpression.substring(subExpression.indexOf(operator) + operator.length).trim();
182
+ if (!leftOperand) {
183
+ leftOperand = '0';
184
+ }
185
+ if (!rightOperand) {
186
+ rightOperand = '0';
187
+ } else {
188
+ rightOperand = rightOperand.replaceAll('\'', '');
189
+ }
190
+ var preOperand = Number(leftOperand);
191
+ var value = Number(rightOperand);
192
+ if (preOperand === null) {
193
+ _this2.result = false;
194
+ } else {
195
+ _this2.result = preOperand >= value;
196
+ }
197
+ } else if (subExpression.indexOf(NMT) > 0) {
198
+ var _operator6 = NMT;
199
+ var _leftOperand6 = subExpression.substring(0, subExpression.indexOf(_operator6)).trim();
200
+ var _rightOperand6 = subExpression.substring(subExpression.indexOf(_operator6) + _operator6.length).trim();
201
+ if (!_leftOperand6) {
202
+ _leftOperand6 = '0';
203
+ }
204
+ if (!_rightOperand6) {
205
+ _rightOperand6 = '0';
206
+ } else {
207
+ _rightOperand6 = _rightOperand6.replaceAll('\'', '');
208
+ }
209
+ var _preOperand6 = Number(_leftOperand6);
210
+ var _value6 = Number(_rightOperand6);
211
+ if (_preOperand6 === null) {
212
+ _this2.result = false;
213
+ } else {
214
+ _this2.result = _preOperand6 <= _value6;
215
+ }
216
+ } else if (subExpression.indexOf(GT) > 0) {
217
+ var _operator7 = GT;
218
+ var _leftOperand7 = subExpression.substring(0, subExpression.indexOf(_operator7)).trim();
219
+ var _rightOperand7 = subExpression.substring(subExpression.indexOf(_operator7) + _operator7.length).trim();
220
+ if (!_leftOperand7) {
221
+ _leftOperand7 = '0';
222
+ }
223
+ if (!_rightOperand7) {
224
+ _rightOperand7 = '0';
225
+ } else {
226
+ _rightOperand7 = _rightOperand7.replaceAll('\'', '');
227
+ }
228
+ var _preOperand7 = Number(_leftOperand7);
229
+ var _value7 = Number(_rightOperand7);
230
+ if (_preOperand7 === null) {
231
+ _this2.result = false;
232
+ } else {
233
+ _this2.result = _preOperand7 > _value7;
234
+ }
235
+ } else if (subExpression.indexOf(LT) > 0) {
236
+ var _operator8 = LT;
237
+ var _leftOperand8 = subExpression.substring(0, subExpression.indexOf(_operator8)).trim();
238
+ var _rightOperand8 = subExpression.substring(subExpression.indexOf(_operator8) + _operator8.length).trim();
239
+ if (!_leftOperand8) {
240
+ _leftOperand8 = '0';
241
+ }
242
+ if (!_rightOperand8) {
243
+ _rightOperand8 = '0';
244
+ } else {
245
+ _rightOperand8 = _rightOperand8.replaceAll('\'', '');
246
+ }
247
+ var _preOperand8 = Number(_leftOperand8);
248
+ var _value8 = Number(_rightOperand8);
249
+ if (_preOperand8 === null) {
250
+ _this2.result = false;
251
+ } else {
252
+ _this2.result = _preOperand8 < _value8;
253
+ }
254
+ } else if (subExpression.indexOf(NET) > 0 || subExpression.indexOf(textNet) > 0) {
255
+ var _operator9 = NET;
256
+ if (subExpression.indexOf(textNet) > 0) {
257
+ _operator9 = textNet;
258
+ }
259
+ var _leftOperand9 = subExpression.substring(0, subExpression.indexOf(_operator9)).trim();
260
+ var _rightOperand9 = subExpression.substring(subExpression.indexOf(_operator9) + _operator9.length).trim();
261
+ if (!_leftOperand9) {
262
+ _leftOperand9 = '0';
263
+ }
264
+ if (!_rightOperand9) {
265
+ _rightOperand9 = '0';
266
+ } else {
267
+ _rightOperand9 = _rightOperand9.replaceAll('\'', '');
268
+ }
269
+ var _preOperand9 = Number(_leftOperand9);
270
+ var _value9 = Number(_rightOperand9);
271
+ if (_preOperand9 === null) {
272
+ _this2.result = false;
273
+ } else {
274
+ _this2.result = _preOperand9 !== _value9;
275
+ }
276
+ } else if (subExpression.indexOf(EQ) > 0 || subExpression.indexOf(textEq) > 0) {
277
+ var _operator10 = EQ;
278
+ if (subExpression.indexOf(textEq) > 0) {
279
+ _operator10 = textEq;
280
+ }
281
+ var _leftOperand10 = subExpression.substring(0, subExpression.indexOf(_operator10)).trim();
282
+ var _rightOperand10 = subExpression.substring(subExpression.indexOf(_operator10) + _operator10.length).trim();
283
+ if (!_leftOperand10) {
284
+ _leftOperand10 = '0';
285
+ }
286
+ if (!_rightOperand10) {
287
+ _rightOperand10 = '0';
288
+ } else {
289
+ _rightOperand10 = _rightOperand10.replaceAll('\'', '');
290
+ }
291
+ var _preOperand10 = Number(_leftOperand10);
292
+ var _value10 = Number(_rightOperand10);
293
+ if (_this2.isEQEmptyValue(_preOperand10, _operator10, _value10)) {
294
+ _this2.result = true;
295
+ } else if (_preOperand10 === null) {
296
+ _this2.result = false;
297
+ } else {
298
+ _this2.result = _preOperand10 === _value10;
299
+ }
300
+ }
301
+ return _this2;
302
+ }
303
+ return Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(NumberCalculator);
304
+ }(CalculatorFactoryWf);
305
+ var DateCalculator = /*#__PURE__*/function (_CalculatorFactoryWf3) {
306
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(DateCalculator, _CalculatorFactoryWf3);
307
+ var _super3 = _createSuper(DateCalculator);
308
+ /**
309
+ *
310
+ * @param subExpression 二元逻辑表达式 例如:2.5 operator.text.eq.not 2.5
311
+ * @param dataType 数据类型
312
+ * @return
313
+ */
314
+ function DateCalculator(subExpression, dataType) {
315
+ var _this3;
316
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(this, DateCalculator);
317
+ _this3 = _super3.call(this);
318
+ var NLT = 'operator.date.ge';
319
+ var NGT = 'operator.date.le';
320
+ var GT = 'operator.date.gt';
321
+ var LT = 'operator.date.lt';
322
+ var NET = 'operator.date.ne';
323
+ var EQ = 'operator.date.et';
324
+ if (subExpression.indexOf(NLT) > 0) {
325
+ var operator = NLT;
326
+ var leftOperand = subExpression.substring(0, subExpression.indexOf(operator)).trim();
327
+ var rightOperand = subExpression.substring(subExpression.indexOf(operator) + operator.length).trim();
328
+ if (dataType && dataType === 'DATE' && leftOperand.indexOf(':') > 0) {
329
+ leftOperand = leftOperand.substring(0, leftOperand.indexOf(':'));
330
+ }
331
+ if (dataType && dataType === 'DATE' && rightOperand.indexOf(':') > 0) {
332
+ rightOperand = rightOperand.substring(0, rightOperand.indexOf(':'));
333
+ }
334
+ var preOperand = new Date(leftOperand).getTime();
335
+ var value = new Date(rightOperand).getTime();
336
+ if (preOperand === null) {
337
+ _this3.result = false;
338
+ } else {
339
+ _this3.result = preOperand >= value;
340
+ }
341
+ } else if (subExpression.indexOf(NGT) > 0) {
342
+ var _operator11 = NGT;
343
+ var _leftOperand11 = subExpression.substring(0, subExpression.indexOf(_operator11)).trim();
344
+ var _rightOperand11 = subExpression.substring(subExpression.indexOf(_operator11) + _operator11.length).trim();
345
+ if (dataType && dataType === 'DATE' && _leftOperand11.indexOf(':') > 0) {
346
+ _leftOperand11 = _leftOperand11.substring(0, _leftOperand11.indexOf(':'));
347
+ }
348
+ if (dataType && dataType === 'DATE' && _rightOperand11.indexOf(':') > 0) {
349
+ _rightOperand11 = _rightOperand11.substring(0, _rightOperand11.indexOf(':'));
350
+ }
351
+ var _preOperand11 = new Date(_leftOperand11).getTime();
352
+ var _value11 = new Date(_rightOperand11).getTime();
353
+ if (_preOperand11 === null) {
354
+ _this3.result = false;
355
+ } else {
356
+ _this3.result = _preOperand11 <= _value11;
357
+ }
358
+ } else if (subExpression.indexOf(GT) > 0) {
359
+ var _operator12 = GT;
360
+ var _leftOperand12 = subExpression.substring(0, subExpression.indexOf(_operator12)).trim();
361
+ var _rightOperand12 = subExpression.substring(subExpression.indexOf(_operator12) + _operator12.length).trim();
362
+ if (dataType && dataType === 'DATE' && _leftOperand12.indexOf(':') > 0) {
363
+ _leftOperand12 = _leftOperand12.substring(0, _leftOperand12.indexOf(':'));
364
+ }
365
+ if (dataType && dataType === 'DATE' && _rightOperand12.indexOf(':') > 0) {
366
+ _rightOperand12 = _rightOperand12.substring(0, _rightOperand12.indexOf(':'));
367
+ }
368
+ var _preOperand12 = new Date(_leftOperand12).getTime();
369
+ var _value12 = new Date(_rightOperand12).getTime();
370
+ if (_preOperand12 === null) {
371
+ _this3.result = false;
372
+ } else {
373
+ _this3.result = _preOperand12 > _value12;
374
+ }
375
+ } else if (subExpression.indexOf(LT) > 0) {
376
+ var _operator13 = LT;
377
+ var _leftOperand13 = subExpression.substring(0, subExpression.indexOf(_operator13)).trim();
378
+ var _rightOperand13 = subExpression.substring(subExpression.indexOf(_operator13) + _operator13.length).trim();
379
+ if (dataType && dataType === 'DATE' && _leftOperand13.indexOf(':') > 0) {
380
+ _leftOperand13 = _leftOperand13.substring(0, _leftOperand13.indexOf(':'));
381
+ }
382
+ if (dataType && dataType === 'DATE' && _rightOperand13.indexOf(':') > 0) {
383
+ _rightOperand13 = _rightOperand13.substring(0, _rightOperand13.indexOf(':'));
384
+ }
385
+ var _preOperand13 = new Date(_leftOperand13).getTime();
386
+ var _value13 = new Date(_rightOperand13).getTime();
387
+ if (_preOperand13 === null) {
388
+ _this3.result = false;
389
+ } else {
390
+ _this3.result = _preOperand13 < _value13;
391
+ }
392
+ } else if (subExpression.indexOf(NET) > 0) {
393
+ var _operator14 = NET;
394
+ var _leftOperand14 = subExpression.substring(0, subExpression.indexOf(_operator14)).trim();
395
+ var _rightOperand14 = subExpression.substring(subExpression.indexOf(_operator14) + _operator14.length).trim();
396
+ if (dataType && dataType === 'DATE' && _leftOperand14.indexOf(':') > 0) {
397
+ _leftOperand14 = _leftOperand14.substring(0, _leftOperand14.indexOf(':'));
398
+ }
399
+ if (dataType && dataType === 'DATE' && _rightOperand14.indexOf(':') > 0) {
400
+ _rightOperand14 = _rightOperand14.substring(0, _rightOperand14.indexOf(':'));
401
+ }
402
+ var _preOperand14 = new Date(_leftOperand14).getTime();
403
+ var _value14 = new Date(_rightOperand14).getTime();
404
+ if (_preOperand14 === null) {
405
+ _this3.result = false;
406
+ } else {
407
+ _this3.result = _preOperand14 !== _value14;
408
+ }
409
+ } else if (subExpression.indexOf(EQ) > 0) {
410
+ var _operator15 = EQ;
411
+ var _leftOperand15 = subExpression.substring(0, subExpression.indexOf(_operator15)).trim();
412
+ var _rightOperand15 = subExpression.substring(subExpression.indexOf(_operator15) + _operator15.length).trim();
413
+ if (dataType && dataType === 'DATE' && _leftOperand15.indexOf(':') > 0) {
414
+ _leftOperand15 = _leftOperand15.substring(0, _leftOperand15.indexOf(':'));
415
+ }
416
+ if (dataType && dataType === 'DATE' && _rightOperand15.indexOf(':') > 0) {
417
+ _rightOperand15 = _rightOperand15.substring(0, _rightOperand15.indexOf(':'));
418
+ }
419
+ var _preOperand15 = new Date(_leftOperand15).getTime();
420
+ var _value15 = new Date(_rightOperand15).getTime();
421
+ if (_this3.isEQEmptyValue(_preOperand15, _operator15, _value15)) {
422
+ _this3.result = true;
423
+ } else if (_preOperand15 === null) {
424
+ _this3.result = false;
425
+ } else {
426
+ _this3.result = _preOperand15 === _value15;
427
+ }
428
+ }
429
+ return _this3;
430
+ }
431
+ return Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(DateCalculator);
432
+ }(CalculatorFactoryWf);
433
+ var TextCalculator = /*#__PURE__*/function (_CalculatorFactoryWf4) {
434
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(TextCalculator, _CalculatorFactoryWf4);
435
+ var _super4 = _createSuper(TextCalculator);
436
+ function TextCalculator(subExpression) {
437
+ var _this4;
438
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(this, TextCalculator);
439
+ _this4 = _super4.call(this);
440
+ var NET = 'operator.text.neq';
441
+ var EQ = 'operator.text.eq';
442
+ var NOT_CONTAINS = 'operator.text.contain.not';
443
+ var CONTAINS = 'operator.text.contain';
444
+ if (subExpression.indexOf(NET) > 0) {
445
+ var operator = NET;
446
+ var leftOperand = subExpression.substring(0, subExpression.indexOf(operator)).trim();
447
+ var rightOperand = subExpression.substring(subExpression.indexOf(operator) + operator.length).trim();
448
+ if (leftOperand === null) {
449
+ _this4.result = false;
450
+ } else {
451
+ _this4.result = leftOperand !== rightOperand;
452
+ }
453
+ } else if (subExpression.indexOf(EQ) > 0) {
454
+ var _operator16 = EQ;
455
+ var _leftOperand16 = subExpression.substring(0, subExpression.indexOf(_operator16)).trim();
456
+ var _rightOperand16 = subExpression.substring(subExpression.indexOf(_operator16) + _operator16.length).trim();
457
+ if (_this4.isEQEmptyValue(_leftOperand16, _operator16, _rightOperand16)) {
458
+ _this4.result = true;
459
+ } else if (_leftOperand16 === null) {
460
+ _this4.result = false;
461
+ } else {
462
+ _this4.result = _leftOperand16 === _rightOperand16;
463
+ }
464
+ } else if (subExpression.indexOf(NOT_CONTAINS) > 0) {
465
+ var _operator17 = NOT_CONTAINS;
466
+ var _leftOperand17 = subExpression.substring(0, subExpression.indexOf(_operator17)).trim();
467
+ var _rightOperand17 = subExpression.substring(subExpression.indexOf(_operator17) + _operator17.length).trim();
468
+ if (_leftOperand17 === null) {
469
+ _this4.result = false;
470
+ } else {
471
+ _this4.result = !_leftOperand17.includes(_rightOperand17);
472
+ }
473
+ } else if (subExpression.indexOf(CONTAINS) > 0) {
474
+ var _operator18 = CONTAINS;
475
+ var _leftOperand18 = subExpression.substring(0, subExpression.indexOf(_operator18)).trim();
476
+ var _rightOperand18 = subExpression.substring(subExpression.indexOf(_operator18) + _operator18.length).trim();
477
+ if (_this4.isEQEmptyValue(_leftOperand18, _operator18, _rightOperand18)) {
478
+ _this4.result = true;
479
+ } else if (_leftOperand18 === null) {
480
+ _this4.result = false;
481
+ } else {
482
+ _this4.result = _leftOperand18.includes(_rightOperand18);
483
+ }
484
+ }
485
+ return _this4;
486
+ }
487
+ return Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(TextCalculator);
488
+ }(CalculatorFactoryWf);
489
+ function getAbstractUserFactoryWf(dataType) {
490
+ switch (dataType) {
491
+ case 'TEXT':
492
+ return TextCalculator;
493
+ case 'DOUBLE':
494
+ return AmountCalculator;
495
+ case 'FLOAT':
496
+ return AmountCalculator;
497
+ case 'INTEGER':
498
+ return NumberCalculator;
499
+ case 'LONG':
500
+ return NumberCalculator;
501
+ case 'DATE':
502
+ return DateCalculator;
503
+ case 'TIME':
504
+ return DateCalculator;
505
+ default:
506
+ return TextCalculator;
507
+ }
508
+ }
509
+
510
+ /***/ }),
511
+
512
+ /***/ "29b3":
513
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
514
+
515
+ "use strict";
516
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getI18n; });
517
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getLanguageWithLocale; });
518
+ /* unused harmony export findOptionsByDynamicDataSource */
519
+ /* unused harmony export findDynamicDataSourceByCode */
520
+ /* unused harmony export analysisCondition */
521
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getPropValue; });
522
+ /* unused harmony export analysisValue */
523
+ /* unused harmony export setEntityFieldValue */
524
+ /* unused harmony export getEntityFieldValueWithOutCase */
525
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getEntityFieldValue; });
526
+ /* unused harmony export getParentObjectUtil */
527
+ /* unused harmony export findSystemInfoByCode */
528
+ /* unused harmony export getPropNameWhenJoinTable */
529
+ /* unused harmony export isImage */
530
+ /* harmony import */ var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7f7f");
531
+ /* harmony import */ var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__);
532
+ /* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("cadf");
533
+ /* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_1__);
534
+ /* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("456d");
535
+ /* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_2__);
536
+ /* harmony import */ var core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("6762");
537
+ /* harmony import */ var core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_3__);
538
+ /* harmony import */ var core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("2fdb");
539
+ /* harmony import */ var core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_4__);
540
+ /* harmony import */ var core_js_modules_es6_string_starts_with__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("f559");
541
+ /* harmony import */ var core_js_modules_es6_string_starts_with__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_starts_with__WEBPACK_IMPORTED_MODULE_5__);
542
+ /* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("28a5");
543
+ /* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6__);
544
+ /* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("a481");
545
+ /* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_7__);
546
+ /* harmony import */ var D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("53ca");
547
+ /* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("ac6a");
548
+ /* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_9__);
549
+ /* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("551c");
550
+ /* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_10__);
551
+ /* harmony import */ var _i18n_i18n__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("5824");
552
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("8bbf");
553
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_12__);
554
+ /* harmony import */ var _calculator_calculator_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("8345");
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+
569
+ function getI18n() {
570
+ if (!window.$locale) {
571
+ _i18n_i18n__WEBPACK_IMPORTED_MODULE_11__[/* default */ "a"].locale = 'cn';
572
+ } else {
573
+ _i18n_i18n__WEBPACK_IMPORTED_MODULE_11__[/* default */ "a"].locale = window.$locale;
574
+ }
575
+ return _i18n_i18n__WEBPACK_IMPORTED_MODULE_11__[/* default */ "a"];
576
+ }
577
+ function getLanguageWithLocale() {
578
+ var currentLocale = window.$locale;
579
+ if (currentLocale && currentLocale === 'en') {
580
+ return 'en_US';
581
+ } else {
582
+ return 'zh_CN';
583
+ }
584
+ }
585
+ /**
586
+ * 根据动态数据源获得下拉选的选项集合
587
+ * @param {*} dynamicSourceCode 动态数据源编码
588
+ * @param {*} searchText 查询的文本
589
+ * @param {*} entity 实体信息
590
+ * @returns
591
+ */
592
+ function findOptionsByDynamicDataSource(dynamicSourceCode, searchText, entity, additionalParameterStr) {
593
+ return new Promise(function (resolve, reject) {
594
+ findDynamicDataSourceByCode(dynamicSourceCode, searchText, entity, additionalParameterStr).then(function (dynamicDataSourceDto) {
595
+ var options = [];
596
+ if (dynamicDataSourceDto && dynamicDataSourceDto.options) {
597
+ var setOptions = dynamicDataSourceDto.options;
598
+ var valueAttribute;
599
+ if (dynamicDataSourceDto.valueAttribute) {
600
+ valueAttribute = dynamicDataSourceDto.valueAttribute;
601
+ }
602
+ if (!valueAttribute || valueAttribute === '[label]') {
603
+ valueAttribute = '_label_';
604
+ }
605
+ setOptions.forEach(function (item) {
606
+ // 值
607
+ var value = item[valueAttribute];
608
+ // 显示的标签
609
+ var label = item['_label_'];
610
+ options.push({
611
+ label: label,
612
+ value: value
613
+ });
614
+ });
615
+ }
616
+ if (!options) {
617
+ options = [];
618
+ }
619
+ resolve(options);
620
+ }).catch(function (error) {
621
+ reject(error);
622
+ });
623
+ });
624
+ }
625
+
626
+ /**
627
+ * 根据动态数据源获得下拉选的选项对象集合
628
+ * @param {*} dynamicSourceCode 动态数据源编码
629
+ * @param {*} searchText 查询的文本
630
+ * @param {*} entity 实体信息
631
+ * @returns
632
+ */
633
+ function findDynamicDataSourceByCode(dynamicSourceCode, searchText, entity, additionalParameterStr) {
634
+ return new Promise(function (resolve, reject) {
635
+ if (searchText === undefined || searchText === null) {
636
+ searchText = '';
637
+ }
638
+ var params = {
639
+ searchText: searchText
640
+ };
641
+ // const additionalParameterStr = sessionStorage.getItem('additionalParamMap')
642
+ if (additionalParameterStr) {
643
+ params.additionalParamMap = JSON.parse(additionalParameterStr);
644
+ }
645
+ if (entity && entity !== null) {
646
+ params.entity = entity;
647
+ }
648
+ vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.$http.post(vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.baseURL + '/common/dynamic-data-source/' + dynamicSourceCode, params).then(function (dynamicDataSourceDto) {
649
+ resolve(dynamicDataSourceDto);
650
+ }).catch(function (error) {
651
+ reject(error);
652
+ });
653
+ });
654
+ }
655
+
656
+ /**
657
+ * 解析是否可见的条件,例如:按钮是否按钮;列表单元格内容是否可见
658
+ * @param {*} conditionListJson
659
+ * @param {*} entity
660
+ * @param {*} additionalParameter
661
+ * @param {*} contextParameter
662
+ * @param {*} isSql
663
+ * @param {*} tableName
664
+ * @returns
665
+ */
666
+ function analysisCondition(conditionListJson, entity, additionalParameter, contextParameter, isSql, tableName, parentFormData) {
667
+ // console.log('analysisCondition判断条件conditionListJson', conditionListJson)
668
+ // console.log('analysisCondition判断条件entity', entity)
669
+ // console.log('analysisCondition判断条件additionalParameter', additionalParameter)
670
+ // console.log('analysisCondition判断条件contextParameter', contextParameter)
671
+ // console.log('analysisCondition判断条件isSql', isSql)
672
+ // console.log('analysisCondition判断条件tableName', tableName)
673
+ // console.log('analysisCondition判断条件parentFormData', parentFormData)
674
+ if (conditionListJson === undefined || conditionListJson === '' || conditionListJson === null) {
675
+ // 如果条件不存在,则默认返回true
676
+ return true;
677
+ }
678
+ if (typeof isSql === 'undefined' || isSql === null) {
679
+ // 默认是定制开发时
680
+ isSql = false;
681
+ }
682
+ // 页面附加参数
683
+ var additionalParameterMap = {};
684
+ if (additionalParameter && typeof additionalParameter === 'string' && additionalParameter !== '') {
685
+ additionalParameterMap = JSON.parse(additionalParameter);
686
+ } else if (additionalParameter && Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(additionalParameter) === 'object') {
687
+ additionalParameterMap = additionalParameter;
688
+ }
689
+ // 环境变量,例如:当前用户id、当前用户登录名等
690
+ var contextParameterMap = {};
691
+ if (contextParameter && typeof contextParameter === 'string' && contextParameter !== '') {
692
+ contextParameterMap = JSON.parse(contextParameter);
693
+ } else if (contextParameter && Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(contextParameter) === 'object') {
694
+ contextParameterMap = contextParameter;
695
+ }
696
+ var conditionList = [];
697
+ if (conditionListJson && typeof conditionListJson === 'string' && conditionListJson !== '') {
698
+ // conditionList = eval('('+conditionListJson+')')
699
+ conditionList = JSON.parse(conditionListJson);
700
+ } else if (conditionListJson && Array.isArray(conditionListJson)) {
701
+ conditionList = conditionListJson;
702
+ }
703
+ return parseCondition(entity, conditionList, isSql, tableName, additionalParameterMap, contextParameterMap, parentFormData);
704
+ }
705
+ function parseCondition(entity, conditionList, isSql, tableName, additionalParamMap, contextParameterMap, parentFormData) {
706
+ if (conditionList === undefined || conditionList === null || conditionList.length === 0) {
707
+ // 表示没有设置条件,默认是true
708
+ return true;
709
+ }
710
+ // 条件封装的表达式
711
+ var conditions = '';
712
+ for (var i = 0; i < conditionList.length; i++) {
713
+ var condition = conditionList[i];
714
+ var propName = condition.propName;
715
+ var propDbName = condition.propDbName;
716
+ if ((!propName || propName === '') && (!propDbName || propDbName === '')) {
717
+ // 没有属性和字段名表示是无效的条件
718
+ continue;
719
+ }
720
+ var leftValue = void 0;
721
+ if (isSql && propDbName) {
722
+ if (propDbName.indexOf('parent_+_') !== -1) {
723
+ propDbName = propDbName.replace('parent_+_', '');
724
+ // 再获取属于那张表
725
+ var propDbNameArr = propDbName.split('_+_');
726
+ propDbName = propDbNameArr[1];
727
+ leftValue = getValue(parentFormData, propDbName, isSql);
728
+ } else {
729
+ leftValue = getValue(entity, propDbName, isSql);
730
+ }
731
+ if (leftValue === undefined || leftValue === null) {
732
+ if (tableName && propDbName.toLowerCase().startsWith(tableName.toLowerCase() + '.')) {
733
+ // 表示是当前表的字段
734
+ var myProp = propDbName.substring(propDbName.indexOf('.'));
735
+ leftValue = getValue(entity, myProp, isSql);
736
+ }
737
+ }
738
+ } else {
739
+ if (propName.indexOf('parent_+_') !== -1) {
740
+ propName = propName.replace('parent_+_', '');
741
+ var propNameArr = propName.split('_+_');
742
+ propName = propNameArr[1];
743
+ leftValue = getValue(parentFormData, propName, isSql);
744
+ } else {
745
+ leftValue = getValue(entity, propName, isSql);
746
+ }
747
+ if (propDbName && (leftValue === undefined || leftValue === null)) {
748
+ leftValue = getValue(entity, propDbName, isSql);
749
+ }
750
+ }
751
+ var operator = condition.operator;
752
+ var propValue = condition.propValue;
753
+ var dataType = condition.dataType;
754
+ var variableIsNullStr = condition.variableIsNull;
755
+ // 解析单个条件的值
756
+ // 判断value类型
757
+ var value = getPropValue(propValue, entity, additionalParamMap, contextParameterMap);
758
+ if (variableIsNullStr && variableIsNullStr === 'null') {
759
+ if (value === undefined || value === '') {
760
+ value = null;
761
+ }
762
+ }
763
+ var conditionResult = Object(_calculator_calculator_util__WEBPACK_IMPORTED_MODULE_13__[/* executeExpression */ "a"])(leftValue, operator, value, dataType);
764
+ var leftBracket = condition.leftBracket;
765
+ var rightBracket = condition.rightBracket;
766
+ var joinSign = condition.joinSign;
767
+ if (leftBracket && leftBracket !== null && leftBracket !== '') {
768
+ conditions = conditions + leftBracket;
769
+ conditions = conditions + ' ';
770
+ // conditions.append(leftBracket).append(' ')
771
+ }
772
+
773
+ if (variableIsNullStr && variableIsNullStr !== 'null') {
774
+ if (value === undefined || value === null || value + '' === '') {
775
+ if (variableIsNullStr === '1=1') {
776
+ conditionResult = true;
777
+ } else {
778
+ conditionResult = false;
779
+ }
780
+ }
781
+ }
782
+ conditions += conditionResult + ' ';
783
+ if (rightBracket && rightBracket !== null && rightBracket !== '') {
784
+ conditions = conditions + rightBracket;
785
+ conditions = conditions + ' ';
786
+ // conditions.append(rightBracket).append(' ')
787
+ }
788
+
789
+ if (i < conditionList.length - 1) {
790
+ // 最后一个不拼接“连接符”
791
+ if (joinSign && joinSign !== null && joinSign !== '') {
792
+ var joinSignIgnoreCase = joinSign.toLowerCase();
793
+ if (joinSignIgnoreCase === 'and') {
794
+ joinSign = joinSignIgnoreCase.replace('and', '&&');
795
+ } else if (joinSignIgnoreCase === 'or') {
796
+ joinSign = joinSignIgnoreCase.replace('or', '||');
797
+ }
798
+ conditions += joinSign + ' ';
799
+ }
800
+ }
801
+ }
802
+ console.log('parseCondition----conditions=', conditions);
803
+ if (conditions) {
804
+ // eslint-disable-next-line no-eval
805
+ return eval('(' + conditions + ')');
806
+ } else {
807
+ return true;
808
+ }
809
+ }
810
+ var REPLACE_DOT = '__';
811
+ function getValue(entityData, fieldName, isSql) {
812
+ var value = null;
813
+ if (entityData && entityData !== null) {
814
+ if (fieldName && fieldName !== null) {
815
+ value = getValueByField(entityData, fieldName);
816
+ if (value === undefined || value === null) {
817
+ if (isSql) {
818
+ if (value === undefined || value == null) {
819
+ if (fieldName.indexOf('.') > 0) {
820
+ // 将“.”替换为'__',列表组件中的entity中如果是'.',传过来的实体信息中的字段属性会是“__”
821
+ fieldName = fieldName.replace('.', REPLACE_DOT);
822
+ value = getValueByField(entityData, fieldName);
823
+ }
824
+ }
825
+ }
826
+ }
827
+ }
828
+ }
829
+ return value;
830
+ }
831
+ function getValueByField(entityData, fieldName) {
832
+ if (entityData && entityData !== null) {
833
+ var value;
834
+ if (fieldName.indexOf('.') > 0) {
835
+ // 表示是子表字段
836
+ value = getSubEntityValue(entityData, fieldName);
837
+ } else {
838
+ value = entityData[fieldName];
839
+ }
840
+ return value;
841
+ }
842
+ }
843
+ function getSubEntityValue(entityData, fieldName) {
844
+ var value = null;
845
+ var subEntityData = entityData;
846
+ var fieldNames = fieldName.split('\\.');
847
+ for (var i = 0; i < fieldNames.length; i++) {
848
+ var field = fieldNames[i];
849
+ if (i === fieldNames.length) {
850
+ value = getSubEntityFieldValue(subEntityData, field);
851
+ } else {
852
+ subEntityData = getSubEntityFieldValue(subEntityData, field);
853
+ }
854
+ }
855
+ return value;
856
+ }
857
+
858
+ /**
859
+ * 获得关联表字段的值。
860
+ * 处理sql 或 实体情况。
861
+ * @param subEntityData
862
+ * @param fieldName
863
+ * @return
864
+ */
865
+ function getSubEntityFieldValue(subEntityData, fieldName) {
866
+ if (subEntityData === undefined || subEntityData === null) {
867
+ return null;
868
+ }
869
+ return subEntityData[fieldName];
870
+ }
871
+ function getContextValue(contextParameterMap, propValue) {
872
+ if (contextParameterMap) {
873
+ return contextParameterMap[propValue];
874
+ }
875
+ }
876
+ function getPropValue(propValue, entity, additionalParamMap, contextParameterMap, parentEntity, subEntity, task) {
877
+ var value = null;
878
+ if (propValue && propValue !== null && propValue !== '') {
879
+ if (propValue === 'null') {
880
+ value = null;
881
+ } else if (propValue.includes('${context.') || propValue.includes('${request.') || propValue.includes('${obj.')) {
882
+ // 填写的固定值
883
+ if (propValue.includes('${context.')) {
884
+ propValue = propValue.replace('${context.', '').replace('}', '');
885
+ value = getContextValue(contextParameterMap, propValue);
886
+ } else if (propValue.includes('${request.') && propValue !== '${request.term}') {
887
+ // ${request.term}表示页面中手动输入的值
888
+ propValue = propValue.replace('${request.', '').replace('}', '');
889
+ if (additionalParamMap && additionalParamMap != null && Object.keys(additionalParamMap).indexOf(propValue) >= 0 && additionalParamMap[propValue] && additionalParamMap[propValue] !== null) {
890
+ value = additionalParamMap[propValue];
891
+ } else {
892
+ value = null;
893
+ }
894
+ } else if (propValue.includes('${obj.')) {
895
+ if (entity === undefined || entity == null) {
896
+ value = null;
897
+ } else {
898
+ var propName = propValue.replace('${obj.', '').replace('}', '');
899
+ value = getEntityFieldValue(entity, propName);
900
+ }
901
+ }
902
+ } else if (propValue.includes('${parent.')) {
903
+ if (parentEntity === undefined || parentEntity == null) {
904
+ value = null;
905
+ } else {
906
+ var _propName = propValue.replace('${parent.', '').replace('}', '');
907
+ value = getEntityFieldValue(parentEntity, _propName);
908
+ }
909
+ } else if (propValue.includes('${task.')) {
910
+ if (task === undefined || task == null) {
911
+ value = null;
912
+ } else {
913
+ var _propName2 = propValue.replace('${task.', '').replace('}', '');
914
+ value = getEntityFieldValue(task, _propName2);
915
+ }
916
+ } else if (propValue.includes('${subObj.')) {
917
+ if (subEntity === undefined || subEntity == null) {
918
+ value = null;
919
+ } else {
920
+ var _propName3 = propValue.replace('${subObj.', '').replace('}', '');
921
+ value = getEntityFieldValue(subEntity, _propName3);
922
+ }
923
+ } else if (propValue.includes('${input.')) {
924
+ value = propValue.replace('${input.', '').replace('}', '');
925
+ } else {
926
+ value = propValue;
927
+ }
928
+ }
929
+ return value;
930
+ }
931
+ /**
932
+ * 解析条件,例如:${obj.menu_code}-#-#${input.---}-#-#${context.currentTransactor}
933
+ * @param {*} conditionValue
934
+ * @param {*} entity
935
+ * @param {*} additionalParameter
936
+ * @param {*} contextParameter
937
+ * @returns
938
+ */
939
+ function analysisValue(conditionValue, entity, additionalParameter, contextParameter) {
940
+ if (!conditionValue) {
941
+ return;
942
+ }
943
+ var label = '';
944
+ var split = conditionValue.split('-#-#');
945
+ if (split != null && split.length > 0) {
946
+ split.forEach(function (item) {
947
+ var value = getPropValue(item, entity, additionalParameter, contextParameter);
948
+ if (!value || value === null) {
949
+ value = '';
950
+ }
951
+ label += value;
952
+ });
953
+ }
954
+ return label;
955
+ }
956
+
957
+ /**
958
+ * 设置entity中某属性的值,处理子对象的情况。使用该方法,性能可能有问题
959
+ * @param {*} entity
960
+ * @param {*} prop
961
+ * @param {*} value
962
+ */
963
+ function setEntityFieldValue(entity, prop, value) {
964
+ if (prop && entity) {
965
+ if (prop && prop.indexOf('.') > 0) {
966
+ var parentObj = getParentObjectUtil(prop, entity);
967
+ if (parentObj) {
968
+ var subProp = prop.substring(prop.lastIndexOf('.') + 1);
969
+ if (parentObj[subProp] === undefined) {
970
+ // 动态对象属性赋值,防止属性不存在,导致属性无法赋值问题
971
+ vue__WEBPACK_IMPORTED_MODULE_12___default.a.set(parentObj, prop.substring(prop.lastIndexOf('.') + 1), value);
972
+ } else {
973
+ // 静态对象属性赋值,提高性能
974
+ parentObj[subProp] = value;
975
+ }
976
+ }
977
+ } else {
978
+ if (entity[prop] === undefined) {
979
+ // 动态对象属性赋值,防止属性不存在,导致属性无法赋值问题
980
+ vue__WEBPACK_IMPORTED_MODULE_12___default.a.set(entity, prop, value);
981
+ } else {
982
+ // 静态对象属性赋值,提高性能
983
+ entity[prop] = value;
984
+ }
985
+ }
986
+ }
987
+ }
988
+
989
+ /**
990
+ * 获得字段的值,不需要处理大小写转换
991
+ * @param {*} entity
992
+ * @param {*} prop
993
+ * @returns
994
+ */
995
+ function getEntityFieldValueWithOutCase(entity, prop) {
996
+ if (prop && prop.indexOf('.') > 0) {
997
+ var parentOjbect = getParentObjectUtil(prop, entity);
998
+ var modelName = prop.substring(prop.lastIndexOf('.') + 1);
999
+ return parentOjbect[modelName];
1000
+ } else {
1001
+ return entity[prop];
1002
+ }
1003
+ }
1004
+
1005
+ /**
1006
+ * 获得实体entity中某属性的值,处理子表对象的情况
1007
+ * @param {*} entity
1008
+ * @param {*} prop
1009
+ * @returns
1010
+ */
1011
+ function getEntityFieldValue(entity, prop, isLowerCase) {
1012
+ var value = getEntityFieldValueWithCase(entity, prop);
1013
+ if (value === undefined) {
1014
+ // 兼容mysql数据库
1015
+ value = getEntityFieldValueWithCase(entity, prop.toLowerCase());
1016
+ }
1017
+ if (value === undefined && isLowerCase === undefined) {
1018
+ // 兼容oracle数据库
1019
+ value = getEntityFieldValueWithCase(entity, prop.toUpperCase());
1020
+ }
1021
+ return value;
1022
+ }
1023
+ function getEntityFieldValueWithCase(entity, prop) {
1024
+ if (prop && prop.indexOf('.') > 0) {
1025
+ var parentOjbect = getParentObjectUtil(prop, entity);
1026
+ var modelName = prop.substring(prop.lastIndexOf('.') + 1);
1027
+ return parentOjbect[modelName];
1028
+ } else {
1029
+ return entity[prop];
1030
+ }
1031
+ }
1032
+ function getParentObjectUtil(prop, entity) {
1033
+ var nestedProp = prop.split('.');
1034
+ // 属性只有一个时父对象就是models
1035
+ if (nestedProp.length === 1) {
1036
+ return entity;
1037
+ } else {
1038
+ var parentObject;
1039
+ // 属性超过2个时先找到最后一层属性的父对象
1040
+ for (var i = 0; i < nestedProp.length - 1; i++) {
1041
+ if (i === 0) {
1042
+ parentObject = getParentModelProp(nestedProp[i], entity);
1043
+ } else {
1044
+ parentObject = getParentModelProp(nestedProp[i], parentObject);
1045
+ }
1046
+ }
1047
+ return parentObject;
1048
+ }
1049
+ }
1050
+ function getParentModelProp(prop, parentObj) {
1051
+ var myPparentObject = getParentModelPropWithCase(prop, parentObj);
1052
+ if (myPparentObject === undefined) {
1053
+ // 兼容mysql数据库
1054
+ myPparentObject = getParentModelPropWithCase(prop.toLowerCase(), parentObj);
1055
+ }
1056
+ if (myPparentObject === undefined) {
1057
+ // 兼容oracle数据库
1058
+ myPparentObject = getParentModelPropWithCase(prop.toUpperCase(), parentObj);
1059
+ }
1060
+ return myPparentObject;
1061
+ }
1062
+ function getParentModelPropWithCase(prop, parentObj) {
1063
+ if (!parentObj) {
1064
+ parentObj = {};
1065
+ }
1066
+ if (!parentObj[prop]) {
1067
+ parentObj[prop] = {};
1068
+ }
1069
+ return parentObj[prop];
1070
+ }
1071
+ /**
1072
+ * 获得系统信息
1073
+ * @param {*}} systemCode
1074
+ * @returns
1075
+ */
1076
+ function findSystemInfoByCode(systemCode) {
1077
+ return new Promise(function (resolve, reject) {
1078
+ if (!systemCode) {
1079
+ systemCode = vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.systemCode;
1080
+ }
1081
+ vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.$http.get(vue__WEBPACK_IMPORTED_MODULE_12___default.a.prototype.baseAPI + '/component/business-systems/' + systemCode).then(function (system) {
1082
+ if (system) {
1083
+ resolve({
1084
+ zh_CN: system.name,
1085
+ en_US: system.enName,
1086
+ frontendUrl: system.frontendUrl
1087
+ });
1088
+ } else {
1089
+ resolve('系统:' + systemCode + '不存在');
1090
+ }
1091
+ }).catch(function (error) {
1092
+ reject(error);
1093
+ });
1094
+ });
1095
+ }
1096
+ function getPropNameWhenJoinTable(prop, isJoinTable, tableName) {
1097
+ if (prop && isJoinTable !== undefined && isJoinTable === true) {
1098
+ // 关联表时将点改成下划线,如果没点,则表示是主表字段,拼接主表tableName,因为列表组件中是这样处理的
1099
+ var replaceDot = '__';
1100
+ if (prop.indexOf('.') > 0) {
1101
+ prop = prop.replace('.', replaceDot);
1102
+ } else {
1103
+ if (tableName && tableName !== null && tableName !== '' && prop.indexOf(tableName + replaceDot) < 0) {
1104
+ // 如果属性名没有拼接表名才需要拼接
1105
+ prop = tableName + replaceDot + prop;
1106
+ }
1107
+ }
1108
+ }
1109
+ return prop;
1110
+ }
1111
+ function isImage(fileName) {
1112
+ // const fileType = fileName.substring(fileName.lastIndexOf('.'), fileName.length).toLowerCase()
1113
+ // const imageTypes = ['.jpg', '.JPG', '.png', '.bmp', '.BMP', '.jpeg', '.gif', '.psd', '.tif', '.tga', '.svg', '.eps']
1114
+ // const index = imageTypes.indexOf(fileType)
1115
+ if (/\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(fileName)) {
1116
+ return true;
1117
+ } else {
1118
+ return false;
1119
+ }
1120
+ }
1121
+
1122
+ /***/ }),
1123
+
1124
+ /***/ "5824":
1125
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1126
+
1127
+ "use strict";
1128
+
1129
+ // EXTERNAL MODULE: external "Vue"
1130
+ var external_Vue_ = __webpack_require__("8bbf");
1131
+ var external_Vue_default = /*#__PURE__*/__webpack_require__.n(external_Vue_);
1132
+
1133
+ // EXTERNAL MODULE: ./node_modules/@gcommon/gcommon-ui/lib/locale/index.js
1134
+ var locale = __webpack_require__("9243");
1135
+ var locale_default = /*#__PURE__*/__webpack_require__.n(locale);
1136
+
1137
+ // EXTERNAL MODULE: ./node_modules/vue-i18n/dist/vue-i18n.esm.js
1138
+ var vue_i18n_esm = __webpack_require__("a925");
1139
+
1140
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
1141
+ var es7_object_get_own_property_descriptors = __webpack_require__("8e6e");
1142
+
1143
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
1144
+ var web_dom_iterable = __webpack_require__("ac6a");
1145
+
1146
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js
1147
+ var es6_array_iterator = __webpack_require__("cadf");
1148
+
1149
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js
1150
+ var es6_object_keys = __webpack_require__("456d");
1151
+
1152
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
1153
+ var defineProperty = __webpack_require__("ade3");
1154
+
1155
+ // EXTERNAL MODULE: ./node_modules/@gcommon/gcommon-ui/lib/locale/lang/en.js
1156
+ var en = __webpack_require__("14a4");
1157
+ var en_default = /*#__PURE__*/__webpack_require__.n(en);
1158
+
1159
+ // CONCATENATED MODULE: ./node_modules/imatrix-ui/src/i18n/langs/en.js
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1166
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1167
+
1168
+ var en_en = _objectSpread({
1169
+ imatrixUIPublicModel: {
1170
+ sure: 'Sure',
1171
+ cancel: 'Cancel',
1172
+ allDepartments: 'All Departments',
1173
+ allUsers: 'All Users',
1174
+ reset: 'Reset',
1175
+ to: 'To',
1176
+ edit: 'Edit',
1177
+ clear: 'Clear',
1178
+ download: 'Download',
1179
+ delete: 'Delete',
1180
+ preview: 'Preview',
1181
+ add: 'Add',
1182
+ graphView: 'Graphic view',
1183
+ listView: 'List View',
1184
+ fieldName: 'Field Name',
1185
+ operator: 'Operator',
1186
+ value: 'Value',
1187
+ andOr: 'And/Or',
1188
+ whenTheVariableIsEmpty: 'When The Variable Is Empty',
1189
+ perhaps: 'Perhaps',
1190
+ also: 'Also',
1191
+ greaterThan: 'Greater Than',
1192
+ lessThan: 'Less Than',
1193
+ beEqualTo: 'Be Equal To',
1194
+ notGreaterThan: 'Not Greater Than',
1195
+ notLessThan: 'Not Less Than',
1196
+ notEqualTo: 'Not Equal To',
1197
+ contain: 'Contain',
1198
+ notIncluded: 'Not Included',
1199
+ laterThan: 'Later Than',
1200
+ earlierThan: 'Earlier Than',
1201
+ noLaterThan: 'No Later Than',
1202
+ noEarlierThan: 'No Earlier Than',
1203
+ ignore11: 'Ignore (1 = 1)',
1204
+ nonConformity: 'Non Conformity (1 < > 1)',
1205
+ switchToNormalQuery: 'Switch To Normal Query',
1206
+ switchToAdvancedQuery: 'Switch To Advanced Query',
1207
+ isNull: 'Is Null',
1208
+ isNotNull: 'Is Not Null',
1209
+ previewImage: 'Preview image',
1210
+ fullScreen: 'Full Screen'
1211
+ },
1212
+ imatrixUIMessage: {
1213
+ whetherToConfirmDeletion: 'Whether To Confirm Deletion',
1214
+ tips: 'Tips',
1215
+ pleaseEnterContent: 'Please Enter Content',
1216
+ internalServerError: 'Server error',
1217
+ pleaseSelectDepartment: 'Please Select Department',
1218
+ pleaseSelectPersonnel: 'Please Select Personnel',
1219
+ pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel: 'Please Remove All Personnel Before Selecting Specific Personnel',
1220
+ queryResultIsEmpty: 'Query Result Is Empty',
1221
+ pleaseSelectATeam: 'Please Select A Team',
1222
+ pleaseEnterTeamName: 'Please Enter Team Name',
1223
+ validationFailed: 'Validation Failed',
1224
+ selectionDate: 'Selection Date',
1225
+ selectTime: 'Select Time',
1226
+ pleaseEnterATimePoint: 'Please Enter A Time Point',
1227
+ pleaseSelect: 'Please Select',
1228
+ startDate: 'Start Date',
1229
+ endDate: 'End Date',
1230
+ noExportColumnsConfigured: 'No Export Columns Configured',
1231
+ organizationTreeNoResultNotRemove: 'No information selected, no need to remove',
1232
+ exceedFileSize: 'File size limit {filesize} M exceeded',
1233
+ upload: 'Upload',
1234
+ invalideDoubleValue: '{num} is not a legal decimal',
1235
+ noJumpPage: 'Jump page not configured',
1236
+ saveSuccessfully: 'Savee successfully',
1237
+ pleaseInputSearchCondition: 'Please enter the query criteria',
1238
+ fileUpload: 'File Upload',
1239
+ selectYear: 'Select Year',
1240
+ search: 'Search',
1241
+ forbiddenException: 'You do not have permission to access this resource',
1242
+ theButtonIsNotBoundToAResource: 'The button is not bound to a resource, Bind the resource first'
1243
+ },
1244
+ superGrid: {
1245
+ columnConfig: 'Column Config',
1246
+ pleaseSaveOrCancelEditingLine: 'Please Save Or Cancel Editing Line {row} Data First',
1247
+ pleaseSaveLine: 'Please Save Line {row} Data First',
1248
+ noNeedToSaveRow: 'No Need To Save Row {row} Data',
1249
+ pleaseSetURLToSaveRowInformation: 'Please set "URL to save row information"',
1250
+ lineSavedSuccessfully: 'Line {row} Saved Successfully',
1251
+ theReturnValueOfTheBeforesaveCallbackMethodIsFalse: 'The Return Value Of The Beforesave Callback Method Is False',
1252
+ lineNoNeedToUndoEdit: 'Line {row} No Need To Undo Edit',
1253
+ lineCancelledSuccessfully: 'Line {row} cancelled successfully',
1254
+ label: 'Label',
1255
+ isShow: 'Is Show',
1256
+ isExportable: 'Is Exportable',
1257
+ recordLine: 'Record line {row}',
1258
+ pageRecordLine: 'Record in row {row} of page {pageNum}',
1259
+ fileName: 'File Name',
1260
+ deleteSuccessful: 'Deleted successfully',
1261
+ index: 'No.',
1262
+ searchConditionName: 'Search Condition Name',
1263
+ pleaseInputSearchConditionName: 'Please enter the name of the query criteria',
1264
+ saveCondition: 'Save Condition',
1265
+ saveConditionTitle: 'Save Condition',
1266
+ displayOrder: 'Display Order',
1267
+ width: 'Column Width',
1268
+ default: 'Default',
1269
+ custom: 'Custom',
1270
+ show: 'Show',
1271
+ hidden: 'Hidden',
1272
+ export: 'Export',
1273
+ unExport: 'Not Export',
1274
+ whetherToConfirmReset: 'Are you sure you want to reset?',
1275
+ resetSuccessful: 'Reset successfully',
1276
+ dragColumnOrderMessage: 'Supports dragging to change column order',
1277
+ selectAll: 'Select All',
1278
+ viewImage: 'View Image',
1279
+ previewTitleWhenNotImg: 'Non picture format, preview in other ways',
1280
+ refresh: 'Refresh',
1281
+ open: 'Open',
1282
+ fold: 'Fold'
1283
+ },
1284
+ departmentTree: {},
1285
+ departmentTreeInline: {
1286
+ pleaseEnterDepartmentName: 'Please Enter Department Name',
1287
+ name: 'Department Name',
1288
+ code: 'Department Code',
1289
+ removeDepartment: 'Remove Department',
1290
+ selectedDept: 'Selected Departments',
1291
+ namePath: 'Name Path'
1292
+ },
1293
+ // 用户树
1294
+ departmentUserTree: {
1295
+ pleaseEnterUserInformation: 'Please Enter User Information',
1296
+ selectedPeople: 'Selected People',
1297
+ searchFieldUserName: 'Name',
1298
+ searchFieldLoginName: 'Login Name',
1299
+ searchFieldEmail: 'Email',
1300
+ searchFieldTelephone: 'Telephone',
1301
+ searchFieldJobNumber: 'Job Number',
1302
+ searchFieldHonorificName: 'Honorific'
1303
+ },
1304
+ // 嵌入用户树
1305
+ departmentUserTreeInline: {
1306
+ name: 'Name',
1307
+ department: 'Department',
1308
+ branch: 'Branch',
1309
+ removeUser: 'Remove User',
1310
+ email: 'Email',
1311
+ loginName: 'Login Name'
1312
+ },
1313
+ // 工作组树
1314
+ workgroupTree: {
1315
+ allTeamMembers: 'All Team Members',
1316
+ name: 'Workgroup Name',
1317
+ code: 'Workgroup Code',
1318
+ removeWorkgroup: 'Remove Workgroup'
1319
+ },
1320
+ // 流程按钮组件。save、submit等属性名不能随便改,和后台的ButtonType枚举名保持一致
1321
+ workflowButton: {
1322
+ save: 'Save',
1323
+ submit: 'Submit',
1324
+ approve: 'Approve',
1325
+ refuse: 'Refuse',
1326
+ agreement: 'Agree',
1327
+ oppose: 'Opposition',
1328
+ kiken: 'Abstention',
1329
+ get_back_button: 'Retrieve',
1330
+ copy: 'Copy',
1331
+ draw: 'Draw',
1332
+ abandon_draw: 'Give Up Draw',
1333
+ add_sign: 'Additional Signature',
1334
+ remove_sign: 'Reduction Of Signature',
1335
+ signoff: 'Sign For',
1336
+ assign: 'Hand over',
1337
+ assign_task: 'Transfer',
1338
+ readed: 'Readed',
1339
+ export_report: 'Export Report'
1340
+ },
1341
+ // 流转历史文本组件
1342
+ workflowHistoryList: {
1343
+ specailText: 'specail',
1344
+ index: 'Index',
1345
+ taskName: 'Task Name',
1346
+ operation: 'Operation',
1347
+ opinion: 'Opinion',
1348
+ processStart: 'Process Start',
1349
+ processEnd: 'Process End',
1350
+ process_start: '[{1}] process start',
1351
+ prcoess_end: '[{1}] process End',
1352
+ force_end_process: '{1}forced to end the process, and the task of [{2}] was canceled',
1353
+ history_jump: 'Process {3} to [{1}], [{2}] task cancelled',
1354
+ history_back: '{1} returned to task,process returned to [{2}]',
1355
+ history_removesign: '{1} minus [{2}]',
1356
+ history_changetransactor_and_delegate: '{1} changed the handler [{2}] to [{3}], [{4}] delegated the task to [{5}]',
1357
+ history_changetransactor: '{1} changed handler [{2}] to [{3}]',
1358
+ history_addsign: '{1} sign [{2}]',
1359
+ history_addtransactor: '{1} add handler [{2}]',
1360
+ history_removetransactor: '{1} decrease handler [{2}]',
1361
+ history_delegate_and_assign: '{1} assigned tasks to [{2}], [{3}] delegated tasks to [{4}]',
1362
+ history_assign: '{1} assigned task to [{2}]',
1363
+ transfer: '{1} transferred to [{2}]',
1364
+ history_complete_transfer: '{1} execute [{2}] operation and canceled the task of other receivers [{3}]',
1365
+ history_delegate_receive: '{1} retracts the task entrusted to [{2}]',
1366
+ history_delegate: '{1} has delegated task [{2}] to [{3}]',
1367
+ history_quit_transfer: '{1} Resignation, has transferred task [{2}] to [{3}',
1368
+ history_change_job_transfer: '{1} Change job,has transferred task [{2}] to [{3}',
1369
+ commonButtonOperation: '{1} execute [{2}] operation',
1370
+ history_draw_task: '{1}received the task and cancelled the task of the candidate [{2}]',
1371
+ history_abandon_draw: '{1}gives up the task and restores the task of candidate [{2}]',
1372
+ toDoText: 'Todo',
1373
+ operator: 'Operator',
1374
+ operatorDept: 'Operator Dept',
1375
+ operationTime: 'Operation Time'
1376
+ },
1377
+ gateway: {
1378
+ timeout: 'Interface call timeout',
1379
+ callFailed: 'Interface call failed'
1380
+ },
1381
+ // 九宫格列表组件
1382
+ superNineGrid: {
1383
+ add: 'Create'
1384
+ },
1385
+ fsUpload: {
1386
+ upload: 'Upload',
1387
+ download: 'Download',
1388
+ delete: 'Delete',
1389
+ preview: 'Preview',
1390
+ name: 'Name',
1391
+ picture: 'Picture',
1392
+ operating: 'Operating',
1393
+ uploadSucceeded: 'Upload succeeded',
1394
+ theNumberOfUploadsExceedsTheLimitTheLimitIs: 'The number of uploads exceeds the limit. The limit is'
1395
+ },
1396
+ messageVideo: {
1397
+ attemptingToIdentify: 'Attempting to identify',
1398
+ callingRearCamera: 'Calling rear camera',
1399
+ identificationFailed: 'Identification failed'
1400
+ }
1401
+ }, en_default.a);
1402
+ /* harmony default export */ var langs_en = (en_en);
1403
+ // EXTERNAL MODULE: ./node_modules/@gcommon/gcommon-ui/lib/locale/lang/zh-CN.js
1404
+ var zh_CN = __webpack_require__("11a6");
1405
+ var zh_CN_default = /*#__PURE__*/__webpack_require__.n(zh_CN);
1406
+
1407
+ // CONCATENATED MODULE: ./node_modules/imatrix-ui/src/i18n/langs/cn.js
1408
+
1409
+
1410
+
1411
+
1412
+
1413
+ function cn_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1414
+ function cn_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? cn_ownKeys(Object(source), !0).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : cn_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1415
+
1416
+ var cn = cn_objectSpread({
1417
+ imatrixUIPublicModel: {
1418
+ sure: '确定',
1419
+ cancel: '取消',
1420
+ allDepartments: '所有部门',
1421
+ allUsers: '所有用户',
1422
+ reset: '重置',
1423
+ to: '至',
1424
+ edit: '操作',
1425
+ clear: '清空',
1426
+ download: '下载',
1427
+ delete: '删除',
1428
+ preview: '预览',
1429
+ add: '增加',
1430
+ graphView: '图形视图',
1431
+ listView: '列表视图',
1432
+ fieldName: '字段名(*)',
1433
+ operator: '操作符',
1434
+ value: '值(*)',
1435
+ andOr: '并且/或者',
1436
+ whenTheVariableIsEmpty: '变量为空时',
1437
+ perhaps: '或者',
1438
+ also: '并且',
1439
+ greaterThan: '大于',
1440
+ lessThan: '小于',
1441
+ beEqualTo: '等于',
1442
+ notGreaterThan: '不大于',
1443
+ notLessThan: '不小于',
1444
+ notEqualTo: '不等于',
1445
+ contain: '包含',
1446
+ notIncluded: '不包含',
1447
+ laterThan: '晚于',
1448
+ earlierThan: '早于',
1449
+ noLaterThan: '不晚于',
1450
+ noEarlierThan: '不早于',
1451
+ ignore11: '忽略(1=1)',
1452
+ nonConformity: '不符合(1<>1)',
1453
+ switchToNormalQuery: '切换为普通查询',
1454
+ switchToAdvancedQuery: '切换为高级查询',
1455
+ isNull: '等于Null',
1456
+ isNotNull: '不等于Null',
1457
+ previewImage: '预览图片',
1458
+ fullScreen: '全屏'
1459
+ },
1460
+ imatrixUIMessage: {
1461
+ whetherToConfirmDeletion: '是否确认删除',
1462
+ tips: '提示',
1463
+ pleaseEnterContent: '请输入内容',
1464
+ internalServerError: '请求失败',
1465
+ pleaseSelectDepartment: '请选择部门',
1466
+ pleaseSelectPersonnel: '请选择人员',
1467
+ pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel: '请先移除所有人员,再选择具体人员',
1468
+ queryResultIsEmpty: '查询结果为空',
1469
+ pleaseSelectATeam: '请选择工作组',
1470
+ pleaseEnterTeamName: '请输入工作组名称',
1471
+ validationFailed: '验证失败',
1472
+ selectionDate: '选择日期',
1473
+ selectTime: '选择时间',
1474
+ pleaseEnterATimePoint: '请输入时间点',
1475
+ pleaseSelect: '请选择',
1476
+ startDate: '开始日期',
1477
+ endDate: '结束日期',
1478
+ noExportColumnsConfigured: '没有配置导出列',
1479
+ organizationTreeNoResultNotRemove: '未选择任何信息,无需移除',
1480
+ exceedFileSize: '超过文件大小限制{fileSize}M',
1481
+ upload: '上传',
1482
+ invalideDoubleValue: '{num} 不是合法的小数',
1483
+ noJumpPage: '未配置跳转页面',
1484
+ saveSuccessfully: '保存成功',
1485
+ pleaseInputSearchCondition: '请输入查询条件',
1486
+ fileUpload: '文件上传',
1487
+ selectYear: '选择年',
1488
+ search: '查询',
1489
+ forbiddenException: '您没有权限访问该资源',
1490
+ theButtonIsNotBoundToAResource: '该按钮未绑定资源,请先绑定资源'
1491
+ },
1492
+ // 列表组件
1493
+ superGrid: {
1494
+ columnConfig: '字段配置',
1495
+ pleaseSaveOrCancelEditingLine: '请先保存或撤销编辑第 {row} 行数据',
1496
+ pleaseSaveLine: '请先保存第 {row} 行数据',
1497
+ noNeedToSaveRow: '无需保存第 {row} 行数据',
1498
+ pleaseSetURLToSaveRowInformation: '请设置“保存行信息的url”',
1499
+ lineSavedSuccessfully: '第 {row} 行保存成功',
1500
+ theReturnValueOfTheBeforesaveCallbackMethodIsFalse: 'beforeSave回调方法返回值为false',
1501
+ lineNoNeedToUndoEdit: '第 {row} 行无需撤销编辑',
1502
+ lineCancelledSuccessfully: '第 {row} 行撤销成功',
1503
+ label: '字段名',
1504
+ isShow: '是否显示',
1505
+ isExportable: '是否导出',
1506
+ recordLine: '第 {row} 行记录',
1507
+ pageRecordLine: '第 {pageNum} 页第 {row} 行记录',
1508
+ fileName: '文件名称',
1509
+ deleteSuccessful: '删除成功',
1510
+ index: '序号',
1511
+ searchConditionName: '查询条件名称',
1512
+ pleaseInputSearchConditionName: '请输入查询条件名称',
1513
+ saveCondition: '保存条件',
1514
+ saveConditionTitle: '保存查询条件',
1515
+ displayOrder: '显示顺序',
1516
+ width: '列宽',
1517
+ default: '默认',
1518
+ custom: '自定义',
1519
+ show: '显示',
1520
+ hidden: '隐藏',
1521
+ export: '导出',
1522
+ unExport: '不导出',
1523
+ whetherToConfirmReset: '是否确认重置?',
1524
+ resetSuccessful: '重置成功',
1525
+ dragColumnOrderMessage: '支持拖动改变列顺序',
1526
+ selectAll: '全选',
1527
+ viewImage: '查看图片',
1528
+ previewTitleWhenNotImg: '非图片格式,使用其它方式预览',
1529
+ refresh: '刷新',
1530
+ open: '展开',
1531
+ fold: '收起'
1532
+ },
1533
+ // 部门树组件
1534
+ departmentTree: {},
1535
+ // 嵌入部门树组件
1536
+ departmentTreeInline: {
1537
+ pleaseEnterDepartmentName: '请输入部门名称',
1538
+ name: '部门名称',
1539
+ code: '部门编码',
1540
+ removeDepartment: '移除部门',
1541
+ selectedDept: '已选部门',
1542
+ namePath: '名称路径'
1543
+ },
1544
+ // 用户树
1545
+ departmentUserTree: {
1546
+ pleaseEnterUserInformation: '请输入用户信息',
1547
+ selectedPeople: '已选人员',
1548
+ searchFieldUserName: '姓名',
1549
+ searchFieldLoginName: '登录名',
1550
+ searchFieldEmail: '邮箱',
1551
+ searchFieldTelephone: '手机号',
1552
+ searchFieldJobNumber: '工号',
1553
+ searchFieldHonorificName: '尊称'
1554
+ },
1555
+ // 嵌入用户树
1556
+ departmentUserTreeInline: {
1557
+ name: '姓名',
1558
+ department: '所属部门',
1559
+ branch: '所属分支',
1560
+ removeUser: '移除用户',
1561
+ email: '邮箱',
1562
+ loginName: '登录名'
1563
+ },
1564
+ // 工作组树
1565
+ workgroupTree: {
1566
+ allTeamMembers: '所有工作组人员',
1567
+ name: '工作组名称',
1568
+ code: '工作组编码',
1569
+ removeWorkgroup: '移除工作组'
1570
+ },
1571
+ // 流程按钮组件。save、submit等属性名不能随便改,和后台的ButtonType枚举名保持一致
1572
+ workflowButton: {
1573
+ save: '暂存',
1574
+ submit: '提交',
1575
+ approve: '同意',
1576
+ refuse: '不同意',
1577
+ agreement: '赞成',
1578
+ oppose: '反对',
1579
+ kiken: '弃权',
1580
+ get_back_button: '取回',
1581
+ copy: '抄送',
1582
+ draw: '领取',
1583
+ abandon_draw: '放弃领取',
1584
+ add_sign: '加签',
1585
+ remove_sign: '减签',
1586
+ signoff: '签收',
1587
+ assign: '交办',
1588
+ assign_task: '转办',
1589
+ readed: '已阅',
1590
+ export_report: '导出报告'
1591
+ },
1592
+ // 流转历史文本组件
1593
+ workflowHistoryList: {
1594
+ specailText: '特',
1595
+ index: '序号',
1596
+ taskName: '环节名称',
1597
+ operation: '流转操作',
1598
+ opinion: '办理意见',
1599
+ processStart: '流程开始',
1600
+ processEnd: '流程结束',
1601
+ process_start: '[{1}]流程开始',
1602
+ prcoess_end: '[{1}]流程结束',
1603
+ force_end_process: '{1}强制结束了该流程,[{2}]的任务被取消',
1604
+ history_jump: '流程{3}到[{1}],[{2}]的任务被取消',
1605
+ history_back: '{1}退回任务,流程退回到[{2}]',
1606
+ history_removesign: '{1}给[{2}]减签',
1607
+ history_changetransactor_and_delegate: '{1}把办理人[{2}]更改成[{3})],{4}把任务委托给了[{5}]',
1608
+ history_changetransactor: '{1}把办理人[{2}]更改成[{3}]',
1609
+ history_addsign: '{1}给[{2}]加签',
1610
+ history_addtransactor: '{1}增加办理人[{2}]',
1611
+ history_removetransactor: '{1}减少办理人[{2}]',
1612
+ history_delegate_and_assign: '{1}把任务指派给了[{2}],[{3}]把任务委托给了[{4}]',
1613
+ history_assign: '{1}把任务指派给了[{2}]',
1614
+ transfer: '{1}移交给[{2}]',
1615
+ history_complete_transfer: '{1}执行了[{2}]操作,取消了其它接收人[{3}]的任务',
1616
+ history_delegate_receive: '{1}收回委托给[{2}]的任务',
1617
+ history_delegate: '{1}已把任务[{2}]委托给[{3}]',
1618
+ history_quit_transfer: '{1}离职,已把任务[{2}]移交给了[{3}]',
1619
+ history_change_job_transfer: '{1}换岗,已把任务[{2}]移交给了[{3}]',
1620
+ commonButtonOperation: '{1}执行了[{2}]操作',
1621
+ history_draw_task: '{1}领取了任务,取消了候选人[{2}]的任务',
1622
+ history_abandon_draw: '{1}放弃领取该任务,还原了候选人[{2}]的任务',
1623
+ toDoText: '待处理',
1624
+ operator: '操作人',
1625
+ operatorDept: '操作人部门',
1626
+ operationTime: '操作时间'
1627
+ },
1628
+ gateway: {
1629
+ timeout: '接口调用超时',
1630
+ callFailed: '接口调用失败'
1631
+ },
1632
+ // 九宫格列表组件
1633
+ superNineGrid: {
1634
+ add: '新建'
1635
+ },
1636
+ fsUpload: {
1637
+ upload: '上传',
1638
+ download: '下载',
1639
+ delete: '删除',
1640
+ preview: '预览',
1641
+ name: '名称',
1642
+ picture: '图片',
1643
+ operating: '操作',
1644
+ uploadSucceeded: '上传成功',
1645
+ theNumberOfUploadsExceedsTheLimitTheLimitIs: '上传数量超过限制,限制数量为'
1646
+ },
1647
+ messageVideo: {
1648
+ attemptingToIdentify: '正在尝试识别....',
1649
+ callingRearCamera: '正在调用后置摄像头...',
1650
+ identificationFailed: '识别失败'
1651
+ }
1652
+ }, zh_CN_default.a);
1653
+ /* harmony default export */ var langs_cn = (cn);
1654
+ // CONCATENATED MODULE: ./node_modules/imatrix-ui/src/i18n/i18n.js
1655
+
1656
+
1657
+
1658
+
1659
+
1660
+ external_Vue_default.a.use(vue_i18n_esm["a" /* default */]);
1661
+ var messages = {
1662
+ en: langs_en,
1663
+ cn: langs_cn
1664
+ };
1665
+ var i18n = new vue_i18n_esm["a" /* default */]({
1666
+ locale: 'cn',
1667
+ // 设置默认语言
1668
+ messages: messages
1669
+ });
1670
+ locale_default.a.i18n(function (key, value) {
1671
+ return i18n.t(key, value);
1672
+ }); // 为了实现element插件的多语言切换
1673
+
1674
+ /* harmony default export */ var i18n_i18n = __webpack_exports__["a"] = (i18n);
1675
+
1676
+ /***/ }),
1677
+
1678
+ /***/ "74d4":
1679
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1680
+
1681
+ "use strict";
1682
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return i18nOperation; });
1683
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("29b3");
1684
+
1685
+ /**
1686
+ * 国际化显示流转历史
1687
+ * @param {*} history
1688
+ * @param {*} processNameI18n 流程名称国际化后的值
1689
+ */
1690
+ function i18nOperation(history, processNameI18n, processI18n, language) {
1691
+ var operation = history.transactionResult;
1692
+ var historyType = history.historyType;
1693
+ if (!history.current && historyType) {
1694
+ // 不是当前待办任务才需要国际化显示“流转操作”信息
1695
+ if (history.transactionParams) {
1696
+ var params = JSON.parse(history.transactionParams);
1697
+ var i18nKey = historyType.toLowerCase();
1698
+ var isButtonOperation = isCommonButtonOperation(historyType);
1699
+ if (isButtonOperation) {
1700
+ i18nKey = 'commonButtonOperation';
1701
+ } else if (i18nKey === 'process_end') {
1702
+ i18nKey = 'processEnd';
1703
+ }
1704
+ if (isButtonOperation || historyType === 'HISTORY_COMPLETE_TRANSFER') {
1705
+ // 是普通任务办理按钮 或 完成移交任务时,才会传“操作”(例如:submit、save、approve等等)
1706
+ // 需要把这些操作进行国际化显示。
1707
+ // 在params中2对应的是操作
1708
+ var buttonOperation = params['2'];
1709
+ // 国际化buttonOperation
1710
+ params['2'] = Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* getI18n */ "b"])().t('workflowButton.' + buttonOperation);
1711
+ }
1712
+ if (i18nKey === 'process_start' && processNameI18n && processNameI18n !== null) {
1713
+ // 表示发起流程时,流程名称要国际化显示
1714
+ params[1] = processNameI18n;
1715
+ operation = Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* getI18n */ "b"])().t('workflowHistoryList.' + i18nKey, params);
1716
+ } else {
1717
+ var newParams = params;
1718
+ if (processI18n && language) {
1719
+ for (var key in params) {
1720
+ newParams[key] = params[key];
1721
+ // param格式为:${taskNodeId:name.newHumanTask1##环节1}
1722
+ var param = params[key];
1723
+ if (param.indexOf('${taskNodeId:') >= 0) {
1724
+ // 获得name.newHumanTask1
1725
+ var taskI18nKey = param.substring(param.indexOf(':') + 1, param.indexOf('##'));
1726
+ // 获得 环节1
1727
+ var taskName = param.substring(param.indexOf('##') + 2, param.lastIndexOf('}'));
1728
+ // 获得{zh_CN:xx, en_US:xx}
1729
+ var taskNameI18n = processI18n[taskI18nKey];
1730
+ if (taskNameI18n && taskNameI18n[language] && taskNameI18n[language] !== '') {
1731
+ newParams[key] = taskNameI18n[language];
1732
+ } else {
1733
+ newParams[key] = taskName;
1734
+ }
1735
+ }
1736
+ }
1737
+ }
1738
+ operation = Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* getI18n */ "b"])().t('workflowHistoryList.' + i18nKey, newParams);
1739
+ }
1740
+ } else {
1741
+ operation = Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* getI18n */ "b"])().t('workflowHistoryList.' + historyType.toLowerCase());
1742
+ }
1743
+ }
1744
+ return operation;
1745
+ }
1746
+ // 是否是正常按钮提交,例如:保存、提交、同意、不同意等
1747
+ function isCommonButtonOperation(historyType) {
1748
+ return historyType === 'HISTORY_SUBMIT' || historyType === 'HISTORY_AGREE' || historyType === 'HISTORY_DISAGREE' || historyType === 'HISTORY_AGREEMENT' || historyType === 'HISTORY_OPPOSE' || historyType === 'HISTORY_KIKEN' || historyType === 'HISTORY_SIGNOFF' || historyType === 'HISTORY_SEND' || historyType === 'HISTORY_DISTRIBUTE' || historyType === 'HISTORY_READED';
1749
+ }
1750
+
1751
+ /***/ }),
1752
+
1753
+ /***/ "8345":
1754
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1755
+
1756
+ "use strict";
1757
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return executeExpression; });
1758
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return parseSubTablePermissionCondition; });
1759
+ /* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("28a5");
1760
+ /* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_0__);
1761
+ /* harmony import */ var core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("6b54");
1762
+ /* harmony import */ var core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_1__);
1763
+ /* harmony import */ var core_js_modules_es6_string_ends_with__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("aef6");
1764
+ /* harmony import */ var core_js_modules_es6_string_ends_with__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_ends_with__WEBPACK_IMPORTED_MODULE_2__);
1765
+ /* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a481");
1766
+ /* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_3__);
1767
+ /* harmony import */ var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("7f7f");
1768
+ /* harmony import */ var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_4__);
1769
+ /* harmony import */ var _calculator_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("be23");
1770
+ /* harmony import */ var _calculator_factory_wf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("1d68");
1771
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("29b3");
1772
+
1773
+
1774
+
1775
+
1776
+
1777
+
1778
+
1779
+
1780
+ function executeExpression(leftValue, operator, rightValue, dataType) {
1781
+ var Calculator = Object(_calculator_factory__WEBPACK_IMPORTED_MODULE_5__[/* getAbstractUserFactory */ "a"])(dataType);
1782
+ var calculatorObj = new Calculator(leftValue, operator, rightValue);
1783
+ return calculatorObj.result;
1784
+ }
1785
+
1786
+ /**
1787
+ * 保存时,验证子表字段必填时,解析子表字段权限中的“子表条件”
1788
+ * @param express
1789
+ * @param upc
1790
+ * @return
1791
+ */
1792
+ function parseSubTablePermissionCondition(express, dataTypeMap, parentEntity, subEntity, additionalParamMap, task, contextParameterMap) {
1793
+ var expressTrueVal = 'true';
1794
+ // ${user} operator.text.eq '吴荣[wurong]' condition.operator.and ${department} operator.text.eq 'EIT业务部' condition.operator.and ${role} operator.text.eq '普通员工'
1795
+ if (!express) {
1796
+ // 表示没有配置条件,则字段必填
1797
+ return true;
1798
+ }
1799
+ if (expressTrueVal.toLowerCase() === express.trim()) {
1800
+ return true;
1801
+ }
1802
+ var SQUARE_BRACKETS_LEFT = '[';
1803
+ var SQUARE_BRACKETS_RIGHT = ']';
1804
+ var AND = '&&';
1805
+ var OR = '||';
1806
+ var temp = express;
1807
+ var strs = splitExpression(express);
1808
+ console.log('分割后的原子表达式为:', strs);
1809
+ var result = false;
1810
+ for (var i = 0; i < strs.length; i++) {
1811
+ console.log('开始分析原子表达式:', strs[i]);
1812
+ var atomicExpress = strs[i];
1813
+ if (atomicExpress && atomicExpress.trim()) {
1814
+ var name = atomicExpress.substring(atomicExpress.indexOf(SQUARE_BRACKETS_LEFT) + SQUARE_BRACKETS_LEFT.length, atomicExpress.indexOf(SQUARE_BRACKETS_RIGHT));
1815
+ var dataType = 'TEXT';
1816
+ if (dataTypeMap != null && dataTypeMap[name] != null) {
1817
+ dataType = dataTypeMap[name];
1818
+ }
1819
+ result = parseFieldCondition(atomicExpress, dataType, parentEntity, subEntity, additionalParamMap, task, contextParameterMap);
1820
+ console.log('原子表达式:', atomicExpress, '的分析结果为 ', result);
1821
+ temp = temp.replace(atomicExpress.trim(), result + '');
1822
+ console.log('将原子表达式替换为它的结果后:', temp);
1823
+ }
1824
+ }
1825
+ temp = temp.replace(/condition.operator.and/g, AND);
1826
+ temp = temp.replace(/condition.operator.or/g, OR);
1827
+ if (temp.trim().endsWith(OR)) {
1828
+ temp = temp.substring(0, temp.lastIndexOf(OR));
1829
+ }
1830
+ if (temp.trim().endsWith(AND)) {
1831
+ temp = temp.substring(0, temp.lastIndexOf(AND));
1832
+ }
1833
+ console.log('最终该流向的表达式为:', temp);
1834
+ // eslint-disable-next-line no-eval
1835
+ return eval('(' + temp + ')');
1836
+ }
1837
+
1838
+ /**
1839
+ * 解析字段条件
1840
+ * @param {*} atomicExpress
1841
+ * @param {*} workflowCalculatorInfo
1842
+ * @param {*} dataType
1843
+ * @param {*} task
1844
+ * @param {*} contextParameterMap
1845
+ * @param {*} parentEntity 主表实体信息
1846
+ * @param {*} entityData 子表实体信息
1847
+ * @returns
1848
+ */
1849
+ function parseFieldCondition(atomicExpress, dataType, parentEntity, subEntity, additionalParamMap, task, contextParameterMap) {
1850
+ if (!atomicExpress) {
1851
+ return false;
1852
+ }
1853
+ var SQUARE_BRACKETS_LEFT = '[';
1854
+ var SQUARE_BRACKETS_RIGHT = ']';
1855
+ // 去掉前后空格
1856
+ atomicExpress = atomicExpress.trim();
1857
+ var name = atomicExpress.substring(atomicExpress.indexOf(SQUARE_BRACKETS_LEFT) + SQUARE_BRACKETS_LEFT.length, atomicExpress.indexOf(SQUARE_BRACKETS_RIGHT));
1858
+ // 获得 ${field[fieldName]}
1859
+ var fieldInfo = atomicExpress.substring(0, atomicExpress.indexOf(' '));
1860
+ var suffixInfo = atomicExpress.substring(atomicExpress.indexOf(' ') + 1);
1861
+ var valueInfo = suffixInfo.substring(suffixInfo.indexOf(' ') + 1).trim();
1862
+ // 解析动态参数、上下文参数、手动输入、obj.(此处表示的是主表记录)
1863
+ var leftValue = Object(_util__WEBPACK_IMPORTED_MODULE_7__[/* getPropValue */ "d"])(valueInfo, parentEntity, additionalParamMap, contextParameterMap, null, subEntity, task);
1864
+ if (leftValue != null) {
1865
+ atomicExpress = atomicExpress.replace(valueInfo, leftValue.toString());
1866
+ }
1867
+ var value = getValue(subEntity, name);
1868
+ if (value === undefined || value === null || value === '') {
1869
+ if (dataType === 'DATE' || dataType === 'TIME') {
1870
+ return false;
1871
+ }
1872
+ }
1873
+ console.log('对应值为:', value);
1874
+ var CalculatorWf = Object(_calculator_factory_wf__WEBPACK_IMPORTED_MODULE_6__[/* getAbstractUserFactoryWf */ "a"])(dataType);
1875
+ var subExpression = atomicExpress.replace(fieldInfo, value);
1876
+ var calculatorObj = new CalculatorWf(subExpression);
1877
+ var result = calculatorObj.result;
1878
+ console.log('判断结果为:', result);
1879
+ return result;
1880
+ }
1881
+ function splitExpression(express) {
1882
+ // const workflowAnd = /condition.operator.and/g
1883
+ // const workflowOr = /condition.operator.or/g
1884
+ var ASTERISK_REGEX = '\\*';
1885
+ // const PARENTHESES_LEFT = /\(/g
1886
+ // const PARENTHESES_RIGHT = /\)/g
1887
+ var EMPTY_STRING = '';
1888
+ express = express.replace(/condition.operator.and/g, ASTERISK_REGEX);
1889
+ express = express.replace(/condition.operator.or/g, ASTERISK_REGEX);
1890
+ express = express.replace(/\(/g, EMPTY_STRING);
1891
+ express = express.replace(/\)/g, EMPTY_STRING);
1892
+ return express.split(ASTERISK_REGEX);
1893
+ }
1894
+ function getValue(entity, feildName) {
1895
+ var value = Object(_util__WEBPACK_IMPORTED_MODULE_7__[/* getEntityFieldValue */ "a"])(entity, feildName);
1896
+ if (value === undefined || value == null) {
1897
+ return '';
1898
+ }
1899
+ return value + '';
1900
+ }
1901
+
1902
+ /***/ }),
1903
+
1904
+ /***/ "be23":
1905
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1906
+
1907
+ "use strict";
1908
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getAbstractUserFactory; });
1909
+ /* harmony import */ var core_js_modules_es6_reflect_construct__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2397");
1910
+ /* harmony import */ var core_js_modules_es6_reflect_construct__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_reflect_construct__WEBPACK_IMPORTED_MODULE_0__);
1911
+ /* harmony import */ var core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("6762");
1912
+ /* harmony import */ var core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_1__);
1913
+ /* harmony import */ var core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("2fdb");
1914
+ /* harmony import */ var core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_2__);
1915
+ /* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("c5f6");
1916
+ /* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_3__);
1917
+ /* harmony import */ var D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("262e");
1918
+ /* harmony import */ var D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("99de");
1919
+ /* harmony import */ var D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("7e84");
1920
+ /* harmony import */ var D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("d4ec");
1921
+ /* harmony import */ var D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("bee2");
1922
+
1923
+
1924
+
1925
+
1926
+
1927
+
1928
+
1929
+
1930
+
1931
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(this, result); }; }
1932
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
1933
+ var CalculatorFactory = /*#__PURE__*/function () {
1934
+ function CalculatorFactory() {
1935
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(this, CalculatorFactory);
1936
+ if ((this instanceof CalculatorFactory ? this.constructor : void 0) === CalculatorFactory) {
1937
+ throw new Error('抽象类不能实例化!');
1938
+ }
1939
+ }
1940
+ /**
1941
+ * 空IS NULL操作符时相的处理
1942
+ * @param leftVale
1943
+ * @param operator
1944
+ * @return
1945
+ */
1946
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(CalculatorFactory, [{
1947
+ key: "isNullValue",
1948
+ value: function isNullValue(leftValue, operator) {
1949
+ return (leftValue === undefined || leftValue === null || leftValue + '' === '') && operator === 'IS_NULL';
1950
+ }
1951
+ /**
1952
+ * 空IS NOT NULL操作符时的处理
1953
+ * @param leftVale
1954
+ * @param operator
1955
+ * @return true 表示给定的值不为空
1956
+ */
1957
+ }, {
1958
+ key: "isNotNullValue",
1959
+ value: function isNotNullValue(leftValue, operator) {
1960
+ return leftValue !== undefined && leftValue !== null && leftValue + '' !== '' && operator === 'IS_NOT_NULL';
1961
+ }
1962
+ /**
1963
+ * 空值时相等的处理
1964
+ * @param leftVale
1965
+ * @param operator
1966
+ * @param rightValue
1967
+ * @return
1968
+ */
1969
+ }, {
1970
+ key: "isEQEmptyValue",
1971
+ value: function isEQEmptyValue(leftVale, operator, rightValue) {
1972
+ return (leftVale === undefined || leftVale === null || leftVale + '' === '') && (rightValue === undefined || rightValue === null || rightValue + '' === '') && (operator === 'EQ' || operator === 'CONTAIN');
1973
+ }
1974
+ }]);
1975
+ return CalculatorFactory;
1976
+ }();
1977
+ var NumberCalculator = /*#__PURE__*/function (_CalculatorFactory) {
1978
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(NumberCalculator, _CalculatorFactory);
1979
+ var _super = _createSuper(NumberCalculator);
1980
+ function NumberCalculator(leftVale, operator, rightValue) {
1981
+ var _this;
1982
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(this, NumberCalculator);
1983
+ _this = _super.call(this);
1984
+ if (_this.isNotNullValue(leftVale, operator)) {
1985
+ _this.result = true;
1986
+ } else if (_this.isNullValue(leftVale, operator)) {
1987
+ _this.result = true;
1988
+ } else if (_this.isEQEmptyValue(leftVale, operator, rightValue)) {
1989
+ _this.result = true;
1990
+ } else if (leftVale === undefined || leftVale === null) {
1991
+ _this.result = false;
1992
+ } else {
1993
+ var preOperand = Number(leftVale + '');
1994
+ var value = Number(rightValue + '');
1995
+ if (operator === 'GET') {
1996
+ _this.result = preOperand >= value;
1997
+ } else if (operator === 'LET') {
1998
+ _this.result = preOperand <= value;
1999
+ } else if (operator === 'GT') {
2000
+ _this.result = preOperand > value;
2001
+ } else if (operator === 'LT') {
2002
+ _this.result = preOperand < value;
2003
+ } else if (operator === 'NET') {
2004
+ _this.result = preOperand !== value;
2005
+ } else if (operator === 'EQ') {
2006
+ _this.result = preOperand === value;
2007
+ } else if (operator === 'IS_NULL') {
2008
+ _this.result = leftVale === undefined || leftVale === null;
2009
+ } else if (operator === 'IS_NOT_NULL') {
2010
+ _this.result = leftVale !== undefined && leftVale !== null;
2011
+ } else {
2012
+ throw new Error('表达式不合法:' + leftVale + ' ' + operator + ' ' + rightValue);
2013
+ }
2014
+ }
2015
+ return _this;
2016
+ }
2017
+ return Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(NumberCalculator);
2018
+ }(CalculatorFactory);
2019
+ var TextCalculator = /*#__PURE__*/function (_CalculatorFactory2) {
2020
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(TextCalculator, _CalculatorFactory2);
2021
+ var _super2 = _createSuper(TextCalculator);
2022
+ function TextCalculator(leftVale, operator, rightValue) {
2023
+ var _this2;
2024
+ Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(this, TextCalculator);
2025
+ _this2 = _super2.call(this);
2026
+ if (_this2.isNullValue(leftVale, operator)) {
2027
+ _this2.result = true;
2028
+ } else if (_this2.isEQEmptyValue(leftVale, operator, rightValue)) {
2029
+ _this2.result = true;
2030
+ } else if (_this2.isNotNullValue(leftVale, operator)) {
2031
+ _this2.result = true;
2032
+ } else if (leftVale === undefined || leftVale === null) {
2033
+ _this2.result = false;
2034
+ } else {
2035
+ if (operator === 'NET') {
2036
+ _this2.result = leftVale !== rightValue;
2037
+ } else if (operator === 'EQ') {
2038
+ _this2.result = leftVale === rightValue;
2039
+ } else if (operator === 'NOT_CONTAIN') {
2040
+ _this2.result = !leftVale.includes(rightValue);
2041
+ } else if (operator === 'CONTAIN') {
2042
+ _this2.result = leftVale.includes(rightValue);
2043
+ } else if (operator === 'IS_NULL') {
2044
+ _this2.result = leftVale === undefined || leftVale === null || leftVale === '';
2045
+ } else if (operator === 'IS_NOT_NULL') {
2046
+ _this2.result = leftVale !== undefined && leftVale !== null && leftVale !== '';
2047
+ } else {
2048
+ throw new Error('表达式不合法:' + leftVale + ' ' + operator + ' ' + rightValue);
2049
+ }
2050
+ }
2051
+ return _this2;
2052
+ }
2053
+ return Object(D_MyToolbox_ws_idea_plateform_dev_opt_workflow_editor_dev_opt_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(TextCalculator);
2054
+ }(CalculatorFactory);
2055
+ function getAbstractUserFactory(dataType) {
2056
+ switch (dataType) {
2057
+ case 'TEXT':
2058
+ return TextCalculator;
2059
+ case 'DOUBLE':
2060
+ return NumberCalculator;
2061
+ case 'FLOAT':
2062
+ return NumberCalculator;
2063
+ case 'INTEGER':
2064
+ return NumberCalculator;
2065
+ case 'LONG':
2066
+ return NumberCalculator;
2067
+ case 'DATE':
2068
+ return NumberCalculator;
2069
+ case 'TIME':
2070
+ return NumberCalculator;
2071
+ default:
2072
+ return TextCalculator;
2073
+ }
2074
+ }
2075
+
2076
+ /***/ }),
2077
+
2078
+ /***/ "eb17":
2079
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2080
+
2081
+ "use strict";
2082
+
2083
+ // EXTERNAL MODULE: ./node_modules/js-cookie/src/js.cookie.js
2084
+ var js_cookie = __webpack_require__("a78e");
2085
+ var js_cookie_default = /*#__PURE__*/__webpack_require__.n(js_cookie);
2086
+
2087
+ // EXTERNAL MODULE: external "Vue"
2088
+ var external_Vue_ = __webpack_require__("8bbf");
2089
+ var external_Vue_default = /*#__PURE__*/__webpack_require__.n(external_Vue_);
2090
+
2091
+ // CONCATENATED MODULE: ./node_modules/imatrix-ui/src/utils/auth-api.js
2092
+
2093
+
2094
+ var jwtKey = 'JWT';
2095
+ var currentUserNameKey = 'USERNAME';
2096
+ var currentUserInfoKey = 'CURRENT_USER';
2097
+ function getToken() {
2098
+ var token = getCookieCache(jwtKey);
2099
+ var projectModel = external_Vue_default.a.prototype.projectModel;
2100
+ if (!token && projectModel && projectModel === 'developing.model') {
2101
+ // 如果是开发环境从sessionStorage中获得token
2102
+ token = getSessionCache(jwtKey);
2103
+ }
2104
+ return token;
2105
+ }
2106
+ function setToken(token) {
2107
+ setCookieCache(jwtKey, token);
2108
+ setSessionCache(jwtKey, token);
2109
+ }
2110
+ function removeToken() {
2111
+ removeCookieCache(jwtKey);
2112
+ removeSessionCache(jwtKey);
2113
+ }
2114
+ function getUsername() {
2115
+ var username = getCookieCache(currentUserNameKey);
2116
+ if (!username) {
2117
+ username = getSessionCache(currentUserNameKey);
2118
+ }
2119
+ return username;
2120
+ }
2121
+ function setUsername(username) {
2122
+ setSessionCache(currentUserNameKey, username);
2123
+ setCookieCache(currentUserNameKey, username);
2124
+ }
2125
+ function removeUsername() {
2126
+ removeSessionCache(currentUserNameKey);
2127
+ removeCookieCache(currentUserNameKey);
2128
+ }
2129
+ function getCurrentUser() {
2130
+ var userJson = getCookieCache(currentUserInfoKey);
2131
+ if (!userJson) {
2132
+ userJson = getSessionCache(currentUserInfoKey);
2133
+ }
2134
+ if (userJson) {
2135
+ return JSON.parse(userJson);
2136
+ }
2137
+ }
2138
+ function setCurrentUser(userInfo) {
2139
+ if (userInfo) {
2140
+ if (userInfo.password) {
2141
+ userInfo.password = null;
2142
+ }
2143
+ var userinfoStr = JSON.stringify(userInfo);
2144
+ setSessionCache(currentUserInfoKey, userinfoStr);
2145
+ setCookieCache(currentUserInfoKey, userinfoStr);
2146
+ }
2147
+ }
2148
+ function removeCurrentUser() {
2149
+ removeSessionCache(currentUserInfoKey);
2150
+ removeCookieCache(currentUserInfoKey);
2151
+ }
2152
+ function getCookieCache(key) {
2153
+ return js_cookie_default.a.get(key);
2154
+ }
2155
+ function setCookieCache(key, value) {
2156
+ js_cookie_default.a.set(key, value, {
2157
+ path: '/'
2158
+ });
2159
+ }
2160
+ function removeCookieCache(key) {
2161
+ js_cookie_default.a.remove(key, {
2162
+ path: '/'
2163
+ });
2164
+ }
2165
+ function getSessionCache(key) {
2166
+ return sessionStorage.getItem(key);
2167
+ }
2168
+ function setSessionCache(key, value) {
2169
+ return sessionStorage.setItem(key, value);
2170
+ }
2171
+ function removeSessionCache(key) {
2172
+ sessionStorage.removeItem(key);
2173
+ }
2174
+ /* harmony default export */ var auth_api = ({
2175
+ getToken: getToken,
2176
+ setToken: setToken,
2177
+ removeToken: removeToken,
2178
+ getUsername: getUsername,
2179
+ setUsername: setUsername,
2180
+ removeUsername: removeUsername,
2181
+ getCurrentUser: getCurrentUser,
2182
+ setCurrentUser: setCurrentUser,
2183
+ removeCurrentUser: removeCurrentUser,
2184
+ getCookieCache: getCookieCache,
2185
+ setCookieCache: setCookieCache,
2186
+ removeCookieCache: removeCookieCache,
2187
+ getSessionCache: getSessionCache,
2188
+ setSessionCache: setSessionCache,
2189
+ removeSessionCache: removeSessionCache
2190
+ });
2191
+ // CONCATENATED MODULE: ./node_modules/imatrix-ui/src/utils/auth.js
2192
+ /* unused harmony export getToken */
2193
+ /* unused harmony export setToken */
2194
+ /* unused harmony export removeToken */
2195
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return auth_getUsername; });
2196
+ /* unused harmony export setUsername */
2197
+ /* unused harmony export removeUsername */
2198
+ /* unused harmony export getCurrentUser */
2199
+ /* unused harmony export setCurrentUser */
2200
+ /* unused harmony export removeCurrentUser */
2201
+ /* unused harmony export getCookieCache */
2202
+ /* unused harmony export setCookieCache */
2203
+ /* unused harmony export removeCookieCache */
2204
+ /* unused harmony export getSessionCache */
2205
+ /* unused harmony export setSessionCache */
2206
+ /* unused harmony export removeSessionCache */
2207
+
2208
+ function auth_getToken() {
2209
+ return auth_api.getToken();
2210
+ }
2211
+ function auth_setToken(token) {
2212
+ auth_api.setToken(token);
2213
+ }
2214
+ function auth_removeToken() {
2215
+ auth_api.removeToken();
2216
+ }
2217
+ function auth_getUsername() {
2218
+ return auth_api.getUsername();
2219
+ }
2220
+ function auth_setUsername(username) {
2221
+ auth_api.setUsername(username);
2222
+ }
2223
+ function auth_removeUsername() {
2224
+ auth_api.removeUsername();
2225
+ }
2226
+ function auth_getCurrentUser() {
2227
+ return auth_api.getCurrentUser();
2228
+ }
2229
+ function auth_setCurrentUser(userInfo) {
2230
+ auth_api.setCurrentUser(userInfo);
2231
+ }
2232
+ function auth_removeCurrentUser() {
2233
+ auth_api.removeCurrentUser();
2234
+ }
2235
+ function auth_getCookieCache(key) {
2236
+ return auth_api.getCookieCache(key);
2237
+ }
2238
+ function auth_setCookieCache(key, value) {
2239
+ auth_api.setCookieCache(key, value);
2240
+ }
2241
+ function auth_removeCookieCache(key) {
2242
+ auth_api.removeCookieCache(key);
2243
+ }
2244
+ function auth_getSessionCache(key) {
2245
+ return auth_api.getSessionCache(key);
2246
+ }
2247
+ function auth_setSessionCache(key, value) {
2248
+ return auth_api.setSessionCache(key, value);
2249
+ }
2250
+ function auth_removeSessionCache(key) {
2251
+ auth_api.removeSessionCache(key);
2252
+ }
2253
+
2254
+ /***/ })
2255
+
2256
+ }]);