@dhccmobile/vue3-lo-form 2.0.0 → 2.0.1

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 (164) hide show
  1. package/README.md +70 -70
  2. package/dist/vue3-lo-form.common.js +1189 -1069
  3. package/dist/vue3-lo-form.common.js.map +1 -1
  4. package/dist/vue3-lo-form.umd.js +1189 -1069
  5. package/dist/vue3-lo-form.umd.js.map +1 -1
  6. package/dist/vue3-lo-form.umd.min.js +1 -1
  7. package/dist/vue3-lo-form.umd.min.js.map +1 -1
  8. package/package.json +73 -65
  9. package/src/App.vue +741 -741
  10. package/src/components/form/DvForm.vue +642 -642
  11. package/src/components/form/DvFormLayout.vue +1569 -1569
  12. package/src/components/form/StretchText.vue +90 -90
  13. package/src/components/index.ts +3 -3
  14. package/src/constants/config/form-template.config.ts +32 -32
  15. package/src/constants/config/form.config.ts +4 -4
  16. package/src/constants/config/storage.config.ts +4 -4
  17. package/src/constants/encode-assets/svg.ts +11 -11
  18. package/src/constants/enum/builtIn-label.enum.ts +5 -5
  19. package/src/constants/enum/cache-type.enum.ts +7 -7
  20. package/src/constants/enum/control-format-type.enum.ts +9 -9
  21. package/src/constants/enum/dynamic-option-type.enum.ts +6 -6
  22. package/src/constants/enum/form-bus-attr.enum.ts +8 -8
  23. package/src/constants/enum/form-field-class.enum.ts +7 -7
  24. package/src/constants/enum/form-field-type.enum.ts +25 -25
  25. package/src/constants/enum/form-type.enum.ts +5 -5
  26. package/src/constants/enum/index.ts +19 -19
  27. package/src/constants/enum/lateral-arrangement.enum.ts +9 -9
  28. package/src/constants/enum/money-unit.enum.ts +6 -6
  29. package/src/constants/enum/option-type.enum.ts +5 -5
  30. package/src/constants/enum/submitted-type.enum.ts +32 -32
  31. package/src/constants/enum/support-upload-type.enum.ts +5 -5
  32. package/src/constants/enum/switch.enum.ts +5 -5
  33. package/src/constants/enum/upload-type.enum.ts +17 -17
  34. package/src/constants/enum/validate-rules.enum.ts +25 -25
  35. package/src/constants/enum/validate-status.enum.ts +8 -8
  36. package/src/constants/enum/vertical-arrangement.enum.ts +7 -7
  37. package/src/constants/enum/zoom-type.ts +6 -6
  38. package/src/constants/index.ts +3 -3
  39. package/src/core/FormApi.ts +1238 -1238
  40. package/src/core/index.ts +1 -1
  41. package/src/domain/AbstractControl.ts +6 -6
  42. package/src/domain/Control.ts +14 -14
  43. package/src/domain/CustomFormat.ts +6 -6
  44. package/src/domain/DesForm.ts +48 -48
  45. package/src/domain/DesFormControl.ts +241 -241
  46. package/src/domain/DesFormLayout.ts +51 -51
  47. package/src/domain/FieldChangeHistory.ts +9 -9
  48. package/src/domain/FormConfig.ts +16 -15
  49. package/src/domain/FormControl.ts +125 -125
  50. package/src/domain/FormEnum.ts +9 -9
  51. package/src/domain/FormGroup.ts +42 -42
  52. package/src/domain/FormRestfulResponse.ts +6 -6
  53. package/src/domain/ProvideInjectData.ts +10 -10
  54. package/src/domain/SysDictDetail.ts +38 -38
  55. package/src/domain/SysDictInfo.ts +40 -40
  56. package/src/domain/SysDictTreeDetail.ts +52 -52
  57. package/src/domain/index.ts +12 -12
  58. package/src/filtres/amount-capitalization.filter.ts +154 -154
  59. package/src/filtres/extract-options.filter.ts +53 -53
  60. package/src/filtres/generate-grid-column-end.filter.ts +22 -22
  61. package/src/filtres/generate-grid-template-columns.filter.ts +24 -24
  62. package/src/filtres/switch-enum-convert.filter.ts +18 -18
  63. package/src/filtres/zoom-multiple.filter.ts +32 -32
  64. package/src/index.ts +74 -73
  65. package/src/main.ts +17 -17
  66. package/src/services/api.service.ts +73 -73
  67. package/src/services/clean-local-forage.service.ts +58 -58
  68. package/src/services/date-format.service.ts +74 -74
  69. package/src/services/dict-local-forage.service.ts +58 -58
  70. package/src/services/form-bean-utils.service.ts +41 -41
  71. package/src/services/form-local-forage.service.ts +59 -59
  72. package/src/services/form-tools.service.ts +739 -739
  73. package/src/services/form-tree-node-convert.service.ts +240 -240
  74. package/src/services/form-validate.service.ts +103 -103
  75. package/src/services/index.ts +9 -9
  76. package/src/services/router.service.ts +96 -96
  77. package/src/services/validate-generator.service.ts +710 -710
  78. package/src/shims-vue.d.ts +6 -6
  79. package/src/store/dict.store.ts +63 -63
  80. package/src/store/form.store.ts +32 -32
  81. package/src/store/index.ts +2 -2
  82. package/src/styles/datePicker.scss +125 -125
  83. package/src/styles/index.scss +195 -195
  84. package/src/styles/theme1.scss +277 -277
  85. package/src/styles/theme2.scss +376 -376
  86. package/src/styles/themes.scss +9 -9
  87. package/src/types/vfForm.ts +11 -11
  88. package/types/components/index.d.ts +3 -3
  89. package/types/constants/config/form-template.config.d.ts +30 -30
  90. package/types/constants/config/form.config.d.ts +4 -4
  91. package/types/constants/config/storage.config.d.ts +4 -4
  92. package/types/constants/encode-assets/svg.d.ts +5 -5
  93. package/types/constants/enum/builtIn-label.enum.d.ts +7 -7
  94. package/types/constants/enum/cache-type.enum.d.ts +15 -15
  95. package/types/constants/enum/control-format-type.enum.d.ts +23 -23
  96. package/types/constants/enum/dynamic-option-type.enum.d.ts +11 -11
  97. package/types/constants/enum/form-bus-attr.enum.d.ts +19 -19
  98. package/types/constants/enum/form-field-class.enum.d.ts +18 -18
  99. package/types/constants/enum/form-field-type.enum.d.ts +111 -111
  100. package/types/constants/enum/form-type.enum.d.ts +11 -11
  101. package/types/constants/enum/index.d.ts +19 -19
  102. package/types/constants/enum/lateral-arrangement.enum.d.ts +23 -23
  103. package/types/constants/enum/money-unit.enum.d.ts +15 -15
  104. package/types/constants/enum/option-type.enum.d.ts +11 -11
  105. package/types/constants/enum/submitted-type.enum.d.ts +115 -115
  106. package/types/constants/enum/support-upload-type.enum.d.ts +11 -11
  107. package/types/constants/enum/switch.enum.d.ts +11 -11
  108. package/types/constants/enum/upload-type.enum.d.ts +59 -59
  109. package/types/constants/enum/validate-rules.enum.d.ts +2 -2
  110. package/types/constants/enum/validate-status.enum.d.ts +2 -2
  111. package/types/constants/enum/vertical-arrangement.enum.d.ts +21 -21
  112. package/types/constants/enum/zoom-type.d.ts +15 -15
  113. package/types/constants/index.d.ts +3 -3
  114. package/types/core/FormApi.d.ts +376 -376
  115. package/types/core/index.d.ts +1 -1
  116. package/types/domain/AbstractControl.d.ts +5 -5
  117. package/types/domain/Control.d.ts +13 -13
  118. package/types/domain/CustomFormat.d.ts +5 -5
  119. package/types/domain/DesForm.d.ts +32 -32
  120. package/types/domain/DesFormControl.d.ts +160 -160
  121. package/types/domain/DesFormLayout.d.ts +33 -33
  122. package/types/domain/FieldChangeHistory.d.ts +9 -9
  123. package/types/domain/FormConfig.d.ts +16 -15
  124. package/types/domain/FormControl.d.ts +60 -60
  125. package/types/domain/FormEnum.d.ts +10 -10
  126. package/types/domain/FormGroup.d.ts +27 -27
  127. package/types/domain/FormRestfulResponse.d.ts +6 -6
  128. package/types/domain/ProvideInjectData.d.ts +10 -10
  129. package/types/domain/SysDictDetail.d.ts +24 -24
  130. package/types/domain/SysDictInfo.d.ts +26 -26
  131. package/types/domain/SysDictTreeDetail.d.ts +34 -34
  132. package/types/domain/index.d.ts +12 -12
  133. package/types/filtres/amount-capitalization.filter.d.ts +7 -7
  134. package/types/filtres/extract-options.filter.d.ts +13 -13
  135. package/types/filtres/generate-grid-column-end.filter.d.ts +11 -11
  136. package/types/filtres/generate-grid-template-columns.filter.d.ts +11 -11
  137. package/types/filtres/switch-enum-convert.filter.d.ts +2 -2
  138. package/types/filtres/zoom-multiple.filter.d.ts +3 -3
  139. package/types/index.d.ts +13 -13
  140. package/types/main.d.ts +2 -2
  141. package/types/services/api.service.d.ts +25 -25
  142. package/types/services/clean-local-forage.service.d.ts +28 -28
  143. package/types/services/date-format.service.d.ts +21 -21
  144. package/types/services/dict-local-forage.service.d.ts +28 -28
  145. package/types/services/form-bean-utils.service.d.ts +23 -23
  146. package/types/services/form-local-forage.service.d.ts +28 -28
  147. package/types/services/form-tools.service.d.ts +153 -153
  148. package/types/services/form-tree-node-convert.service.d.ts +104 -104
  149. package/types/services/form-validate.service.d.ts +32 -32
  150. package/types/services/index.d.ts +9 -9
  151. package/types/services/router.service.d.ts +40 -40
  152. package/types/services/validate-generator.service.d.ts +154 -154
  153. package/types/store/dict.store.d.ts +29 -29
  154. package/types/store/form.store.d.ts +17 -17
  155. package/types/store/index.d.ts +2 -2
  156. package/types/types/vfForm.d.ts +10 -10
  157. package/.env.local.bak +0 -6
  158. package/.eslintrc.js +0 -28
  159. package/babel.config.js +0 -3
  160. package/public/favicon.ico +0 -0
  161. package/public/index.html +0 -17
  162. package/public/js/pinyin.ts +0 -101
  163. package/tsconfig.json +0 -40
  164. package/vue.config.js +0 -38
@@ -103,6 +103,13 @@ module.exports = require("vue-property-decorator");
103
103
  /* unused harmony reexport * */
104
104
 
105
105
 
106
+ /***/ }),
107
+
108
+ /***/ "0f65":
109
+ /***/ (function(module, exports) {
110
+
111
+ module.exports = require("core-js/modules/esnext.json.parse.js");
112
+
106
113
  /***/ }),
107
114
 
108
115
  /***/ "0f78":
@@ -188,6 +195,13 @@ module.exports = require("ant-design-vue");
188
195
 
189
196
  /***/ }),
190
197
 
198
+ /***/ "5978":
199
+ /***/ (function(module, exports) {
200
+
201
+ module.exports = require("core-js/modules/es.iterator.find.js");
202
+
203
+ /***/ }),
204
+
191
205
  /***/ "5cf9":
192
206
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
193
207
 
@@ -269,6 +283,13 @@ const CacheType = {
269
283
  };
270
284
 
271
285
 
286
+ /***/ }),
287
+
288
+ /***/ "9c0f":
289
+ /***/ (function(module, exports) {
290
+
291
+ module.exports = require("core-js/modules/es.iterator.constructor.js");
292
+
272
293
  /***/ }),
273
294
 
274
295
  /***/ "9ce7":
@@ -296,6 +317,13 @@ const FormFieldClass = {
296
317
  };
297
318
 
298
319
 
320
+ /***/ }),
321
+
322
+ /***/ "a810":
323
+ /***/ (function(module, exports) {
324
+
325
+ module.exports = require("core-js/modules/es.iterator.for-each.js");
326
+
299
327
  /***/ }),
300
328
 
301
329
  /***/ "a86c":
@@ -307,6 +335,13 @@ const FormFieldClass = {
307
335
  /* unused harmony reexport * */
308
336
 
309
337
 
338
+ /***/ }),
339
+
340
+ /***/ "a9ee":
341
+ /***/ (function(module, exports) {
342
+
343
+ module.exports = require("core-js/modules/es.json.stringify.js");
344
+
310
345
  /***/ }),
311
346
 
312
347
  /***/ "b20f":
@@ -316,6 +351,20 @@ const FormFieldClass = {
316
351
 
317
352
  /***/ }),
318
353
 
354
+ /***/ "b6bf":
355
+ /***/ (function(module, exports) {
356
+
357
+ module.exports = require("core-js/modules/es.iterator.map.js");
358
+
359
+ /***/ }),
360
+
361
+ /***/ "b953":
362
+ /***/ (function(module, exports) {
363
+
364
+ module.exports = require("core-js/modules/es.iterator.filter.js");
365
+
366
+ /***/ }),
367
+
319
368
  /***/ "bd2d":
320
369
  /***/ (function(module, exports) {
321
370
 
@@ -1007,6 +1056,13 @@ var zoom_type = __webpack_require__("fbf2");
1007
1056
 
1008
1057
 
1009
1058
 
1059
+ /***/ }),
1060
+
1061
+ /***/ "d340":
1062
+ /***/ (function(module, exports) {
1063
+
1064
+ module.exports = require("core-js/modules/es.iterator.some.js");
1065
+
1010
1066
  /***/ }),
1011
1067
 
1012
1068
  /***/ "d7bc":
@@ -1041,17 +1097,23 @@ module.exports = require("core-js/modules/es.error.cause.js");
1041
1097
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return validateGeneratorService; });
1042
1098
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2439");
1043
1099
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);
1044
- /* harmony import */ var _constants_enum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("d29d");
1045
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("c32d");
1046
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
1100
+ /* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9c0f");
1101
+ /* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
1102
+ /* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a810");
1103
+ /* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
1104
+ /* harmony import */ var _constants_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("d29d");
1105
+ /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("c32d");
1106
+ /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__);
1107
+
1108
+
1047
1109
 
1048
1110
 
1049
1111
 
1050
1112
  class ValidateGeneratorService {
1051
- /**
1052
- * @description: 填充校验规则
1053
- * @author ChenRui
1054
- * @date 2021/1/27 15:07
1113
+ /**
1114
+ * @description: 填充校验规则
1115
+ * @author ChenRui
1116
+ * @date 2021/1/27 15:07
1055
1117
  */
1056
1118
  fillCheckRule(formControl, controlAttr) {
1057
1119
  if (controlAttr.verificationRules && controlAttr.verificationRules.length > 0) {
@@ -1065,84 +1127,84 @@ class ValidateGeneratorService {
1065
1127
  formControl.addValidate(validates);
1066
1128
  }
1067
1129
  }
1068
- /**
1069
- * @description: 获取校验规则
1070
- * @author ChenRui
1071
- * @date 2021/7/19 17:55
1130
+ /**
1131
+ * @description: 获取校验规则
1132
+ * @author ChenRui
1133
+ * @date 2021/7/19 17:55
1072
1134
  */
1073
1135
  getBuiltInValidationRules(item, controlAttr) {
1074
1136
  let validate;
1075
1137
  switch (item.ruleType) {
1076
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].SameValue.code:
1138
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].SameValue.code:
1077
1139
  validate = this.genSameValue(item);
1078
1140
  break;
1079
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].MailBox.code:
1141
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].MailBox.code:
1080
1142
  validate = this.genMailBox(item);
1081
1143
  break;
1082
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].RegEx.code:
1144
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].RegEx.code:
1083
1145
  validate = this.genRegEx(item);
1084
1146
  break;
1085
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].MinTextLength.code:
1147
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].MinTextLength.code:
1086
1148
  validate = this.genMinTextLength(item);
1087
1149
  break;
1088
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].MaxTextLength.code:
1150
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].MaxTextLength.code:
1089
1151
  validate = this.genMaxTextLength(item);
1090
1152
  break;
1091
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].MinValue.code:
1153
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].MinValue.code:
1092
1154
  validate = this.genMinValue(item);
1093
1155
  break;
1094
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].MaxValue.code:
1156
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].MaxValue.code:
1095
1157
  validate = this.genMaxValue(item);
1096
1158
  break;
1097
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].SpecifiedValue.code:
1159
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].SpecifiedValue.code:
1098
1160
  validate = this.genSpecifiedValue(item);
1099
1161
  break;
1100
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].SpecifiedDigitsNumber.code:
1162
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].SpecifiedDigitsNumber.code:
1101
1163
  validate = this.genSpecifiedDigitsNumber(item);
1102
1164
  break;
1103
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].DateNotEarlierThan.code:
1165
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].DateNotEarlierThan.code:
1104
1166
  validate = this.genDateNotEarlierThan(item);
1105
1167
  break;
1106
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].DateNoLaterThan.code:
1168
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].DateNoLaterThan.code:
1107
1169
  validate = this.genDateNoLaterThan(item);
1108
1170
  break;
1109
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].SpecifiedRangeNumber.code:
1171
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].SpecifiedRangeNumber.code:
1110
1172
  validate = this.genSpecifiedRangeNumber(item);
1111
1173
  break;
1112
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].PhoneNumber.code:
1174
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].PhoneNumber.code:
1113
1175
  validate = this.genPhoneNumber(item);
1114
1176
  break;
1115
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].Required.code:
1177
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].Required.code:
1116
1178
  validate = this.genRequired(item, controlAttr.controlType);
1117
1179
  break;
1118
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].LineUnique.code:
1180
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].LineUnique.code:
1119
1181
  validate = this.genLineUnique(item);
1120
1182
  break;
1121
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].LetterSpace.code:
1183
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].LetterSpace.code:
1122
1184
  validate = this.genLetterSpace(item);
1123
1185
  break;
1124
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].AlphanumericUnderline.code:
1186
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].AlphanumericUnderline.code:
1125
1187
  validate = this.genAlphanumericUnderline(item);
1126
1188
  break;
1127
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].Alphanumeric.code:
1189
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].Alphanumeric.code:
1128
1190
  validate = this.genAlphanumeric(item);
1129
1191
  break;
1130
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].JsMethodVerification.code:
1192
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].JsMethodVerification.code:
1131
1193
  validate = this.genJsMethodVerification(item);
1132
1194
  break;
1133
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].BackEndVerification.code:
1195
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].BackEndVerification.code:
1134
1196
  validate = this.genBackEndVerification(item);
1135
1197
  break;
1136
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].LandlineNumber.code:
1198
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].LandlineNumber.code:
1137
1199
  validate = this.genLandlineNumber(item);
1138
1200
  break;
1139
1201
  }
1140
1202
  return validate;
1141
1203
  }
1142
- /**
1143
- * @description: 相同的值
1144
- * @author ChenRui
1145
- * @date 2021/1/27 15:12
1204
+ /**
1205
+ * @description: 相同的值
1206
+ * @author ChenRui
1207
+ * @date 2021/1/27 15:12
1146
1208
  */
1147
1209
  genSameValue(item) {
1148
1210
  const validate = {
@@ -1151,22 +1213,22 @@ class ValidateGeneratorService {
1151
1213
  if (val != null && val !== "") {
1152
1214
  if (item.ruleContent && val != item.ruleContent) {
1153
1215
  return {
1154
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1216
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1155
1217
  errorMsg: `与预期值(${item.ruleContent})不符`
1156
1218
  };
1157
1219
  }
1158
1220
  }
1159
1221
  return {
1160
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1222
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1161
1223
  };
1162
1224
  }
1163
1225
  };
1164
1226
  return validate;
1165
1227
  }
1166
- /**
1167
- * @description: 电子邮箱
1168
- * @author ChenRui
1169
- * @date 2021/1/27 15:15
1228
+ /**
1229
+ * @description: 电子邮箱
1230
+ * @author ChenRui
1231
+ * @date 2021/1/27 15:15
1170
1232
  */
1171
1233
  genMailBox(item) {
1172
1234
  const validate = {
@@ -1176,22 +1238,22 @@ class ValidateGeneratorService {
1176
1238
  const emreg = /^\w{3,}(\.\w+)*@[A-z0-9]+(\.[A-z]{2,5}){1,2}$/;
1177
1239
  if (!emreg.test(val)) {
1178
1240
  return {
1179
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1241
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1180
1242
  errorMsg: "电子邮件格式不正确"
1181
1243
  };
1182
1244
  }
1183
1245
  }
1184
1246
  return {
1185
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1247
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1186
1248
  };
1187
1249
  }
1188
1250
  };
1189
1251
  return validate;
1190
1252
  }
1191
- /**
1192
- * @description: 正则匹配
1193
- * @author ChenRui
1194
- * @date 2021/1/27 15:17
1253
+ /**
1254
+ * @description: 正则匹配
1255
+ * @author ChenRui
1256
+ * @date 2021/1/27 15:17
1195
1257
  */
1196
1258
  genRegEx(item) {
1197
1259
  const validate = {
@@ -1200,22 +1262,22 @@ class ValidateGeneratorService {
1200
1262
  if (val != null && val !== "") {
1201
1263
  if (item.ruleContent && !eval(item.ruleContent).test(val)) {
1202
1264
  return {
1203
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1265
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1204
1266
  errorMsg: item.describe ? item.describe : `'不满足正则校验'${item.ruleContent}`
1205
1267
  };
1206
1268
  }
1207
1269
  }
1208
1270
  return {
1209
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1271
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1210
1272
  };
1211
1273
  }
1212
1274
  };
1213
1275
  return validate;
1214
1276
  }
1215
- /**
1216
- * @description: 最小文本长度
1217
- * @author ChenRui
1218
- * @date 2021/1/27 15:18
1277
+ /**
1278
+ * @description: 最小文本长度
1279
+ * @author ChenRui
1280
+ * @date 2021/1/27 15:18
1219
1281
  */
1220
1282
  genMinTextLength(item) {
1221
1283
  const validate = {
@@ -1224,22 +1286,22 @@ class ValidateGeneratorService {
1224
1286
  if (val != null && val !== "") {
1225
1287
  if (item.ruleContent && val && String(val).length < Number(item.ruleContent)) {
1226
1288
  return {
1227
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1289
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1228
1290
  errorMsg: `内容不少于${item.ruleContent}个字`
1229
1291
  };
1230
1292
  }
1231
1293
  }
1232
1294
  return {
1233
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1295
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1234
1296
  };
1235
1297
  }
1236
1298
  };
1237
1299
  return validate;
1238
1300
  }
1239
- /**
1240
- * @description: 最大文本长度
1241
- * @author ChenRui
1242
- * @date 2021/1/27 15:21
1301
+ /**
1302
+ * @description: 最大文本长度
1303
+ * @author ChenRui
1304
+ * @date 2021/1/27 15:21
1243
1305
  */
1244
1306
  genMaxTextLength(item) {
1245
1307
  const validate = {
@@ -1248,22 +1310,22 @@ class ValidateGeneratorService {
1248
1310
  if (val != null && val !== "") {
1249
1311
  if (item.ruleContent && val && String(val).length > Number(item.ruleContent)) {
1250
1312
  return {
1251
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1313
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1252
1314
  errorMsg: `内容不超过${item.ruleContent}个字`
1253
1315
  };
1254
1316
  }
1255
1317
  }
1256
1318
  return {
1257
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1319
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1258
1320
  };
1259
1321
  }
1260
1322
  };
1261
1323
  return validate;
1262
1324
  }
1263
- /**
1264
- * @description: 最小值
1265
- * @author ChenRui
1266
- * @date 2021/1/27 15:24
1325
+ /**
1326
+ * @description: 最小值
1327
+ * @author ChenRui
1328
+ * @date 2021/1/27 15:24
1267
1329
  */
1268
1330
  genMinValue(item) {
1269
1331
  const validate = {
@@ -1272,22 +1334,22 @@ class ValidateGeneratorService {
1272
1334
  if (val != undefined && val !== "") {
1273
1335
  if (item.ruleContent != null && val != null && val !== "" && Number(val) < Number(item.ruleContent)) {
1274
1336
  return {
1275
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1337
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1276
1338
  errorMsg: `数值不能小于${item.ruleContent}`
1277
1339
  };
1278
1340
  }
1279
1341
  }
1280
1342
  return {
1281
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1343
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1282
1344
  };
1283
1345
  }
1284
1346
  };
1285
1347
  return validate;
1286
1348
  }
1287
- /**
1288
- * @description: 最大值
1289
- * @author ChenRui
1290
- * @date 2021/1/27 15:25
1349
+ /**
1350
+ * @description: 最大值
1351
+ * @author ChenRui
1352
+ * @date 2021/1/27 15:25
1291
1353
  */
1292
1354
  genMaxValue(item) {
1293
1355
  const validate = {
@@ -1296,22 +1358,22 @@ class ValidateGeneratorService {
1296
1358
  if (val != undefined && val !== "") {
1297
1359
  if (item.ruleContent != null && val != null && val !== "" && Number(val) > Number(item.ruleContent)) {
1298
1360
  return {
1299
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1361
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1300
1362
  errorMsg: `数值不能大于${item.ruleContent}`
1301
1363
  };
1302
1364
  }
1303
1365
  }
1304
1366
  return {
1305
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1367
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1306
1368
  };
1307
1369
  }
1308
1370
  };
1309
1371
  return validate;
1310
1372
  }
1311
- /**
1312
- * @description: 指定的值
1313
- * @author ChenRui
1314
- * @date 2021/1/27 15:27
1373
+ /**
1374
+ * @description: 指定的值
1375
+ * @author ChenRui
1376
+ * @date 2021/1/27 15:27
1315
1377
  */
1316
1378
  genSpecifiedValue(item) {
1317
1379
  const validate = {
@@ -1320,22 +1382,22 @@ class ValidateGeneratorService {
1320
1382
  if (val != null && val !== "") {
1321
1383
  if (item.ruleContent && val != item.ruleContent) {
1322
1384
  return {
1323
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1385
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1324
1386
  errorMsg: `与预期值(${item.ruleContent})不符`
1325
1387
  };
1326
1388
  }
1327
1389
  }
1328
1390
  return {
1329
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1391
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1330
1392
  };
1331
1393
  }
1332
1394
  };
1333
1395
  return validate;
1334
1396
  }
1335
- /**
1336
- * @description: 指定位数数字
1337
- * @author ChenRui
1338
- * @date 2021/1/27 15:31
1397
+ /**
1398
+ * @description: 指定位数数字
1399
+ * @author ChenRui
1400
+ * @date 2021/1/27 15:31
1339
1401
  */
1340
1402
  genSpecifiedDigitsNumber(item) {
1341
1403
  const validate = {
@@ -1349,23 +1411,23 @@ class ValidateGeneratorService {
1349
1411
  }
1350
1412
  if (countDecimals != Number(item.ruleContent)) {
1351
1413
  return {
1352
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1414
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1353
1415
  errorMsg: item.ruleContent === "0" || item.ruleContent === 0 ? `请输入整数` : `请保留${item.ruleContent}位小数`
1354
1416
  };
1355
1417
  }
1356
1418
  }
1357
1419
  }
1358
1420
  return {
1359
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1421
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1360
1422
  };
1361
1423
  }
1362
1424
  };
1363
1425
  return validate;
1364
1426
  }
1365
- /**
1366
- * @description: 自动补位
1367
- * @author ChenRui
1368
- * @date 2021/1/27 15:59
1427
+ /**
1428
+ * @description: 自动补位
1429
+ * @author ChenRui
1430
+ * @date 2021/1/27 15:59
1369
1431
  */
1370
1432
  roundNumber(number, decimals) {
1371
1433
  let newString; // The new rounded number
@@ -1412,10 +1474,10 @@ class ValidateGeneratorService {
1412
1474
  for (let i = 0; i < decimals - decs; i++) newString += "0";
1413
1475
  return newString;
1414
1476
  }
1415
- /**
1416
- * @description: 日期不早于
1417
- * @author ChenRui
1418
- * @date 2021/1/27 16:06
1477
+ /**
1478
+ * @description: 日期不早于
1479
+ * @author ChenRui
1480
+ * @date 2021/1/27 16:06
1419
1481
  */
1420
1482
  genDateNotEarlierThan(item) {
1421
1483
  const validate = {
@@ -1424,31 +1486,31 @@ class ValidateGeneratorService {
1424
1486
  if (val != null && val !== "") {
1425
1487
  if (item.ruleContent && val) {
1426
1488
  try {
1427
- if (val.toDate() > moment__WEBPACK_IMPORTED_MODULE_2___default()(item.ruleContent).toDate()) {
1489
+ if (val.toDate() > moment__WEBPACK_IMPORTED_MODULE_4___default()(item.ruleContent).toDate()) {
1428
1490
  return {
1429
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1491
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1430
1492
  errorMsg: `日期不早于${item.ruleContent}`
1431
1493
  };
1432
1494
  }
1433
1495
  } catch (e) {
1434
1496
  return {
1435
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1497
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1436
1498
  errorMsg: `最大值日期(${item.ruleContent})格式有误!`
1437
1499
  };
1438
1500
  }
1439
1501
  }
1440
1502
  }
1441
1503
  return {
1442
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1504
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1443
1505
  };
1444
1506
  }
1445
1507
  };
1446
1508
  return validate;
1447
1509
  }
1448
- /**
1449
- * @description: 日期不晚于
1450
- * @author ChenRui
1451
- * @date 2021/1/27 16:08
1510
+ /**
1511
+ * @description: 日期不晚于
1512
+ * @author ChenRui
1513
+ * @date 2021/1/27 16:08
1452
1514
  */
1453
1515
  genDateNoLaterThan(item) {
1454
1516
  const validate = {
@@ -1457,31 +1519,31 @@ class ValidateGeneratorService {
1457
1519
  if (val != null && val !== "") {
1458
1520
  if (item.ruleContent && val) {
1459
1521
  try {
1460
- if (val.toDate() < moment__WEBPACK_IMPORTED_MODULE_2___default()(item.ruleContent).toDate()) {
1522
+ if (val.toDate() < moment__WEBPACK_IMPORTED_MODULE_4___default()(item.ruleContent).toDate()) {
1461
1523
  return {
1462
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1524
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1463
1525
  errorMsg: `日期不晚于${item.ruleContent}`
1464
1526
  };
1465
1527
  }
1466
1528
  } catch (e) {
1467
1529
  return {
1468
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1530
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1469
1531
  errorMsg: `最小值日期(${item.ruleContent})格式有误!`
1470
1532
  };
1471
1533
  }
1472
1534
  }
1473
1535
  }
1474
1536
  return {
1475
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1537
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1476
1538
  };
1477
1539
  }
1478
1540
  };
1479
1541
  return validate;
1480
1542
  }
1481
- /**
1482
- * @description: 指定范围的数字
1483
- * @author ChenRui
1484
- * @date 2021/1/27 16:35
1543
+ /**
1544
+ * @description: 指定范围的数字
1545
+ * @author ChenRui
1546
+ * @date 2021/1/27 16:35
1485
1547
  */
1486
1548
  genSpecifiedRangeNumber(item) {
1487
1549
  const validate = {
@@ -1493,7 +1555,7 @@ class ValidateGeneratorService {
1493
1555
  if (arr && arr.length > 1) {
1494
1556
  if (val < Number(arr[0]) || val > Number(arr[1])) {
1495
1557
  return {
1496
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1558
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1497
1559
  errorMsg: `数值大小应在${arr[0]}~${arr[1]}之间`
1498
1560
  };
1499
1561
  }
@@ -1501,16 +1563,16 @@ class ValidateGeneratorService {
1501
1563
  }
1502
1564
  }
1503
1565
  return {
1504
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1566
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1505
1567
  };
1506
1568
  }
1507
1569
  };
1508
1570
  return validate;
1509
1571
  }
1510
- /**
1511
- * @description: 手机号
1512
- * @author ChenRui
1513
- * @date 2021/1/27 16:55
1572
+ /**
1573
+ * @description: 手机号
1574
+ * @author ChenRui
1575
+ * @date 2021/1/27 16:55
1514
1576
  */
1515
1577
  genPhoneNumber(item) {
1516
1578
  const reg = /^0?1[3|4|5|6|7|8|9][0-9]\d{8}$/;
@@ -1520,22 +1582,22 @@ class ValidateGeneratorService {
1520
1582
  if (val != null && val !== "") {
1521
1583
  if (val && !reg.test(val)) {
1522
1584
  return {
1523
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1585
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1524
1586
  errorMsg: "手机号不合法"
1525
1587
  };
1526
1588
  }
1527
1589
  }
1528
1590
  return {
1529
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1591
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1530
1592
  };
1531
1593
  }
1532
1594
  };
1533
1595
  return validate;
1534
1596
  }
1535
- /**
1536
- * @description: 必填
1537
- * @author ChenRui
1538
- * @date 2021/1/27 15:28
1597
+ /**
1598
+ * @description: 必填
1599
+ * @author ChenRui
1600
+ * @date 2021/1/27 15:28
1539
1601
  */
1540
1602
  genRequired(item, controlType) {
1541
1603
  const validate = {
@@ -1543,43 +1605,43 @@ class ValidateGeneratorService {
1543
1605
  validateFunc: val => {
1544
1606
  if (val == null || typeof val == "string" && val.trim() === "" || Array.isArray(val) && val.length === 0) {
1545
1607
  let msg = "为必输项";
1546
- if (controlType === _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* FormFieldType */ "g"].Select.code || controlType === _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* FormFieldType */ "g"].Radio.code || controlType === _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* FormFieldType */ "g"].Checkbox.code) {
1608
+ if (controlType === _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* FormFieldType */ "g"].Select.code || controlType === _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* FormFieldType */ "g"].Radio.code || controlType === _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* FormFieldType */ "g"].Checkbox.code) {
1547
1609
  msg += ",请选择";
1548
1610
  } else {
1549
1611
  msg += ",请输入";
1550
1612
  }
1551
1613
  return {
1552
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1614
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1553
1615
  errorMsg: msg
1554
1616
  };
1555
1617
  }
1556
1618
  return {
1557
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1619
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1558
1620
  };
1559
1621
  }
1560
1622
  };
1561
1623
  return validate;
1562
1624
  }
1563
- /**
1564
- * @description: 唯一行
1565
- * @author ChenRui
1566
- * @date 2021/1/27 17:16
1625
+ /**
1626
+ * @description: 唯一行
1627
+ * @author ChenRui
1628
+ * @date 2021/1/27 17:16
1567
1629
  */
1568
1630
  genLineUnique(item) {
1569
1631
  const validate = {
1570
1632
  name: item.ruleType,
1571
1633
  validateFunc: () => {
1572
1634
  return {
1573
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1635
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1574
1636
  };
1575
1637
  }
1576
1638
  };
1577
1639
  return validate;
1578
1640
  }
1579
- /**
1580
- * @description: 仅包含字母空格
1581
- * @author ChenRui
1582
- * @date 2021/1/27 17:21
1641
+ /**
1642
+ * @description: 仅包含字母空格
1643
+ * @author ChenRui
1644
+ * @date 2021/1/27 17:21
1583
1645
  */
1584
1646
  genLetterSpace(item) {
1585
1647
  const validate = {
@@ -1589,22 +1651,22 @@ class ValidateGeneratorService {
1589
1651
  const reg = /^(?!_)([A-Za-z ]+)$/;
1590
1652
  if (val && !reg.test(val)) {
1591
1653
  return {
1592
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1654
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1593
1655
  errorMsg: "仅包含字母空格"
1594
1656
  };
1595
1657
  }
1596
1658
  }
1597
1659
  return {
1598
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1660
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1599
1661
  };
1600
1662
  }
1601
1663
  };
1602
1664
  return validate;
1603
1665
  }
1604
- /**
1605
- * @description: 数字字母下划线
1606
- * @author ChenRui
1607
- * @date 2021/1/27 17:28
1666
+ /**
1667
+ * @description: 数字字母下划线
1668
+ * @author ChenRui
1669
+ * @date 2021/1/27 17:28
1608
1670
  */
1609
1671
  genAlphanumericUnderline(item) {
1610
1672
  const validate = {
@@ -1614,22 +1676,22 @@ class ValidateGeneratorService {
1614
1676
  const reg = /^[a-zA-Z0-9_]{1,}$/;
1615
1677
  if (val && !reg.test(val)) {
1616
1678
  return {
1617
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1679
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1618
1680
  errorMsg: "仅包含数字字母下划线"
1619
1681
  };
1620
1682
  }
1621
1683
  }
1622
1684
  return {
1623
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1685
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1624
1686
  };
1625
1687
  }
1626
1688
  };
1627
1689
  return validate;
1628
1690
  }
1629
- /**
1630
- * @description: 字母数字
1631
- * @author ChenRui
1632
- * @date 2021/1/27 17:32
1691
+ /**
1692
+ * @description: 字母数字
1693
+ * @author ChenRui
1694
+ * @date 2021/1/27 17:32
1633
1695
  */
1634
1696
  genAlphanumeric(item) {
1635
1697
  const validate = {
@@ -1639,22 +1701,22 @@ class ValidateGeneratorService {
1639
1701
  const reg = /^[0-9a-zA-Z]*$/g;
1640
1702
  if (val && !reg.test(val)) {
1641
1703
  return {
1642
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1704
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1643
1705
  errorMsg: "仅包含数字字母"
1644
1706
  };
1645
1707
  }
1646
1708
  }
1647
1709
  return {
1648
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1710
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1649
1711
  };
1650
1712
  }
1651
1713
  };
1652
1714
  return validate;
1653
1715
  }
1654
- /**
1655
- * @description: JS方法校验
1656
- * @author ChenRui
1657
- * @date 2021/1/27 17:42
1716
+ /**
1717
+ * @description: JS方法校验
1718
+ * @author ChenRui
1719
+ * @date 2021/1/27 17:42
1658
1720
  */
1659
1721
  genJsMethodVerification(item) {
1660
1722
  const validate = {
@@ -1667,39 +1729,39 @@ class ValidateGeneratorService {
1667
1729
  return func(val);
1668
1730
  } catch (e) {
1669
1731
  return {
1670
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1732
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1671
1733
  errorMsg: item.describe ? item.describe : `'JS校验函数不合法`
1672
1734
  };
1673
1735
  }
1674
1736
  }
1675
1737
  }
1676
1738
  return {
1677
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1739
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1678
1740
  };
1679
1741
  }
1680
1742
  };
1681
1743
  return validate;
1682
1744
  }
1683
- /**
1684
- * @description: 后端校验
1685
- * @author ChenRui
1686
- * @date 2021/1/27 17:43
1745
+ /**
1746
+ * @description: 后端校验
1747
+ * @author ChenRui
1748
+ * @date 2021/1/27 17:43
1687
1749
  */
1688
1750
  genBackEndVerification(item) {
1689
1751
  const validate = {
1690
1752
  name: item.ruleType,
1691
1753
  validateFunc: () => {
1692
1754
  return {
1693
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1755
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1694
1756
  };
1695
1757
  }
1696
1758
  };
1697
1759
  return validate;
1698
1760
  }
1699
- /**
1700
- * @description: 座机号校验
1701
- * @author ChenRui
1702
- * @date 2021/4/14 11:40
1761
+ /**
1762
+ * @description: 座机号校验
1763
+ * @author ChenRui
1764
+ * @date 2021/4/14 11:40
1703
1765
  */
1704
1766
  genLandlineNumber(item) {
1705
1767
  const reg = /^0\d{2,3}-?\d{7,8}$/;
@@ -1709,13 +1771,13 @@ class ValidateGeneratorService {
1709
1771
  if (val != null && val !== "") {
1710
1772
  if (val && !reg.test(val)) {
1711
1773
  return {
1712
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1774
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1713
1775
  errorMsg: "座机号不合法"
1714
1776
  };
1715
1777
  }
1716
1778
  }
1717
1779
  return {
1718
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1780
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1719
1781
  };
1720
1782
  }
1721
1783
  };
@@ -1805,6 +1867,12 @@ if (typeof window !== 'undefined') {
1805
1867
  // Indicate to webpack that this file can be concatenated
1806
1868
  /* harmony default export */ var setPublicPath = (null);
1807
1869
 
1870
+ // EXTERNAL MODULE: external "core-js/modules/es.iterator.constructor.js"
1871
+ var es_iterator_constructor_js_ = __webpack_require__("9c0f");
1872
+
1873
+ // EXTERNAL MODULE: external "core-js/modules/es.iterator.for-each.js"
1874
+ var es_iterator_for_each_js_ = __webpack_require__("a810");
1875
+
1808
1876
  // EXTERNAL MODULE: external "vue"
1809
1877
  var external_vue_ = __webpack_require__("8bbf");
1810
1878
 
@@ -1903,7 +1971,6 @@ var external_tslib_ = __webpack_require__("d7bc");
1903
1971
 
1904
1972
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--15-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--15-3!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/form/DvFormLayout.vue?vue&type=template&id=439fd898&scoped=true&ts=true
1905
1973
 
1906
- const _withScopeId = n => (Object(external_vue_["pushScopeId"])("data-v-439fd898"), n = n(), Object(external_vue_["popScopeId"])(), n);
1907
1974
  const _hoisted_1 = {
1908
1975
  class: "lo-control-box"
1909
1976
  };
@@ -1911,78 +1978,60 @@ const _hoisted_2 = {
1911
1978
  key: 0
1912
1979
  };
1913
1980
  const _hoisted_3 = ["src"];
1914
- const _hoisted_4 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/Object(external_vue_["createElementVNode"])("div", {
1915
- class: "lo-history-popconfirm-title"
1916
- }, "历史修改", -1));
1917
- const _hoisted_5 = {
1981
+ const _hoisted_4 = {
1918
1982
  class: "lo-history-context"
1919
1983
  };
1920
- const _hoisted_6 = {
1984
+ const _hoisted_5 = {
1921
1985
  class: "lo-important lo-mx-10"
1922
1986
  };
1923
- const _hoisted_7 = {
1987
+ const _hoisted_6 = {
1924
1988
  class: "lo-important lo-mx-10"
1925
1989
  };
1926
- const _hoisted_8 = {
1990
+ const _hoisted_7 = {
1927
1991
  class: "lo-important lo-ml-10"
1928
1992
  };
1929
- const _hoisted_9 = ["src"];
1930
- const _hoisted_10 = {
1993
+ const _hoisted_8 = ["src"];
1994
+ const _hoisted_9 = {
1931
1995
  class: "number-format-show"
1932
1996
  };
1933
- const _hoisted_11 = {
1997
+ const _hoisted_10 = {
1934
1998
  class: "addon-inner"
1935
1999
  };
1936
- const _hoisted_12 = {
2000
+ const _hoisted_11 = {
1937
2001
  class: "ant-picker-cell-inner calendar-control-style"
1938
2002
  };
1939
- const _hoisted_13 = {
2003
+ const _hoisted_12 = {
1940
2004
  class: "date-control-style"
1941
2005
  };
1942
- const _hoisted_14 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/Object(external_vue_["createElementVNode"])("div", {
1943
- class: "eest-day-style"
1944
- }, null, -1));
1945
- const _hoisted_15 = {
2006
+ const _hoisted_13 = {
1946
2007
  class: "date-style"
1947
2008
  };
1948
- const _hoisted_16 = {
2009
+ const _hoisted_14 = {
1949
2010
  class: "eest-day-style"
1950
2011
  };
1951
- const _hoisted_17 = {
2012
+ const _hoisted_15 = {
1952
2013
  key: 0,
1953
2014
  class: "holidays-style"
1954
2015
  };
1955
- const _hoisted_18 = {
2016
+ const _hoisted_16 = {
1956
2017
  key: 1,
1957
2018
  class: "weekday-style"
1958
2019
  };
1959
- const _hoisted_19 = {
2020
+ const _hoisted_17 = {
1960
2021
  class: "date-type-style"
1961
2022
  };
1962
- const _hoisted_20 = {
2023
+ const _hoisted_18 = {
1963
2024
  key: 0,
1964
2025
  class: "trading-day-style"
1965
2026
  };
1966
- const _hoisted_21 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/Object(external_vue_["createElementVNode"])("div", {
1967
- class: "legend"
1968
- }, [/*#__PURE__*/Object(external_vue_["createElementVNode"])("div", {
1969
- class: "day-explain-style"
1970
- }, [/*#__PURE__*/Object(external_vue_["createElementVNode"])("div", {
1971
- class: "trading-day-icon"
1972
- }), /*#__PURE__*/Object(external_vue_["createElementVNode"])("div", {
1973
- class: "day-explain"
1974
- }, "交易日")])], -1));
1975
- const _hoisted_22 = {
2027
+ const _hoisted_19 = {
1976
2028
  class: "lo-input-content"
1977
2029
  };
1978
- const _hoisted_23 = ["title"];
1979
- const _hoisted_24 = {
2030
+ const _hoisted_20 = ["title"];
2031
+ const _hoisted_21 = {
1980
2032
  key: 1
1981
2033
  };
1982
- const _hoisted_25 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/Object(external_vue_["createElementVNode"])("div", {
1983
- class: "flex-grow-1"
1984
- }, null, -1));
1985
- const _hoisted_26 = {
2034
+ const _hoisted_22 = {
1986
2035
  key: 0,
1987
2036
  class: "addon-readonly"
1988
2037
  };
@@ -2088,7 +2137,9 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2088
2137
  placement: "right",
2089
2138
  "ok-text": "确定"
2090
2139
  }, {
2091
- title: Object(external_vue_["withCtx"])(() => [_hoisted_4, Object(external_vue_["createElementVNode"])("div", null, [Object(external_vue_["createVNode"])(_component_a_timeline, {
2140
+ title: Object(external_vue_["withCtx"])(() => [_cache[73] || (_cache[73] = Object(external_vue_["createElementVNode"])("div", {
2141
+ class: "lo-history-popconfirm-title"
2142
+ }, "历史修改", -1)), Object(external_vue_["createElementVNode"])("div", null, [Object(external_vue_["createVNode"])(_component_a_timeline, {
2092
2143
  class: "lo-history-timeline"
2093
2144
  }, {
2094
2145
  default: Object(external_vue_["withCtx"])(() => [(Object(external_vue_["openBlock"])(true), Object(external_vue_["createElementBlock"])(external_vue_["Fragment"], null, Object(external_vue_["renderList"])(_ctx.formControl.history, (item, index) => {
@@ -2100,7 +2151,7 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2100
2151
  "font-size": "13px"
2101
2152
  }
2102
2153
  })]),
2103
- default: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createElementVNode"])("div", _hoisted_5, [Object(external_vue_["createElementVNode"])("div", null, Object(external_vue_["toDisplayString"])(item.time), 1), Object(external_vue_["createElementVNode"])("div", _hoisted_6, Object(external_vue_["toDisplayString"])(item.before), 1), Object(external_vue_["createTextVNode"])(" 改为 "), Object(external_vue_["createElementVNode"])("div", _hoisted_7, Object(external_vue_["toDisplayString"])(item.after), 1), Object(external_vue_["createTextVNode"])(" 修改人 "), Object(external_vue_["createElementVNode"])("div", _hoisted_8, Object(external_vue_["toDisplayString"])(item.author), 1)])]),
2154
+ default: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createElementVNode"])("div", _hoisted_4, [Object(external_vue_["createElementVNode"])("div", null, Object(external_vue_["toDisplayString"])(item.time), 1), Object(external_vue_["createElementVNode"])("div", _hoisted_5, Object(external_vue_["toDisplayString"])(item.before), 1), _cache[71] || (_cache[71] = Object(external_vue_["createTextVNode"])(" 改为 ", -1)), Object(external_vue_["createElementVNode"])("div", _hoisted_6, Object(external_vue_["toDisplayString"])(item.after), 1), _cache[72] || (_cache[72] = Object(external_vue_["createTextVNode"])(" 修改人 ", -1)), Object(external_vue_["createElementVNode"])("div", _hoisted_7, Object(external_vue_["toDisplayString"])(item.author), 1)])]),
2104
2155
  _: 2
2105
2156
  }, 1024);
2106
2157
  }), 128))]),
@@ -2109,7 +2160,7 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2109
2160
  default: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createElementVNode"])("img", {
2110
2161
  class: "lo-label-history-icon",
2111
2162
  src: _ctx.historySvg
2112
- }, null, 8, _hoisted_9)]),
2163
+ }, null, 8, _hoisted_8)]),
2113
2164
  _: 1
2114
2165
  })) : Object(external_vue_["createCommentVNode"])("", true)])) : Object(external_vue_["createCommentVNode"])("", true)]),
2115
2166
  default: Object(external_vue_["withCtx"])(() => [_ctx.provideInjectData.edit ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createElementBlock"])(external_vue_["Fragment"], {
@@ -2215,7 +2266,7 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2215
2266
  _: 2
2216
2267
  }, [_ctx.controlAttr.unit ? {
2217
2268
  name: "addonAfter",
2218
- fn: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createElementVNode"])("span", _hoisted_11, Object(external_vue_["toDisplayString"])(_ctx.controlAttr.unit), 1)]),
2269
+ fn: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createElementVNode"])("span", _hoisted_10, Object(external_vue_["toDisplayString"])(_ctx.controlAttr.unit), 1)]),
2219
2270
  key: "0"
2220
2271
  } : undefined]), 1032, ["step", "min", "max", "formatter", "parser", "precision", "placeholder", "disabled", "value"]), _ctx.controlAttr.zoomType === _ctx.zoomType.automatic.code && _ctx.moneyUnits.length > 0 ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createBlock"])(_component_a_dropdown, {
2221
2272
  key: 0
@@ -2244,7 +2295,7 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2244
2295
  _: 2
2245
2296
  }, [_ctx.numberPopoverVisible ? {
2246
2297
  name: "content",
2247
- fn: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createElementVNode"])("span", _hoisted_10, Object(external_vue_["toDisplayString"])(_ctx.amountCapitalization(_ctx.zoomMultiple(_ctx.formControl.value, _ctx.formControl))), 1)]),
2298
+ fn: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createElementVNode"])("span", _hoisted_9, Object(external_vue_["toDisplayString"])(_ctx.amountCapitalization(_ctx.zoomMultiple(_ctx.formControl.value, _ctx.formControl))), 1)]),
2248
2299
  key: "0"
2249
2300
  } : undefined]), 1032, ["getPopupContainer"])], 2)) : Object(external_vue_["createCommentVNode"])("", true), _ctx.control.code === _ctx.formFieldType.Select.code ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createBlock"])(_component_a_select, {
2250
2301
  key: 3,
@@ -2282,7 +2333,7 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2282
2333
  },
2283
2334
  onMousedown: _cache[17] || (_cache[17] = e => e.preventDefault()),
2284
2335
  onClick: _cache[18] || (_cache[18] = $event => _ctx.selectAddItem(_ctx.control))
2285
- }, [Object(external_vue_["createVNode"])(_component_plus_outlined), Object(external_vue_["createTextVNode"])("新增")], 32)], 64)) : Object(external_vue_["createCommentVNode"])("", true)]),
2336
+ }, [Object(external_vue_["createVNode"])(_component_plus_outlined), _cache[74] || (_cache[74] = Object(external_vue_["createTextVNode"])("新增", -1))], 32)], 64)) : Object(external_vue_["createCommentVNode"])("", true)]),
2286
2337
  default: Object(external_vue_["withCtx"])(() => [(Object(external_vue_["openBlock"])(true), Object(external_vue_["createElementBlock"])(external_vue_["Fragment"], null, Object(external_vue_["renderList"])(_ctx.options, item => {
2287
2338
  return Object(external_vue_["openBlock"])(), Object(external_vue_["createBlock"])(_component_a_select_option, {
2288
2339
  value: item.value,
@@ -2406,8 +2457,18 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2406
2457
  }, {
2407
2458
  dateRender: Object(external_vue_["withCtx"])(({
2408
2459
  current
2409
- }) => [Object(external_vue_["createElementVNode"])("div", _hoisted_12, [Object(external_vue_["createElementVNode"])("div", _hoisted_13, [_hoisted_14, Object(external_vue_["createElementVNode"])("div", _hoisted_15, Object(external_vue_["toDisplayString"])(current.date()), 1), Object(external_vue_["createElementVNode"])("div", _hoisted_16, [_ctx.isRest(current) ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createElementBlock"])("div", _hoisted_17, "休")) : _ctx.isWeekday(current) ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createElementBlock"])("div", _hoisted_18, "班")) : Object(external_vue_["createCommentVNode"])("", true)])]), Object(external_vue_["createElementVNode"])("div", _hoisted_19, [_ctx.isRadingDay(current) ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createElementBlock"])("div", _hoisted_20)) : Object(external_vue_["createCommentVNode"])("", true)])])]),
2410
- renderExtraFooter: Object(external_vue_["withCtx"])(() => [_hoisted_21]),
2460
+ }) => [Object(external_vue_["createElementVNode"])("div", _hoisted_11, [Object(external_vue_["createElementVNode"])("div", _hoisted_12, [_cache[75] || (_cache[75] = Object(external_vue_["createElementVNode"])("div", {
2461
+ class: "eest-day-style"
2462
+ }, null, -1)), Object(external_vue_["createElementVNode"])("div", _hoisted_13, Object(external_vue_["toDisplayString"])(current.date()), 1), Object(external_vue_["createElementVNode"])("div", _hoisted_14, [_ctx.isRest(current) ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createElementBlock"])("div", _hoisted_15, "休")) : _ctx.isWeekday(current) ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createElementBlock"])("div", _hoisted_16, "班")) : Object(external_vue_["createCommentVNode"])("", true)])]), Object(external_vue_["createElementVNode"])("div", _hoisted_17, [_ctx.isRadingDay(current) ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createElementBlock"])("div", _hoisted_18)) : Object(external_vue_["createCommentVNode"])("", true)])])]),
2463
+ renderExtraFooter: Object(external_vue_["withCtx"])(() => [...(_cache[76] || (_cache[76] = [Object(external_vue_["createElementVNode"])("div", {
2464
+ class: "legend"
2465
+ }, [Object(external_vue_["createElementVNode"])("div", {
2466
+ class: "day-explain-style"
2467
+ }, [Object(external_vue_["createElementVNode"])("div", {
2468
+ class: "trading-day-icon"
2469
+ }), Object(external_vue_["createElementVNode"])("div", {
2470
+ class: "day-explain"
2471
+ }, "交易日")])], -1)]))]),
2411
2472
  _: 1
2412
2473
  }, 8, ["get-popup-container", "locale", "showTime", "format", "placeholder", "disabled", "value"])) : (Object(external_vue_["openBlock"])(), Object(external_vue_["createBlock"])(_component_a_date_picker, {
2413
2474
  key: 2,
@@ -2478,7 +2539,7 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2478
2539
  onChange: _ctx.handleUploadChange
2479
2540
  }, {
2480
2541
  default: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createVNode"])(_component_a_button, null, {
2481
- default: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createVNode"])(_component_upload_outlined), Object(external_vue_["createTextVNode"])(" 选择文件 ")]),
2542
+ default: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createVNode"])(_component_upload_outlined), _cache[77] || (_cache[77] = Object(external_vue_["createTextVNode"])(" 选择文件 ", -1))]),
2482
2543
  _: 1
2483
2544
  })]),
2484
2545
  _: 1
@@ -2488,7 +2549,7 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2488
2549
  onChange: _ctx.onChange
2489
2550
  }, undefined, true) : Object(external_vue_["createCommentVNode"])("", true)], 64)) : (Object(external_vue_["openBlock"])(), Object(external_vue_["createElementBlock"])(external_vue_["Fragment"], {
2490
2551
  key: 1
2491
- }, [Object(external_vue_["createElementVNode"])("div", _hoisted_22, [Object(external_vue_["renderSlot"])(_ctx.$slots, 'read:' + _ctx.control.formControl.key, {
2552
+ }, [Object(external_vue_["createElementVNode"])("div", _hoisted_19, [Object(external_vue_["renderSlot"])(_ctx.$slots, 'read:' + _ctx.control.formControl.key, {
2492
2553
  content: _ctx.formatData
2493
2554
  }, () => [_ctx.controlAttr.textFold ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createBlock"])(_component_stretch_text, {
2494
2555
  key: 0,
@@ -2510,7 +2571,9 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2510
2571
  key: _ctx.formControl.key,
2511
2572
  value: _ctx.formatData
2512
2573
  }))
2513
- }, Object(external_vue_["toDisplayString"])(_ctx.formatData), 1)) : (Object(external_vue_["openBlock"])(), Object(external_vue_["createElementBlock"])("span", _hoisted_24, Object(external_vue_["toDisplayString"])(_ctx.formatData), 1))], 8, _hoisted_23))], true)]), _hoisted_25, _ctx.controlAttr.unit ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createElementBlock"])("span", _hoisted_26, Object(external_vue_["toDisplayString"])(_ctx.controlAttr.unit), 1)) : Object(external_vue_["createCommentVNode"])("", true)], 64))]),
2574
+ }, Object(external_vue_["toDisplayString"])(_ctx.formatData), 1)) : (Object(external_vue_["openBlock"])(), Object(external_vue_["createElementBlock"])("span", _hoisted_21, Object(external_vue_["toDisplayString"])(_ctx.formatData), 1))], 8, _hoisted_20))], true)]), _cache[78] || (_cache[78] = Object(external_vue_["createElementVNode"])("div", {
2575
+ class: "flex-grow-1"
2576
+ }, null, -1)), _ctx.controlAttr.unit ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createElementBlock"])("span", _hoisted_22, Object(external_vue_["toDisplayString"])(_ctx.controlAttr.unit), 1)) : Object(external_vue_["createCommentVNode"])("", true)], 64))]),
2514
2577
  _: 3
2515
2578
  }, 8, ["labelCol", "wrapperCol", "colon", "labelAlign", "required", "validate-status", "help", "class"])])], 4)) : _ctx.control.type === _ctx.formFieldClass.Layout.code && _ctx.control.code === _ctx.formFieldType.Empty.code ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createBlock"])(_component_a_form, {
2516
2579
  key: 1,
@@ -2596,6 +2659,24 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2596
2659
  }
2597
2660
  // CONCATENATED MODULE: ./src/components/form/DvFormLayout.vue?vue&type=template&id=439fd898&scoped=true&ts=true
2598
2661
 
2662
+ // EXTERNAL MODULE: external "core-js/modules/es.iterator.filter.js"
2663
+ var es_iterator_filter_js_ = __webpack_require__("b953");
2664
+
2665
+ // EXTERNAL MODULE: external "core-js/modules/es.iterator.find.js"
2666
+ var es_iterator_find_js_ = __webpack_require__("5978");
2667
+
2668
+ // EXTERNAL MODULE: external "core-js/modules/es.iterator.map.js"
2669
+ var es_iterator_map_js_ = __webpack_require__("b6bf");
2670
+
2671
+ // EXTERNAL MODULE: external "core-js/modules/es.iterator.some.js"
2672
+ var es_iterator_some_js_ = __webpack_require__("d340");
2673
+
2674
+ // EXTERNAL MODULE: external "core-js/modules/es.json.stringify.js"
2675
+ var es_json_stringify_js_ = __webpack_require__("a9ee");
2676
+
2677
+ // EXTERNAL MODULE: external "core-js/modules/esnext.json.parse.js"
2678
+ var esnext_json_parse_js_ = __webpack_require__("0f65");
2679
+
2599
2680
  // EXTERNAL MODULE: external "vue-property-decorator"
2600
2681
  var external_vue_property_decorator_ = __webpack_require__("01a6");
2601
2682
 
@@ -2647,6 +2728,8 @@ var constants_enum = __webpack_require__("d29d");
2647
2728
 
2648
2729
  // CONCATENATED MODULE: ./src/filtres/generate-grid-template-columns.filter.ts
2649
2730
 
2731
+
2732
+
2650
2733
  function transform(configs) {
2651
2734
  if (configs != null && configs.length > 0) {
2652
2735
  const arr = [];
@@ -2656,10 +2739,10 @@ function transform(configs) {
2656
2739
  return `1fr`;
2657
2740
  }
2658
2741
  }
2659
- /**
2660
- * @description: 网格布局比例分配
2661
- * @author ChenRui
2662
- * @date 2020/12/1 19:32
2742
+ /**
2743
+ * @description: 网格布局比例分配
2744
+ * @author ChenRui
2745
+ * @date 2020/12/1 19:32
2663
2746
  */
2664
2747
  const generateGridTemplateColumns = configs => {
2665
2748
  return transform(configs);
@@ -2673,10 +2756,10 @@ function generate_grid_column_end_filter_transform(configs) {
2673
2756
  return 2;
2674
2757
  }
2675
2758
  }
2676
- /**
2677
- * @description: 跨列计算
2678
- * @author ChenRui
2679
- * @date 2020/12/1 19:34
2759
+ /**
2760
+ * @description: 跨列计算
2761
+ * @author ChenRui
2762
+ * @date 2020/12/1 19:34
2680
2763
  */
2681
2764
  const generateGridColumnEnd = configs => {
2682
2765
  return generate_grid_column_end_filter_transform(configs);
@@ -2686,6 +2769,8 @@ const generateGridColumnEnd = configs => {
2686
2769
  var external_ant_design_vue_ = __webpack_require__("4e72");
2687
2770
 
2688
2771
  // CONCATENATED MODULE: ./src/services/api.service.ts
2772
+
2773
+
2689
2774
  class ApiService {
2690
2775
  createBasicHeaders() {
2691
2776
  return {
@@ -2717,10 +2802,10 @@ class ApiService {
2717
2802
  error.message; //=> String
2718
2803
  });
2719
2804
  }
2720
- /**
2721
- * @description: url请求参数组装
2722
- * @author ChenRui
2723
- * @date 2020/8/28 15:21
2805
+ /**
2806
+ * @description: url请求参数组装
2807
+ * @author ChenRui
2808
+ * @date 2020/8/28 15:21
2724
2809
  */
2725
2810
  urlQueryConvert(url, query) {
2726
2811
  let connectiveSymbol = "";
@@ -2786,26 +2871,26 @@ class clean_local_forage_service_CleanLocalForageService {
2786
2871
  };
2787
2872
  this.localForage = external_localforage_["createInstance"](this.config);
2788
2873
  }
2789
- /**
2790
- * @description: 设值
2791
- * @author ChenRui
2792
- * @date 2021/3/12 16:31
2874
+ /**
2875
+ * @description: 设值
2876
+ * @author ChenRui
2877
+ * @date 2021/3/12 16:31
2793
2878
  */
2794
2879
  setItem(key, value) {
2795
2880
  this.localForage.setItem(key, value);
2796
2881
  }
2797
- /**
2798
- * @description: 取值
2799
- * @author ChenRui
2800
- * @date 2021/3/12 16:31
2882
+ /**
2883
+ * @description: 取值
2884
+ * @author ChenRui
2885
+ * @date 2021/3/12 16:31
2801
2886
  */
2802
2887
  getItem(key) {
2803
2888
  return this.localForage.getItem(key);
2804
2889
  }
2805
- /**
2806
- * @description: 删除实例
2807
- * @author ChenRui
2808
- * @date 2021/6/22 11:08
2890
+ /**
2891
+ * @description: 删除实例
2892
+ * @author ChenRui
2893
+ * @date 2021/6/22 11:08
2809
2894
  */
2810
2895
  dropInstance() {
2811
2896
  if (this.localForage != null) {
@@ -2841,26 +2926,26 @@ class dict_local_forage_service_DictLocalForageService {
2841
2926
  };
2842
2927
  this.localForage = external_localforage_["createInstance"](this.config);
2843
2928
  }
2844
- /**
2845
- * @description: 设值
2846
- * @author ChenRui
2847
- * @date 2021/3/12 16:31
2929
+ /**
2930
+ * @description: 设值
2931
+ * @author ChenRui
2932
+ * @date 2021/3/12 16:31
2848
2933
  */
2849
2934
  setItem(key, value) {
2850
2935
  this.localForage.setItem(key, value);
2851
2936
  }
2852
- /**
2853
- * @description: 取值
2854
- * @author ChenRui
2855
- * @date 2021/3/12 16:31
2937
+ /**
2938
+ * @description: 取值
2939
+ * @author ChenRui
2940
+ * @date 2021/3/12 16:31
2856
2941
  */
2857
2942
  getItem(key) {
2858
2943
  return this.localForage.getItem(key);
2859
2944
  }
2860
- /**
2861
- * @description: 删除实例
2862
- * @author ChenRui
2863
- * @date 2021/6/22 11:08
2945
+ /**
2946
+ * @description: 删除实例
2947
+ * @author ChenRui
2948
+ * @date 2021/6/22 11:08
2864
2949
  */
2865
2950
  dropInstance() {
2866
2951
  if (this.localForage != null) {
@@ -2871,12 +2956,14 @@ class dict_local_forage_service_DictLocalForageService {
2871
2956
  const dictLocalForageService = new dict_local_forage_service_DictLocalForageService();
2872
2957
 
2873
2958
  // CONCATENATED MODULE: ./src/services/form-bean-utils.service.ts
2959
+
2960
+
2874
2961
  class FormBeanUtilsService {
2875
2962
  constructor() {}
2876
- /**
2877
- * @description: 对象拷贝
2878
- * @author ChenRui
2879
- * @date 2020/8/29 19:54
2963
+ /**
2964
+ * @description: 对象拷贝
2965
+ * @author ChenRui
2966
+ * @date 2020/8/29 19:54
2880
2967
  */
2881
2968
  copy(obj) {
2882
2969
  if (obj != null) {
@@ -2884,10 +2971,10 @@ class FormBeanUtilsService {
2884
2971
  }
2885
2972
  return "";
2886
2973
  }
2887
- /**
2888
- * @description: 字符串转对象
2889
- * @author ChenRui
2890
- * @date 2020/8/29 19:54
2974
+ /**
2975
+ * @description: 字符串转对象
2976
+ * @author ChenRui
2977
+ * @date 2020/8/29 19:54
2891
2978
  */
2892
2979
  parse(str) {
2893
2980
  if (str != null && str !== "") {
@@ -2895,10 +2982,10 @@ class FormBeanUtilsService {
2895
2982
  }
2896
2983
  return null;
2897
2984
  }
2898
- /**
2899
- * @description: 对象转字符串
2900
- * @author ChenRui
2901
- * @date 2020/8/29 19:54
2985
+ /**
2986
+ * @description: 对象转字符串
2987
+ * @author ChenRui
2988
+ * @date 2020/8/29 19:54
2902
2989
  */
2903
2990
  stringify(obj) {
2904
2991
  if (obj != null) {
@@ -2935,26 +3022,26 @@ class form_local_forage_service_FormLocalForageService {
2935
3022
  };
2936
3023
  this.localForage = external_localforage_["createInstance"](this.config);
2937
3024
  }
2938
- /**
2939
- * @description: 设值
2940
- * @author ChenRui
2941
- * @date 2021/3/12 16:31
3025
+ /**
3026
+ * @description: 设值
3027
+ * @author ChenRui
3028
+ * @date 2021/3/12 16:31
2942
3029
  */
2943
3030
  setItem(key, value) {
2944
3031
  this.localForage.setItem(key, value);
2945
3032
  }
2946
- /**
2947
- * @description: 取值
2948
- * @author ChenRui
2949
- * @date 2021/3/12 16:31
3033
+ /**
3034
+ * @description: 取值
3035
+ * @author ChenRui
3036
+ * @date 2021/3/12 16:31
2950
3037
  */
2951
3038
  getItem(key) {
2952
3039
  return this.localForage.getItem(key);
2953
3040
  }
2954
- /**
2955
- * @description: 删除实例
2956
- * @author ChenRui
2957
- * @date 2021/6/22 11:08
3041
+ /**
3042
+ * @description: 删除实例
3043
+ * @author ChenRui
3044
+ * @date 2021/6/22 11:08
2958
3045
  */
2959
3046
  dropInstance() {
2960
3047
  if (this.localForage != null) {
@@ -3040,12 +3127,17 @@ var switch_enum = __webpack_require__("c73e");
3040
3127
  // CONCATENATED MODULE: ./src/services/form-tree-node-convert.service.ts
3041
3128
 
3042
3129
 
3130
+
3131
+
3132
+
3133
+
3134
+
3043
3135
  class form_tree_node_convert_service_FormTreeNodeConvertService {
3044
3136
  constructor() {}
3045
- /**
3046
- * @description: 数组转换为树形结构
3047
- * @author ChenRui
3048
- * @date 2020/10/30 10:18
3137
+ /**
3138
+ * @description: 数组转换为树形结构
3139
+ * @author ChenRui
3140
+ * @date 2020/10/30 10:18
3049
3141
  */
3050
3142
  arrayConvertToTreeNode(data, nodeContrast, parentId) {
3051
3143
  if (data != null && data.length > 0) {
@@ -3063,10 +3155,10 @@ class form_tree_node_convert_service_FormTreeNodeConvertService {
3063
3155
  }
3064
3156
  return [];
3065
3157
  }
3066
- /**
3067
- * @description: 树形结构转换为Nz树形结构
3068
- * @author ChenRui
3069
- * @date 2020/10/30 10:21
3158
+ /**
3159
+ * @description: 树形结构转换为Nz树形结构
3160
+ * @author ChenRui
3161
+ * @date 2020/10/30 10:21
3070
3162
  */
3071
3163
  treeNodeConvertToNzTreeNode(data, nzNodeContrast, isDisabledLeaf = false) {
3072
3164
  const nodes = [];
@@ -3102,10 +3194,10 @@ class form_tree_node_convert_service_FormTreeNodeConvertService {
3102
3194
  }
3103
3195
  return nodes;
3104
3196
  }
3105
- /**
3106
- * @description: 数组转换为Nz树形结构
3107
- * @author ChenRui
3108
- * @date 2020/10/30 10:41
3197
+ /**
3198
+ * @description: 数组转换为Nz树形结构
3199
+ * @author ChenRui
3200
+ * @date 2020/10/30 10:41
3109
3201
  */
3110
3202
  arrayConvertToNzTreeNode(data, nodeContrast, nzNodeContrast, isDisabledLeaf = false) {
3111
3203
  const treeNode = this.arrayConvertToTreeNode(data, nodeContrast);
@@ -3114,10 +3206,10 @@ class form_tree_node_convert_service_FormTreeNodeConvertService {
3114
3206
  }
3115
3207
  return [];
3116
3208
  }
3117
- /**
3118
- * @description: 树形结构转换为Nz树形结构
3119
- * @author ChenRui
3120
- * @date 2020/10/30 10:21
3209
+ /**
3210
+ * @description: 树形结构转换为Nz树形结构
3211
+ * @author ChenRui
3212
+ * @date 2020/10/30 10:21
3121
3213
  */
3122
3214
  treeNodeConvertToCascaderOption(data, nzCascaderOptionContrast, isDisabledLeaf = false) {
3123
3215
  const nodes = [];
@@ -3150,10 +3242,10 @@ class form_tree_node_convert_service_FormTreeNodeConvertService {
3150
3242
  }
3151
3243
  return nodes;
3152
3244
  }
3153
- /**
3154
- * @description: 插件树结构转map
3155
- * @author ChenRui
3156
- * @date 2022/1/18 19:19
3245
+ /**
3246
+ * @description: 插件树结构转map
3247
+ * @author ChenRui
3248
+ * @date 2022/1/18 19:19
3157
3249
  */
3158
3250
  nzTreeNodeConvertToMap(data) {
3159
3251
  if (data != null && data.length > 0) {
@@ -3174,10 +3266,10 @@ class form_tree_node_convert_service_FormTreeNodeConvertService {
3174
3266
  }
3175
3267
  return undefined;
3176
3268
  }
3177
- /**
3178
- * @description: 数组转换为Nz树形结构
3179
- * @author ChenRui
3180
- * @date 2020/10/30 10:41
3269
+ /**
3270
+ * @description: 数组转换为Nz树形结构
3271
+ * @author ChenRui
3272
+ * @date 2020/10/30 10:41
3181
3273
  */
3182
3274
  arrayConvertToCascaderOption(data, nodeContrast, nzCascaderOptionContrast, isDisabledLeaf = false) {
3183
3275
  const treeNode = this.arrayConvertToTreeNode(data, nodeContrast);
@@ -3186,14 +3278,14 @@ class form_tree_node_convert_service_FormTreeNodeConvertService {
3186
3278
  }
3187
3279
  return [];
3188
3280
  }
3189
- /**
3190
- * @Description: 树形数据转为数组
3191
- * @author LiuBo
3192
- * @date 2021/11/5
3193
- * @time 16:59
3194
- * @param treeNode 树形数据
3195
- * @param data 数组 传入空数组即可[]
3196
- * @param childName 子节点名称
3281
+ /**
3282
+ * @Description: 树形数据转为数组
3283
+ * @author LiuBo
3284
+ * @date 2021/11/5
3285
+ * @time 16:59
3286
+ * @param treeNode 树形数据
3287
+ * @param data 数组 传入空数组即可[]
3288
+ * @param childName 子节点名称
3197
3289
  */
3198
3290
  treeNodeConvertToArray(treeNode, data, childName) {
3199
3291
  data = data || [];
@@ -3215,10 +3307,10 @@ const formTreeNodeConvertService = new form_tree_node_convert_service_FormTreeNo
3215
3307
  // CONCATENATED MODULE: ./src/store/form.store.ts
3216
3308
 
3217
3309
 
3218
- /**
3219
- * @description: 表单存储服务
3220
- * @author ChenRui
3221
- * @date 2020/12/30 11:17
3310
+ /**
3311
+ * @description: 表单存储服务
3312
+ * @author ChenRui
3313
+ * @date 2020/12/30 11:17
3222
3314
  */
3223
3315
  class form_store_FormStore {
3224
3316
  constructor() {}
@@ -3245,10 +3337,10 @@ var dynamic_option_type_enum = __webpack_require__("1937");
3245
3337
  // CONCATENATED MODULE: ./src/store/dict.store.ts
3246
3338
 
3247
3339
 
3248
- /**
3249
- * @description: 表单版本管理
3250
- * @author ChenRui
3251
- * @date 2020/12/30 11:17
3340
+ /**
3341
+ * @description: 表单版本管理
3342
+ * @author ChenRui
3343
+ * @date 2020/12/30 11:17
3252
3344
  */
3253
3345
  class dict_store_DictStore {
3254
3346
  constructor() {}
@@ -3307,20 +3399,22 @@ const DEFAULT_DICT_URL = "./resources/json/" + DEFAULT_DICT_FILE_NAME;
3307
3399
  var cache_type_enum = __webpack_require__("9475");
3308
3400
 
3309
3401
  // CONCATENATED MODULE: ./src/services/router.service.ts
3402
+
3403
+
3310
3404
  class RouterService {
3311
3405
  constructor() {}
3312
- /**
3313
- * @description: 跨应用跳转
3314
- * @author ChenRui
3315
- * @date 2020/9/28 14:23
3406
+ /**
3407
+ * @description: 跨应用跳转
3408
+ * @author ChenRui
3409
+ * @date 2020/9/28 14:23
3316
3410
  */
3317
3411
  push(subapp) {
3318
3412
  history.pushState(null, subapp, subapp);
3319
3413
  }
3320
- /**
3321
- * @description: 获取纯路劲
3322
- * @author ChenRui
3323
- * @date 2020/10/12 21:06
3414
+ /**
3415
+ * @description: 获取纯路劲
3416
+ * @author ChenRui
3417
+ * @date 2020/10/12 21:06
3324
3418
  */
3325
3419
  getPathFromUrl(url) {
3326
3420
  let path = url;
@@ -3329,10 +3423,10 @@ class RouterService {
3329
3423
  }
3330
3424
  return path;
3331
3425
  }
3332
- /**
3333
- * @description: 获取请求参数
3334
- * @author ChenRui
3335
- * @date 2020/10/12 21:06
3426
+ /**
3427
+ * @description: 获取请求参数
3428
+ * @author ChenRui
3429
+ * @date 2020/10/12 21:06
3336
3430
  */
3337
3431
  getParamsFromUrl(url) {
3338
3432
  let parameter;
@@ -3341,10 +3435,10 @@ class RouterService {
3341
3435
  }
3342
3436
  return parameter;
3343
3437
  }
3344
- /**
3345
- * @description: url地址参数转换成路由参数对象
3346
- * @author ChenRui
3347
- * @date 2020/10/12 21:07
3438
+ /**
3439
+ * @description: url地址参数转换成路由参数对象
3440
+ * @author ChenRui
3441
+ * @date 2020/10/12 21:07
3348
3442
  */
3349
3443
  urlParameterToParams(parameter) {
3350
3444
  const params = {};
@@ -3359,10 +3453,10 @@ class RouterService {
3359
3453
  });
3360
3454
  return params;
3361
3455
  }
3362
- /**
3363
- * @description: 地址参数拼接
3364
- * @author ChenRui
3365
- * @date 2021/2/19 11:40
3456
+ /**
3457
+ * @description: 地址参数拼接
3458
+ * @author ChenRui
3459
+ * @date 2021/2/19 11:40
3366
3460
  */
3367
3461
  getParameterOfUrl(url, parameter) {
3368
3462
  let connectiveSymbol = "";
@@ -3400,16 +3494,18 @@ const routerService = new RouterService();
3400
3494
 
3401
3495
 
3402
3496
 
3403
- /**
3404
- * @description: 表单校验窗口提示
3405
- * @author ChenRui
3406
- * @date 2021/8/19 12:58
3497
+
3498
+
3499
+ /**
3500
+ * @description: 表单校验窗口提示
3501
+ * @author ChenRui
3502
+ * @date 2021/8/19 12:58
3407
3503
  */
3408
3504
  class form_validate_service_FormValidateService {
3409
- /**
3410
- * @description: 校验并进行窗口提示
3411
- * @author ChenRui
3412
- * @date 2021/8/19 12:58
3505
+ /**
3506
+ * @description: 校验并进行窗口提示
3507
+ * @author ChenRui
3508
+ * @date 2021/8/19 12:58
3413
3509
  */
3414
3510
  validateTips(formApis, scrollView) {
3415
3511
  if (formApis != null) {
@@ -3453,11 +3549,11 @@ class form_validate_service_FormValidateService {
3453
3549
  }
3454
3550
  return true;
3455
3551
  }
3456
- /**
3457
- * @Description: 滚动到错误位置-闪烁提示
3458
- * @author LiuBo
3459
- * @date 2021/2/25
3460
- * @time 21:35
3552
+ /**
3553
+ * @Description: 滚动到错误位置-闪烁提示
3554
+ * @author LiuBo
3555
+ * @date 2021/2/25
3556
+ * @time 21:35
3461
3557
  */
3462
3558
  showErrorModal(formApis, allError, scrollView) {
3463
3559
  var _formApis$, _allError$;
@@ -3485,12 +3581,12 @@ class form_validate_service_FormValidateService {
3485
3581
  }
3486
3582
  }
3487
3583
  }
3488
- /**
3489
- * @Description: 闪烁显示校验不通过的输入框
3490
- * @author LiuBo
3491
- * @date 2019/6/3
3492
- * @time 22:01
3493
- * @param el 出错的输入框html对象
3584
+ /**
3585
+ * @Description: 闪烁显示校验不通过的输入框
3586
+ * @author LiuBo
3587
+ * @date 2019/6/3
3588
+ * @time 22:01
3589
+ * @param el 出错的输入框html对象
3494
3590
  */
3495
3591
  showErrInput(el) {
3496
3592
  let count = 0;
@@ -3520,6 +3616,11 @@ const formValidateService = new form_validate_service_FormValidateService();
3520
3616
 
3521
3617
 
3522
3618
 
3619
+
3620
+
3621
+
3622
+
3623
+
3523
3624
 
3524
3625
 
3525
3626
  class form_tools_service_FormToolsService {
@@ -3573,10 +3674,10 @@ class form_tools_service_FormToolsService {
3573
3674
  setFormDisabledColor(color = "#f0f0f0") {
3574
3675
  document.body.style.setProperty("--lo-form-disabled", color);
3575
3676
  }
3576
- /**
3577
- * @description: 检查是否经过首次初始化并初始化
3578
- * @author ChenRui
3579
- * @date 2021/1/5 23:04
3677
+ /**
3678
+ * @description: 检查是否经过首次初始化并初始化
3679
+ * @author ChenRui
3680
+ * @date 2021/1/5 23:04
3580
3681
  */
3581
3682
  checkFirstLoadAndInitDesign() {
3582
3683
  if (form_tools_service_FormToolsService.IS_FIRST_LOADED) {
@@ -3591,10 +3692,10 @@ class form_tools_service_FormToolsService {
3591
3692
  });
3592
3693
  }
3593
3694
  }
3594
- /**
3595
- * @description: 初始化
3596
- * @author ChenRui
3597
- * @date 2021/3/12 11:02
3695
+ /**
3696
+ * @description: 初始化
3697
+ * @author ChenRui
3698
+ * @date 2021/3/12 11:02
3598
3699
  */
3599
3700
  init() {
3600
3701
  return Promise.all([this.initDesign(), this.initDict(), this.selectHolidays()]).then(([designRes, dictRes]) => {
@@ -3605,14 +3706,14 @@ class form_tools_service_FormToolsService {
3605
3706
  };
3606
3707
  });
3607
3708
  }
3608
- /**
3609
- * @Description 初始化节假日数据
3610
- * @Author JiangTao
3611
- * @Date 2024-04-16 下午 04:11
3709
+ /**
3710
+ * @Description 初始化节假日数据
3711
+ * @Author JiangTao
3712
+ * @Date 2024-04-16 下午 04:11
3612
3713
  */
3613
3714
  selectHolidays() {
3614
3715
  if (this.formConfig.url && this.supHoliday) {
3615
- const url = this.formConfig.url + "/ms-loong/api/v1/basic-form-weekday/query-all-by-year";
3716
+ const url = this.formConfig.url + this.formConfig.contextPath + "/api/v1/basic-form-weekday/query-all-by-year";
3616
3717
  return this.fetch(url, {}, undefined, "POST").then(res => {
3617
3718
  if (res != null && (res.code === 1 || String(res.code) === String(200))) {
3618
3719
  if (res.data != null) {
@@ -3626,10 +3727,10 @@ class form_tools_service_FormToolsService {
3626
3727
  }
3627
3728
  return Promise.resolve(form_tools_service_FormToolsService.LOAD_SUCCESS);
3628
3729
  }
3629
- /**
3630
- * @description: 初始化表单设计
3631
- * @author ChenRui
3632
- * @date 2020/11/20 10:55
3730
+ /**
3731
+ * @description: 初始化表单设计
3732
+ * @author ChenRui
3733
+ * @date 2020/11/20 10:55
3633
3734
  */
3634
3735
  initDesign() {
3635
3736
  return Promise.all([formStore.getForms(), formStore.getVersion()]).then(([forms, formVersion]) => {
@@ -3646,12 +3747,12 @@ class form_tools_service_FormToolsService {
3646
3747
  appId: this.formConfig.appId,
3647
3748
  cacheType: cache_type_enum["a" /* CacheType */].FORM.code
3648
3749
  };
3649
- const url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype";
3750
+ const url = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype";
3650
3751
  return this.fetch(url, query).then(res => {
3651
3752
  if (res != null && res.code === 1) {
3652
3753
  if (res.data != null && res.data.desCacheVersion != null) {
3653
3754
  if (String(formVersion) !== String(res.data.desCacheVersion.cacheVersionNumber)) {
3654
- const formUrl = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + res.data.desCacheVersion.storageAddress;
3755
+ const formUrl = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + res.data.desCacheVersion.storageAddress;
3655
3756
  return this.loadDesign([formUrl]).then(resEx => {
3656
3757
  if (resEx.code === 1) {
3657
3758
  formStore.setVersion(res.data.desCacheVersion.cacheVersionNumber);
@@ -3726,14 +3827,14 @@ class form_tools_service_FormToolsService {
3726
3827
  return Promise.resolve(form_tools_service_FormToolsService.LOAD_FAIL);
3727
3828
  });
3728
3829
  }
3729
- /**
3730
- * @description: 获取表单或字典数据地址
3731
- * @author ZPFly
3732
- * @date 2022/10/18 20:43
3830
+ /**
3831
+ * @description: 获取表单或字典数据地址
3832
+ * @author ZPFly
3833
+ * @date 2022/10/18 20:43
3733
3834
  */
3734
3835
  mergeUrlByType(type) {
3735
- const url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/query-batch-appids-cachetype";
3736
- const downloadUrl = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=";
3836
+ const url = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/query-batch-appids-cachetype";
3837
+ const downloadUrl = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/download?storageAddress=";
3737
3838
  const query = {
3738
3839
  appIds: this.formConfig.appId,
3739
3840
  cacheType: type
@@ -3760,15 +3861,15 @@ class form_tools_service_FormToolsService {
3760
3861
  return response;
3761
3862
  });
3762
3863
  }
3763
- /**
3764
- * @description: 获取表单或字典数据地址-按照缓存版本号查询字典/表单
3765
- * @author ZPFly
3766
- * @date 2022/10/18 20:43
3864
+ /**
3865
+ * @description: 获取表单或字典数据地址-按照缓存版本号查询字典/表单
3866
+ * @author ZPFly
3867
+ * @date 2022/10/18 20:43
3767
3868
  */
3768
3869
  mergeUrlByCacheId(type) {
3769
3870
  var _query$appIds2;
3770
- const url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/query-batch-appids-cachetype";
3771
- const downloadUrl = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/downloadById?cacheVersionId=";
3871
+ const url = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/query-batch-appids-cachetype";
3872
+ const downloadUrl = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/downloadById?cacheVersionId=";
3772
3873
  const query = {
3773
3874
  appIds: this.formConfig.appId,
3774
3875
  cacheType: type
@@ -3796,10 +3897,10 @@ class form_tools_service_FormToolsService {
3796
3897
  return response;
3797
3898
  });
3798
3899
  }
3799
- /**
3800
- * @description: 加载远程表单配置
3801
- * @author ChenRui
3802
- * @date 2020/11/20 17:30
3900
+ /**
3901
+ * @description: 加载远程表单配置
3902
+ * @author ChenRui
3903
+ * @date 2020/11/20 17:30
3803
3904
  */
3804
3905
  loadDesign(urls) {
3805
3906
  return this.mergeFetchDesign(urls).then(desForms => {
@@ -3817,10 +3918,10 @@ class form_tools_service_FormToolsService {
3817
3918
  return form_tools_service_FormToolsService.LOAD_SUCCESS;
3818
3919
  });
3819
3920
  }
3820
- /**
3821
- * @description: 合并多个应用表单
3822
- * @author ZPFly
3823
- * @date 2022/10/17 15:39
3921
+ /**
3922
+ * @description: 合并多个应用表单
3923
+ * @author ZPFly
3924
+ * @date 2022/10/17 15:39
3824
3925
  */
3825
3926
  mergeFetchDesign(urls) {
3826
3927
  const onlySimpleLoadConfig = !!this.formConfig.onlySimpleLoadConfig;
@@ -3837,10 +3938,10 @@ class form_tools_service_FormToolsService {
3837
3938
  return newDesForms;
3838
3939
  });
3839
3940
  }
3840
- /**
3841
- * @description: 初始化字典
3842
- * @author ChenRui
3843
- * @date 2021/3/11 14:32
3941
+ /**
3942
+ * @description: 初始化字典
3943
+ * @author ChenRui
3944
+ * @date 2021/3/11 14:32
3844
3945
  */
3845
3946
  initDict() {
3846
3947
  return Promise.all([dictStore.getDicts(), dictStore.getTreeDicts(), dictStore.getMapDicts(), dictStore.getMapTreeDicts(), dictStore.getVersion()]).then(([dicts, treeDicts, mapDicts, mapTreeDicts, dictVersion]) => {
@@ -3857,7 +3958,7 @@ class form_tools_service_FormToolsService {
3857
3958
  }
3858
3959
  } else if (this.formConfig.loadMode === "dynamic") {
3859
3960
  if (this.formConfig.appId) {
3860
- const url1 = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype";
3961
+ const url1 = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype";
3861
3962
  const url = this.formConfig.dictUrl ? this.formConfig.dictUrl : url1 || "";
3862
3963
  const path = routerService.getPathFromUrl(url);
3863
3964
  let query = routerService.getParamsFromUrl(url) || {};
@@ -3876,7 +3977,7 @@ class form_tools_service_FormToolsService {
3876
3977
  if (res.data && res.data instanceof Array && res.data.length > 0) {
3877
3978
  desCacheVersion = res.data[0].desCacheVersion;
3878
3979
  }
3879
- const distUrl = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + desCacheVersion.storageAddress;
3980
+ const distUrl = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + desCacheVersion.storageAddress;
3880
3981
  if (String(dictVersion) !== String(desCacheVersion.cacheVersionNumber)) {
3881
3982
  return this.loadDict([distUrl]).then(resEx => {
3882
3983
  if (resEx.code === 1) {
@@ -3952,10 +4053,10 @@ class form_tools_service_FormToolsService {
3952
4053
  return form_tools_service_FormToolsService.LOAD_FAIL;
3953
4054
  });
3954
4055
  }
3955
- /**
3956
- * @description: 加载远程字典配置
3957
- * @author ChenRui
3958
- * @date 2020/11/20 17:30
4056
+ /**
4057
+ * @description: 加载远程字典配置
4058
+ * @author ChenRui
4059
+ * @date 2020/11/20 17:30
3959
4060
  */
3960
4061
  loadDict(urls) {
3961
4062
  return this.mergeFetchDict(urls).then(sysDictInfos => {
@@ -4006,10 +4107,10 @@ class form_tools_service_FormToolsService {
4006
4107
  // });
4007
4108
  // }
4008
4109
  }
4009
- /**
4010
- * @description: 合并多个应用字典
4011
- * @author ZPFly
4012
- * @date 2022/10/17 15:39
4110
+ /**
4111
+ * @description: 合并多个应用字典
4112
+ * @author ZPFly
4113
+ * @date 2022/10/17 15:39
4013
4114
  */
4014
4115
  mergeFetchDict(dictUrl) {
4015
4116
  const fetchDicts = [];
@@ -4033,10 +4134,10 @@ class form_tools_service_FormToolsService {
4033
4134
  return filterDist;
4034
4135
  });
4035
4136
  }
4036
- /**
4037
- * @description: 初始化字典可选项
4038
- * @author ChenRui
4039
- * @date 2020/11/10 20:38
4137
+ /**
4138
+ * @description: 初始化字典可选项
4139
+ * @author ChenRui
4140
+ * @date 2020/11/10 20:38
4040
4141
  */
4041
4142
  inidDictOptions(sysDictInfos) {
4042
4143
  const sysDictDetailOptions = [];
@@ -4076,10 +4177,10 @@ class form_tools_service_FormToolsService {
4076
4177
  mapSysDictTreeDetailOptions: mapTreeNodeOptions
4077
4178
  };
4078
4179
  }
4079
- /**
4080
- * @description: 格式化表单
4081
- * @author ChenRui
4082
- * @date 2020/11/30 15:48
4180
+ /**
4181
+ * @description: 格式化表单
4182
+ * @author ChenRui
4183
+ * @date 2020/11/30 15:48
4083
4184
  */
4084
4185
  formatDesForm(sourceDesForm) {
4085
4186
  if (sourceDesForm != null) {
@@ -4092,10 +4193,10 @@ class form_tools_service_FormToolsService {
4092
4193
  return newDesForm;
4093
4194
  }
4094
4195
  }
4095
- /**
4096
- * @description: 递归格式化
4097
- * @author ChenRui
4098
- * @date 2020/11/17 10:16
4196
+ /**
4197
+ * @description: 递归格式化
4198
+ * @author ChenRui
4199
+ * @date 2020/11/17 10:16
4099
4200
  */
4100
4201
  recursionFormatForm(desFormControls, desFormLayouts) {
4101
4202
  const controls = [];
@@ -4160,10 +4261,10 @@ class form_tools_service_FormToolsService {
4160
4261
  }
4161
4262
  return controls;
4162
4263
  }
4163
- /**
4164
- * @description: 控件排序
4165
- * @author ChenRui
4166
- * @date 2020/11/17 11:59
4264
+ /**
4265
+ * @description: 控件排序
4266
+ * @author ChenRui
4267
+ * @date 2020/11/17 11:59
4167
4268
  */
4168
4269
  sortControls(controls) {
4169
4270
  controls.sort((controlA, controlB) => {
@@ -4187,10 +4288,10 @@ class form_tools_service_FormToolsService {
4187
4288
  }
4188
4289
  });
4189
4290
  }
4190
- /**
4191
- * @description: 加载资源
4192
- * @author ChenRui
4193
- * @date 2020/11/23 11:00
4291
+ /**
4292
+ * @description: 加载资源
4293
+ * @author ChenRui
4294
+ * @date 2020/11/23 11:00
4194
4295
  */
4195
4296
  loadResource(formId) {
4196
4297
  const desForm = this.desForms.find(item => item.formId === formId);
@@ -4202,27 +4303,27 @@ class form_tools_service_FormToolsService {
4202
4303
  });
4203
4304
  }
4204
4305
  }
4205
- /**
4206
- * @description: rest客户端
4207
- * @author ChenRui
4208
- * @date 2020/11/19 21:02
4306
+ /**
4307
+ * @description: rest客户端
4308
+ * @author ChenRui
4309
+ * @date 2020/11/19 21:02
4209
4310
  */
4210
4311
  fetch(path, params, body, method = "GET", headers, simple = false) {
4211
4312
  headers = headers ? headers : apiService.createBasicHeaders();
4212
4313
  return simple ? fetch(path).then(response => response.json()) : apiService.fetch(path, params, body, method, headers);
4213
4314
  }
4214
- /**
4215
- * @description: 校验提示
4216
- * @author ChenRui
4217
- * @date 2021/8/18 17:14
4315
+ /**
4316
+ * @description: 校验提示
4317
+ * @author ChenRui
4318
+ * @date 2021/8/18 17:14
4218
4319
  */
4219
4320
  validateTips(formApis, scrollView) {
4220
4321
  return formValidateService.validateTips(formApis, scrollView);
4221
4322
  }
4222
- /**
4223
- * @description: 创建认证下载消息头
4224
- * @author ChenRui
4225
- * @date 2020/8/28 15:18
4323
+ /**
4324
+ * @description: 创建认证下载消息头
4325
+ * @author ChenRui
4326
+ * @date 2020/8/28 15:18
4226
4327
  */
4227
4328
  createFileDownloadAuthorizationHeader() {
4228
4329
  return {
@@ -4399,10 +4500,10 @@ function amount_capitalization_filter_transform(currencyDigits) {
4399
4500
  outputCharacters = CN_SYMBOL + prefix + outputCharacters;
4400
4501
  return outputCharacters;
4401
4502
  }
4402
- /**
4403
- * @description: 跨列计算
4404
- * @author ChenRui
4405
- * @date 2020/12/1 19:34
4503
+ /**
4504
+ * @description: 跨列计算
4505
+ * @author ChenRui
4506
+ * @date 2020/12/1 19:34
4406
4507
  */
4407
4508
  const amountCapitalization = data => {
4408
4509
  return amount_capitalization_filter_transform(data);
@@ -4598,10 +4699,12 @@ var validate_status_enum = __webpack_require__("2804");
4598
4699
 
4599
4700
 
4600
4701
 
4601
- /**
4602
- * @description: 控件对象
4603
- * @author ChenRui
4604
- * @date 2020/12/1 15:06
4702
+
4703
+
4704
+ /**
4705
+ * @description: 控件对象
4706
+ * @author ChenRui
4707
+ * @date 2020/12/1 15:06
4605
4708
  */
4606
4709
  class FormControl_FormControl extends AbstractControl_AbstractControl {
4607
4710
  // 获取文本内容回调
@@ -4620,10 +4723,10 @@ class FormControl_FormControl extends AbstractControl_AbstractControl {
4620
4723
  get(path) {
4621
4724
  return this;
4622
4725
  }
4623
- /**
4624
- * @description: 添加校验
4625
- * @author ChenRui
4626
- * @date 2021/1/26 21:05
4726
+ /**
4727
+ * @description: 添加校验
4728
+ * @author ChenRui
4729
+ * @date 2021/1/26 21:05
4627
4730
  */
4628
4731
  addValidate(validate) {
4629
4732
  let validates = [];
@@ -4645,10 +4748,10 @@ class FormControl_FormControl extends AbstractControl_AbstractControl {
4645
4748
  }
4646
4749
  }
4647
4750
  }
4648
- /**
4649
- * @description: 移除校验
4650
- * @author ChenRui
4651
- * @date 2021/1/26 21:06
4751
+ /**
4752
+ * @description: 移除校验
4753
+ * @author ChenRui
4754
+ * @date 2021/1/26 21:06
4652
4755
  */
4653
4756
  removeValidate(name) {
4654
4757
  if (name) {
@@ -4658,10 +4761,10 @@ class FormControl_FormControl extends AbstractControl_AbstractControl {
4658
4761
  }
4659
4762
  }
4660
4763
  }
4661
- /**
4662
- * @description: 获取校验
4663
- * @author ChenRui
4664
- * @date 2021/1/30 11:47
4764
+ /**
4765
+ * @description: 获取校验
4766
+ * @author ChenRui
4767
+ * @date 2021/1/30 11:47
4665
4768
  */
4666
4769
  getValidate(name) {
4667
4770
  if (name) {
@@ -4669,10 +4772,10 @@ class FormControl_FormControl extends AbstractControl_AbstractControl {
4669
4772
  }
4670
4773
  return null;
4671
4774
  }
4672
- /**
4673
- * @description: 校验
4674
- * @author ChenRui
4675
- * @date 2021/1/26 21:08
4775
+ /**
4776
+ * @description: 校验
4777
+ * @author ChenRui
4778
+ * @date 2021/1/26 21:08
4676
4779
  */
4677
4780
  validate(val = this.value) {
4678
4781
  for (let i = 0; i < this.validates.length; i++) {
@@ -4686,10 +4789,10 @@ class FormControl_FormControl extends AbstractControl_AbstractControl {
4686
4789
  errorMsg: null
4687
4790
  };
4688
4791
  }
4689
- /**
4690
- * @description: 获取文本内容
4691
- * @author ChenRui
4692
- * @date 2021/1/29 15:56
4792
+ /**
4793
+ * @description: 获取文本内容
4794
+ * @author ChenRui
4795
+ * @date 2021/1/29 15:56
4693
4796
  */
4694
4797
  text() {
4695
4798
  if (this.textNoticeCallback) {
@@ -4703,10 +4806,10 @@ class FormControl_FormControl extends AbstractControl_AbstractControl {
4703
4806
  // CONCATENATED MODULE: ./src/domain/FormGroup.ts
4704
4807
 
4705
4808
 
4706
- /**
4707
- * @description: 表单对象
4708
- * @author ChenRui
4709
- * @date 2020/12/1 15:06
4809
+ /**
4810
+ * @description: 表单对象
4811
+ * @author ChenRui
4812
+ * @date 2020/12/1 15:06
4710
4813
  */
4711
4814
  class FormGroup_FormGroup extends AbstractControl_AbstractControl {
4712
4815
  constructor(controls = {}) {
@@ -4714,18 +4817,18 @@ class FormGroup_FormGroup extends AbstractControl_AbstractControl {
4714
4817
  _defineProperty(this, "controls", void 0);
4715
4818
  this.controls = controls;
4716
4819
  }
4717
- /**
4718
- * @description: 添加控件
4719
- * @author ChenRui
4720
- * @date 2020/12/1 14:47
4820
+ /**
4821
+ * @description: 添加控件
4822
+ * @author ChenRui
4823
+ * @date 2020/12/1 14:47
4721
4824
  */
4722
4825
  addControl(name, control) {
4723
4826
  this.controls[name] = control;
4724
4827
  }
4725
- /**
4726
- * @description: 移除控件
4727
- * @author ChenRui
4728
- * @date 2020/12/1 14:47
4828
+ /**
4829
+ * @description: 移除控件
4830
+ * @author ChenRui
4831
+ * @date 2020/12/1 14:47
4729
4832
  */
4730
4833
  removeControl(name) {
4731
4834
  if (this.controls[name] != null) {
@@ -4794,18 +4897,18 @@ function extract_options_filter_transform(controlAttr) {
4794
4897
  }
4795
4898
  return [];
4796
4899
  }
4797
- /**
4798
- * @description: 根据字典类型获取可选项
4799
- * @author ChenRui
4800
- * @date 2020/12/30 11:18
4900
+ /**
4901
+ * @description: 根据字典类型获取可选项
4902
+ * @author ChenRui
4903
+ * @date 2020/12/30 11:18
4801
4904
  */
4802
4905
  const extractOptions = (controlAttr, ...args) => {
4803
4906
  return extract_options_filter_transform(controlAttr);
4804
4907
  };
4805
- /**
4806
- * @description: 保存可选项
4807
- * @author ChenRui
4808
- * @date 2021/1/29 16:17
4908
+ /**
4909
+ * @description: 保存可选项
4910
+ * @author ChenRui
4911
+ * @date 2021/1/29 16:17
4809
4912
  */
4810
4913
  const storageOptions = (controlAttr, data) => {
4811
4914
  return transformReverse(controlAttr, data);
@@ -4817,10 +4920,10 @@ var zoom_type = __webpack_require__("fbf2");
4817
4920
  // CONCATENATED MODULE: ./src/filtres/zoom-multiple.filter.ts
4818
4921
 
4819
4922
 
4820
- /**
4821
- * @description: 通用字典转换
4822
- * @author ChenRui
4823
- * @date 2020/7/29 18:43
4923
+ /**
4924
+ * @description: 通用字典转换
4925
+ * @author ChenRui
4926
+ * @date 2020/7/29 18:43
4824
4927
  */
4825
4928
  function encode(data, formControl) {
4826
4929
  var _getCurrentInstance;
@@ -4851,10 +4954,10 @@ const zoomMultiple = (code, formControl) => {
4851
4954
  };
4852
4955
  /* harmony default export */ var zoom_multiple_filter = (zoomMultiple);
4853
4956
  // CONCATENATED MODULE: ./src/filtres/switch-enum-convert.filter.ts
4854
- /**
4855
- * @description: 通用字典转换
4856
- * @author ChenRui
4857
- * @date 2020/7/29 18:43
4957
+ /**
4958
+ * @description: 通用字典转换
4959
+ * @author ChenRui
4960
+ * @date 2020/7/29 18:43
4858
4961
  */
4859
4962
  function switch_enum_convert_filter_encode(code, switchEnumFiled, attribute, defaultVal) {
4860
4963
  if (switchEnumFiled != null && Object.values(switchEnumFiled).length > 0) {
@@ -4870,7 +4973,6 @@ const switchEnumConvert = (code, switchEnumFiled, attribute, defaultVal) => {
4870
4973
  /* harmony default export */ var switch_enum_convert_filter = (switchEnumConvert);
4871
4974
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--15-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--15-3!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/form/StretchText.vue?vue&type=template&id=12085cfe&scoped=true&ts=true
4872
4975
 
4873
- const StretchTextvue_type_template_id_12085cfe_scoped_true_ts_true_withScopeId = n => (Object(external_vue_["pushScopeId"])("data-v-12085cfe"), n = n(), Object(external_vue_["popScopeId"])(), n);
4874
4976
  const StretchTextvue_type_template_id_12085cfe_scoped_true_ts_true_hoisted_1 = ["title"];
4875
4977
  const StretchTextvue_type_template_id_12085cfe_scoped_true_ts_true_hoisted_2 = {
4876
4978
  key: 1
@@ -4931,10 +5033,10 @@ let StretchTextvue_type_script_lang_ts_StretchText = class StretchText extends e
4931
5033
  mounted() {
4932
5034
  this.onContentHandle();
4933
5035
  }
4934
- /**
4935
- * @Description 表单数据反显回调(data:string 元素值value)
4936
- * @Author JiangTao
4937
- * @Date 2023-10-07 下午 05:24
5036
+ /**
5037
+ * @Description 表单数据反显回调(data:string 元素值value)
5038
+ * @Author JiangTao
5039
+ * @Date 2023-10-07 下午 05:24
4938
5040
  */
4939
5041
  linkClick(data) {
4940
5042
  this.$emit("linkClick", data);
@@ -5888,6 +5990,14 @@ const pinYin = {
5888
5990
 
5889
5991
 
5890
5992
 
5993
+
5994
+
5995
+
5996
+
5997
+
5998
+
5999
+
6000
+
5891
6001
 
5892
6002
 
5893
6003
 
@@ -5961,26 +6071,26 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
5961
6071
  }
5962
6072
  }
5963
6073
  }
5964
- /**
5965
- * @description: 校验反馈
5966
- * @author ChenRui
5967
- * @date 2021/2/26 14:24
6074
+ /**
6075
+ * @description: 校验反馈
6076
+ * @author ChenRui
6077
+ * @date 2021/2/26 14:24
5968
6078
  */
5969
6079
  onValidationFeedbackHandle() {
5970
6080
  this.validateResult = this.formControl.validate();
5971
6081
  }
5972
- /**
5973
- * @description: 表单校验
5974
- * @author ChenRui
5975
- * @date 2022/4/6 14:12
6082
+ /**
6083
+ * @description: 表单校验
6084
+ * @author ChenRui
6085
+ * @date 2022/4/6 14:12
5976
6086
  */
5977
6087
  onFormValidateStateResetMarkHandle() {
5978
6088
  this.validateResult = {};
5979
6089
  }
5980
- /**
5981
- * @Description 表单数据反显回调(data:Object { key: 元素码值, value: 元素值 })
5982
- * @Author JiangTao
5983
- * @Date 2023-10-07 下午 05:22
6090
+ /**
6091
+ * @Description 表单数据反显回调(data:Object { key: 元素码值, value: 元素值 })
6092
+ * @Author JiangTao
6093
+ * @Date 2023-10-07 下午 05:22
5984
6094
  */
5985
6095
  linkClick(data) {
5986
6096
  this.$emit("linkClick", data);
@@ -5990,10 +6100,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
5990
6100
  this.$emit("fixFormLayout");
5991
6101
  });
5992
6102
  }
5993
- /**
5994
- * @description: 输入框形态
5995
- * @author ChenRui
5996
- * @date 2022/5/7 17:48
6103
+ /**
6104
+ * @description: 输入框形态
6105
+ * @author ChenRui
6106
+ * @date 2022/5/7 17:48
5997
6107
  */
5998
6108
  get inputShape() {
5999
6109
  if (this.controlAttr.isPasswordBox) {
@@ -6004,10 +6114,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6004
6114
  return "a-input";
6005
6115
  }
6006
6116
  }
6007
- /**
6008
- * @description: 获取控件对象
6009
- * @author ChenRui
6010
- * @date 2021/1/27 11:07
6117
+ /**
6118
+ * @description: 获取控件对象
6119
+ * @author ChenRui
6120
+ * @date 2021/1/27 11:07
6011
6121
  */
6012
6122
  get formControl() {
6013
6123
  if (this.control && this.control.formControl) {
@@ -6017,28 +6127,28 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6017
6127
  }
6018
6128
  return new FormControl_FormControl();
6019
6129
  }
6020
- /**
6021
- * @description: 获取控件配置参数
6022
- * @author ChenRui
6023
- * @date 2021/1/5 11:26
6130
+ /**
6131
+ * @description: 获取控件配置参数
6132
+ * @author ChenRui
6133
+ * @date 2021/1/5 11:26
6024
6134
  */
6025
6135
  get controlAttr() {
6026
6136
  var _this$control;
6027
6137
  return (_this$control = this.control) === null || _this$control === void 0 ? void 0 : _this$control.controlAttr;
6028
6138
  }
6029
- /**
6030
- * @description: 获取控件配置参数
6031
- * @author ChenRui
6032
- * @date 2021/1/5 11:26
6139
+ /**
6140
+ * @description: 获取控件配置参数
6141
+ * @author ChenRui
6142
+ * @date 2021/1/5 11:26
6033
6143
  */
6034
6144
  get parentControlAttr() {
6035
6145
  var _this$parentControl;
6036
6146
  return (_this$parentControl = this.parentControl) === null || _this$parentControl === void 0 ? void 0 : _this$parentControl.controlAttr;
6037
6147
  }
6038
- /**
6039
- * @description: 获取布局方式
6040
- * @author ChenRui
6041
- * @date 2020/12/30 18:19
6148
+ /**
6149
+ * @description: 获取布局方式
6150
+ * @author ChenRui
6151
+ * @date 2020/12/30 18:19
6042
6152
  */
6043
6153
  get layout() {
6044
6154
  for (const propName of Object.keys(constants_enum["r" /* VerticalArrangement */])) {
@@ -6048,18 +6158,18 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6048
6158
  }
6049
6159
  return constants_enum["r" /* VerticalArrangement */].AlignRight.value;
6050
6160
  }
6051
- /**
6052
- * @description: 当前输入的字符长度
6053
- * @author ChenRui
6054
- * @date 2021/4/20 15:55
6161
+ /**
6162
+ * @description: 当前输入的字符长度
6163
+ * @author ChenRui
6164
+ * @date 2021/4/20 15:55
6055
6165
  */
6056
6166
  get currentCharacterCount() {
6057
6167
  return this.control.formControl && this.control.formControl.value ? this.control.formControl.value.length : 0;
6058
6168
  }
6059
- /**
6060
- * @description: 最大字数限制
6061
- * @author ChenRui
6062
- * @date 2021/4/20 15:38
6169
+ /**
6170
+ * @description: 最大字数限制
6171
+ * @author ChenRui
6172
+ * @date 2021/4/20 15:38
6063
6173
  */
6064
6174
  get maxCharacterCount() {
6065
6175
  const controlAttr = this.controlAttr;
@@ -6071,10 +6181,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6071
6181
  }
6072
6182
  return undefined;
6073
6183
  }
6074
- /**
6075
- * @description: 数字格式化
6076
- * @author ChenRui
6077
- * @date 2021/1/14 16:30
6184
+ /**
6185
+ * @description: 数字格式化
6186
+ * @author ChenRui
6187
+ * @date 2021/1/14 16:30
6078
6188
  */
6079
6189
  get numberFormatter() {
6080
6190
  const controlAttr = this.controlAttr;
@@ -6122,10 +6232,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6122
6232
  }
6123
6233
  };
6124
6234
  }
6125
- /**
6126
- * @description: 数字反格式化
6127
- * @author ChenRui
6128
- * @date 2021/1/14 16:31
6235
+ /**
6236
+ * @description: 数字反格式化
6237
+ * @author ChenRui
6238
+ * @date 2021/1/14 16:31
6129
6239
  */
6130
6240
  get numberParser() {
6131
6241
  const controlAttr = this.controlAttr;
@@ -6160,10 +6270,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6160
6270
  }
6161
6271
  };
6162
6272
  }
6163
- /**
6164
- * @description: label 宽度
6165
- * @author ChenRui
6166
- * @date 2021/1/5 11:59
6273
+ /**
6274
+ * @description: label 宽度
6275
+ * @author ChenRui
6276
+ * @date 2021/1/5 11:59
6167
6277
  */
6168
6278
  get labelSpanWidth() {
6169
6279
  const controlAttr = this.controlAttr;
@@ -6176,18 +6286,18 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6176
6286
  return this.provideInjectData.labelSpan;
6177
6287
  }
6178
6288
  }
6179
- /**
6180
- * @description: 标签后是否显示冒号
6181
- * @author ZPFly
6182
- * @date 2022/7/15 10:54
6289
+ /**
6290
+ * @description: 标签后是否显示冒号
6291
+ * @author ZPFly
6292
+ * @date 2022/7/15 10:54
6183
6293
  */
6184
6294
  get colon() {
6185
6295
  return this.provideInjectData.colon;
6186
6296
  }
6187
- /**
6188
- * @description: 最大宽度设置
6189
- * @author ChenRui
6190
- * @date 2021/7/8 16:39
6297
+ /**
6298
+ * @description: 最大宽度设置
6299
+ * @author ChenRui
6300
+ * @date 2021/7/8 16:39
6191
6301
  */
6192
6302
  get controlSpanMaxWidth() {
6193
6303
  const controlAttr = this.controlAttr;
@@ -6202,10 +6312,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6202
6312
  return "none";
6203
6313
  }
6204
6314
  }
6205
- /**
6206
- * @description: 控件宽度
6207
- * @author ChenRui
6208
- * @date 2021/1/5 15:11
6315
+ /**
6316
+ * @description: 控件宽度
6317
+ * @author ChenRui
6318
+ * @date 2021/1/5 15:11
6209
6319
  */
6210
6320
  get controlSpanWidth() {
6211
6321
  const controlAttr = this.controlAttr;
@@ -6220,10 +6330,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6220
6330
  return 0;
6221
6331
  }
6222
6332
  }
6223
- /**
6224
- * @description: label 标签的文本对齐方式
6225
- * @author ChenRui
6226
- * @date 2021/1/5 11:59
6333
+ /**
6334
+ * @description: label 标签的文本对齐方式
6335
+ * @author ChenRui
6336
+ * @date 2021/1/5 11:59
6227
6337
  */
6228
6338
  get labelAlign() {
6229
6339
  for (const propName of Object.keys(constants_enum["r" /* VerticalArrangement */])) {
@@ -6233,10 +6343,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6233
6343
  }
6234
6344
  return constants_enum["r" /* VerticalArrangement */].AlignRight.textAlign;
6235
6345
  }
6236
- /**
6237
- * @description: 获取金额转换单位
6238
- * @author ChenRui
6239
- * @date 2021/2/20 17:43
6346
+ /**
6347
+ * @description: 获取金额转换单位
6348
+ * @author ChenRui
6349
+ * @date 2021/2/20 17:43
6240
6350
  */
6241
6351
  get moneyUnits() {
6242
6352
  const moneyUnits = [];
@@ -6253,10 +6363,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6253
6363
  }
6254
6364
  return moneyUnits;
6255
6365
  }
6256
- /**
6257
- * @description: 单位缩放比例
6258
- * @author ChenRui
6259
- * @date 2022/5/7 10:31
6366
+ /**
6367
+ * @description: 单位缩放比例
6368
+ * @author ChenRui
6369
+ * @date 2022/5/7 10:31
6260
6370
  */
6261
6371
  get moneyUnitsIndentScale() {
6262
6372
  const moneyUnit = this.defaultMoneyUnit;
@@ -6265,18 +6375,18 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6265
6375
  }
6266
6376
  return 0;
6267
6377
  }
6268
- /**
6269
- * @description: 获取select、checkbox、radio可选项
6270
- * @author ChenRui
6271
- * @date 2020/12/2 14:36
6378
+ /**
6379
+ * @description: 获取select、checkbox、radio可选项
6380
+ * @author ChenRui
6381
+ * @date 2020/12/2 14:36
6272
6382
  */
6273
6383
  get options() {
6274
6384
  return extractOptions(this.controlAttr);
6275
6385
  }
6276
- /**
6277
- * @description: 使用月份组件
6278
- * @author ChenRui
6279
- * @date 2021/5/19 16:12
6386
+ /**
6387
+ * @description: 使用月份组件
6388
+ * @author ChenRui
6389
+ * @date 2021/5/19 16:12
6280
6390
  */
6281
6391
  get useMonthPicker() {
6282
6392
  const dateFormat = this.controlAttr.dateFormat;
@@ -6285,10 +6395,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6285
6395
  }
6286
6396
  return false;
6287
6397
  }
6288
- /**
6289
- * @description: 级联选择框
6290
- * @author ChenRui
6291
- * @date 2021/1/5 16:31
6398
+ /**
6399
+ * @description: 级联选择框
6400
+ * @author ChenRui
6401
+ * @date 2021/1/5 16:31
6292
6402
  */
6293
6403
  get cascaderOptions() {
6294
6404
  const value = this.options;
@@ -6299,10 +6409,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6299
6409
  }
6300
6410
  return options;
6301
6411
  }
6302
- /**
6303
- * @description: 树形下拉选项
6304
- * @author ChenRui
6305
- * @date 2021/1/5 16:44
6412
+ /**
6413
+ * @description: 树形下拉选项
6414
+ * @author ChenRui
6415
+ * @date 2021/1/5 16:44
6306
6416
  */
6307
6417
  get treeSelectOptions() {
6308
6418
  const value = this.options;
@@ -6314,26 +6424,26 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6314
6424
  }
6315
6425
  return [];
6316
6426
  }
6317
- /**
6318
- * @description: 是否12小时制
6319
- * @author ChenRui
6320
- * @date 2021/1/18 10:54
6427
+ /**
6428
+ * @description: 是否12小时制
6429
+ * @author ChenRui
6430
+ * @date 2021/1/18 10:54
6321
6431
  */
6322
6432
  get is12Hours() {
6323
6433
  return !!this.controlAttr.timeFormat && this.controlAttr.timeFormat.indexOf(":ss") < 0;
6324
6434
  }
6325
- /**
6326
- * @description: 是否添加反馈
6327
- * @author ChenRui
6328
- * @date 2021/1/21 10:43
6435
+ /**
6436
+ * @description: 是否添加反馈
6437
+ * @author ChenRui
6438
+ * @date 2021/1/21 10:43
6329
6439
  */
6330
6440
  get hasFeedback() {
6331
6441
  return this.control.formControl != null && this.control.formControl.validates && this.control.formControl.validates.length > 0;
6332
6442
  }
6333
- /**
6334
- * @description: 是否必填,仅影响样式
6335
- * @author ChenRui
6336
- * @date 2021/1/21 10:50
6443
+ /**
6444
+ * @description: 是否必填,仅影响样式
6445
+ * @author ChenRui
6446
+ * @date 2021/1/21 10:50
6337
6447
  */
6338
6448
  get required() {
6339
6449
  if (this.hasFeedback && this.control.formControl.validates.findIndex(item => String(item.name) === String(constants_enum["p" /* ValidateRules */].Required.code)) !== -1) {
@@ -6341,10 +6451,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6341
6451
  }
6342
6452
  return false;
6343
6453
  }
6344
- /**
6345
- * @description: 格式化数据
6346
- * @author ChenRui
6347
- * @date 2021/1/8 11:30
6454
+ /**
6455
+ * @description: 格式化数据
6456
+ * @author ChenRui
6457
+ * @date 2021/1/8 11:30
6348
6458
  */
6349
6459
  get formatData() {
6350
6460
  this.metaRefresh = this.provideInjectData.metaRefresh; // 刷新标识
@@ -6455,10 +6565,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6455
6565
  }
6456
6566
  return data;
6457
6567
  }
6458
- /**
6459
- * @description: 支持的上传类型
6460
- * @author ChenRui
6461
- * @date 2021/4/25 11:50
6568
+ /**
6569
+ * @description: 支持的上传类型
6570
+ * @author ChenRui
6571
+ * @date 2021/4/25 11:50
6462
6572
  */
6463
6573
  get uploadType() {
6464
6574
  const controlAttr = this.controlAttr;
@@ -6469,36 +6579,36 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6469
6579
  }
6470
6580
  return undefined;
6471
6581
  }
6472
- /**
6473
- * @description: 下拉选项新增
6474
- * @author ChenRui
6475
- * @date 2021/1/14 20:05
6582
+ /**
6583
+ * @description: 下拉选项新增
6584
+ * @author ChenRui
6585
+ * @date 2021/1/14 20:05
6476
6586
  */
6477
6587
  selectAddItem(event) {
6478
6588
  this.$emit("add-item", event);
6479
- /*const controlAttr: DesFormControl = this.controlAttr as DesFormControl;
6480
- if (controlAttr != null) {
6481
- if (controlAttr.isOptionType === OptionType.Fixed.code) {
6482
- console.log(controlAttr.optionConfig);
6483
- } else if (controlAttr.isOptionType === OptionType.Dynamic.code) {
6484
- if (controlAttr.dynamicOptionType === DynamicOptionType.GeneralDictionary.code) {
6485
- console.log(controlAttr.generalDictionaryOptions);
6486
- }
6487
- }
6589
+ /*const controlAttr: DesFormControl = this.controlAttr as DesFormControl;
6590
+ if (controlAttr != null) {
6591
+ if (controlAttr.isOptionType === OptionType.Fixed.code) {
6592
+ console.log(controlAttr.optionConfig);
6593
+ } else if (controlAttr.isOptionType === OptionType.Dynamic.code) {
6594
+ if (controlAttr.dynamicOptionType === DynamicOptionType.GeneralDictionary.code) {
6595
+ console.log(controlAttr.generalDictionaryOptions);
6596
+ }
6597
+ }
6488
6598
  }*/
6489
6599
  }
6490
- /**
6491
- * @description: 级联搜索
6492
- * @author ChenRui
6493
- * @date 2021/5/19 17:23
6600
+ /**
6601
+ * @description: 级联搜索
6602
+ * @author ChenRui
6603
+ * @date 2021/5/19 17:23
6494
6604
  */
6495
6605
  cascaderFilter(inputValue, path) {
6496
6606
  return path.some(option => option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1);
6497
6607
  }
6498
- /**
6499
- * @description: 递归生成树形下拉选项
6500
- * @author ChenRui
6501
- * @date 2021/1/5 16:44
6608
+ /**
6609
+ * @description: 递归生成树形下拉选项
6610
+ * @author ChenRui
6611
+ * @date 2021/1/5 16:44
6502
6612
  */
6503
6613
  treeSelectRecursion(items) {
6504
6614
  const options = [];
@@ -6514,10 +6624,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6514
6624
  });
6515
6625
  return options;
6516
6626
  }
6517
- /**
6518
- * @description: 级联递归
6519
- * @author ChenRui
6520
- * @date 2021/1/5 16:35
6627
+ /**
6628
+ * @description: 级联递归
6629
+ * @author ChenRui
6630
+ * @date 2021/1/5 16:35
6521
6631
  */
6522
6632
  cascaderRecursion(items) {
6523
6633
  const options = [];
@@ -6536,10 +6646,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6536
6646
  });
6537
6647
  return options;
6538
6648
  }
6539
- /**
6540
- * @description: 递归获取级联选项对应的文本
6541
- * @author ChenRui
6542
- * @date 2021/1/8 14:45
6649
+ /**
6650
+ * @description: 递归获取级联选项对应的文本
6651
+ * @author ChenRui
6652
+ * @date 2021/1/8 14:45
6543
6653
  */
6544
6654
  cascaderContextRecursion(val, cascaderOptions, index = 0) {
6545
6655
  if (val && val.length > 0 && cascaderOptions && cascaderOptions.length > 0) {
@@ -6558,10 +6668,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6558
6668
  }
6559
6669
  return "";
6560
6670
  }
6561
- /**
6562
- * @description:
6563
- * @author ChenRui
6564
- * @date 2021/1/8 15:05
6671
+ /**
6672
+ * @description:
6673
+ * @author ChenRui
6674
+ * @date 2021/1/8 15:05
6565
6675
  */
6566
6676
  treeSelectContextRecursion(val, treeSelectOptions) {
6567
6677
  if (val && treeSelectOptions && treeSelectOptions.length > 0) {
@@ -6578,18 +6688,18 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6578
6688
  }
6579
6689
  return "";
6580
6690
  }
6581
- /**
6582
- * @description: 是否为ie
6583
- * @author ChenRui
6584
- * @date 2021/3/25 14:44
6691
+ /**
6692
+ * @description: 是否为ie
6693
+ * @author ChenRui
6694
+ * @date 2021/3/25 14:44
6585
6695
  */
6586
6696
  get isIe() {
6587
6697
  return !!this.provideInjectData.widthCompatibleMode || !!window.ActiveXObject || "ActiveXObject" in window;
6588
6698
  }
6589
- /**
6590
- * @description: ie 兼容性宽度布局
6591
- * @author ChenRui
6592
- * @date 2021/3/25 12:53
6699
+ /**
6700
+ * @description: ie 兼容性宽度布局
6701
+ * @author ChenRui
6702
+ * @date 2021/3/25 12:53
6593
6703
  */
6594
6704
  get divWidthCompatibleToIe() {
6595
6705
  if (this.isIe) {
@@ -6607,10 +6717,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6607
6717
  return "100%";
6608
6718
  }
6609
6719
  }
6610
- /**
6611
- * @description: 根节点容器布局样式
6612
- * @author ChenRui
6613
- * @date 2021/3/25 14:52
6720
+ /**
6721
+ * @description: 根节点容器布局样式
6722
+ * @author ChenRui
6723
+ * @date 2021/3/25 14:52
6614
6724
  */
6615
6725
  get emptyLayoutContainerStyle() {
6616
6726
  let style = {};
@@ -6628,10 +6738,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6628
6738
  }
6629
6739
  return style;
6630
6740
  }
6631
- /**
6632
- * @description: 常规布局容器样式
6633
- * @author ChenRui
6634
- * @date 2021/3/25 14:42
6741
+ /**
6742
+ * @description: 常规布局容器样式
6743
+ * @author ChenRui
6744
+ * @date 2021/3/25 14:42
6635
6745
  */
6636
6746
  get generalLayoutContainerStyle() {
6637
6747
  let style = {};
@@ -6651,10 +6761,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6651
6761
  }
6652
6762
  return style;
6653
6763
  }
6654
- /**
6655
- * @description: 初始化部分数据
6656
- * @author ChenRui
6657
- * @date 2021/1/29 15:28
6764
+ /**
6765
+ * @description: 初始化部分数据
6766
+ * @author ChenRui
6767
+ * @date 2021/1/29 15:28
6658
6768
  */
6659
6769
  initFormControlData() {
6660
6770
  if (this.control && this.control.formControl) {
@@ -6686,10 +6796,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6686
6796
  }
6687
6797
  }
6688
6798
  }
6689
- /**
6690
- * @description: 业务属性
6691
- * @author ChenRui
6692
- * @date 2021/2/1 14:38
6799
+ /**
6800
+ * @description: 业务属性
6801
+ * @author ChenRui
6802
+ * @date 2021/2/1 14:38
6693
6803
  */
6694
6804
  get busAttr() {
6695
6805
  const controlAttr = this.controlAttr;
@@ -6718,10 +6828,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6718
6828
  [constants_enum["e" /* FormBusAttr */].IS_TRACK.code]: busAttr ? busAttr[constants_enum["e" /* FormBusAttr */].IS_TRACK.code] : false
6719
6829
  };
6720
6830
  }
6721
- /**
6722
- * @description: 报送类型
6723
- * @author ChenRui
6724
- * @date 2021/2/1 15:05
6831
+ /**
6832
+ * @description: 报送类型
6833
+ * @author ChenRui
6834
+ * @date 2021/2/1 15:05
6725
6835
  */
6726
6836
  get submittedType() {
6727
6837
  if (this.busAttr && this.busAttr[constants_enum["e" /* FormBusAttr */].SUBMITTED_TYPE.code].length > 0) {
@@ -6729,17 +6839,17 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6729
6839
  }
6730
6840
  return [];
6731
6841
  }
6732
- /**
6733
- * @description: 报送类型字符串
6734
- * @author ChenRui
6735
- * @date 2021/2/1 15:08
6842
+ /**
6843
+ * @description: 报送类型字符串
6844
+ * @author ChenRui
6845
+ * @date 2021/2/1 15:08
6736
6846
  */
6737
6847
  get submittedTypeStr() {
6738
6848
  return this.submittedType.map(item => item.label).join("、");
6739
6849
  }
6740
- /**
6741
- * 根据日期时间格式决定是否显示时间选择功能
6742
- * @param format
6850
+ /**
6851
+ * 根据日期时间格式决定是否显示时间选择功能
6852
+ * @param format
6743
6853
  */
6744
6854
  showPickerTime(format) {
6745
6855
  // format 包含时间格式
@@ -6748,10 +6858,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6748
6858
  }
6749
6859
  return false;
6750
6860
  }
6751
- /**
6752
- * @description: 清除特殊字符
6753
- * @author ChenRui
6754
- * @date 2021/6/22 15:41
6861
+ /**
6862
+ * @description: 清除特殊字符
6863
+ * @author ChenRui
6864
+ * @date 2021/6/22 15:41
6755
6865
  */
6756
6866
  clearNoNum(value) {
6757
6867
  if (value) {
@@ -6767,10 +6877,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6767
6877
  }
6768
6878
  return value;
6769
6879
  }
6770
- /**
6771
- * @description: 校验数字是否超过16位纯编码
6772
- * @author ChenRui
6773
- * @date 2021/6/22 14:58
6880
+ /**
6881
+ * @description: 校验数字是否超过16位纯编码
6882
+ * @author ChenRui
6883
+ * @date 2021/6/22 14:58
6774
6884
  */
6775
6885
  validateNumBeyondLimit(value) {
6776
6886
  if (value) {
@@ -6779,10 +6889,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6779
6889
  }
6780
6890
  return false;
6781
6891
  }
6782
- /**
6783
- * @description: 删除文件
6784
- * @author ChenRui
6785
- * @date 2021/4/25 11:35
6892
+ /**
6893
+ * @description: 删除文件
6894
+ * @author ChenRui
6895
+ * @date 2021/4/25 11:35
6786
6896
  */
6787
6897
  handleRemove(file) {
6788
6898
  const index = this.formControl.value.indexOf(file);
@@ -6790,20 +6900,20 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6790
6900
  newFileList.splice(index, 1);
6791
6901
  this.formControl.value = newFileList;
6792
6902
  }
6793
- /**
6794
- * @description: 文件上传前回调函数
6795
- * @author ChenRui
6796
- * @date 2021/4/25 11:23
6903
+ /**
6904
+ * @description: 文件上传前回调函数
6905
+ * @author ChenRui
6906
+ * @date 2021/4/25 11:23
6797
6907
  */
6798
6908
  beforeUpload(file) {
6799
6909
  const fileList = [...this.formControl.value, file];
6800
6910
  this.formControl.value = fileList;
6801
6911
  return false;
6802
6912
  }
6803
- /**
6804
- * @description: 文件上传变更
6805
- * @author ChenRui
6806
- * @date 2021/4/25 11:29
6913
+ /**
6914
+ * @description: 文件上传变更
6915
+ * @author ChenRui
6916
+ * @date 2021/4/25 11:29
6807
6917
  */
6808
6918
  handleUploadChange(event) {
6809
6919
  let fileList = [...this.formControl.value];
@@ -6822,26 +6932,26 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6822
6932
  this.onChange(this.control);
6823
6933
  }
6824
6934
  }
6825
- /**
6826
- * @description: 金额菜单单机事件
6827
- * @author ChenRui
6828
- * @date 2021/2/20 17:21
6935
+ /**
6936
+ * @description: 金额菜单单机事件
6937
+ * @author ChenRui
6938
+ * @date 2021/2/20 17:21
6829
6939
  */
6830
6940
  handleMoneyUnitMenuClick(e) {
6831
6941
  this.defaultMoneyUnit = this.moneyUnits.find(item => item.code === e.key);
6832
6942
  }
6833
- /**
6834
- * @description: 将下拉弹层渲染节点固定在触发器的父元素中
6835
- * @author ZPFly
6836
- * @date 2022/8/31 11:30
6943
+ /**
6944
+ * @description: 将下拉弹层渲染节点固定在触发器的父元素中
6945
+ * @author ZPFly
6946
+ * @date 2022/8/31 11:30
6837
6947
  */
6838
6948
  getPopupContainer(triggerNode) {
6839
6949
  return triggerNode.parentNode;
6840
6950
  }
6841
- /**
6842
- * @description: 输入事件处理
6843
- * @author ChenRui
6844
- * @date 2020/12/2 14:37
6951
+ /**
6952
+ * @description: 输入事件处理
6953
+ * @author ChenRui
6954
+ * @date 2020/12/2 14:37
6845
6955
  */
6846
6956
  onChange(event) {
6847
6957
  if (this.control && (this.control.type === constants_enum["f" /* FormFieldClass */].Base.code || this.control.type === constants_enum["f" /* FormFieldClass */].Senior.code)) {
@@ -6850,34 +6960,34 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6850
6960
  }
6851
6961
  this.$emit("change", event);
6852
6962
  }
6853
- /**
6854
- * @description: 点击事件
6855
- * @author ChenRui
6856
- * @date 2021/3/4 11:37
6963
+ /**
6964
+ * @description: 点击事件
6965
+ * @author ChenRui
6966
+ * @date 2021/3/4 11:37
6857
6967
  */
6858
6968
  onClick(event) {
6859
6969
  this.$emit("click", event);
6860
6970
  }
6861
- /**
6862
- * @description: 内置前置标签事件
6863
- * @author ChenRui
6864
- * @date 2021/4/23 9:42
6971
+ /**
6972
+ * @description: 内置前置标签事件
6973
+ * @author ChenRui
6974
+ * @date 2021/4/23 9:42
6865
6975
  */
6866
6976
  onAddonBeforeHandler(event) {
6867
6977
  this.$emit("addon-before", event);
6868
6978
  }
6869
- /**
6870
- * @description: 内置后置标签事件
6871
- * @author ChenRui
6872
- * @date 2021/4/23 9:43
6979
+ /**
6980
+ * @description: 内置后置标签事件
6981
+ * @author ChenRui
6982
+ * @date 2021/4/23 9:43
6873
6983
  */
6874
6984
  onAddonAfterHandler(event) {
6875
6985
  this.$emit("addon-after", event);
6876
6986
  }
6877
- /**
6878
- * @description: 数字框失焦点
6879
- * @author ChenRui
6880
- * @date 2021/3/4 11:51
6987
+ /**
6988
+ * @description: 数字框失焦点
6989
+ * @author ChenRui
6990
+ * @date 2021/3/4 11:51
6881
6991
  */
6882
6992
  onInputNumberFocus(event) {
6883
6993
  this.onFocus(event);
@@ -6885,10 +6995,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6885
6995
  this.numberPopoverVisible = true;
6886
6996
  }
6887
6997
  }
6888
- /**
6889
- * @description: 数字输入框失焦
6890
- * @author ChenRui
6891
- * @date 2021/3/4 11:43
6998
+ /**
6999
+ * @description: 数字输入框失焦
7000
+ * @author ChenRui
7001
+ * @date 2021/3/4 11:43
6892
7002
  */
6893
7003
  onInputNumberBlur(event) {
6894
7004
  this.onBlur(event);
@@ -6896,26 +7006,26 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6896
7006
  this.numberPopoverVisible = false;
6897
7007
  }
6898
7008
  }
6899
- /**
6900
- * @description: 获取焦点
6901
- * @author ChenRui
6902
- * @date 2021/3/4 11:46
7009
+ /**
7010
+ * @description: 获取焦点
7011
+ * @author ChenRui
7012
+ * @date 2021/3/4 11:46
6903
7013
  */
6904
7014
  onFocus(event) {
6905
7015
  this.$emit("focus", event);
6906
7016
  }
6907
- /**
6908
- * @description: 失焦事件
6909
- * @author ChenRui
6910
- * @date 2021/3/4 11:38
7017
+ /**
7018
+ * @description: 失焦事件
7019
+ * @author ChenRui
7020
+ * @date 2021/3/4 11:38
6911
7021
  */
6912
7022
  onBlur(event) {
6913
7023
  this.$emit("blur", event);
6914
7024
  }
6915
- /**
6916
- * @Description 是否节假日校验
6917
- * @Author JiangTao
6918
- * @Date 2024-04-16 下午 02:33
7025
+ /**
7026
+ * @Description 是否节假日校验
7027
+ * @Author JiangTao
7028
+ * @Date 2024-04-16 下午 02:33
6919
7029
  */
6920
7030
  isRest(current) {
6921
7031
  if (JSON.parse(this.weekdayList).find(e => e.calDate === this.DateTime(current.$d))) {
@@ -6924,10 +7034,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6924
7034
  return false;
6925
7035
  }
6926
7036
  }
6927
- /**
6928
- * @Description 是否工作日校验
6929
- * @Author JiangTao
6930
- * @Date 2024-04-16 下午 02:33
7037
+ /**
7038
+ * @Description 是否工作日校验
7039
+ * @Author JiangTao
7040
+ * @Date 2024-04-16 下午 02:33
6931
7041
  */
6932
7042
  isWeekday(current) {
6933
7043
  if (JSON.parse(this.workdayList).find(e => e.calDate === this.DateTime(current.$d))) {
@@ -6936,10 +7046,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6936
7046
  return false;
6937
7047
  }
6938
7048
  }
6939
- /**
6940
- * @Description 是否交易日校验
6941
- * @Author JiangTao
6942
- * @Date 2024-04-16 下午 02:33
7049
+ /**
7050
+ * @Description 是否交易日校验
7051
+ * @Author JiangTao
7052
+ * @Date 2024-04-16 下午 02:33
6943
7053
  */
6944
7054
  isRadingDay(current) {
6945
7055
  if (JSON.parse(this.traddayList).find(e => e.calDate === this.DateTime(current.$d))) {
@@ -6948,10 +7058,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6948
7058
  return false;
6949
7059
  }
6950
7060
  }
6951
- /**
6952
- * @Description 日期格式转换
6953
- * @Author JiangTao
6954
- * @Date 2024-04-16 下午 02:33
7061
+ /**
7062
+ * @Description 日期格式转换
7063
+ * @Author JiangTao
7064
+ * @Date 2024-04-16 下午 02:33
6955
7065
  */
6956
7066
  DateTime(date) {
6957
7067
  const year = date.getFullYear();
@@ -7064,11 +7174,11 @@ const DvFormLayout_exports_ = /*#__PURE__*/exportHelper_default()(DvFormLayoutvu
7064
7174
 
7065
7175
  /* eslint-disable */
7066
7176
  class DateFormatService {
7067
- /**
7068
- * 日期时间格式自定义
7069
- * @param {number|string} value 日期时间值时间戳或时间格式
7070
- * @param {string} format 输出的时间格式
7071
- * @returns {string} 定义好的时间格式
7177
+ /**
7178
+ * 日期时间格式自定义
7179
+ * @param {number|string} value 日期时间值时间戳或时间格式
7180
+ * @param {string} format 输出的时间格式
7181
+ * @returns {string} 定义好的时间格式
7072
7182
  */
7073
7183
  formatDateTime(value, format = 'YYYY-MM-dd HH:mm:ss') {
7074
7184
  const reg = /(YY|YYYY|MM|dd|HH|mm|ss|ww|WW)/g;
@@ -7119,14 +7229,14 @@ class DateFormatService {
7119
7229
  str = str.replace(/WW/g, dayMap[day]);
7120
7230
  return str;
7121
7231
  }
7122
- /**
7123
- * @Description:两个日期大小比较(开始时间 > 结束时间,返回true)
7124
- * @author LiuBo
7125
- * @date 2022/7/15
7126
- * @time 10:43
7127
- * @param startTime 开始时间 (YYYY-MM-DD)
7128
- * @param endTime 结束时间 (YYYY-MM-DD)
7129
- * @modifyLog
7232
+ /**
7233
+ * @Description:两个日期大小比较(开始时间 > 结束时间,返回true)
7234
+ * @author LiuBo
7235
+ * @date 2022/7/15
7236
+ * @time 10:43
7237
+ * @param startTime 开始时间 (YYYY-MM-DD)
7238
+ * @param endTime 结束时间 (YYYY-MM-DD)
7239
+ * @modifyLog
7130
7240
  */
7131
7241
  dateSizeCompare(startTime, endTime) {
7132
7242
  return new Date(Date.parse(startTime.replace(/-/g, "/"))).getTime() > new Date(Date.parse(endTime.replace(/-/g, "/"))).getTime();
@@ -7141,6 +7251,11 @@ const dateFormat = new DateFormatService();
7141
7251
 
7142
7252
 
7143
7253
 
7254
+
7255
+
7256
+
7257
+
7258
+
7144
7259
  // import moment from "moment";
7145
7260
 
7146
7261
 
@@ -7213,17 +7328,17 @@ var Attribute;
7213
7328
  Attribute["TextareaRows"] = "textareaRows";
7214
7329
  Attribute["IsShowHoliday"] = "isShowHoliday";
7215
7330
  })(Attribute || (Attribute = {}));
7216
- /**
7217
- * @description: 表单基础类,聚合常用api
7218
- * @author ChenRui
7219
- * @date 2020/11/28 23:27
7331
+ /**
7332
+ * @description: 表单基础类,聚合常用api
7333
+ * @author ChenRui
7334
+ * @date 2020/11/28 23:27
7220
7335
  */
7221
7336
  class FormApi_FormApi {
7222
7337
  //修改前数据
7223
- /**
7224
- * @description: 获取表单对象
7225
- * @author ChenRui
7226
- * @date 2020/11/28 23:29
7338
+ /**
7339
+ * @description: 获取表单对象
7340
+ * @author ChenRui
7341
+ * @date 2020/11/28 23:29
7227
7342
  */
7228
7343
  constructor(options = {}) {
7229
7344
  _defineProperty(this, "id", void 0);
@@ -7248,10 +7363,10 @@ class FormApi_FormApi {
7248
7363
  }
7249
7364
  return {};
7250
7365
  }
7251
- /**
7252
- * @description: 获取表单值
7253
- * @author ChenRui
7254
- * @date 2021/2/4 10:36
7366
+ /**
7367
+ * @description: 获取表单值
7368
+ * @author ChenRui
7369
+ * @date 2021/2/4 10:36
7255
7370
  */
7256
7371
  get formData() {
7257
7372
  this.apiMetaRefresh = this.dvForm.metaRefresh;
@@ -7267,10 +7382,10 @@ class FormApi_FormApi {
7267
7382
  }
7268
7383
  return null;
7269
7384
  }
7270
- /**
7271
- * @Description 获取表单全部值
7272
- * @Author JiangTao
7273
- * @Date 2023-12-22 下午 02:50
7385
+ /**
7386
+ * @Description 获取表单全部值
7387
+ * @Author JiangTao
7388
+ * @Date 2023-12-22 下午 02:50
7274
7389
  */
7275
7390
  get formAllData() {
7276
7391
  this.apiMetaRefresh = this.dvForm.metaRefresh;
@@ -7280,10 +7395,10 @@ class FormApi_FormApi {
7280
7395
  }
7281
7396
  return null;
7282
7397
  }
7283
- /**
7284
- * @description: 编码表单对象
7285
- * @author ChenRui
7286
- * @date 2021/4/25 16:41
7398
+ /**
7399
+ * @description: 编码表单对象
7400
+ * @author ChenRui
7401
+ * @date 2021/4/25 16:41
7287
7402
  */
7288
7403
  get encodedFormData() {
7289
7404
  this.apiMetaRefresh = this.dvForm.metaRefresh;
@@ -7293,10 +7408,10 @@ class FormApi_FormApi {
7293
7408
  }
7294
7409
  return null;
7295
7410
  }
7296
- /**
7297
- * @description: 设置表单值
7298
- * @author ChenRui
7299
- * @date 2021/2/4 10:37
7411
+ /**
7412
+ * @description: 设置表单值
7413
+ * @author ChenRui
7414
+ * @date 2021/2/4 10:37
7300
7415
  */
7301
7416
  setFormData(srcData, isDefault = false, validate = false, oldVal) {
7302
7417
  if (this.dvForm.desForm.formGroup) {
@@ -7308,10 +7423,10 @@ class FormApi_FormApi {
7308
7423
  }
7309
7424
  if (oldVal) this.oldVal = oldVal;
7310
7425
  }
7311
- /**
7312
- * @description: 获取控件对象
7313
- * @author ChenRui
7314
- * @date 2021/1/29 10:08
7426
+ /**
7427
+ * @description: 获取控件对象
7428
+ * @author ChenRui
7429
+ * @date 2021/1/29 10:08
7315
7430
  */
7316
7431
  getControl(key, control, showError = true) {
7317
7432
  if (key) {
@@ -7338,10 +7453,10 @@ class FormApi_FormApi {
7338
7453
  }
7339
7454
  return null;
7340
7455
  }
7341
- /**
7342
- * @description: 获取值
7343
- * @author ChenRui
7344
- * @date 2021/1/29 14:57
7456
+ /**
7457
+ * @description: 获取值
7458
+ * @author ChenRui
7459
+ * @date 2021/1/29 14:57
7345
7460
  */
7346
7461
  getValue(key) {
7347
7462
  const control = this.getControl(key);
@@ -7351,10 +7466,10 @@ class FormApi_FormApi {
7351
7466
  }
7352
7467
  return null;
7353
7468
  }
7354
- /**
7355
- * @description: 设置值
7356
- * @author ChenRui
7357
- * @date 2021/1/29 16:23
7469
+ /**
7470
+ * @description: 设置值
7471
+ * @author ChenRui
7472
+ * @date 2021/1/29 16:23
7358
7473
  */
7359
7474
  setValue(key, val, isDefault = false, validate = true) {
7360
7475
  let control = this.getControl(key);
@@ -7367,18 +7482,18 @@ class FormApi_FormApi {
7367
7482
  this.setControlValue(control, key, val, isDefault, validate);
7368
7483
  }
7369
7484
  }
7370
- /**
7371
- * @description: 重置表单
7372
- * @author ChenRui
7373
- * @date 2021/2/22 17:40
7485
+ /**
7486
+ * @description: 重置表单
7487
+ * @author ChenRui
7488
+ * @date 2021/2/22 17:40
7374
7489
  */
7375
7490
  resetValue() {
7376
7491
  this.dvForm.formatDesForm(true);
7377
7492
  }
7378
- /**
7379
- * @description: 获取文本内容
7380
- * @author ChenRui
7381
- * @date 2021/1/29 15:03
7493
+ /**
7494
+ * @description: 获取文本内容
7495
+ * @author ChenRui
7496
+ * @date 2021/1/29 15:03
7382
7497
  */
7383
7498
  getText(key) {
7384
7499
  const control = this.getControl(key);
@@ -7388,10 +7503,10 @@ class FormApi_FormApi {
7388
7503
  }
7389
7504
  return "";
7390
7505
  }
7391
- /**
7392
- * @description: 获取可选项
7393
- * @author ChenRui
7394
- * @date 2021/1/29 16:11
7506
+ /**
7507
+ * @description: 获取可选项
7508
+ * @author ChenRui
7509
+ * @date 2021/1/29 16:11
7395
7510
  */
7396
7511
  getOptions(key) {
7397
7512
  const control = this.getControl(key);
@@ -7401,10 +7516,10 @@ class FormApi_FormApi {
7401
7516
  }
7402
7517
  return [];
7403
7518
  }
7404
- /**
7405
- * @description: 设置可选项
7406
- * @author ChenRui
7407
- * @date 2021/1/29 16:15
7519
+ /**
7520
+ * @description: 设置可选项
7521
+ * @author ChenRui
7522
+ * @date 2021/1/29 16:15
7408
7523
  */
7409
7524
  setOptions(key, data, defaultVal) {
7410
7525
  let control = this.getControl(key);
@@ -7417,10 +7532,10 @@ class FormApi_FormApi {
7417
7532
  this.setControlOptions(control, key, data, defaultVal);
7418
7533
  }
7419
7534
  }
7420
- /**
7421
- * @description: 获取常规属性
7422
- * @author ChenRui
7423
- * @date 2021/1/29 17:21
7535
+ /**
7536
+ * @description: 获取常规属性
7537
+ * @author ChenRui
7538
+ * @date 2021/1/29 17:21
7424
7539
  */
7425
7540
  getAttribute(key, attribute) {
7426
7541
  const control = this.getControl(key);
@@ -7429,10 +7544,10 @@ class FormApi_FormApi {
7429
7544
  return control.controlAttr[attribute];
7430
7545
  }
7431
7546
  }
7432
- /**
7433
- * @description: 设置常规属性
7434
- * @author ChenRui
7435
- * @date 2021/1/29 17:21
7547
+ /**
7548
+ * @description: 设置常规属性
7549
+ * @author ChenRui
7550
+ * @date 2021/1/29 17:21
7436
7551
  */
7437
7552
  setAttribute(key, attribute, data) {
7438
7553
  let control = this.getControl(key);
@@ -7445,10 +7560,10 @@ class FormApi_FormApi {
7445
7560
  this.setControlAttribute(control, attribute, data);
7446
7561
  }
7447
7562
  }
7448
- /**
7449
- * @description: 根据name获取校验
7450
- * @author ChenRui
7451
- * @date 2021/1/30 11:46
7563
+ /**
7564
+ * @description: 根据name获取校验
7565
+ * @author ChenRui
7566
+ * @date 2021/1/30 11:46
7452
7567
  */
7453
7568
  getValidate(key, name) {
7454
7569
  const control = this.getControl(key);
@@ -7457,10 +7572,10 @@ class FormApi_FormApi {
7457
7572
  return control.getValidate(name);
7458
7573
  }
7459
7574
  }
7460
- /**
7461
- * @description: 移除校验
7462
- * @author ChenRui
7463
- * @date 2021/4/1 21:30
7575
+ /**
7576
+ * @description: 移除校验
7577
+ * @author ChenRui
7578
+ * @date 2021/4/1 21:30
7464
7579
  */
7465
7580
  removeValidate(key, validateName) {
7466
7581
  const control = this.getControl(key);
@@ -7475,10 +7590,10 @@ class FormApi_FormApi {
7475
7590
  }
7476
7591
  }
7477
7592
  }
7478
- /**
7479
- * @description: 移除所有校验
7480
- * @author ChenRui
7481
- * @date 2021/4/1 21:48
7593
+ /**
7594
+ * @description: 移除所有校验
7595
+ * @author ChenRui
7596
+ * @date 2021/4/1 21:48
7482
7597
  */
7483
7598
  removeAllValidates(key) {
7484
7599
  const control = this.getControl(key);
@@ -7487,10 +7602,10 @@ class FormApi_FormApi {
7487
7602
  control.validates = [];
7488
7603
  }
7489
7604
  }
7490
- /**
7491
- * @description: 获取校验集合
7492
- * @author ChenRui
7493
- * @date 2021/1/30 11:40
7605
+ /**
7606
+ * @description: 获取校验集合
7607
+ * @author ChenRui
7608
+ * @date 2021/1/30 11:40
7494
7609
  */
7495
7610
  getValidates(key) {
7496
7611
  const control = this.getControl(key);
@@ -7500,11 +7615,11 @@ class FormApi_FormApi {
7500
7615
  }
7501
7616
  return [];
7502
7617
  }
7503
- /**
7504
- * @Description: 设置必输校验
7505
- * @author GuoXuHui
7506
- * @date 2022-05-25
7507
- * @time 10:09
7618
+ /**
7619
+ * @Description: 设置必输校验
7620
+ * @author GuoXuHui
7621
+ * @date 2022-05-25
7622
+ * @time 10:09
7508
7623
  */
7509
7624
  setRequiredValidate(key, data) {
7510
7625
  if (data) {
@@ -7515,10 +7630,10 @@ class FormApi_FormApi {
7515
7630
  this.removeValidate(key, constants_enum["p" /* ValidateRules */].Required.code); // 清除必填校验
7516
7631
  }
7517
7632
  }
7518
- /**
7519
- * @description: 设置校验
7520
- * @author ChenRui
7521
- * @date 2021/1/30 11:54
7633
+ /**
7634
+ * @description: 设置校验
7635
+ * @author ChenRui
7636
+ * @date 2021/1/30 11:54
7522
7637
  */
7523
7638
  setValidate(key, validate, isCover = false) {
7524
7639
  let control = this.getControl(key);
@@ -7534,18 +7649,18 @@ class FormApi_FormApi {
7534
7649
  this.setValidateInner(control, validate, isCover);
7535
7650
  }
7536
7651
  }
7537
- /**
7538
- * @description: 校验提示
7539
- * @author ChenRui
7540
- * @date 2021/8/18 17:40
7652
+ /**
7653
+ * @description: 校验提示
7654
+ * @author ChenRui
7655
+ * @date 2021/8/18 17:40
7541
7656
  */
7542
7657
  validateTips(scrollView) {
7543
7658
  return formValidateService.validateTips(this, scrollView);
7544
7659
  }
7545
- /**
7546
- * @description: 全局校验报告
7547
- * @author ChenRui
7548
- * @date 2021/2/5 11:48
7660
+ /**
7661
+ * @description: 全局校验报告
7662
+ * @author ChenRui
7663
+ * @date 2021/2/5 11:48
7549
7664
  */
7550
7665
  validateReport(formGroup, validateReports, refreshFeedback = true) {
7551
7666
  if (validateReports == null) {
@@ -7576,19 +7691,19 @@ class FormApi_FormApi {
7576
7691
  }
7577
7692
  return validateReports;
7578
7693
  }
7579
- /**
7580
- * @description: 表单全局校验
7581
- * @author ChenRui
7582
- * @date 2021/2/5 14:11
7694
+ /**
7695
+ * @description: 表单全局校验
7696
+ * @author ChenRui
7697
+ * @date 2021/2/5 14:11
7583
7698
  */
7584
7699
  validate(refreshFeedback = true) {
7585
7700
  const validateReports = this.validateReport(undefined, undefined, refreshFeedback);
7586
7701
  return !(validateReports.length > 0);
7587
7702
  }
7588
- /**
7589
- * @description: 刷新校验
7590
- * @author ChenRui
7591
- * @date 2021/6/4 19:32
7703
+ /**
7704
+ * @description: 刷新校验
7705
+ * @author ChenRui
7706
+ * @date 2021/6/4 19:32
7592
7707
  */
7593
7708
  refreshValidate(key) {
7594
7709
  let control = this.getControl(key);
@@ -7601,18 +7716,18 @@ class FormApi_FormApi {
7601
7716
  control["refreshValidate"] = new Date().getTime();
7602
7717
  }
7603
7718
  }
7604
- /**
7605
- * @description: 重置表单校验
7606
- * @author ChenRui
7607
- * @date 2022/4/6 11:51
7719
+ /**
7720
+ * @description: 重置表单校验
7721
+ * @author ChenRui
7722
+ * @date 2022/4/6 11:51
7608
7723
  */
7609
7724
  resetFormValidateState() {
7610
7725
  this.dvForm.formValidateStateResetMark = new Date().getTime();
7611
7726
  }
7612
- /**
7613
- * @description: 设置格式化显示和输出函数
7614
- * @author ChenRui
7615
- * @date 2021/2/4 19:44
7727
+ /**
7728
+ * @description: 设置格式化显示和输出函数
7729
+ * @author ChenRui
7730
+ * @date 2021/2/4 19:44
7616
7731
  */
7617
7732
  setFormatDisplayAndOutput(key, customFormat) {
7618
7733
  if (key) {
@@ -7620,18 +7735,18 @@ class FormApi_FormApi {
7620
7735
  }
7621
7736
  this.refreshAndUpdateData();
7622
7737
  }
7623
- /**
7624
- * @description: 刷新数据
7625
- * @author ChenRui
7626
- * @date 2021/2/4 20:22
7738
+ /**
7739
+ * @description: 刷新数据
7740
+ * @author ChenRui
7741
+ * @date 2021/2/4 20:22
7627
7742
  */
7628
7743
  refreshAndUpdateData() {
7629
7744
  this.dvForm.onRefreshArgumentsHandler(new Date().getTime());
7630
7745
  }
7631
- /**
7632
- * @description: 获取控件dom对象
7633
- * @author ChenRui
7634
- * @date 2021/2/26 17:12
7746
+ /**
7747
+ * @description: 获取控件dom对象
7748
+ * @author ChenRui
7749
+ * @date 2021/2/26 17:12
7635
7750
  */
7636
7751
  getControlEl(key) {
7637
7752
  const control = this.getControl(key);
@@ -7643,10 +7758,10 @@ class FormApi_FormApi {
7643
7758
  }
7644
7759
  return null;
7645
7760
  }
7646
- /**
7647
- * @description: 检查是否包含上传控件
7648
- * @author ChenRui
7649
- * @date 2021/4/23 11:30
7761
+ /**
7762
+ * @description: 检查是否包含上传控件
7763
+ * @author ChenRui
7764
+ * @date 2021/4/23 11:30
7650
7765
  */
7651
7766
  checkHasUploadControl(abstractControl) {
7652
7767
  if (abstractControl instanceof FormGroup_FormGroup) {
@@ -7666,10 +7781,10 @@ class FormApi_FormApi {
7666
7781
  }
7667
7782
  return false;
7668
7783
  }
7669
- /**
7670
- * @description: json格式转表单格式
7671
- * @author ChenRui
7672
- * @date 2020/8/28 15:20
7784
+ /**
7785
+ * @description: json格式转表单格式
7786
+ * @author ChenRui
7787
+ * @date 2020/8/28 15:20
7673
7788
  */
7674
7789
  jsonToFormData(params) {
7675
7790
  const formData = new FormData();
@@ -7687,10 +7802,10 @@ class FormApi_FormApi {
7687
7802
  }
7688
7803
  return formData;
7689
7804
  }
7690
- /**
7691
- * @description: 设置变更历史记录
7692
- * @author ChenRui
7693
- * @date 2021/4/25 15:55
7805
+ /**
7806
+ * @description: 设置变更历史记录
7807
+ * @author ChenRui
7808
+ * @date 2021/4/25 15:55
7694
7809
  */
7695
7810
  setFieldChangeHistory(fieldChangeHistory) {
7696
7811
  fieldChangeHistory = fieldChangeHistory || {};
@@ -7723,10 +7838,10 @@ class FormApi_FormApi {
7723
7838
  }
7724
7839
  }
7725
7840
  }
7726
- /**
7727
- * @description: 隐藏布局
7728
- * @author ChenRui
7729
- * @date 2021/11/16 0:01
7841
+ /**
7842
+ * @description: 隐藏布局
7843
+ * @author ChenRui
7844
+ * @date 2021/11/16 0:01
7730
7845
  */
7731
7846
  hideLayout(layoutName, mark = true) {
7732
7847
  if (layoutName) {
@@ -7738,10 +7853,10 @@ class FormApi_FormApi {
7738
7853
  }
7739
7854
  }
7740
7855
  }
7741
- /**
7742
- * @description: 设置表单值
7743
- * @author ChenRui
7744
- * @date 2021/8/16 9:29
7856
+ /**
7857
+ * @description: 设置表单值
7858
+ * @author ChenRui
7859
+ * @date 2021/8/16 9:29
7745
7860
  */
7746
7861
  setFormDataInner(srcData, isDefault, validate) {
7747
7862
  if (srcData) {
@@ -7757,10 +7872,10 @@ class FormApi_FormApi {
7757
7872
  this.validate();
7758
7873
  }
7759
7874
  }
7760
- /**
7761
- * @description: 设置控件值
7762
- * @author ChenRui
7763
- * @date 2021/4/13 12:50
7875
+ /**
7876
+ * @description: 设置控件值
7877
+ * @author ChenRui
7878
+ * @date 2021/4/13 12:50
7764
7879
  */
7765
7880
  setControlValue(control, key, val, isDefault, validate = true) {
7766
7881
  if (control) {
@@ -7848,10 +7963,10 @@ class FormApi_FormApi {
7848
7963
  }
7849
7964
  }
7850
7965
  }
7851
- /**
7852
- * @description: 设置控件可选项
7853
- * @author ChenRui
7854
- * @date 2021/4/13 15:09
7966
+ /**
7967
+ * @description: 设置控件可选项
7968
+ * @author ChenRui
7969
+ * @date 2021/4/13 15:09
7855
7970
  */
7856
7971
  setControlOptions(control, key, data, defaultVal) {
7857
7972
  if (control && control.controlAttr) {
@@ -7864,10 +7979,10 @@ class FormApi_FormApi {
7864
7979
  this.setValue(key, defaultVal, true);
7865
7980
  }
7866
7981
  }
7867
- /**
7868
- * @description: 设置控件常规属性
7869
- * @author ChenRui
7870
- * @date 2021/4/13 15:11
7982
+ /**
7983
+ * @description: 设置控件常规属性
7984
+ * @author ChenRui
7985
+ * @date 2021/4/13 15:11
7871
7986
  */
7872
7987
  setControlAttribute(control, attribute, data) {
7873
7988
  if (control && attribute) {
@@ -7875,10 +7990,10 @@ class FormApi_FormApi {
7875
7990
  control.controlAttr[attribute] = data;
7876
7991
  }
7877
7992
  }
7878
- /**
7879
- * @description: 设置校验内部函数
7880
- * @author ChenRui
7881
- * @date 2021/7/19 17:51
7993
+ /**
7994
+ * @description: 设置校验内部函数
7995
+ * @author ChenRui
7996
+ * @date 2021/7/19 17:51
7882
7997
  */
7883
7998
  setValidateInner(control, validate, isCover = false) {
7884
7999
  if (validate != null && validate.ruleType) {
@@ -7891,10 +8006,10 @@ class FormApi_FormApi {
7891
8006
  control.addValidate(validate);
7892
8007
  }
7893
8008
  }
7894
- /**
7895
- * @description: 生成数据信息
7896
- * @author ChenRui
7897
- * @date 2021/1/29 10:06
8009
+ /**
8010
+ * @description: 生成数据信息
8011
+ * @author ChenRui
8012
+ * @date 2021/1/29 10:06
7898
8013
  */
7899
8014
  generateData(abstractControl, obj = {}) {
7900
8015
  if (abstractControl instanceof FormGroup_FormGroup) {
@@ -7909,10 +8024,10 @@ class FormApi_FormApi {
7909
8024
  }
7910
8025
  return obj;
7911
8026
  }
7912
- /**
7913
- * @description: 数据解码输出
7914
- * @author ChenRui
7915
- * @date 2021/5/29 23:03
8027
+ /**
8028
+ * @description: 数据解码输出
8029
+ * @author ChenRui
8030
+ * @date 2021/5/29 23:03
7916
8031
  */
7917
8032
  decodeData(formControl, isFinal = true) {
7918
8033
  let data = formControl.value || "";
@@ -7982,10 +8097,10 @@ class FormApi_FormApi {
7982
8097
  }
7983
8098
  return data;
7984
8099
  }
7985
- /**
7986
- * @description: 获取当前日期字符串
7987
- * @author ChenRui
7988
- * @date 2021/2/4 11:43
8100
+ /**
8101
+ * @description: 获取当前日期字符串
8102
+ * @author ChenRui
8103
+ * @date 2021/2/4 11:43
7989
8104
  */
7990
8105
  nowDateStr() {
7991
8106
  const time = new Date();
@@ -7993,10 +8108,10 @@ class FormApi_FormApi {
7993
8108
  const month = ("0" + (time.getMonth() + 1)).slice(-2);
7994
8109
  return time.getFullYear() + "/" + month + "/" + day;
7995
8110
  }
7996
- /**
7997
- * @description: uuid生成器
7998
- * @author ChenRui
7999
- * @date 2021/7/20 11:14
8111
+ /**
8112
+ * @description: uuid生成器
8113
+ * @author ChenRui
8114
+ * @date 2021/7/20 11:14
8000
8115
  */
8001
8116
  getUuid() {
8002
8117
  const s = [];
@@ -8010,11 +8125,11 @@ class FormApi_FormApi {
8010
8125
  const uuid = s.join("");
8011
8126
  return uuid;
8012
8127
  }
8013
- /**
8014
- * @Description: 对比新旧表单值
8015
- * @author lzs
8016
- * @date 2022/9/3
8017
- * @time 21:49
8128
+ /**
8129
+ * @Description: 对比新旧表单值
8130
+ * @author lzs
8131
+ * @date 2022/9/3
8132
+ * @time 21:49
8018
8133
  */
8019
8134
  contrast(objectA, objectB) {
8020
8135
  const object = {};
@@ -8071,11 +8186,11 @@ class FormApi_FormApi {
8071
8186
  object.fieldInfoArr = fieldInfoArr;
8072
8187
  return object;
8073
8188
  }
8074
- /**
8075
- * @Description: 获取表单值更改信息
8076
- * @author lzs
8077
- * @date 2022/10/11
8078
- * @time 09:53
8189
+ /**
8190
+ * @Description: 获取表单值更改信息
8191
+ * @author lzs
8192
+ * @date 2022/10/11
8193
+ * @time 09:53
8079
8194
  */
8080
8195
  getChangedInfo(control, oldValue, newValue) {
8081
8196
  oldValue = oldValue + "";
@@ -8131,11 +8246,11 @@ class FormApi_FormApi {
8131
8246
  }
8132
8247
  return flag;
8133
8248
  }
8134
- /**
8135
- * @Description: 翻译字典项
8136
- * @author lzs
8137
- * @date 2022/9/6
8138
- * @time 11:54
8249
+ /**
8250
+ * @Description: 翻译字典项
8251
+ * @author lzs
8252
+ * @date 2022/9/6
8253
+ * @time 11:54
8139
8254
  */
8140
8255
  translateDictionaries(control, key, value) {
8141
8256
  let str = value;
@@ -8242,10 +8357,10 @@ class FormApi_FormApi {
8242
8357
  }
8243
8358
  return str;
8244
8359
  }
8245
- /**
8246
- * @Description 根据报送类型返回需要隐藏的表单字段
8247
- * @Author JiangTao
8248
- * @Date 2024-01-30 上午 09:33
8360
+ /**
8361
+ * @Description 根据报送类型返回需要隐藏的表单字段
8362
+ * @Author JiangTao
8363
+ * @Date 2024-01-30 上午 09:33
8249
8364
  */
8250
8365
  getFormSubmittedType(form, code) {
8251
8366
  const strArr = code && code.length > 0 ? code : [];
@@ -8297,10 +8412,10 @@ class FormApi_FormApi {
8297
8412
  });
8298
8413
  }
8299
8414
  }
8300
- /**
8301
- * @Description 筛选报送类型字段数据处理
8302
- * @Author JiangTao
8303
- * @Date 2024-01-30 下午 08:50
8415
+ /**
8416
+ * @Description 筛选报送类型字段数据处理
8417
+ * @Author JiangTao
8418
+ * @Date 2024-01-30 下午 08:50
8304
8419
  */
8305
8420
  handleSubmittedData(submittedTypeList, codeArr, submittedData) {
8306
8421
  let submittedType = [];
@@ -8317,10 +8432,10 @@ class FormApi_FormApi {
8317
8432
  }
8318
8433
  }
8319
8434
  }
8320
- /**
8321
- * @Description 获取报送类型枚举(数组)
8322
- * @Author JiangTao
8323
- * @Date 2024-01-30 下午 03:30
8435
+ /**
8436
+ * @Description 获取报送类型枚举(数组)
8437
+ * @Author JiangTao
8438
+ * @Date 2024-01-30 下午 03:30
8324
8439
  */
8325
8440
  getSubmittedType() {
8326
8441
  const list = [];
@@ -8352,10 +8467,12 @@ class FormApi_FormApi {
8352
8467
 
8353
8468
 
8354
8469
 
8355
- /**
8356
- * @description: 动态表单
8357
- * @author ChenRui
8358
- * @date 2020/12/30 11:20
8470
+
8471
+
8472
+ /**
8473
+ * @description: 动态表单
8474
+ * @author ChenRui
8475
+ * @date 2020/12/30 11:20
8359
8476
  */
8360
8477
  let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_property_decorator_["Vue"] {
8361
8478
  constructor(...args) {
@@ -8401,28 +8518,28 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8401
8518
  formValidateStateResetMark: this.formValidateStateResetMark
8402
8519
  });
8403
8520
  }
8404
- /**
8405
- * @description: 刷新自变量监听处理
8406
- * @author ChenRui
8407
- * @date 2021/2/5 10:25
8521
+ /**
8522
+ * @description: 刷新自变量监听处理
8523
+ * @author ChenRui
8524
+ * @date 2021/2/5 10:25
8408
8525
  */
8409
8526
  onRefreshArgumentsHandler(newVal) {
8410
8527
  this.metaRefresh = newVal;
8411
8528
  }
8412
- /**
8413
- * @description: 重置表单校验状态监听
8414
- * @author ChenRui
8415
- * @date 2022/4/6 14:17
8529
+ /**
8530
+ * @description: 重置表单校验状态监听
8531
+ * @author ChenRui
8532
+ * @date 2022/4/6 14:17
8416
8533
  */
8417
8534
  onPropFormValidateStateResetHandler(newVal) {
8418
8535
  if (this._provided) {
8419
8536
  this._provided.provideInjectData.formValidateStateResetMark = this.formValidateStateResetMark;
8420
8537
  }
8421
8538
  }
8422
- /**
8423
- * @description: 值变更处理器
8424
- * @author ChenRui
8425
- * @date 2021/1/8 11:03
8539
+ /**
8540
+ * @description: 值变更处理器
8541
+ * @author ChenRui
8542
+ * @date 2021/1/8 11:03
8426
8543
  */
8427
8544
  onPropHandler(newVal) {
8428
8545
  if (this) {
@@ -8440,10 +8557,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8440
8557
  const formTheme = themes.indexOf(this.formTheme) > -1 ? this.formTheme : win.$loFormTheme;
8441
8558
  return themes.indexOf(formTheme) > -1 ? formTheme : themes[0];
8442
8559
  }
8443
- /**
8444
- * @Description 表单数据反显回调(data:Object { key: 元素码值, value: 元素值 })
8445
- * @Author JiangTao
8446
- * @Date 2023-10-07 下午 05:16
8560
+ /**
8561
+ * @Description 表单数据反显回调(data:Object { key: 元素码值, value: 元素值 })
8562
+ * @Author JiangTao
8563
+ * @Date 2023-10-07 下午 05:16
8447
8564
  */
8448
8565
  linkClick(data) {
8449
8566
  this.$emit("linkClick", data);
@@ -8467,10 +8584,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8467
8584
  this.formatDesForm();
8468
8585
  }
8469
8586
  }
8470
- /**
8471
- * @description: 初始化表单
8472
- * @author ChenRui
8473
- * @date 2020/11/23 11:19
8587
+ /**
8588
+ * @description: 初始化表单
8589
+ * @author ChenRui
8590
+ * @date 2020/11/23 11:19
8474
8591
  */
8475
8592
  initDesForm() {
8476
8593
  if (this.formId != null && this.formId !== "") {
@@ -8478,19 +8595,19 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8478
8595
  this.formatDesForm();
8479
8596
  }
8480
8597
  }
8481
- /**
8482
- * @description: 初始化字典
8483
- * @author ChenRui
8484
- * @date 2021/3/12 10:12
8598
+ /**
8599
+ * @description: 初始化字典
8600
+ * @author ChenRui
8601
+ * @date 2021/3/12 10:12
8485
8602
  */
8486
8603
  initDict() {
8487
8604
  this.sysDictDetailOptions = formToolsService.sysDictDetailOptions;
8488
8605
  this.sysDictTreeDetailOptions = formToolsService.sysDictTreeDetailOptions;
8489
8606
  }
8490
- /**
8491
- * @description: 格式化表单
8492
- * @author ChenRui
8493
- * @date 2020/11/30 16:05
8607
+ /**
8608
+ * @description: 格式化表单
8609
+ * @author ChenRui
8610
+ * @date 2020/11/30 16:05
8494
8611
  */
8495
8612
  formatDesForm(isReset) {
8496
8613
  if (this.desForm != null && this.desForm.controls != null && this.desForm.controls.length > 0) {
@@ -8505,11 +8622,11 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8505
8622
  this.$emit("complete");
8506
8623
  }
8507
8624
  }
8508
- /**
8509
- * @Description: 临时-该方法被取消
8510
- * @author LiuBo
8511
- * @date 2022/11/6
8512
- * @time 17:11
8625
+ /**
8626
+ * @Description: 临时-该方法被取消
8627
+ * @author LiuBo
8628
+ * @date 2022/11/6
8629
+ * @time 17:11
8513
8630
  */
8514
8631
  fixFormLayout() {
8515
8632
  this.$nextTick(() => {
@@ -8539,10 +8656,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8539
8656
  }
8540
8657
  });
8541
8658
  }
8542
- /**
8543
- * @description: 生成表单对象
8544
- * @author ChenRui
8545
- * @date 2021/1/7 20:48
8659
+ /**
8660
+ * @description: 生成表单对象
8661
+ * @author ChenRui
8662
+ * @date 2021/1/7 20:48
8546
8663
  */
8547
8664
  generateFormApi(isReset) {
8548
8665
  if (isReset) {
@@ -8561,10 +8678,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8561
8678
  }
8562
8679
  }
8563
8680
  }
8564
- /**
8565
- * @description: 解析对象
8566
- * @author ChenRui
8567
- * @date 2020/11/25 16:25
8681
+ /**
8682
+ * @description: 解析对象
8683
+ * @author ChenRui
8684
+ * @date 2020/11/25 16:25
8568
8685
  */
8569
8686
  analysisBindingObjects() {
8570
8687
  const models = this.objectExtraction(this.desForm.controls);
@@ -8578,10 +8695,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8578
8695
  }
8579
8696
  return obj;
8580
8697
  }
8581
- /**
8582
- * @description: 对象抽取
8583
- * @author ChenRui
8584
- * @date 2020/11/25 17:28
8698
+ /**
8699
+ * @description: 对象抽取
8700
+ * @author ChenRui
8701
+ * @date 2020/11/25 17:28
8585
8702
  */
8586
8703
  objectExtraction(controls, models = []) {
8587
8704
  controls.forEach(item => {
@@ -8624,10 +8741,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8624
8741
  });
8625
8742
  return models;
8626
8743
  }
8627
- /**
8628
- * @description: 查询字典
8629
- * @author ChenRui
8630
- * @date 2021/3/11 17:19
8744
+ /**
8745
+ * @description: 查询字典
8746
+ * @author ChenRui
8747
+ * @date 2021/3/11 17:19
8631
8748
  */
8632
8749
  findDictOptions(key, nzTreeNodeOptions) {
8633
8750
  if (nzTreeNodeOptions != null && nzTreeNodeOptions.length > 0) {
@@ -8647,10 +8764,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8647
8764
  }
8648
8765
  return [];
8649
8766
  }
8650
- /**
8651
- * @description: 安全值处理
8652
- * @author ChenRui
8653
- * @date 2021/1/29 17:01
8767
+ /**
8768
+ * @description: 安全值处理
8769
+ * @author ChenRui
8770
+ * @date 2021/1/29 17:01
8654
8771
  */
8655
8772
  securityValue(control, defaultValue) {
8656
8773
  if (control.code === constants_enum["g" /* FormFieldType */].DatePicker.code || control.code === constants_enum["g" /* FormFieldType */].TimePicker.code) {
@@ -8678,10 +8795,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8678
8795
  return defaultValue;
8679
8796
  }
8680
8797
  }
8681
- /**
8682
- * @description: 树形递归
8683
- * @author ChenRui
8684
- * @date 2021/1/11 0:23
8798
+ /**
8799
+ * @description: 树形递归
8800
+ * @author ChenRui
8801
+ * @date 2021/1/11 0:23
8685
8802
  */
8686
8803
  treeSelectRecursion(value, items) {
8687
8804
  for (let i = 0; i < items.length; i++) {
@@ -8696,10 +8813,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8696
8813
  }
8697
8814
  return "";
8698
8815
  }
8699
- /**
8700
- * @description: 对象合并
8701
- * @author ChenRui
8702
- * @date 2020/11/25 17:49
8816
+ /**
8817
+ * @description: 对象合并
8818
+ * @author ChenRui
8819
+ * @date 2020/11/25 17:49
8703
8820
  */
8704
8821
  objectMerge(modelX, modelY) {
8705
8822
  let key;
@@ -8712,10 +8829,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8712
8829
  }
8713
8830
  return modelX;
8714
8831
  }
8715
- /**
8716
- * @description: 生成表单对象
8717
- * @author ChenRui
8718
- * @date 2020/11/26 11:02
8832
+ /**
8833
+ * @description: 生成表单对象
8834
+ * @author ChenRui
8835
+ * @date 2020/11/26 11:02
8719
8836
  */
8720
8837
  generateFormGroup(model) {
8721
8838
  const group = new FormGroup_FormGroup();
@@ -8734,10 +8851,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8734
8851
  }
8735
8852
  return group;
8736
8853
  }
8737
- /**
8738
- * @description: 创建表单对象
8739
- * @author ChenRui
8740
- * @date 2020/11/23 11:19
8854
+ /**
8855
+ * @description: 创建表单对象
8856
+ * @author ChenRui
8857
+ * @date 2020/11/23 11:19
8741
8858
  */
8742
8859
  initControlForm(controls, formGroup) {
8743
8860
  controls.forEach(control => {
@@ -8759,10 +8876,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8759
8876
  }
8760
8877
  });
8761
8878
  }
8762
- /**
8763
- * @description: 按照节点查询控件
8764
- * @author ChenRui
8765
- * @date 2020/11/26 15:45
8879
+ /**
8880
+ * @description: 按照节点查询控件
8881
+ * @author ChenRui
8882
+ * @date 2020/11/26 15:45
8766
8883
  */
8767
8884
  findFormControlByProperty(propertys, formGroup) {
8768
8885
  let currentFormGroup = formGroup;
@@ -8775,58 +8892,58 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8775
8892
  }
8776
8893
  }
8777
8894
  }
8778
- /**
8779
- * @description: 控件值变化事件处理
8780
- * @author ChenRui
8781
- * @date 2020/12/2 14:35
8895
+ /**
8896
+ * @description: 控件值变化事件处理
8897
+ * @author ChenRui
8898
+ * @date 2020/12/2 14:35
8782
8899
  */
8783
8900
  onChange(event) {
8784
8901
  this.$emit("change", event);
8785
8902
  }
8786
- /**
8787
- * @description: 下拉选项新增
8788
- * @author ChenRui
8789
- * @date 2021/1/14 20:05
8903
+ /**
8904
+ * @description: 下拉选项新增
8905
+ * @author ChenRui
8906
+ * @date 2021/1/14 20:05
8790
8907
  */
8791
8908
  selectAddItem(event) {
8792
8909
  this.$emit("add-item", event);
8793
8910
  }
8794
- /**
8795
- * @description: 单击事件
8796
- * @author ChenRui
8797
- * @date 2021/3/4 11:39
8911
+ /**
8912
+ * @description: 单击事件
8913
+ * @author ChenRui
8914
+ * @date 2021/3/4 11:39
8798
8915
  */
8799
8916
  onClick(event) {
8800
8917
  this.$emit("click", event);
8801
8918
  }
8802
- /**
8803
- * @description: 内置前置标签事件
8804
- * @author ChenRui
8805
- * @date 2021/4/23 9:42
8919
+ /**
8920
+ * @description: 内置前置标签事件
8921
+ * @author ChenRui
8922
+ * @date 2021/4/23 9:42
8806
8923
  */
8807
8924
  onAddonBeforeHandler(event) {
8808
8925
  this.$emit("addon-before", event);
8809
8926
  }
8810
- /**
8811
- * @description: 内置后置标签事件
8812
- * @author ChenRui
8813
- * @date 2021/4/23 9:43
8927
+ /**
8928
+ * @description: 内置后置标签事件
8929
+ * @author ChenRui
8930
+ * @date 2021/4/23 9:43
8814
8931
  */
8815
8932
  onAddonAfterHandler(event) {
8816
8933
  this.$emit("addon-after", event);
8817
8934
  }
8818
- /**
8819
- * @description: 获取焦点
8820
- * @author ChenRui
8821
- * @date 2021/3/4 11:46
8935
+ /**
8936
+ * @description: 获取焦点
8937
+ * @author ChenRui
8938
+ * @date 2021/3/4 11:46
8822
8939
  */
8823
8940
  onFocus(event) {
8824
8941
  this.$emit("focus", event);
8825
8942
  }
8826
- /**
8827
- * @description: 失焦事件
8828
- * @author ChenRui
8829
- * @date 2021/3/4 11:38
8943
+ /**
8944
+ * @description: 失焦事件
8945
+ * @author ChenRui
8946
+ * @date 2021/3/4 11:38
8830
8947
  */
8831
8948
  onBlur(event) {
8832
8949
  this.$emit("blur", event);
@@ -8940,6 +9057,8 @@ var zh_cn_ = __webpack_require__("2a2b");
8940
9057
 
8941
9058
 
8942
9059
 
9060
+
9061
+
8943
9062
  const components = {
8944
9063
  DyForm: DvForm
8945
9064
  };
@@ -8954,6 +9073,7 @@ const install = function (app, options) {
8954
9073
  const url = options && options.url ? options.url : "./resources/json/" + DEFAULT_FORM_FILE_NAME;
8955
9074
  app.config.globalProperties.$qlForm = {
8956
9075
  url: url,
9076
+ contextPath: options.contextPath || "/ms-loong",
8957
9077
  dictUrl: options && options.dictUrl ? options.dictUrl : "",
8958
9078
  dictRestLoadMode: options && options.dictRestLoadMode ? options.dictRestLoadMode : "GET",
8959
9079
  dictRestLoadBody: options && options.dictRestLoadBody ? options.dictRestLoadBody : undefined,