@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
@@ -112,6 +112,13 @@ module.exports = require("vue-property-decorator");
112
112
  /* unused harmony reexport * */
113
113
 
114
114
 
115
+ /***/ }),
116
+
117
+ /***/ "0f65":
118
+ /***/ (function(module, exports) {
119
+
120
+ module.exports = require("core-js/modules/esnext.json.parse.js");
121
+
115
122
  /***/ }),
116
123
 
117
124
  /***/ "0f78":
@@ -197,6 +204,13 @@ module.exports = require("ant-design-vue");
197
204
 
198
205
  /***/ }),
199
206
 
207
+ /***/ "5978":
208
+ /***/ (function(module, exports) {
209
+
210
+ module.exports = require("core-js/modules/es.iterator.find.js");
211
+
212
+ /***/ }),
213
+
200
214
  /***/ "5cf9":
201
215
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
202
216
 
@@ -278,6 +292,13 @@ const CacheType = {
278
292
  };
279
293
 
280
294
 
295
+ /***/ }),
296
+
297
+ /***/ "9c0f":
298
+ /***/ (function(module, exports) {
299
+
300
+ module.exports = require("core-js/modules/es.iterator.constructor.js");
301
+
281
302
  /***/ }),
282
303
 
283
304
  /***/ "9ce7":
@@ -305,6 +326,13 @@ const FormFieldClass = {
305
326
  };
306
327
 
307
328
 
329
+ /***/ }),
330
+
331
+ /***/ "a810":
332
+ /***/ (function(module, exports) {
333
+
334
+ module.exports = require("core-js/modules/es.iterator.for-each.js");
335
+
308
336
  /***/ }),
309
337
 
310
338
  /***/ "a86c":
@@ -316,6 +344,13 @@ const FormFieldClass = {
316
344
  /* unused harmony reexport * */
317
345
 
318
346
 
347
+ /***/ }),
348
+
349
+ /***/ "a9ee":
350
+ /***/ (function(module, exports) {
351
+
352
+ module.exports = require("core-js/modules/es.json.stringify.js");
353
+
319
354
  /***/ }),
320
355
 
321
356
  /***/ "b20f":
@@ -325,6 +360,20 @@ const FormFieldClass = {
325
360
 
326
361
  /***/ }),
327
362
 
363
+ /***/ "b6bf":
364
+ /***/ (function(module, exports) {
365
+
366
+ module.exports = require("core-js/modules/es.iterator.map.js");
367
+
368
+ /***/ }),
369
+
370
+ /***/ "b953":
371
+ /***/ (function(module, exports) {
372
+
373
+ module.exports = require("core-js/modules/es.iterator.filter.js");
374
+
375
+ /***/ }),
376
+
328
377
  /***/ "bd2d":
329
378
  /***/ (function(module, exports) {
330
379
 
@@ -1016,6 +1065,13 @@ var zoom_type = __webpack_require__("fbf2");
1016
1065
 
1017
1066
 
1018
1067
 
1068
+ /***/ }),
1069
+
1070
+ /***/ "d340":
1071
+ /***/ (function(module, exports) {
1072
+
1073
+ module.exports = require("core-js/modules/es.iterator.some.js");
1074
+
1019
1075
  /***/ }),
1020
1076
 
1021
1077
  /***/ "d7bc":
@@ -1050,17 +1106,23 @@ module.exports = require("core-js/modules/es.error.cause.js");
1050
1106
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return validateGeneratorService; });
1051
1107
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2439");
1052
1108
  /* 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__);
1053
- /* harmony import */ var _constants_enum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("d29d");
1054
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("c32d");
1055
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
1109
+ /* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9c0f");
1110
+ /* 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__);
1111
+ /* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a810");
1112
+ /* 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__);
1113
+ /* harmony import */ var _constants_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("d29d");
1114
+ /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("c32d");
1115
+ /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__);
1116
+
1117
+
1056
1118
 
1057
1119
 
1058
1120
 
1059
1121
  class ValidateGeneratorService {
1060
- /**
1061
- * @description: 填充校验规则
1062
- * @author ChenRui
1063
- * @date 2021/1/27 15:07
1122
+ /**
1123
+ * @description: 填充校验规则
1124
+ * @author ChenRui
1125
+ * @date 2021/1/27 15:07
1064
1126
  */
1065
1127
  fillCheckRule(formControl, controlAttr) {
1066
1128
  if (controlAttr.verificationRules && controlAttr.verificationRules.length > 0) {
@@ -1074,84 +1136,84 @@ class ValidateGeneratorService {
1074
1136
  formControl.addValidate(validates);
1075
1137
  }
1076
1138
  }
1077
- /**
1078
- * @description: 获取校验规则
1079
- * @author ChenRui
1080
- * @date 2021/7/19 17:55
1139
+ /**
1140
+ * @description: 获取校验规则
1141
+ * @author ChenRui
1142
+ * @date 2021/7/19 17:55
1081
1143
  */
1082
1144
  getBuiltInValidationRules(item, controlAttr) {
1083
1145
  let validate;
1084
1146
  switch (item.ruleType) {
1085
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].SameValue.code:
1147
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].SameValue.code:
1086
1148
  validate = this.genSameValue(item);
1087
1149
  break;
1088
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].MailBox.code:
1150
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].MailBox.code:
1089
1151
  validate = this.genMailBox(item);
1090
1152
  break;
1091
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].RegEx.code:
1153
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].RegEx.code:
1092
1154
  validate = this.genRegEx(item);
1093
1155
  break;
1094
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].MinTextLength.code:
1156
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].MinTextLength.code:
1095
1157
  validate = this.genMinTextLength(item);
1096
1158
  break;
1097
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].MaxTextLength.code:
1159
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].MaxTextLength.code:
1098
1160
  validate = this.genMaxTextLength(item);
1099
1161
  break;
1100
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].MinValue.code:
1162
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].MinValue.code:
1101
1163
  validate = this.genMinValue(item);
1102
1164
  break;
1103
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].MaxValue.code:
1165
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].MaxValue.code:
1104
1166
  validate = this.genMaxValue(item);
1105
1167
  break;
1106
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].SpecifiedValue.code:
1168
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].SpecifiedValue.code:
1107
1169
  validate = this.genSpecifiedValue(item);
1108
1170
  break;
1109
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].SpecifiedDigitsNumber.code:
1171
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].SpecifiedDigitsNumber.code:
1110
1172
  validate = this.genSpecifiedDigitsNumber(item);
1111
1173
  break;
1112
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].DateNotEarlierThan.code:
1174
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].DateNotEarlierThan.code:
1113
1175
  validate = this.genDateNotEarlierThan(item);
1114
1176
  break;
1115
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].DateNoLaterThan.code:
1177
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].DateNoLaterThan.code:
1116
1178
  validate = this.genDateNoLaterThan(item);
1117
1179
  break;
1118
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].SpecifiedRangeNumber.code:
1180
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].SpecifiedRangeNumber.code:
1119
1181
  validate = this.genSpecifiedRangeNumber(item);
1120
1182
  break;
1121
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].PhoneNumber.code:
1183
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].PhoneNumber.code:
1122
1184
  validate = this.genPhoneNumber(item);
1123
1185
  break;
1124
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].Required.code:
1186
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].Required.code:
1125
1187
  validate = this.genRequired(item, controlAttr.controlType);
1126
1188
  break;
1127
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].LineUnique.code:
1189
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].LineUnique.code:
1128
1190
  validate = this.genLineUnique(item);
1129
1191
  break;
1130
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].LetterSpace.code:
1192
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].LetterSpace.code:
1131
1193
  validate = this.genLetterSpace(item);
1132
1194
  break;
1133
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].AlphanumericUnderline.code:
1195
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].AlphanumericUnderline.code:
1134
1196
  validate = this.genAlphanumericUnderline(item);
1135
1197
  break;
1136
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].Alphanumeric.code:
1198
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].Alphanumeric.code:
1137
1199
  validate = this.genAlphanumeric(item);
1138
1200
  break;
1139
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].JsMethodVerification.code:
1201
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].JsMethodVerification.code:
1140
1202
  validate = this.genJsMethodVerification(item);
1141
1203
  break;
1142
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].BackEndVerification.code:
1204
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].BackEndVerification.code:
1143
1205
  validate = this.genBackEndVerification(item);
1144
1206
  break;
1145
- case _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateRules */ "p"].LandlineNumber.code:
1207
+ case _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateRules */ "p"].LandlineNumber.code:
1146
1208
  validate = this.genLandlineNumber(item);
1147
1209
  break;
1148
1210
  }
1149
1211
  return validate;
1150
1212
  }
1151
- /**
1152
- * @description: 相同的值
1153
- * @author ChenRui
1154
- * @date 2021/1/27 15:12
1213
+ /**
1214
+ * @description: 相同的值
1215
+ * @author ChenRui
1216
+ * @date 2021/1/27 15:12
1155
1217
  */
1156
1218
  genSameValue(item) {
1157
1219
  const validate = {
@@ -1160,22 +1222,22 @@ class ValidateGeneratorService {
1160
1222
  if (val != null && val !== "") {
1161
1223
  if (item.ruleContent && val != item.ruleContent) {
1162
1224
  return {
1163
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1225
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1164
1226
  errorMsg: `与预期值(${item.ruleContent})不符`
1165
1227
  };
1166
1228
  }
1167
1229
  }
1168
1230
  return {
1169
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1231
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1170
1232
  };
1171
1233
  }
1172
1234
  };
1173
1235
  return validate;
1174
1236
  }
1175
- /**
1176
- * @description: 电子邮箱
1177
- * @author ChenRui
1178
- * @date 2021/1/27 15:15
1237
+ /**
1238
+ * @description: 电子邮箱
1239
+ * @author ChenRui
1240
+ * @date 2021/1/27 15:15
1179
1241
  */
1180
1242
  genMailBox(item) {
1181
1243
  const validate = {
@@ -1185,22 +1247,22 @@ class ValidateGeneratorService {
1185
1247
  const emreg = /^\w{3,}(\.\w+)*@[A-z0-9]+(\.[A-z]{2,5}){1,2}$/;
1186
1248
  if (!emreg.test(val)) {
1187
1249
  return {
1188
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1250
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1189
1251
  errorMsg: "电子邮件格式不正确"
1190
1252
  };
1191
1253
  }
1192
1254
  }
1193
1255
  return {
1194
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1256
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1195
1257
  };
1196
1258
  }
1197
1259
  };
1198
1260
  return validate;
1199
1261
  }
1200
- /**
1201
- * @description: 正则匹配
1202
- * @author ChenRui
1203
- * @date 2021/1/27 15:17
1262
+ /**
1263
+ * @description: 正则匹配
1264
+ * @author ChenRui
1265
+ * @date 2021/1/27 15:17
1204
1266
  */
1205
1267
  genRegEx(item) {
1206
1268
  const validate = {
@@ -1209,22 +1271,22 @@ class ValidateGeneratorService {
1209
1271
  if (val != null && val !== "") {
1210
1272
  if (item.ruleContent && !eval(item.ruleContent).test(val)) {
1211
1273
  return {
1212
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1274
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1213
1275
  errorMsg: item.describe ? item.describe : `'不满足正则校验'${item.ruleContent}`
1214
1276
  };
1215
1277
  }
1216
1278
  }
1217
1279
  return {
1218
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1280
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1219
1281
  };
1220
1282
  }
1221
1283
  };
1222
1284
  return validate;
1223
1285
  }
1224
- /**
1225
- * @description: 最小文本长度
1226
- * @author ChenRui
1227
- * @date 2021/1/27 15:18
1286
+ /**
1287
+ * @description: 最小文本长度
1288
+ * @author ChenRui
1289
+ * @date 2021/1/27 15:18
1228
1290
  */
1229
1291
  genMinTextLength(item) {
1230
1292
  const validate = {
@@ -1233,22 +1295,22 @@ class ValidateGeneratorService {
1233
1295
  if (val != null && val !== "") {
1234
1296
  if (item.ruleContent && val && String(val).length < Number(item.ruleContent)) {
1235
1297
  return {
1236
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1298
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1237
1299
  errorMsg: `内容不少于${item.ruleContent}个字`
1238
1300
  };
1239
1301
  }
1240
1302
  }
1241
1303
  return {
1242
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1304
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1243
1305
  };
1244
1306
  }
1245
1307
  };
1246
1308
  return validate;
1247
1309
  }
1248
- /**
1249
- * @description: 最大文本长度
1250
- * @author ChenRui
1251
- * @date 2021/1/27 15:21
1310
+ /**
1311
+ * @description: 最大文本长度
1312
+ * @author ChenRui
1313
+ * @date 2021/1/27 15:21
1252
1314
  */
1253
1315
  genMaxTextLength(item) {
1254
1316
  const validate = {
@@ -1257,22 +1319,22 @@ class ValidateGeneratorService {
1257
1319
  if (val != null && val !== "") {
1258
1320
  if (item.ruleContent && val && String(val).length > Number(item.ruleContent)) {
1259
1321
  return {
1260
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1322
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1261
1323
  errorMsg: `内容不超过${item.ruleContent}个字`
1262
1324
  };
1263
1325
  }
1264
1326
  }
1265
1327
  return {
1266
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1328
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1267
1329
  };
1268
1330
  }
1269
1331
  };
1270
1332
  return validate;
1271
1333
  }
1272
- /**
1273
- * @description: 最小值
1274
- * @author ChenRui
1275
- * @date 2021/1/27 15:24
1334
+ /**
1335
+ * @description: 最小值
1336
+ * @author ChenRui
1337
+ * @date 2021/1/27 15:24
1276
1338
  */
1277
1339
  genMinValue(item) {
1278
1340
  const validate = {
@@ -1281,22 +1343,22 @@ class ValidateGeneratorService {
1281
1343
  if (val != undefined && val !== "") {
1282
1344
  if (item.ruleContent != null && val != null && val !== "" && Number(val) < Number(item.ruleContent)) {
1283
1345
  return {
1284
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1346
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1285
1347
  errorMsg: `数值不能小于${item.ruleContent}`
1286
1348
  };
1287
1349
  }
1288
1350
  }
1289
1351
  return {
1290
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1352
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1291
1353
  };
1292
1354
  }
1293
1355
  };
1294
1356
  return validate;
1295
1357
  }
1296
- /**
1297
- * @description: 最大值
1298
- * @author ChenRui
1299
- * @date 2021/1/27 15:25
1358
+ /**
1359
+ * @description: 最大值
1360
+ * @author ChenRui
1361
+ * @date 2021/1/27 15:25
1300
1362
  */
1301
1363
  genMaxValue(item) {
1302
1364
  const validate = {
@@ -1305,22 +1367,22 @@ class ValidateGeneratorService {
1305
1367
  if (val != undefined && val !== "") {
1306
1368
  if (item.ruleContent != null && val != null && val !== "" && Number(val) > Number(item.ruleContent)) {
1307
1369
  return {
1308
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1370
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1309
1371
  errorMsg: `数值不能大于${item.ruleContent}`
1310
1372
  };
1311
1373
  }
1312
1374
  }
1313
1375
  return {
1314
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1376
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1315
1377
  };
1316
1378
  }
1317
1379
  };
1318
1380
  return validate;
1319
1381
  }
1320
- /**
1321
- * @description: 指定的值
1322
- * @author ChenRui
1323
- * @date 2021/1/27 15:27
1382
+ /**
1383
+ * @description: 指定的值
1384
+ * @author ChenRui
1385
+ * @date 2021/1/27 15:27
1324
1386
  */
1325
1387
  genSpecifiedValue(item) {
1326
1388
  const validate = {
@@ -1329,22 +1391,22 @@ class ValidateGeneratorService {
1329
1391
  if (val != null && val !== "") {
1330
1392
  if (item.ruleContent && val != item.ruleContent) {
1331
1393
  return {
1332
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1394
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1333
1395
  errorMsg: `与预期值(${item.ruleContent})不符`
1334
1396
  };
1335
1397
  }
1336
1398
  }
1337
1399
  return {
1338
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1400
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1339
1401
  };
1340
1402
  }
1341
1403
  };
1342
1404
  return validate;
1343
1405
  }
1344
- /**
1345
- * @description: 指定位数数字
1346
- * @author ChenRui
1347
- * @date 2021/1/27 15:31
1406
+ /**
1407
+ * @description: 指定位数数字
1408
+ * @author ChenRui
1409
+ * @date 2021/1/27 15:31
1348
1410
  */
1349
1411
  genSpecifiedDigitsNumber(item) {
1350
1412
  const validate = {
@@ -1358,23 +1420,23 @@ class ValidateGeneratorService {
1358
1420
  }
1359
1421
  if (countDecimals != Number(item.ruleContent)) {
1360
1422
  return {
1361
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1423
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1362
1424
  errorMsg: item.ruleContent === "0" || item.ruleContent === 0 ? `请输入整数` : `请保留${item.ruleContent}位小数`
1363
1425
  };
1364
1426
  }
1365
1427
  }
1366
1428
  }
1367
1429
  return {
1368
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1430
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1369
1431
  };
1370
1432
  }
1371
1433
  };
1372
1434
  return validate;
1373
1435
  }
1374
- /**
1375
- * @description: 自动补位
1376
- * @author ChenRui
1377
- * @date 2021/1/27 15:59
1436
+ /**
1437
+ * @description: 自动补位
1438
+ * @author ChenRui
1439
+ * @date 2021/1/27 15:59
1378
1440
  */
1379
1441
  roundNumber(number, decimals) {
1380
1442
  let newString; // The new rounded number
@@ -1421,10 +1483,10 @@ class ValidateGeneratorService {
1421
1483
  for (let i = 0; i < decimals - decs; i++) newString += "0";
1422
1484
  return newString;
1423
1485
  }
1424
- /**
1425
- * @description: 日期不早于
1426
- * @author ChenRui
1427
- * @date 2021/1/27 16:06
1486
+ /**
1487
+ * @description: 日期不早于
1488
+ * @author ChenRui
1489
+ * @date 2021/1/27 16:06
1428
1490
  */
1429
1491
  genDateNotEarlierThan(item) {
1430
1492
  const validate = {
@@ -1433,31 +1495,31 @@ class ValidateGeneratorService {
1433
1495
  if (val != null && val !== "") {
1434
1496
  if (item.ruleContent && val) {
1435
1497
  try {
1436
- if (val.toDate() > moment__WEBPACK_IMPORTED_MODULE_2___default()(item.ruleContent).toDate()) {
1498
+ if (val.toDate() > moment__WEBPACK_IMPORTED_MODULE_4___default()(item.ruleContent).toDate()) {
1437
1499
  return {
1438
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1500
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1439
1501
  errorMsg: `日期不早于${item.ruleContent}`
1440
1502
  };
1441
1503
  }
1442
1504
  } catch (e) {
1443
1505
  return {
1444
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1506
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1445
1507
  errorMsg: `最大值日期(${item.ruleContent})格式有误!`
1446
1508
  };
1447
1509
  }
1448
1510
  }
1449
1511
  }
1450
1512
  return {
1451
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1513
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1452
1514
  };
1453
1515
  }
1454
1516
  };
1455
1517
  return validate;
1456
1518
  }
1457
- /**
1458
- * @description: 日期不晚于
1459
- * @author ChenRui
1460
- * @date 2021/1/27 16:08
1519
+ /**
1520
+ * @description: 日期不晚于
1521
+ * @author ChenRui
1522
+ * @date 2021/1/27 16:08
1461
1523
  */
1462
1524
  genDateNoLaterThan(item) {
1463
1525
  const validate = {
@@ -1466,31 +1528,31 @@ class ValidateGeneratorService {
1466
1528
  if (val != null && val !== "") {
1467
1529
  if (item.ruleContent && val) {
1468
1530
  try {
1469
- if (val.toDate() < moment__WEBPACK_IMPORTED_MODULE_2___default()(item.ruleContent).toDate()) {
1531
+ if (val.toDate() < moment__WEBPACK_IMPORTED_MODULE_4___default()(item.ruleContent).toDate()) {
1470
1532
  return {
1471
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1533
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1472
1534
  errorMsg: `日期不晚于${item.ruleContent}`
1473
1535
  };
1474
1536
  }
1475
1537
  } catch (e) {
1476
1538
  return {
1477
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1539
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1478
1540
  errorMsg: `最小值日期(${item.ruleContent})格式有误!`
1479
1541
  };
1480
1542
  }
1481
1543
  }
1482
1544
  }
1483
1545
  return {
1484
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1546
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1485
1547
  };
1486
1548
  }
1487
1549
  };
1488
1550
  return validate;
1489
1551
  }
1490
- /**
1491
- * @description: 指定范围的数字
1492
- * @author ChenRui
1493
- * @date 2021/1/27 16:35
1552
+ /**
1553
+ * @description: 指定范围的数字
1554
+ * @author ChenRui
1555
+ * @date 2021/1/27 16:35
1494
1556
  */
1495
1557
  genSpecifiedRangeNumber(item) {
1496
1558
  const validate = {
@@ -1502,7 +1564,7 @@ class ValidateGeneratorService {
1502
1564
  if (arr && arr.length > 1) {
1503
1565
  if (val < Number(arr[0]) || val > Number(arr[1])) {
1504
1566
  return {
1505
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1567
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1506
1568
  errorMsg: `数值大小应在${arr[0]}~${arr[1]}之间`
1507
1569
  };
1508
1570
  }
@@ -1510,16 +1572,16 @@ class ValidateGeneratorService {
1510
1572
  }
1511
1573
  }
1512
1574
  return {
1513
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1575
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1514
1576
  };
1515
1577
  }
1516
1578
  };
1517
1579
  return validate;
1518
1580
  }
1519
- /**
1520
- * @description: 手机号
1521
- * @author ChenRui
1522
- * @date 2021/1/27 16:55
1581
+ /**
1582
+ * @description: 手机号
1583
+ * @author ChenRui
1584
+ * @date 2021/1/27 16:55
1523
1585
  */
1524
1586
  genPhoneNumber(item) {
1525
1587
  const reg = /^0?1[3|4|5|6|7|8|9][0-9]\d{8}$/;
@@ -1529,22 +1591,22 @@ class ValidateGeneratorService {
1529
1591
  if (val != null && val !== "") {
1530
1592
  if (val && !reg.test(val)) {
1531
1593
  return {
1532
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1594
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1533
1595
  errorMsg: "手机号不合法"
1534
1596
  };
1535
1597
  }
1536
1598
  }
1537
1599
  return {
1538
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1600
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1539
1601
  };
1540
1602
  }
1541
1603
  };
1542
1604
  return validate;
1543
1605
  }
1544
- /**
1545
- * @description: 必填
1546
- * @author ChenRui
1547
- * @date 2021/1/27 15:28
1606
+ /**
1607
+ * @description: 必填
1608
+ * @author ChenRui
1609
+ * @date 2021/1/27 15:28
1548
1610
  */
1549
1611
  genRequired(item, controlType) {
1550
1612
  const validate = {
@@ -1552,43 +1614,43 @@ class ValidateGeneratorService {
1552
1614
  validateFunc: val => {
1553
1615
  if (val == null || typeof val == "string" && val.trim() === "" || Array.isArray(val) && val.length === 0) {
1554
1616
  let msg = "为必输项";
1555
- 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) {
1617
+ 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) {
1556
1618
  msg += ",请选择";
1557
1619
  } else {
1558
1620
  msg += ",请输入";
1559
1621
  }
1560
1622
  return {
1561
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1623
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1562
1624
  errorMsg: msg
1563
1625
  };
1564
1626
  }
1565
1627
  return {
1566
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1628
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1567
1629
  };
1568
1630
  }
1569
1631
  };
1570
1632
  return validate;
1571
1633
  }
1572
- /**
1573
- * @description: 唯一行
1574
- * @author ChenRui
1575
- * @date 2021/1/27 17:16
1634
+ /**
1635
+ * @description: 唯一行
1636
+ * @author ChenRui
1637
+ * @date 2021/1/27 17:16
1576
1638
  */
1577
1639
  genLineUnique(item) {
1578
1640
  const validate = {
1579
1641
  name: item.ruleType,
1580
1642
  validateFunc: () => {
1581
1643
  return {
1582
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1644
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1583
1645
  };
1584
1646
  }
1585
1647
  };
1586
1648
  return validate;
1587
1649
  }
1588
- /**
1589
- * @description: 仅包含字母空格
1590
- * @author ChenRui
1591
- * @date 2021/1/27 17:21
1650
+ /**
1651
+ * @description: 仅包含字母空格
1652
+ * @author ChenRui
1653
+ * @date 2021/1/27 17:21
1592
1654
  */
1593
1655
  genLetterSpace(item) {
1594
1656
  const validate = {
@@ -1598,22 +1660,22 @@ class ValidateGeneratorService {
1598
1660
  const reg = /^(?!_)([A-Za-z ]+)$/;
1599
1661
  if (val && !reg.test(val)) {
1600
1662
  return {
1601
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1663
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1602
1664
  errorMsg: "仅包含字母空格"
1603
1665
  };
1604
1666
  }
1605
1667
  }
1606
1668
  return {
1607
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1669
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1608
1670
  };
1609
1671
  }
1610
1672
  };
1611
1673
  return validate;
1612
1674
  }
1613
- /**
1614
- * @description: 数字字母下划线
1615
- * @author ChenRui
1616
- * @date 2021/1/27 17:28
1675
+ /**
1676
+ * @description: 数字字母下划线
1677
+ * @author ChenRui
1678
+ * @date 2021/1/27 17:28
1617
1679
  */
1618
1680
  genAlphanumericUnderline(item) {
1619
1681
  const validate = {
@@ -1623,22 +1685,22 @@ class ValidateGeneratorService {
1623
1685
  const reg = /^[a-zA-Z0-9_]{1,}$/;
1624
1686
  if (val && !reg.test(val)) {
1625
1687
  return {
1626
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1688
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1627
1689
  errorMsg: "仅包含数字字母下划线"
1628
1690
  };
1629
1691
  }
1630
1692
  }
1631
1693
  return {
1632
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1694
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1633
1695
  };
1634
1696
  }
1635
1697
  };
1636
1698
  return validate;
1637
1699
  }
1638
- /**
1639
- * @description: 字母数字
1640
- * @author ChenRui
1641
- * @date 2021/1/27 17:32
1700
+ /**
1701
+ * @description: 字母数字
1702
+ * @author ChenRui
1703
+ * @date 2021/1/27 17:32
1642
1704
  */
1643
1705
  genAlphanumeric(item) {
1644
1706
  const validate = {
@@ -1648,22 +1710,22 @@ class ValidateGeneratorService {
1648
1710
  const reg = /^[0-9a-zA-Z]*$/g;
1649
1711
  if (val && !reg.test(val)) {
1650
1712
  return {
1651
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1713
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1652
1714
  errorMsg: "仅包含数字字母"
1653
1715
  };
1654
1716
  }
1655
1717
  }
1656
1718
  return {
1657
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1719
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1658
1720
  };
1659
1721
  }
1660
1722
  };
1661
1723
  return validate;
1662
1724
  }
1663
- /**
1664
- * @description: JS方法校验
1665
- * @author ChenRui
1666
- * @date 2021/1/27 17:42
1725
+ /**
1726
+ * @description: JS方法校验
1727
+ * @author ChenRui
1728
+ * @date 2021/1/27 17:42
1667
1729
  */
1668
1730
  genJsMethodVerification(item) {
1669
1731
  const validate = {
@@ -1676,39 +1738,39 @@ class ValidateGeneratorService {
1676
1738
  return func(val);
1677
1739
  } catch (e) {
1678
1740
  return {
1679
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1741
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1680
1742
  errorMsg: item.describe ? item.describe : `'JS校验函数不合法`
1681
1743
  };
1682
1744
  }
1683
1745
  }
1684
1746
  }
1685
1747
  return {
1686
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1748
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1687
1749
  };
1688
1750
  }
1689
1751
  };
1690
1752
  return validate;
1691
1753
  }
1692
- /**
1693
- * @description: 后端校验
1694
- * @author ChenRui
1695
- * @date 2021/1/27 17:43
1754
+ /**
1755
+ * @description: 后端校验
1756
+ * @author ChenRui
1757
+ * @date 2021/1/27 17:43
1696
1758
  */
1697
1759
  genBackEndVerification(item) {
1698
1760
  const validate = {
1699
1761
  name: item.ruleType,
1700
1762
  validateFunc: () => {
1701
1763
  return {
1702
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1764
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1703
1765
  };
1704
1766
  }
1705
1767
  };
1706
1768
  return validate;
1707
1769
  }
1708
- /**
1709
- * @description: 座机号校验
1710
- * @author ChenRui
1711
- * @date 2021/4/14 11:40
1770
+ /**
1771
+ * @description: 座机号校验
1772
+ * @author ChenRui
1773
+ * @date 2021/4/14 11:40
1712
1774
  */
1713
1775
  genLandlineNumber(item) {
1714
1776
  const reg = /^0\d{2,3}-?\d{7,8}$/;
@@ -1718,13 +1780,13 @@ class ValidateGeneratorService {
1718
1780
  if (val != null && val !== "") {
1719
1781
  if (val && !reg.test(val)) {
1720
1782
  return {
1721
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Error.code,
1783
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Error.code,
1722
1784
  errorMsg: "座机号不合法"
1723
1785
  };
1724
1786
  }
1725
1787
  }
1726
1788
  return {
1727
- validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_1__[/* ValidateStatus */ "q"].Success.code
1789
+ validateStatus: _constants_enum__WEBPACK_IMPORTED_MODULE_3__[/* ValidateStatus */ "q"].Success.code
1728
1790
  };
1729
1791
  }
1730
1792
  };
@@ -1814,6 +1876,12 @@ if (typeof window !== 'undefined') {
1814
1876
  // Indicate to webpack that this file can be concatenated
1815
1877
  /* harmony default export */ var setPublicPath = (null);
1816
1878
 
1879
+ // EXTERNAL MODULE: external "core-js/modules/es.iterator.constructor.js"
1880
+ var es_iterator_constructor_js_ = __webpack_require__("9c0f");
1881
+
1882
+ // EXTERNAL MODULE: external "core-js/modules/es.iterator.for-each.js"
1883
+ var es_iterator_for_each_js_ = __webpack_require__("a810");
1884
+
1817
1885
  // EXTERNAL MODULE: external "vue"
1818
1886
  var external_vue_ = __webpack_require__("8bbf");
1819
1887
 
@@ -1912,7 +1980,6 @@ var external_tslib_ = __webpack_require__("d7bc");
1912
1980
 
1913
1981
  // 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
1914
1982
 
1915
- const _withScopeId = n => (Object(external_vue_["pushScopeId"])("data-v-439fd898"), n = n(), Object(external_vue_["popScopeId"])(), n);
1916
1983
  const _hoisted_1 = {
1917
1984
  class: "lo-control-box"
1918
1985
  };
@@ -1920,78 +1987,60 @@ const _hoisted_2 = {
1920
1987
  key: 0
1921
1988
  };
1922
1989
  const _hoisted_3 = ["src"];
1923
- const _hoisted_4 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/Object(external_vue_["createElementVNode"])("div", {
1924
- class: "lo-history-popconfirm-title"
1925
- }, "历史修改", -1));
1926
- const _hoisted_5 = {
1990
+ const _hoisted_4 = {
1927
1991
  class: "lo-history-context"
1928
1992
  };
1929
- const _hoisted_6 = {
1993
+ const _hoisted_5 = {
1930
1994
  class: "lo-important lo-mx-10"
1931
1995
  };
1932
- const _hoisted_7 = {
1996
+ const _hoisted_6 = {
1933
1997
  class: "lo-important lo-mx-10"
1934
1998
  };
1935
- const _hoisted_8 = {
1999
+ const _hoisted_7 = {
1936
2000
  class: "lo-important lo-ml-10"
1937
2001
  };
1938
- const _hoisted_9 = ["src"];
1939
- const _hoisted_10 = {
2002
+ const _hoisted_8 = ["src"];
2003
+ const _hoisted_9 = {
1940
2004
  class: "number-format-show"
1941
2005
  };
1942
- const _hoisted_11 = {
2006
+ const _hoisted_10 = {
1943
2007
  class: "addon-inner"
1944
2008
  };
1945
- const _hoisted_12 = {
2009
+ const _hoisted_11 = {
1946
2010
  class: "ant-picker-cell-inner calendar-control-style"
1947
2011
  };
1948
- const _hoisted_13 = {
2012
+ const _hoisted_12 = {
1949
2013
  class: "date-control-style"
1950
2014
  };
1951
- const _hoisted_14 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/Object(external_vue_["createElementVNode"])("div", {
1952
- class: "eest-day-style"
1953
- }, null, -1));
1954
- const _hoisted_15 = {
2015
+ const _hoisted_13 = {
1955
2016
  class: "date-style"
1956
2017
  };
1957
- const _hoisted_16 = {
2018
+ const _hoisted_14 = {
1958
2019
  class: "eest-day-style"
1959
2020
  };
1960
- const _hoisted_17 = {
2021
+ const _hoisted_15 = {
1961
2022
  key: 0,
1962
2023
  class: "holidays-style"
1963
2024
  };
1964
- const _hoisted_18 = {
2025
+ const _hoisted_16 = {
1965
2026
  key: 1,
1966
2027
  class: "weekday-style"
1967
2028
  };
1968
- const _hoisted_19 = {
2029
+ const _hoisted_17 = {
1969
2030
  class: "date-type-style"
1970
2031
  };
1971
- const _hoisted_20 = {
2032
+ const _hoisted_18 = {
1972
2033
  key: 0,
1973
2034
  class: "trading-day-style"
1974
2035
  };
1975
- const _hoisted_21 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/Object(external_vue_["createElementVNode"])("div", {
1976
- class: "legend"
1977
- }, [/*#__PURE__*/Object(external_vue_["createElementVNode"])("div", {
1978
- class: "day-explain-style"
1979
- }, [/*#__PURE__*/Object(external_vue_["createElementVNode"])("div", {
1980
- class: "trading-day-icon"
1981
- }), /*#__PURE__*/Object(external_vue_["createElementVNode"])("div", {
1982
- class: "day-explain"
1983
- }, "交易日")])], -1));
1984
- const _hoisted_22 = {
2036
+ const _hoisted_19 = {
1985
2037
  class: "lo-input-content"
1986
2038
  };
1987
- const _hoisted_23 = ["title"];
1988
- const _hoisted_24 = {
2039
+ const _hoisted_20 = ["title"];
2040
+ const _hoisted_21 = {
1989
2041
  key: 1
1990
2042
  };
1991
- const _hoisted_25 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/Object(external_vue_["createElementVNode"])("div", {
1992
- class: "flex-grow-1"
1993
- }, null, -1));
1994
- const _hoisted_26 = {
2043
+ const _hoisted_22 = {
1995
2044
  key: 0,
1996
2045
  class: "addon-readonly"
1997
2046
  };
@@ -2097,7 +2146,9 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2097
2146
  placement: "right",
2098
2147
  "ok-text": "确定"
2099
2148
  }, {
2100
- title: Object(external_vue_["withCtx"])(() => [_hoisted_4, Object(external_vue_["createElementVNode"])("div", null, [Object(external_vue_["createVNode"])(_component_a_timeline, {
2149
+ title: Object(external_vue_["withCtx"])(() => [_cache[73] || (_cache[73] = Object(external_vue_["createElementVNode"])("div", {
2150
+ class: "lo-history-popconfirm-title"
2151
+ }, "历史修改", -1)), Object(external_vue_["createElementVNode"])("div", null, [Object(external_vue_["createVNode"])(_component_a_timeline, {
2101
2152
  class: "lo-history-timeline"
2102
2153
  }, {
2103
2154
  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) => {
@@ -2109,7 +2160,7 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2109
2160
  "font-size": "13px"
2110
2161
  }
2111
2162
  })]),
2112
- 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)])]),
2163
+ 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)])]),
2113
2164
  _: 2
2114
2165
  }, 1024);
2115
2166
  }), 128))]),
@@ -2118,7 +2169,7 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2118
2169
  default: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createElementVNode"])("img", {
2119
2170
  class: "lo-label-history-icon",
2120
2171
  src: _ctx.historySvg
2121
- }, null, 8, _hoisted_9)]),
2172
+ }, null, 8, _hoisted_8)]),
2122
2173
  _: 1
2123
2174
  })) : Object(external_vue_["createCommentVNode"])("", true)])) : Object(external_vue_["createCommentVNode"])("", true)]),
2124
2175
  default: Object(external_vue_["withCtx"])(() => [_ctx.provideInjectData.edit ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createElementBlock"])(external_vue_["Fragment"], {
@@ -2224,7 +2275,7 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2224
2275
  _: 2
2225
2276
  }, [_ctx.controlAttr.unit ? {
2226
2277
  name: "addonAfter",
2227
- fn: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createElementVNode"])("span", _hoisted_11, Object(external_vue_["toDisplayString"])(_ctx.controlAttr.unit), 1)]),
2278
+ fn: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createElementVNode"])("span", _hoisted_10, Object(external_vue_["toDisplayString"])(_ctx.controlAttr.unit), 1)]),
2228
2279
  key: "0"
2229
2280
  } : 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, {
2230
2281
  key: 0
@@ -2253,7 +2304,7 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2253
2304
  _: 2
2254
2305
  }, [_ctx.numberPopoverVisible ? {
2255
2306
  name: "content",
2256
- 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)]),
2307
+ 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)]),
2257
2308
  key: "0"
2258
2309
  } : 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, {
2259
2310
  key: 3,
@@ -2291,7 +2342,7 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2291
2342
  },
2292
2343
  onMousedown: _cache[17] || (_cache[17] = e => e.preventDefault()),
2293
2344
  onClick: _cache[18] || (_cache[18] = $event => _ctx.selectAddItem(_ctx.control))
2294
- }, [Object(external_vue_["createVNode"])(_component_plus_outlined), Object(external_vue_["createTextVNode"])("新增")], 32)], 64)) : Object(external_vue_["createCommentVNode"])("", true)]),
2345
+ }, [Object(external_vue_["createVNode"])(_component_plus_outlined), _cache[74] || (_cache[74] = Object(external_vue_["createTextVNode"])("新增", -1))], 32)], 64)) : Object(external_vue_["createCommentVNode"])("", true)]),
2295
2346
  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 => {
2296
2347
  return Object(external_vue_["openBlock"])(), Object(external_vue_["createBlock"])(_component_a_select_option, {
2297
2348
  value: item.value,
@@ -2415,8 +2466,18 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2415
2466
  }, {
2416
2467
  dateRender: Object(external_vue_["withCtx"])(({
2417
2468
  current
2418
- }) => [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)])])]),
2419
- renderExtraFooter: Object(external_vue_["withCtx"])(() => [_hoisted_21]),
2469
+ }) => [Object(external_vue_["createElementVNode"])("div", _hoisted_11, [Object(external_vue_["createElementVNode"])("div", _hoisted_12, [_cache[75] || (_cache[75] = Object(external_vue_["createElementVNode"])("div", {
2470
+ class: "eest-day-style"
2471
+ }, 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)])])]),
2472
+ renderExtraFooter: Object(external_vue_["withCtx"])(() => [...(_cache[76] || (_cache[76] = [Object(external_vue_["createElementVNode"])("div", {
2473
+ class: "legend"
2474
+ }, [Object(external_vue_["createElementVNode"])("div", {
2475
+ class: "day-explain-style"
2476
+ }, [Object(external_vue_["createElementVNode"])("div", {
2477
+ class: "trading-day-icon"
2478
+ }), Object(external_vue_["createElementVNode"])("div", {
2479
+ class: "day-explain"
2480
+ }, "交易日")])], -1)]))]),
2420
2481
  _: 1
2421
2482
  }, 8, ["get-popup-container", "locale", "showTime", "format", "placeholder", "disabled", "value"])) : (Object(external_vue_["openBlock"])(), Object(external_vue_["createBlock"])(_component_a_date_picker, {
2422
2483
  key: 2,
@@ -2487,7 +2548,7 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2487
2548
  onChange: _ctx.handleUploadChange
2488
2549
  }, {
2489
2550
  default: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createVNode"])(_component_a_button, null, {
2490
- default: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createVNode"])(_component_upload_outlined), Object(external_vue_["createTextVNode"])(" 选择文件 ")]),
2551
+ default: Object(external_vue_["withCtx"])(() => [Object(external_vue_["createVNode"])(_component_upload_outlined), _cache[77] || (_cache[77] = Object(external_vue_["createTextVNode"])(" 选择文件 ", -1))]),
2491
2552
  _: 1
2492
2553
  })]),
2493
2554
  _: 1
@@ -2497,7 +2558,7 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2497
2558
  onChange: _ctx.onChange
2498
2559
  }, undefined, true) : Object(external_vue_["createCommentVNode"])("", true)], 64)) : (Object(external_vue_["openBlock"])(), Object(external_vue_["createElementBlock"])(external_vue_["Fragment"], {
2499
2560
  key: 1
2500
- }, [Object(external_vue_["createElementVNode"])("div", _hoisted_22, [Object(external_vue_["renderSlot"])(_ctx.$slots, 'read:' + _ctx.control.formControl.key, {
2561
+ }, [Object(external_vue_["createElementVNode"])("div", _hoisted_19, [Object(external_vue_["renderSlot"])(_ctx.$slots, 'read:' + _ctx.control.formControl.key, {
2501
2562
  content: _ctx.formatData
2502
2563
  }, () => [_ctx.controlAttr.textFold ? (Object(external_vue_["openBlock"])(), Object(external_vue_["createBlock"])(_component_stretch_text, {
2503
2564
  key: 0,
@@ -2519,7 +2580,9 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2519
2580
  key: _ctx.formControl.key,
2520
2581
  value: _ctx.formatData
2521
2582
  }))
2522
- }, 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))]),
2583
+ }, 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", {
2584
+ class: "flex-grow-1"
2585
+ }, 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))]),
2523
2586
  _: 3
2524
2587
  }, 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, {
2525
2588
  key: 1,
@@ -2605,6 +2668,24 @@ function DvFormLayoutvue_type_template_id_439fd898_scoped_true_ts_true_render(_c
2605
2668
  }
2606
2669
  // CONCATENATED MODULE: ./src/components/form/DvFormLayout.vue?vue&type=template&id=439fd898&scoped=true&ts=true
2607
2670
 
2671
+ // EXTERNAL MODULE: external "core-js/modules/es.iterator.filter.js"
2672
+ var es_iterator_filter_js_ = __webpack_require__("b953");
2673
+
2674
+ // EXTERNAL MODULE: external "core-js/modules/es.iterator.find.js"
2675
+ var es_iterator_find_js_ = __webpack_require__("5978");
2676
+
2677
+ // EXTERNAL MODULE: external "core-js/modules/es.iterator.map.js"
2678
+ var es_iterator_map_js_ = __webpack_require__("b6bf");
2679
+
2680
+ // EXTERNAL MODULE: external "core-js/modules/es.iterator.some.js"
2681
+ var es_iterator_some_js_ = __webpack_require__("d340");
2682
+
2683
+ // EXTERNAL MODULE: external "core-js/modules/es.json.stringify.js"
2684
+ var es_json_stringify_js_ = __webpack_require__("a9ee");
2685
+
2686
+ // EXTERNAL MODULE: external "core-js/modules/esnext.json.parse.js"
2687
+ var esnext_json_parse_js_ = __webpack_require__("0f65");
2688
+
2608
2689
  // EXTERNAL MODULE: external "vue-property-decorator"
2609
2690
  var external_vue_property_decorator_ = __webpack_require__("01a6");
2610
2691
 
@@ -2656,6 +2737,8 @@ var constants_enum = __webpack_require__("d29d");
2656
2737
 
2657
2738
  // CONCATENATED MODULE: ./src/filtres/generate-grid-template-columns.filter.ts
2658
2739
 
2740
+
2741
+
2659
2742
  function transform(configs) {
2660
2743
  if (configs != null && configs.length > 0) {
2661
2744
  const arr = [];
@@ -2665,10 +2748,10 @@ function transform(configs) {
2665
2748
  return `1fr`;
2666
2749
  }
2667
2750
  }
2668
- /**
2669
- * @description: 网格布局比例分配
2670
- * @author ChenRui
2671
- * @date 2020/12/1 19:32
2751
+ /**
2752
+ * @description: 网格布局比例分配
2753
+ * @author ChenRui
2754
+ * @date 2020/12/1 19:32
2672
2755
  */
2673
2756
  const generateGridTemplateColumns = configs => {
2674
2757
  return transform(configs);
@@ -2682,10 +2765,10 @@ function generate_grid_column_end_filter_transform(configs) {
2682
2765
  return 2;
2683
2766
  }
2684
2767
  }
2685
- /**
2686
- * @description: 跨列计算
2687
- * @author ChenRui
2688
- * @date 2020/12/1 19:34
2768
+ /**
2769
+ * @description: 跨列计算
2770
+ * @author ChenRui
2771
+ * @date 2020/12/1 19:34
2689
2772
  */
2690
2773
  const generateGridColumnEnd = configs => {
2691
2774
  return generate_grid_column_end_filter_transform(configs);
@@ -2695,6 +2778,8 @@ const generateGridColumnEnd = configs => {
2695
2778
  var external_ant_design_vue_ = __webpack_require__("4e72");
2696
2779
 
2697
2780
  // CONCATENATED MODULE: ./src/services/api.service.ts
2781
+
2782
+
2698
2783
  class ApiService {
2699
2784
  createBasicHeaders() {
2700
2785
  return {
@@ -2726,10 +2811,10 @@ class ApiService {
2726
2811
  error.message; //=> String
2727
2812
  });
2728
2813
  }
2729
- /**
2730
- * @description: url请求参数组装
2731
- * @author ChenRui
2732
- * @date 2020/8/28 15:21
2814
+ /**
2815
+ * @description: url请求参数组装
2816
+ * @author ChenRui
2817
+ * @date 2020/8/28 15:21
2733
2818
  */
2734
2819
  urlQueryConvert(url, query) {
2735
2820
  let connectiveSymbol = "";
@@ -2795,26 +2880,26 @@ class clean_local_forage_service_CleanLocalForageService {
2795
2880
  };
2796
2881
  this.localForage = external_localforage_["createInstance"](this.config);
2797
2882
  }
2798
- /**
2799
- * @description: 设值
2800
- * @author ChenRui
2801
- * @date 2021/3/12 16:31
2883
+ /**
2884
+ * @description: 设值
2885
+ * @author ChenRui
2886
+ * @date 2021/3/12 16:31
2802
2887
  */
2803
2888
  setItem(key, value) {
2804
2889
  this.localForage.setItem(key, value);
2805
2890
  }
2806
- /**
2807
- * @description: 取值
2808
- * @author ChenRui
2809
- * @date 2021/3/12 16:31
2891
+ /**
2892
+ * @description: 取值
2893
+ * @author ChenRui
2894
+ * @date 2021/3/12 16:31
2810
2895
  */
2811
2896
  getItem(key) {
2812
2897
  return this.localForage.getItem(key);
2813
2898
  }
2814
- /**
2815
- * @description: 删除实例
2816
- * @author ChenRui
2817
- * @date 2021/6/22 11:08
2899
+ /**
2900
+ * @description: 删除实例
2901
+ * @author ChenRui
2902
+ * @date 2021/6/22 11:08
2818
2903
  */
2819
2904
  dropInstance() {
2820
2905
  if (this.localForage != null) {
@@ -2850,26 +2935,26 @@ class dict_local_forage_service_DictLocalForageService {
2850
2935
  };
2851
2936
  this.localForage = external_localforage_["createInstance"](this.config);
2852
2937
  }
2853
- /**
2854
- * @description: 设值
2855
- * @author ChenRui
2856
- * @date 2021/3/12 16:31
2938
+ /**
2939
+ * @description: 设值
2940
+ * @author ChenRui
2941
+ * @date 2021/3/12 16:31
2857
2942
  */
2858
2943
  setItem(key, value) {
2859
2944
  this.localForage.setItem(key, value);
2860
2945
  }
2861
- /**
2862
- * @description: 取值
2863
- * @author ChenRui
2864
- * @date 2021/3/12 16:31
2946
+ /**
2947
+ * @description: 取值
2948
+ * @author ChenRui
2949
+ * @date 2021/3/12 16:31
2865
2950
  */
2866
2951
  getItem(key) {
2867
2952
  return this.localForage.getItem(key);
2868
2953
  }
2869
- /**
2870
- * @description: 删除实例
2871
- * @author ChenRui
2872
- * @date 2021/6/22 11:08
2954
+ /**
2955
+ * @description: 删除实例
2956
+ * @author ChenRui
2957
+ * @date 2021/6/22 11:08
2873
2958
  */
2874
2959
  dropInstance() {
2875
2960
  if (this.localForage != null) {
@@ -2880,12 +2965,14 @@ class dict_local_forage_service_DictLocalForageService {
2880
2965
  const dictLocalForageService = new dict_local_forage_service_DictLocalForageService();
2881
2966
 
2882
2967
  // CONCATENATED MODULE: ./src/services/form-bean-utils.service.ts
2968
+
2969
+
2883
2970
  class FormBeanUtilsService {
2884
2971
  constructor() {}
2885
- /**
2886
- * @description: 对象拷贝
2887
- * @author ChenRui
2888
- * @date 2020/8/29 19:54
2972
+ /**
2973
+ * @description: 对象拷贝
2974
+ * @author ChenRui
2975
+ * @date 2020/8/29 19:54
2889
2976
  */
2890
2977
  copy(obj) {
2891
2978
  if (obj != null) {
@@ -2893,10 +2980,10 @@ class FormBeanUtilsService {
2893
2980
  }
2894
2981
  return "";
2895
2982
  }
2896
- /**
2897
- * @description: 字符串转对象
2898
- * @author ChenRui
2899
- * @date 2020/8/29 19:54
2983
+ /**
2984
+ * @description: 字符串转对象
2985
+ * @author ChenRui
2986
+ * @date 2020/8/29 19:54
2900
2987
  */
2901
2988
  parse(str) {
2902
2989
  if (str != null && str !== "") {
@@ -2904,10 +2991,10 @@ class FormBeanUtilsService {
2904
2991
  }
2905
2992
  return null;
2906
2993
  }
2907
- /**
2908
- * @description: 对象转字符串
2909
- * @author ChenRui
2910
- * @date 2020/8/29 19:54
2994
+ /**
2995
+ * @description: 对象转字符串
2996
+ * @author ChenRui
2997
+ * @date 2020/8/29 19:54
2911
2998
  */
2912
2999
  stringify(obj) {
2913
3000
  if (obj != null) {
@@ -2944,26 +3031,26 @@ class form_local_forage_service_FormLocalForageService {
2944
3031
  };
2945
3032
  this.localForage = external_localforage_["createInstance"](this.config);
2946
3033
  }
2947
- /**
2948
- * @description: 设值
2949
- * @author ChenRui
2950
- * @date 2021/3/12 16:31
3034
+ /**
3035
+ * @description: 设值
3036
+ * @author ChenRui
3037
+ * @date 2021/3/12 16:31
2951
3038
  */
2952
3039
  setItem(key, value) {
2953
3040
  this.localForage.setItem(key, value);
2954
3041
  }
2955
- /**
2956
- * @description: 取值
2957
- * @author ChenRui
2958
- * @date 2021/3/12 16:31
3042
+ /**
3043
+ * @description: 取值
3044
+ * @author ChenRui
3045
+ * @date 2021/3/12 16:31
2959
3046
  */
2960
3047
  getItem(key) {
2961
3048
  return this.localForage.getItem(key);
2962
3049
  }
2963
- /**
2964
- * @description: 删除实例
2965
- * @author ChenRui
2966
- * @date 2021/6/22 11:08
3050
+ /**
3051
+ * @description: 删除实例
3052
+ * @author ChenRui
3053
+ * @date 2021/6/22 11:08
2967
3054
  */
2968
3055
  dropInstance() {
2969
3056
  if (this.localForage != null) {
@@ -3049,12 +3136,17 @@ var switch_enum = __webpack_require__("c73e");
3049
3136
  // CONCATENATED MODULE: ./src/services/form-tree-node-convert.service.ts
3050
3137
 
3051
3138
 
3139
+
3140
+
3141
+
3142
+
3143
+
3052
3144
  class form_tree_node_convert_service_FormTreeNodeConvertService {
3053
3145
  constructor() {}
3054
- /**
3055
- * @description: 数组转换为树形结构
3056
- * @author ChenRui
3057
- * @date 2020/10/30 10:18
3146
+ /**
3147
+ * @description: 数组转换为树形结构
3148
+ * @author ChenRui
3149
+ * @date 2020/10/30 10:18
3058
3150
  */
3059
3151
  arrayConvertToTreeNode(data, nodeContrast, parentId) {
3060
3152
  if (data != null && data.length > 0) {
@@ -3072,10 +3164,10 @@ class form_tree_node_convert_service_FormTreeNodeConvertService {
3072
3164
  }
3073
3165
  return [];
3074
3166
  }
3075
- /**
3076
- * @description: 树形结构转换为Nz树形结构
3077
- * @author ChenRui
3078
- * @date 2020/10/30 10:21
3167
+ /**
3168
+ * @description: 树形结构转换为Nz树形结构
3169
+ * @author ChenRui
3170
+ * @date 2020/10/30 10:21
3079
3171
  */
3080
3172
  treeNodeConvertToNzTreeNode(data, nzNodeContrast, isDisabledLeaf = false) {
3081
3173
  const nodes = [];
@@ -3111,10 +3203,10 @@ class form_tree_node_convert_service_FormTreeNodeConvertService {
3111
3203
  }
3112
3204
  return nodes;
3113
3205
  }
3114
- /**
3115
- * @description: 数组转换为Nz树形结构
3116
- * @author ChenRui
3117
- * @date 2020/10/30 10:41
3206
+ /**
3207
+ * @description: 数组转换为Nz树形结构
3208
+ * @author ChenRui
3209
+ * @date 2020/10/30 10:41
3118
3210
  */
3119
3211
  arrayConvertToNzTreeNode(data, nodeContrast, nzNodeContrast, isDisabledLeaf = false) {
3120
3212
  const treeNode = this.arrayConvertToTreeNode(data, nodeContrast);
@@ -3123,10 +3215,10 @@ class form_tree_node_convert_service_FormTreeNodeConvertService {
3123
3215
  }
3124
3216
  return [];
3125
3217
  }
3126
- /**
3127
- * @description: 树形结构转换为Nz树形结构
3128
- * @author ChenRui
3129
- * @date 2020/10/30 10:21
3218
+ /**
3219
+ * @description: 树形结构转换为Nz树形结构
3220
+ * @author ChenRui
3221
+ * @date 2020/10/30 10:21
3130
3222
  */
3131
3223
  treeNodeConvertToCascaderOption(data, nzCascaderOptionContrast, isDisabledLeaf = false) {
3132
3224
  const nodes = [];
@@ -3159,10 +3251,10 @@ class form_tree_node_convert_service_FormTreeNodeConvertService {
3159
3251
  }
3160
3252
  return nodes;
3161
3253
  }
3162
- /**
3163
- * @description: 插件树结构转map
3164
- * @author ChenRui
3165
- * @date 2022/1/18 19:19
3254
+ /**
3255
+ * @description: 插件树结构转map
3256
+ * @author ChenRui
3257
+ * @date 2022/1/18 19:19
3166
3258
  */
3167
3259
  nzTreeNodeConvertToMap(data) {
3168
3260
  if (data != null && data.length > 0) {
@@ -3183,10 +3275,10 @@ class form_tree_node_convert_service_FormTreeNodeConvertService {
3183
3275
  }
3184
3276
  return undefined;
3185
3277
  }
3186
- /**
3187
- * @description: 数组转换为Nz树形结构
3188
- * @author ChenRui
3189
- * @date 2020/10/30 10:41
3278
+ /**
3279
+ * @description: 数组转换为Nz树形结构
3280
+ * @author ChenRui
3281
+ * @date 2020/10/30 10:41
3190
3282
  */
3191
3283
  arrayConvertToCascaderOption(data, nodeContrast, nzCascaderOptionContrast, isDisabledLeaf = false) {
3192
3284
  const treeNode = this.arrayConvertToTreeNode(data, nodeContrast);
@@ -3195,14 +3287,14 @@ class form_tree_node_convert_service_FormTreeNodeConvertService {
3195
3287
  }
3196
3288
  return [];
3197
3289
  }
3198
- /**
3199
- * @Description: 树形数据转为数组
3200
- * @author LiuBo
3201
- * @date 2021/11/5
3202
- * @time 16:59
3203
- * @param treeNode 树形数据
3204
- * @param data 数组 传入空数组即可[]
3205
- * @param childName 子节点名称
3290
+ /**
3291
+ * @Description: 树形数据转为数组
3292
+ * @author LiuBo
3293
+ * @date 2021/11/5
3294
+ * @time 16:59
3295
+ * @param treeNode 树形数据
3296
+ * @param data 数组 传入空数组即可[]
3297
+ * @param childName 子节点名称
3206
3298
  */
3207
3299
  treeNodeConvertToArray(treeNode, data, childName) {
3208
3300
  data = data || [];
@@ -3224,10 +3316,10 @@ const formTreeNodeConvertService = new form_tree_node_convert_service_FormTreeNo
3224
3316
  // CONCATENATED MODULE: ./src/store/form.store.ts
3225
3317
 
3226
3318
 
3227
- /**
3228
- * @description: 表单存储服务
3229
- * @author ChenRui
3230
- * @date 2020/12/30 11:17
3319
+ /**
3320
+ * @description: 表单存储服务
3321
+ * @author ChenRui
3322
+ * @date 2020/12/30 11:17
3231
3323
  */
3232
3324
  class form_store_FormStore {
3233
3325
  constructor() {}
@@ -3254,10 +3346,10 @@ var dynamic_option_type_enum = __webpack_require__("1937");
3254
3346
  // CONCATENATED MODULE: ./src/store/dict.store.ts
3255
3347
 
3256
3348
 
3257
- /**
3258
- * @description: 表单版本管理
3259
- * @author ChenRui
3260
- * @date 2020/12/30 11:17
3349
+ /**
3350
+ * @description: 表单版本管理
3351
+ * @author ChenRui
3352
+ * @date 2020/12/30 11:17
3261
3353
  */
3262
3354
  class dict_store_DictStore {
3263
3355
  constructor() {}
@@ -3316,20 +3408,22 @@ const DEFAULT_DICT_URL = "./resources/json/" + DEFAULT_DICT_FILE_NAME;
3316
3408
  var cache_type_enum = __webpack_require__("9475");
3317
3409
 
3318
3410
  // CONCATENATED MODULE: ./src/services/router.service.ts
3411
+
3412
+
3319
3413
  class RouterService {
3320
3414
  constructor() {}
3321
- /**
3322
- * @description: 跨应用跳转
3323
- * @author ChenRui
3324
- * @date 2020/9/28 14:23
3415
+ /**
3416
+ * @description: 跨应用跳转
3417
+ * @author ChenRui
3418
+ * @date 2020/9/28 14:23
3325
3419
  */
3326
3420
  push(subapp) {
3327
3421
  history.pushState(null, subapp, subapp);
3328
3422
  }
3329
- /**
3330
- * @description: 获取纯路劲
3331
- * @author ChenRui
3332
- * @date 2020/10/12 21:06
3423
+ /**
3424
+ * @description: 获取纯路劲
3425
+ * @author ChenRui
3426
+ * @date 2020/10/12 21:06
3333
3427
  */
3334
3428
  getPathFromUrl(url) {
3335
3429
  let path = url;
@@ -3338,10 +3432,10 @@ class RouterService {
3338
3432
  }
3339
3433
  return path;
3340
3434
  }
3341
- /**
3342
- * @description: 获取请求参数
3343
- * @author ChenRui
3344
- * @date 2020/10/12 21:06
3435
+ /**
3436
+ * @description: 获取请求参数
3437
+ * @author ChenRui
3438
+ * @date 2020/10/12 21:06
3345
3439
  */
3346
3440
  getParamsFromUrl(url) {
3347
3441
  let parameter;
@@ -3350,10 +3444,10 @@ class RouterService {
3350
3444
  }
3351
3445
  return parameter;
3352
3446
  }
3353
- /**
3354
- * @description: url地址参数转换成路由参数对象
3355
- * @author ChenRui
3356
- * @date 2020/10/12 21:07
3447
+ /**
3448
+ * @description: url地址参数转换成路由参数对象
3449
+ * @author ChenRui
3450
+ * @date 2020/10/12 21:07
3357
3451
  */
3358
3452
  urlParameterToParams(parameter) {
3359
3453
  const params = {};
@@ -3368,10 +3462,10 @@ class RouterService {
3368
3462
  });
3369
3463
  return params;
3370
3464
  }
3371
- /**
3372
- * @description: 地址参数拼接
3373
- * @author ChenRui
3374
- * @date 2021/2/19 11:40
3465
+ /**
3466
+ * @description: 地址参数拼接
3467
+ * @author ChenRui
3468
+ * @date 2021/2/19 11:40
3375
3469
  */
3376
3470
  getParameterOfUrl(url, parameter) {
3377
3471
  let connectiveSymbol = "";
@@ -3409,16 +3503,18 @@ const routerService = new RouterService();
3409
3503
 
3410
3504
 
3411
3505
 
3412
- /**
3413
- * @description: 表单校验窗口提示
3414
- * @author ChenRui
3415
- * @date 2021/8/19 12:58
3506
+
3507
+
3508
+ /**
3509
+ * @description: 表单校验窗口提示
3510
+ * @author ChenRui
3511
+ * @date 2021/8/19 12:58
3416
3512
  */
3417
3513
  class form_validate_service_FormValidateService {
3418
- /**
3419
- * @description: 校验并进行窗口提示
3420
- * @author ChenRui
3421
- * @date 2021/8/19 12:58
3514
+ /**
3515
+ * @description: 校验并进行窗口提示
3516
+ * @author ChenRui
3517
+ * @date 2021/8/19 12:58
3422
3518
  */
3423
3519
  validateTips(formApis, scrollView) {
3424
3520
  if (formApis != null) {
@@ -3462,11 +3558,11 @@ class form_validate_service_FormValidateService {
3462
3558
  }
3463
3559
  return true;
3464
3560
  }
3465
- /**
3466
- * @Description: 滚动到错误位置-闪烁提示
3467
- * @author LiuBo
3468
- * @date 2021/2/25
3469
- * @time 21:35
3561
+ /**
3562
+ * @Description: 滚动到错误位置-闪烁提示
3563
+ * @author LiuBo
3564
+ * @date 2021/2/25
3565
+ * @time 21:35
3470
3566
  */
3471
3567
  showErrorModal(formApis, allError, scrollView) {
3472
3568
  var _formApis$, _allError$;
@@ -3494,12 +3590,12 @@ class form_validate_service_FormValidateService {
3494
3590
  }
3495
3591
  }
3496
3592
  }
3497
- /**
3498
- * @Description: 闪烁显示校验不通过的输入框
3499
- * @author LiuBo
3500
- * @date 2019/6/3
3501
- * @time 22:01
3502
- * @param el 出错的输入框html对象
3593
+ /**
3594
+ * @Description: 闪烁显示校验不通过的输入框
3595
+ * @author LiuBo
3596
+ * @date 2019/6/3
3597
+ * @time 22:01
3598
+ * @param el 出错的输入框html对象
3503
3599
  */
3504
3600
  showErrInput(el) {
3505
3601
  let count = 0;
@@ -3529,6 +3625,11 @@ const formValidateService = new form_validate_service_FormValidateService();
3529
3625
 
3530
3626
 
3531
3627
 
3628
+
3629
+
3630
+
3631
+
3632
+
3532
3633
 
3533
3634
 
3534
3635
  class form_tools_service_FormToolsService {
@@ -3582,10 +3683,10 @@ class form_tools_service_FormToolsService {
3582
3683
  setFormDisabledColor(color = "#f0f0f0") {
3583
3684
  document.body.style.setProperty("--lo-form-disabled", color);
3584
3685
  }
3585
- /**
3586
- * @description: 检查是否经过首次初始化并初始化
3587
- * @author ChenRui
3588
- * @date 2021/1/5 23:04
3686
+ /**
3687
+ * @description: 检查是否经过首次初始化并初始化
3688
+ * @author ChenRui
3689
+ * @date 2021/1/5 23:04
3589
3690
  */
3590
3691
  checkFirstLoadAndInitDesign() {
3591
3692
  if (form_tools_service_FormToolsService.IS_FIRST_LOADED) {
@@ -3600,10 +3701,10 @@ class form_tools_service_FormToolsService {
3600
3701
  });
3601
3702
  }
3602
3703
  }
3603
- /**
3604
- * @description: 初始化
3605
- * @author ChenRui
3606
- * @date 2021/3/12 11:02
3704
+ /**
3705
+ * @description: 初始化
3706
+ * @author ChenRui
3707
+ * @date 2021/3/12 11:02
3607
3708
  */
3608
3709
  init() {
3609
3710
  return Promise.all([this.initDesign(), this.initDict(), this.selectHolidays()]).then(([designRes, dictRes]) => {
@@ -3614,14 +3715,14 @@ class form_tools_service_FormToolsService {
3614
3715
  };
3615
3716
  });
3616
3717
  }
3617
- /**
3618
- * @Description 初始化节假日数据
3619
- * @Author JiangTao
3620
- * @Date 2024-04-16 下午 04:11
3718
+ /**
3719
+ * @Description 初始化节假日数据
3720
+ * @Author JiangTao
3721
+ * @Date 2024-04-16 下午 04:11
3621
3722
  */
3622
3723
  selectHolidays() {
3623
3724
  if (this.formConfig.url && this.supHoliday) {
3624
- const url = this.formConfig.url + "/ms-loong/api/v1/basic-form-weekday/query-all-by-year";
3725
+ const url = this.formConfig.url + this.formConfig.contextPath + "/api/v1/basic-form-weekday/query-all-by-year";
3625
3726
  return this.fetch(url, {}, undefined, "POST").then(res => {
3626
3727
  if (res != null && (res.code === 1 || String(res.code) === String(200))) {
3627
3728
  if (res.data != null) {
@@ -3635,10 +3736,10 @@ class form_tools_service_FormToolsService {
3635
3736
  }
3636
3737
  return Promise.resolve(form_tools_service_FormToolsService.LOAD_SUCCESS);
3637
3738
  }
3638
- /**
3639
- * @description: 初始化表单设计
3640
- * @author ChenRui
3641
- * @date 2020/11/20 10:55
3739
+ /**
3740
+ * @description: 初始化表单设计
3741
+ * @author ChenRui
3742
+ * @date 2020/11/20 10:55
3642
3743
  */
3643
3744
  initDesign() {
3644
3745
  return Promise.all([formStore.getForms(), formStore.getVersion()]).then(([forms, formVersion]) => {
@@ -3655,12 +3756,12 @@ class form_tools_service_FormToolsService {
3655
3756
  appId: this.formConfig.appId,
3656
3757
  cacheType: cache_type_enum["a" /* CacheType */].FORM.code
3657
3758
  };
3658
- const url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype";
3759
+ const url = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype";
3659
3760
  return this.fetch(url, query).then(res => {
3660
3761
  if (res != null && res.code === 1) {
3661
3762
  if (res.data != null && res.data.desCacheVersion != null) {
3662
3763
  if (String(formVersion) !== String(res.data.desCacheVersion.cacheVersionNumber)) {
3663
- const formUrl = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + res.data.desCacheVersion.storageAddress;
3764
+ const formUrl = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + res.data.desCacheVersion.storageAddress;
3664
3765
  return this.loadDesign([formUrl]).then(resEx => {
3665
3766
  if (resEx.code === 1) {
3666
3767
  formStore.setVersion(res.data.desCacheVersion.cacheVersionNumber);
@@ -3735,14 +3836,14 @@ class form_tools_service_FormToolsService {
3735
3836
  return Promise.resolve(form_tools_service_FormToolsService.LOAD_FAIL);
3736
3837
  });
3737
3838
  }
3738
- /**
3739
- * @description: 获取表单或字典数据地址
3740
- * @author ZPFly
3741
- * @date 2022/10/18 20:43
3839
+ /**
3840
+ * @description: 获取表单或字典数据地址
3841
+ * @author ZPFly
3842
+ * @date 2022/10/18 20:43
3742
3843
  */
3743
3844
  mergeUrlByType(type) {
3744
- const url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/query-batch-appids-cachetype";
3745
- const downloadUrl = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=";
3845
+ const url = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/query-batch-appids-cachetype";
3846
+ const downloadUrl = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/download?storageAddress=";
3746
3847
  const query = {
3747
3848
  appIds: this.formConfig.appId,
3748
3849
  cacheType: type
@@ -3769,15 +3870,15 @@ class form_tools_service_FormToolsService {
3769
3870
  return response;
3770
3871
  });
3771
3872
  }
3772
- /**
3773
- * @description: 获取表单或字典数据地址-按照缓存版本号查询字典/表单
3774
- * @author ZPFly
3775
- * @date 2022/10/18 20:43
3873
+ /**
3874
+ * @description: 获取表单或字典数据地址-按照缓存版本号查询字典/表单
3875
+ * @author ZPFly
3876
+ * @date 2022/10/18 20:43
3776
3877
  */
3777
3878
  mergeUrlByCacheId(type) {
3778
3879
  var _query$appIds2;
3779
- const url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/query-batch-appids-cachetype";
3780
- const downloadUrl = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/downloadById?cacheVersionId=";
3880
+ const url = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/query-batch-appids-cachetype";
3881
+ const downloadUrl = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/downloadById?cacheVersionId=";
3781
3882
  const query = {
3782
3883
  appIds: this.formConfig.appId,
3783
3884
  cacheType: type
@@ -3805,10 +3906,10 @@ class form_tools_service_FormToolsService {
3805
3906
  return response;
3806
3907
  });
3807
3908
  }
3808
- /**
3809
- * @description: 加载远程表单配置
3810
- * @author ChenRui
3811
- * @date 2020/11/20 17:30
3909
+ /**
3910
+ * @description: 加载远程表单配置
3911
+ * @author ChenRui
3912
+ * @date 2020/11/20 17:30
3812
3913
  */
3813
3914
  loadDesign(urls) {
3814
3915
  return this.mergeFetchDesign(urls).then(desForms => {
@@ -3826,10 +3927,10 @@ class form_tools_service_FormToolsService {
3826
3927
  return form_tools_service_FormToolsService.LOAD_SUCCESS;
3827
3928
  });
3828
3929
  }
3829
- /**
3830
- * @description: 合并多个应用表单
3831
- * @author ZPFly
3832
- * @date 2022/10/17 15:39
3930
+ /**
3931
+ * @description: 合并多个应用表单
3932
+ * @author ZPFly
3933
+ * @date 2022/10/17 15:39
3833
3934
  */
3834
3935
  mergeFetchDesign(urls) {
3835
3936
  const onlySimpleLoadConfig = !!this.formConfig.onlySimpleLoadConfig;
@@ -3846,10 +3947,10 @@ class form_tools_service_FormToolsService {
3846
3947
  return newDesForms;
3847
3948
  });
3848
3949
  }
3849
- /**
3850
- * @description: 初始化字典
3851
- * @author ChenRui
3852
- * @date 2021/3/11 14:32
3950
+ /**
3951
+ * @description: 初始化字典
3952
+ * @author ChenRui
3953
+ * @date 2021/3/11 14:32
3853
3954
  */
3854
3955
  initDict() {
3855
3956
  return Promise.all([dictStore.getDicts(), dictStore.getTreeDicts(), dictStore.getMapDicts(), dictStore.getMapTreeDicts(), dictStore.getVersion()]).then(([dicts, treeDicts, mapDicts, mapTreeDicts, dictVersion]) => {
@@ -3866,7 +3967,7 @@ class form_tools_service_FormToolsService {
3866
3967
  }
3867
3968
  } else if (this.formConfig.loadMode === "dynamic") {
3868
3969
  if (this.formConfig.appId) {
3869
- const url1 = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype";
3970
+ const url1 = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype";
3870
3971
  const url = this.formConfig.dictUrl ? this.formConfig.dictUrl : url1 || "";
3871
3972
  const path = routerService.getPathFromUrl(url);
3872
3973
  let query = routerService.getParamsFromUrl(url) || {};
@@ -3885,7 +3986,7 @@ class form_tools_service_FormToolsService {
3885
3986
  if (res.data && res.data instanceof Array && res.data.length > 0) {
3886
3987
  desCacheVersion = res.data[0].desCacheVersion;
3887
3988
  }
3888
- const distUrl = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + desCacheVersion.storageAddress;
3989
+ const distUrl = this.formConfig.url + this.formConfig.contextPath + "/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + desCacheVersion.storageAddress;
3889
3990
  if (String(dictVersion) !== String(desCacheVersion.cacheVersionNumber)) {
3890
3991
  return this.loadDict([distUrl]).then(resEx => {
3891
3992
  if (resEx.code === 1) {
@@ -3961,10 +4062,10 @@ class form_tools_service_FormToolsService {
3961
4062
  return form_tools_service_FormToolsService.LOAD_FAIL;
3962
4063
  });
3963
4064
  }
3964
- /**
3965
- * @description: 加载远程字典配置
3966
- * @author ChenRui
3967
- * @date 2020/11/20 17:30
4065
+ /**
4066
+ * @description: 加载远程字典配置
4067
+ * @author ChenRui
4068
+ * @date 2020/11/20 17:30
3968
4069
  */
3969
4070
  loadDict(urls) {
3970
4071
  return this.mergeFetchDict(urls).then(sysDictInfos => {
@@ -4015,10 +4116,10 @@ class form_tools_service_FormToolsService {
4015
4116
  // });
4016
4117
  // }
4017
4118
  }
4018
- /**
4019
- * @description: 合并多个应用字典
4020
- * @author ZPFly
4021
- * @date 2022/10/17 15:39
4119
+ /**
4120
+ * @description: 合并多个应用字典
4121
+ * @author ZPFly
4122
+ * @date 2022/10/17 15:39
4022
4123
  */
4023
4124
  mergeFetchDict(dictUrl) {
4024
4125
  const fetchDicts = [];
@@ -4042,10 +4143,10 @@ class form_tools_service_FormToolsService {
4042
4143
  return filterDist;
4043
4144
  });
4044
4145
  }
4045
- /**
4046
- * @description: 初始化字典可选项
4047
- * @author ChenRui
4048
- * @date 2020/11/10 20:38
4146
+ /**
4147
+ * @description: 初始化字典可选项
4148
+ * @author ChenRui
4149
+ * @date 2020/11/10 20:38
4049
4150
  */
4050
4151
  inidDictOptions(sysDictInfos) {
4051
4152
  const sysDictDetailOptions = [];
@@ -4085,10 +4186,10 @@ class form_tools_service_FormToolsService {
4085
4186
  mapSysDictTreeDetailOptions: mapTreeNodeOptions
4086
4187
  };
4087
4188
  }
4088
- /**
4089
- * @description: 格式化表单
4090
- * @author ChenRui
4091
- * @date 2020/11/30 15:48
4189
+ /**
4190
+ * @description: 格式化表单
4191
+ * @author ChenRui
4192
+ * @date 2020/11/30 15:48
4092
4193
  */
4093
4194
  formatDesForm(sourceDesForm) {
4094
4195
  if (sourceDesForm != null) {
@@ -4101,10 +4202,10 @@ class form_tools_service_FormToolsService {
4101
4202
  return newDesForm;
4102
4203
  }
4103
4204
  }
4104
- /**
4105
- * @description: 递归格式化
4106
- * @author ChenRui
4107
- * @date 2020/11/17 10:16
4205
+ /**
4206
+ * @description: 递归格式化
4207
+ * @author ChenRui
4208
+ * @date 2020/11/17 10:16
4108
4209
  */
4109
4210
  recursionFormatForm(desFormControls, desFormLayouts) {
4110
4211
  const controls = [];
@@ -4169,10 +4270,10 @@ class form_tools_service_FormToolsService {
4169
4270
  }
4170
4271
  return controls;
4171
4272
  }
4172
- /**
4173
- * @description: 控件排序
4174
- * @author ChenRui
4175
- * @date 2020/11/17 11:59
4273
+ /**
4274
+ * @description: 控件排序
4275
+ * @author ChenRui
4276
+ * @date 2020/11/17 11:59
4176
4277
  */
4177
4278
  sortControls(controls) {
4178
4279
  controls.sort((controlA, controlB) => {
@@ -4196,10 +4297,10 @@ class form_tools_service_FormToolsService {
4196
4297
  }
4197
4298
  });
4198
4299
  }
4199
- /**
4200
- * @description: 加载资源
4201
- * @author ChenRui
4202
- * @date 2020/11/23 11:00
4300
+ /**
4301
+ * @description: 加载资源
4302
+ * @author ChenRui
4303
+ * @date 2020/11/23 11:00
4203
4304
  */
4204
4305
  loadResource(formId) {
4205
4306
  const desForm = this.desForms.find(item => item.formId === formId);
@@ -4211,27 +4312,27 @@ class form_tools_service_FormToolsService {
4211
4312
  });
4212
4313
  }
4213
4314
  }
4214
- /**
4215
- * @description: rest客户端
4216
- * @author ChenRui
4217
- * @date 2020/11/19 21:02
4315
+ /**
4316
+ * @description: rest客户端
4317
+ * @author ChenRui
4318
+ * @date 2020/11/19 21:02
4218
4319
  */
4219
4320
  fetch(path, params, body, method = "GET", headers, simple = false) {
4220
4321
  headers = headers ? headers : apiService.createBasicHeaders();
4221
4322
  return simple ? fetch(path).then(response => response.json()) : apiService.fetch(path, params, body, method, headers);
4222
4323
  }
4223
- /**
4224
- * @description: 校验提示
4225
- * @author ChenRui
4226
- * @date 2021/8/18 17:14
4324
+ /**
4325
+ * @description: 校验提示
4326
+ * @author ChenRui
4327
+ * @date 2021/8/18 17:14
4227
4328
  */
4228
4329
  validateTips(formApis, scrollView) {
4229
4330
  return formValidateService.validateTips(formApis, scrollView);
4230
4331
  }
4231
- /**
4232
- * @description: 创建认证下载消息头
4233
- * @author ChenRui
4234
- * @date 2020/8/28 15:18
4332
+ /**
4333
+ * @description: 创建认证下载消息头
4334
+ * @author ChenRui
4335
+ * @date 2020/8/28 15:18
4235
4336
  */
4236
4337
  createFileDownloadAuthorizationHeader() {
4237
4338
  return {
@@ -4408,10 +4509,10 @@ function amount_capitalization_filter_transform(currencyDigits) {
4408
4509
  outputCharacters = CN_SYMBOL + prefix + outputCharacters;
4409
4510
  return outputCharacters;
4410
4511
  }
4411
- /**
4412
- * @description: 跨列计算
4413
- * @author ChenRui
4414
- * @date 2020/12/1 19:34
4512
+ /**
4513
+ * @description: 跨列计算
4514
+ * @author ChenRui
4515
+ * @date 2020/12/1 19:34
4415
4516
  */
4416
4517
  const amountCapitalization = data => {
4417
4518
  return amount_capitalization_filter_transform(data);
@@ -4607,10 +4708,12 @@ var validate_status_enum = __webpack_require__("2804");
4607
4708
 
4608
4709
 
4609
4710
 
4610
- /**
4611
- * @description: 控件对象
4612
- * @author ChenRui
4613
- * @date 2020/12/1 15:06
4711
+
4712
+
4713
+ /**
4714
+ * @description: 控件对象
4715
+ * @author ChenRui
4716
+ * @date 2020/12/1 15:06
4614
4717
  */
4615
4718
  class FormControl_FormControl extends AbstractControl_AbstractControl {
4616
4719
  // 获取文本内容回调
@@ -4629,10 +4732,10 @@ class FormControl_FormControl extends AbstractControl_AbstractControl {
4629
4732
  get(path) {
4630
4733
  return this;
4631
4734
  }
4632
- /**
4633
- * @description: 添加校验
4634
- * @author ChenRui
4635
- * @date 2021/1/26 21:05
4735
+ /**
4736
+ * @description: 添加校验
4737
+ * @author ChenRui
4738
+ * @date 2021/1/26 21:05
4636
4739
  */
4637
4740
  addValidate(validate) {
4638
4741
  let validates = [];
@@ -4654,10 +4757,10 @@ class FormControl_FormControl extends AbstractControl_AbstractControl {
4654
4757
  }
4655
4758
  }
4656
4759
  }
4657
- /**
4658
- * @description: 移除校验
4659
- * @author ChenRui
4660
- * @date 2021/1/26 21:06
4760
+ /**
4761
+ * @description: 移除校验
4762
+ * @author ChenRui
4763
+ * @date 2021/1/26 21:06
4661
4764
  */
4662
4765
  removeValidate(name) {
4663
4766
  if (name) {
@@ -4667,10 +4770,10 @@ class FormControl_FormControl extends AbstractControl_AbstractControl {
4667
4770
  }
4668
4771
  }
4669
4772
  }
4670
- /**
4671
- * @description: 获取校验
4672
- * @author ChenRui
4673
- * @date 2021/1/30 11:47
4773
+ /**
4774
+ * @description: 获取校验
4775
+ * @author ChenRui
4776
+ * @date 2021/1/30 11:47
4674
4777
  */
4675
4778
  getValidate(name) {
4676
4779
  if (name) {
@@ -4678,10 +4781,10 @@ class FormControl_FormControl extends AbstractControl_AbstractControl {
4678
4781
  }
4679
4782
  return null;
4680
4783
  }
4681
- /**
4682
- * @description: 校验
4683
- * @author ChenRui
4684
- * @date 2021/1/26 21:08
4784
+ /**
4785
+ * @description: 校验
4786
+ * @author ChenRui
4787
+ * @date 2021/1/26 21:08
4685
4788
  */
4686
4789
  validate(val = this.value) {
4687
4790
  for (let i = 0; i < this.validates.length; i++) {
@@ -4695,10 +4798,10 @@ class FormControl_FormControl extends AbstractControl_AbstractControl {
4695
4798
  errorMsg: null
4696
4799
  };
4697
4800
  }
4698
- /**
4699
- * @description: 获取文本内容
4700
- * @author ChenRui
4701
- * @date 2021/1/29 15:56
4801
+ /**
4802
+ * @description: 获取文本内容
4803
+ * @author ChenRui
4804
+ * @date 2021/1/29 15:56
4702
4805
  */
4703
4806
  text() {
4704
4807
  if (this.textNoticeCallback) {
@@ -4712,10 +4815,10 @@ class FormControl_FormControl extends AbstractControl_AbstractControl {
4712
4815
  // CONCATENATED MODULE: ./src/domain/FormGroup.ts
4713
4816
 
4714
4817
 
4715
- /**
4716
- * @description: 表单对象
4717
- * @author ChenRui
4718
- * @date 2020/12/1 15:06
4818
+ /**
4819
+ * @description: 表单对象
4820
+ * @author ChenRui
4821
+ * @date 2020/12/1 15:06
4719
4822
  */
4720
4823
  class FormGroup_FormGroup extends AbstractControl_AbstractControl {
4721
4824
  constructor(controls = {}) {
@@ -4723,18 +4826,18 @@ class FormGroup_FormGroup extends AbstractControl_AbstractControl {
4723
4826
  _defineProperty(this, "controls", void 0);
4724
4827
  this.controls = controls;
4725
4828
  }
4726
- /**
4727
- * @description: 添加控件
4728
- * @author ChenRui
4729
- * @date 2020/12/1 14:47
4829
+ /**
4830
+ * @description: 添加控件
4831
+ * @author ChenRui
4832
+ * @date 2020/12/1 14:47
4730
4833
  */
4731
4834
  addControl(name, control) {
4732
4835
  this.controls[name] = control;
4733
4836
  }
4734
- /**
4735
- * @description: 移除控件
4736
- * @author ChenRui
4737
- * @date 2020/12/1 14:47
4837
+ /**
4838
+ * @description: 移除控件
4839
+ * @author ChenRui
4840
+ * @date 2020/12/1 14:47
4738
4841
  */
4739
4842
  removeControl(name) {
4740
4843
  if (this.controls[name] != null) {
@@ -4803,18 +4906,18 @@ function extract_options_filter_transform(controlAttr) {
4803
4906
  }
4804
4907
  return [];
4805
4908
  }
4806
- /**
4807
- * @description: 根据字典类型获取可选项
4808
- * @author ChenRui
4809
- * @date 2020/12/30 11:18
4909
+ /**
4910
+ * @description: 根据字典类型获取可选项
4911
+ * @author ChenRui
4912
+ * @date 2020/12/30 11:18
4810
4913
  */
4811
4914
  const extractOptions = (controlAttr, ...args) => {
4812
4915
  return extract_options_filter_transform(controlAttr);
4813
4916
  };
4814
- /**
4815
- * @description: 保存可选项
4816
- * @author ChenRui
4817
- * @date 2021/1/29 16:17
4917
+ /**
4918
+ * @description: 保存可选项
4919
+ * @author ChenRui
4920
+ * @date 2021/1/29 16:17
4818
4921
  */
4819
4922
  const storageOptions = (controlAttr, data) => {
4820
4923
  return transformReverse(controlAttr, data);
@@ -4826,10 +4929,10 @@ var zoom_type = __webpack_require__("fbf2");
4826
4929
  // CONCATENATED MODULE: ./src/filtres/zoom-multiple.filter.ts
4827
4930
 
4828
4931
 
4829
- /**
4830
- * @description: 通用字典转换
4831
- * @author ChenRui
4832
- * @date 2020/7/29 18:43
4932
+ /**
4933
+ * @description: 通用字典转换
4934
+ * @author ChenRui
4935
+ * @date 2020/7/29 18:43
4833
4936
  */
4834
4937
  function encode(data, formControl) {
4835
4938
  var _getCurrentInstance;
@@ -4860,10 +4963,10 @@ const zoomMultiple = (code, formControl) => {
4860
4963
  };
4861
4964
  /* harmony default export */ var zoom_multiple_filter = (zoomMultiple);
4862
4965
  // CONCATENATED MODULE: ./src/filtres/switch-enum-convert.filter.ts
4863
- /**
4864
- * @description: 通用字典转换
4865
- * @author ChenRui
4866
- * @date 2020/7/29 18:43
4966
+ /**
4967
+ * @description: 通用字典转换
4968
+ * @author ChenRui
4969
+ * @date 2020/7/29 18:43
4867
4970
  */
4868
4971
  function switch_enum_convert_filter_encode(code, switchEnumFiled, attribute, defaultVal) {
4869
4972
  if (switchEnumFiled != null && Object.values(switchEnumFiled).length > 0) {
@@ -4879,7 +4982,6 @@ const switchEnumConvert = (code, switchEnumFiled, attribute, defaultVal) => {
4879
4982
  /* harmony default export */ var switch_enum_convert_filter = (switchEnumConvert);
4880
4983
  // 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
4881
4984
 
4882
- 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);
4883
4985
  const StretchTextvue_type_template_id_12085cfe_scoped_true_ts_true_hoisted_1 = ["title"];
4884
4986
  const StretchTextvue_type_template_id_12085cfe_scoped_true_ts_true_hoisted_2 = {
4885
4987
  key: 1
@@ -4940,10 +5042,10 @@ let StretchTextvue_type_script_lang_ts_StretchText = class StretchText extends e
4940
5042
  mounted() {
4941
5043
  this.onContentHandle();
4942
5044
  }
4943
- /**
4944
- * @Description 表单数据反显回调(data:string 元素值value)
4945
- * @Author JiangTao
4946
- * @Date 2023-10-07 下午 05:24
5045
+ /**
5046
+ * @Description 表单数据反显回调(data:string 元素值value)
5047
+ * @Author JiangTao
5048
+ * @Date 2023-10-07 下午 05:24
4947
5049
  */
4948
5050
  linkClick(data) {
4949
5051
  this.$emit("linkClick", data);
@@ -5897,6 +5999,14 @@ const pinYin = {
5897
5999
 
5898
6000
 
5899
6001
 
6002
+
6003
+
6004
+
6005
+
6006
+
6007
+
6008
+
6009
+
5900
6010
 
5901
6011
 
5902
6012
 
@@ -5970,26 +6080,26 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
5970
6080
  }
5971
6081
  }
5972
6082
  }
5973
- /**
5974
- * @description: 校验反馈
5975
- * @author ChenRui
5976
- * @date 2021/2/26 14:24
6083
+ /**
6084
+ * @description: 校验反馈
6085
+ * @author ChenRui
6086
+ * @date 2021/2/26 14:24
5977
6087
  */
5978
6088
  onValidationFeedbackHandle() {
5979
6089
  this.validateResult = this.formControl.validate();
5980
6090
  }
5981
- /**
5982
- * @description: 表单校验
5983
- * @author ChenRui
5984
- * @date 2022/4/6 14:12
6091
+ /**
6092
+ * @description: 表单校验
6093
+ * @author ChenRui
6094
+ * @date 2022/4/6 14:12
5985
6095
  */
5986
6096
  onFormValidateStateResetMarkHandle() {
5987
6097
  this.validateResult = {};
5988
6098
  }
5989
- /**
5990
- * @Description 表单数据反显回调(data:Object { key: 元素码值, value: 元素值 })
5991
- * @Author JiangTao
5992
- * @Date 2023-10-07 下午 05:22
6099
+ /**
6100
+ * @Description 表单数据反显回调(data:Object { key: 元素码值, value: 元素值 })
6101
+ * @Author JiangTao
6102
+ * @Date 2023-10-07 下午 05:22
5993
6103
  */
5994
6104
  linkClick(data) {
5995
6105
  this.$emit("linkClick", data);
@@ -5999,10 +6109,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
5999
6109
  this.$emit("fixFormLayout");
6000
6110
  });
6001
6111
  }
6002
- /**
6003
- * @description: 输入框形态
6004
- * @author ChenRui
6005
- * @date 2022/5/7 17:48
6112
+ /**
6113
+ * @description: 输入框形态
6114
+ * @author ChenRui
6115
+ * @date 2022/5/7 17:48
6006
6116
  */
6007
6117
  get inputShape() {
6008
6118
  if (this.controlAttr.isPasswordBox) {
@@ -6013,10 +6123,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6013
6123
  return "a-input";
6014
6124
  }
6015
6125
  }
6016
- /**
6017
- * @description: 获取控件对象
6018
- * @author ChenRui
6019
- * @date 2021/1/27 11:07
6126
+ /**
6127
+ * @description: 获取控件对象
6128
+ * @author ChenRui
6129
+ * @date 2021/1/27 11:07
6020
6130
  */
6021
6131
  get formControl() {
6022
6132
  if (this.control && this.control.formControl) {
@@ -6026,28 +6136,28 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6026
6136
  }
6027
6137
  return new FormControl_FormControl();
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 controlAttr() {
6035
6145
  var _this$control;
6036
6146
  return (_this$control = this.control) === null || _this$control === void 0 ? void 0 : _this$control.controlAttr;
6037
6147
  }
6038
- /**
6039
- * @description: 获取控件配置参数
6040
- * @author ChenRui
6041
- * @date 2021/1/5 11:26
6148
+ /**
6149
+ * @description: 获取控件配置参数
6150
+ * @author ChenRui
6151
+ * @date 2021/1/5 11:26
6042
6152
  */
6043
6153
  get parentControlAttr() {
6044
6154
  var _this$parentControl;
6045
6155
  return (_this$parentControl = this.parentControl) === null || _this$parentControl === void 0 ? void 0 : _this$parentControl.controlAttr;
6046
6156
  }
6047
- /**
6048
- * @description: 获取布局方式
6049
- * @author ChenRui
6050
- * @date 2020/12/30 18:19
6157
+ /**
6158
+ * @description: 获取布局方式
6159
+ * @author ChenRui
6160
+ * @date 2020/12/30 18:19
6051
6161
  */
6052
6162
  get layout() {
6053
6163
  for (const propName of Object.keys(constants_enum["r" /* VerticalArrangement */])) {
@@ -6057,18 +6167,18 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6057
6167
  }
6058
6168
  return constants_enum["r" /* VerticalArrangement */].AlignRight.value;
6059
6169
  }
6060
- /**
6061
- * @description: 当前输入的字符长度
6062
- * @author ChenRui
6063
- * @date 2021/4/20 15:55
6170
+ /**
6171
+ * @description: 当前输入的字符长度
6172
+ * @author ChenRui
6173
+ * @date 2021/4/20 15:55
6064
6174
  */
6065
6175
  get currentCharacterCount() {
6066
6176
  return this.control.formControl && this.control.formControl.value ? this.control.formControl.value.length : 0;
6067
6177
  }
6068
- /**
6069
- * @description: 最大字数限制
6070
- * @author ChenRui
6071
- * @date 2021/4/20 15:38
6178
+ /**
6179
+ * @description: 最大字数限制
6180
+ * @author ChenRui
6181
+ * @date 2021/4/20 15:38
6072
6182
  */
6073
6183
  get maxCharacterCount() {
6074
6184
  const controlAttr = this.controlAttr;
@@ -6080,10 +6190,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6080
6190
  }
6081
6191
  return undefined;
6082
6192
  }
6083
- /**
6084
- * @description: 数字格式化
6085
- * @author ChenRui
6086
- * @date 2021/1/14 16:30
6193
+ /**
6194
+ * @description: 数字格式化
6195
+ * @author ChenRui
6196
+ * @date 2021/1/14 16:30
6087
6197
  */
6088
6198
  get numberFormatter() {
6089
6199
  const controlAttr = this.controlAttr;
@@ -6131,10 +6241,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6131
6241
  }
6132
6242
  };
6133
6243
  }
6134
- /**
6135
- * @description: 数字反格式化
6136
- * @author ChenRui
6137
- * @date 2021/1/14 16:31
6244
+ /**
6245
+ * @description: 数字反格式化
6246
+ * @author ChenRui
6247
+ * @date 2021/1/14 16:31
6138
6248
  */
6139
6249
  get numberParser() {
6140
6250
  const controlAttr = this.controlAttr;
@@ -6169,10 +6279,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6169
6279
  }
6170
6280
  };
6171
6281
  }
6172
- /**
6173
- * @description: label 宽度
6174
- * @author ChenRui
6175
- * @date 2021/1/5 11:59
6282
+ /**
6283
+ * @description: label 宽度
6284
+ * @author ChenRui
6285
+ * @date 2021/1/5 11:59
6176
6286
  */
6177
6287
  get labelSpanWidth() {
6178
6288
  const controlAttr = this.controlAttr;
@@ -6185,18 +6295,18 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6185
6295
  return this.provideInjectData.labelSpan;
6186
6296
  }
6187
6297
  }
6188
- /**
6189
- * @description: 标签后是否显示冒号
6190
- * @author ZPFly
6191
- * @date 2022/7/15 10:54
6298
+ /**
6299
+ * @description: 标签后是否显示冒号
6300
+ * @author ZPFly
6301
+ * @date 2022/7/15 10:54
6192
6302
  */
6193
6303
  get colon() {
6194
6304
  return this.provideInjectData.colon;
6195
6305
  }
6196
- /**
6197
- * @description: 最大宽度设置
6198
- * @author ChenRui
6199
- * @date 2021/7/8 16:39
6306
+ /**
6307
+ * @description: 最大宽度设置
6308
+ * @author ChenRui
6309
+ * @date 2021/7/8 16:39
6200
6310
  */
6201
6311
  get controlSpanMaxWidth() {
6202
6312
  const controlAttr = this.controlAttr;
@@ -6211,10 +6321,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6211
6321
  return "none";
6212
6322
  }
6213
6323
  }
6214
- /**
6215
- * @description: 控件宽度
6216
- * @author ChenRui
6217
- * @date 2021/1/5 15:11
6324
+ /**
6325
+ * @description: 控件宽度
6326
+ * @author ChenRui
6327
+ * @date 2021/1/5 15:11
6218
6328
  */
6219
6329
  get controlSpanWidth() {
6220
6330
  const controlAttr = this.controlAttr;
@@ -6229,10 +6339,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6229
6339
  return 0;
6230
6340
  }
6231
6341
  }
6232
- /**
6233
- * @description: label 标签的文本对齐方式
6234
- * @author ChenRui
6235
- * @date 2021/1/5 11:59
6342
+ /**
6343
+ * @description: label 标签的文本对齐方式
6344
+ * @author ChenRui
6345
+ * @date 2021/1/5 11:59
6236
6346
  */
6237
6347
  get labelAlign() {
6238
6348
  for (const propName of Object.keys(constants_enum["r" /* VerticalArrangement */])) {
@@ -6242,10 +6352,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6242
6352
  }
6243
6353
  return constants_enum["r" /* VerticalArrangement */].AlignRight.textAlign;
6244
6354
  }
6245
- /**
6246
- * @description: 获取金额转换单位
6247
- * @author ChenRui
6248
- * @date 2021/2/20 17:43
6355
+ /**
6356
+ * @description: 获取金额转换单位
6357
+ * @author ChenRui
6358
+ * @date 2021/2/20 17:43
6249
6359
  */
6250
6360
  get moneyUnits() {
6251
6361
  const moneyUnits = [];
@@ -6262,10 +6372,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6262
6372
  }
6263
6373
  return moneyUnits;
6264
6374
  }
6265
- /**
6266
- * @description: 单位缩放比例
6267
- * @author ChenRui
6268
- * @date 2022/5/7 10:31
6375
+ /**
6376
+ * @description: 单位缩放比例
6377
+ * @author ChenRui
6378
+ * @date 2022/5/7 10:31
6269
6379
  */
6270
6380
  get moneyUnitsIndentScale() {
6271
6381
  const moneyUnit = this.defaultMoneyUnit;
@@ -6274,18 +6384,18 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6274
6384
  }
6275
6385
  return 0;
6276
6386
  }
6277
- /**
6278
- * @description: 获取select、checkbox、radio可选项
6279
- * @author ChenRui
6280
- * @date 2020/12/2 14:36
6387
+ /**
6388
+ * @description: 获取select、checkbox、radio可选项
6389
+ * @author ChenRui
6390
+ * @date 2020/12/2 14:36
6281
6391
  */
6282
6392
  get options() {
6283
6393
  return extractOptions(this.controlAttr);
6284
6394
  }
6285
- /**
6286
- * @description: 使用月份组件
6287
- * @author ChenRui
6288
- * @date 2021/5/19 16:12
6395
+ /**
6396
+ * @description: 使用月份组件
6397
+ * @author ChenRui
6398
+ * @date 2021/5/19 16:12
6289
6399
  */
6290
6400
  get useMonthPicker() {
6291
6401
  const dateFormat = this.controlAttr.dateFormat;
@@ -6294,10 +6404,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6294
6404
  }
6295
6405
  return false;
6296
6406
  }
6297
- /**
6298
- * @description: 级联选择框
6299
- * @author ChenRui
6300
- * @date 2021/1/5 16:31
6407
+ /**
6408
+ * @description: 级联选择框
6409
+ * @author ChenRui
6410
+ * @date 2021/1/5 16:31
6301
6411
  */
6302
6412
  get cascaderOptions() {
6303
6413
  const value = this.options;
@@ -6308,10 +6418,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6308
6418
  }
6309
6419
  return options;
6310
6420
  }
6311
- /**
6312
- * @description: 树形下拉选项
6313
- * @author ChenRui
6314
- * @date 2021/1/5 16:44
6421
+ /**
6422
+ * @description: 树形下拉选项
6423
+ * @author ChenRui
6424
+ * @date 2021/1/5 16:44
6315
6425
  */
6316
6426
  get treeSelectOptions() {
6317
6427
  const value = this.options;
@@ -6323,26 +6433,26 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6323
6433
  }
6324
6434
  return [];
6325
6435
  }
6326
- /**
6327
- * @description: 是否12小时制
6328
- * @author ChenRui
6329
- * @date 2021/1/18 10:54
6436
+ /**
6437
+ * @description: 是否12小时制
6438
+ * @author ChenRui
6439
+ * @date 2021/1/18 10:54
6330
6440
  */
6331
6441
  get is12Hours() {
6332
6442
  return !!this.controlAttr.timeFormat && this.controlAttr.timeFormat.indexOf(":ss") < 0;
6333
6443
  }
6334
- /**
6335
- * @description: 是否添加反馈
6336
- * @author ChenRui
6337
- * @date 2021/1/21 10:43
6444
+ /**
6445
+ * @description: 是否添加反馈
6446
+ * @author ChenRui
6447
+ * @date 2021/1/21 10:43
6338
6448
  */
6339
6449
  get hasFeedback() {
6340
6450
  return this.control.formControl != null && this.control.formControl.validates && this.control.formControl.validates.length > 0;
6341
6451
  }
6342
- /**
6343
- * @description: 是否必填,仅影响样式
6344
- * @author ChenRui
6345
- * @date 2021/1/21 10:50
6452
+ /**
6453
+ * @description: 是否必填,仅影响样式
6454
+ * @author ChenRui
6455
+ * @date 2021/1/21 10:50
6346
6456
  */
6347
6457
  get required() {
6348
6458
  if (this.hasFeedback && this.control.formControl.validates.findIndex(item => String(item.name) === String(constants_enum["p" /* ValidateRules */].Required.code)) !== -1) {
@@ -6350,10 +6460,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6350
6460
  }
6351
6461
  return false;
6352
6462
  }
6353
- /**
6354
- * @description: 格式化数据
6355
- * @author ChenRui
6356
- * @date 2021/1/8 11:30
6463
+ /**
6464
+ * @description: 格式化数据
6465
+ * @author ChenRui
6466
+ * @date 2021/1/8 11:30
6357
6467
  */
6358
6468
  get formatData() {
6359
6469
  this.metaRefresh = this.provideInjectData.metaRefresh; // 刷新标识
@@ -6464,10 +6574,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6464
6574
  }
6465
6575
  return data;
6466
6576
  }
6467
- /**
6468
- * @description: 支持的上传类型
6469
- * @author ChenRui
6470
- * @date 2021/4/25 11:50
6577
+ /**
6578
+ * @description: 支持的上传类型
6579
+ * @author ChenRui
6580
+ * @date 2021/4/25 11:50
6471
6581
  */
6472
6582
  get uploadType() {
6473
6583
  const controlAttr = this.controlAttr;
@@ -6478,36 +6588,36 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6478
6588
  }
6479
6589
  return undefined;
6480
6590
  }
6481
- /**
6482
- * @description: 下拉选项新增
6483
- * @author ChenRui
6484
- * @date 2021/1/14 20:05
6591
+ /**
6592
+ * @description: 下拉选项新增
6593
+ * @author ChenRui
6594
+ * @date 2021/1/14 20:05
6485
6595
  */
6486
6596
  selectAddItem(event) {
6487
6597
  this.$emit("add-item", event);
6488
- /*const controlAttr: DesFormControl = this.controlAttr as DesFormControl;
6489
- if (controlAttr != null) {
6490
- if (controlAttr.isOptionType === OptionType.Fixed.code) {
6491
- console.log(controlAttr.optionConfig);
6492
- } else if (controlAttr.isOptionType === OptionType.Dynamic.code) {
6493
- if (controlAttr.dynamicOptionType === DynamicOptionType.GeneralDictionary.code) {
6494
- console.log(controlAttr.generalDictionaryOptions);
6495
- }
6496
- }
6598
+ /*const controlAttr: DesFormControl = this.controlAttr as DesFormControl;
6599
+ if (controlAttr != null) {
6600
+ if (controlAttr.isOptionType === OptionType.Fixed.code) {
6601
+ console.log(controlAttr.optionConfig);
6602
+ } else if (controlAttr.isOptionType === OptionType.Dynamic.code) {
6603
+ if (controlAttr.dynamicOptionType === DynamicOptionType.GeneralDictionary.code) {
6604
+ console.log(controlAttr.generalDictionaryOptions);
6605
+ }
6606
+ }
6497
6607
  }*/
6498
6608
  }
6499
- /**
6500
- * @description: 级联搜索
6501
- * @author ChenRui
6502
- * @date 2021/5/19 17:23
6609
+ /**
6610
+ * @description: 级联搜索
6611
+ * @author ChenRui
6612
+ * @date 2021/5/19 17:23
6503
6613
  */
6504
6614
  cascaderFilter(inputValue, path) {
6505
6615
  return path.some(option => option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1);
6506
6616
  }
6507
- /**
6508
- * @description: 递归生成树形下拉选项
6509
- * @author ChenRui
6510
- * @date 2021/1/5 16:44
6617
+ /**
6618
+ * @description: 递归生成树形下拉选项
6619
+ * @author ChenRui
6620
+ * @date 2021/1/5 16:44
6511
6621
  */
6512
6622
  treeSelectRecursion(items) {
6513
6623
  const options = [];
@@ -6523,10 +6633,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6523
6633
  });
6524
6634
  return options;
6525
6635
  }
6526
- /**
6527
- * @description: 级联递归
6528
- * @author ChenRui
6529
- * @date 2021/1/5 16:35
6636
+ /**
6637
+ * @description: 级联递归
6638
+ * @author ChenRui
6639
+ * @date 2021/1/5 16:35
6530
6640
  */
6531
6641
  cascaderRecursion(items) {
6532
6642
  const options = [];
@@ -6545,10 +6655,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6545
6655
  });
6546
6656
  return options;
6547
6657
  }
6548
- /**
6549
- * @description: 递归获取级联选项对应的文本
6550
- * @author ChenRui
6551
- * @date 2021/1/8 14:45
6658
+ /**
6659
+ * @description: 递归获取级联选项对应的文本
6660
+ * @author ChenRui
6661
+ * @date 2021/1/8 14:45
6552
6662
  */
6553
6663
  cascaderContextRecursion(val, cascaderOptions, index = 0) {
6554
6664
  if (val && val.length > 0 && cascaderOptions && cascaderOptions.length > 0) {
@@ -6567,10 +6677,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6567
6677
  }
6568
6678
  return "";
6569
6679
  }
6570
- /**
6571
- * @description:
6572
- * @author ChenRui
6573
- * @date 2021/1/8 15:05
6680
+ /**
6681
+ * @description:
6682
+ * @author ChenRui
6683
+ * @date 2021/1/8 15:05
6574
6684
  */
6575
6685
  treeSelectContextRecursion(val, treeSelectOptions) {
6576
6686
  if (val && treeSelectOptions && treeSelectOptions.length > 0) {
@@ -6587,18 +6697,18 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6587
6697
  }
6588
6698
  return "";
6589
6699
  }
6590
- /**
6591
- * @description: 是否为ie
6592
- * @author ChenRui
6593
- * @date 2021/3/25 14:44
6700
+ /**
6701
+ * @description: 是否为ie
6702
+ * @author ChenRui
6703
+ * @date 2021/3/25 14:44
6594
6704
  */
6595
6705
  get isIe() {
6596
6706
  return !!this.provideInjectData.widthCompatibleMode || !!window.ActiveXObject || "ActiveXObject" in window;
6597
6707
  }
6598
- /**
6599
- * @description: ie 兼容性宽度布局
6600
- * @author ChenRui
6601
- * @date 2021/3/25 12:53
6708
+ /**
6709
+ * @description: ie 兼容性宽度布局
6710
+ * @author ChenRui
6711
+ * @date 2021/3/25 12:53
6602
6712
  */
6603
6713
  get divWidthCompatibleToIe() {
6604
6714
  if (this.isIe) {
@@ -6616,10 +6726,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6616
6726
  return "100%";
6617
6727
  }
6618
6728
  }
6619
- /**
6620
- * @description: 根节点容器布局样式
6621
- * @author ChenRui
6622
- * @date 2021/3/25 14:52
6729
+ /**
6730
+ * @description: 根节点容器布局样式
6731
+ * @author ChenRui
6732
+ * @date 2021/3/25 14:52
6623
6733
  */
6624
6734
  get emptyLayoutContainerStyle() {
6625
6735
  let style = {};
@@ -6637,10 +6747,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6637
6747
  }
6638
6748
  return style;
6639
6749
  }
6640
- /**
6641
- * @description: 常规布局容器样式
6642
- * @author ChenRui
6643
- * @date 2021/3/25 14:42
6750
+ /**
6751
+ * @description: 常规布局容器样式
6752
+ * @author ChenRui
6753
+ * @date 2021/3/25 14:42
6644
6754
  */
6645
6755
  get generalLayoutContainerStyle() {
6646
6756
  let style = {};
@@ -6660,10 +6770,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6660
6770
  }
6661
6771
  return style;
6662
6772
  }
6663
- /**
6664
- * @description: 初始化部分数据
6665
- * @author ChenRui
6666
- * @date 2021/1/29 15:28
6773
+ /**
6774
+ * @description: 初始化部分数据
6775
+ * @author ChenRui
6776
+ * @date 2021/1/29 15:28
6667
6777
  */
6668
6778
  initFormControlData() {
6669
6779
  if (this.control && this.control.formControl) {
@@ -6695,10 +6805,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6695
6805
  }
6696
6806
  }
6697
6807
  }
6698
- /**
6699
- * @description: 业务属性
6700
- * @author ChenRui
6701
- * @date 2021/2/1 14:38
6808
+ /**
6809
+ * @description: 业务属性
6810
+ * @author ChenRui
6811
+ * @date 2021/2/1 14:38
6702
6812
  */
6703
6813
  get busAttr() {
6704
6814
  const controlAttr = this.controlAttr;
@@ -6727,10 +6837,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6727
6837
  [constants_enum["e" /* FormBusAttr */].IS_TRACK.code]: busAttr ? busAttr[constants_enum["e" /* FormBusAttr */].IS_TRACK.code] : false
6728
6838
  };
6729
6839
  }
6730
- /**
6731
- * @description: 报送类型
6732
- * @author ChenRui
6733
- * @date 2021/2/1 15:05
6840
+ /**
6841
+ * @description: 报送类型
6842
+ * @author ChenRui
6843
+ * @date 2021/2/1 15:05
6734
6844
  */
6735
6845
  get submittedType() {
6736
6846
  if (this.busAttr && this.busAttr[constants_enum["e" /* FormBusAttr */].SUBMITTED_TYPE.code].length > 0) {
@@ -6738,17 +6848,17 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6738
6848
  }
6739
6849
  return [];
6740
6850
  }
6741
- /**
6742
- * @description: 报送类型字符串
6743
- * @author ChenRui
6744
- * @date 2021/2/1 15:08
6851
+ /**
6852
+ * @description: 报送类型字符串
6853
+ * @author ChenRui
6854
+ * @date 2021/2/1 15:08
6745
6855
  */
6746
6856
  get submittedTypeStr() {
6747
6857
  return this.submittedType.map(item => item.label).join("、");
6748
6858
  }
6749
- /**
6750
- * 根据日期时间格式决定是否显示时间选择功能
6751
- * @param format
6859
+ /**
6860
+ * 根据日期时间格式决定是否显示时间选择功能
6861
+ * @param format
6752
6862
  */
6753
6863
  showPickerTime(format) {
6754
6864
  // format 包含时间格式
@@ -6757,10 +6867,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6757
6867
  }
6758
6868
  return false;
6759
6869
  }
6760
- /**
6761
- * @description: 清除特殊字符
6762
- * @author ChenRui
6763
- * @date 2021/6/22 15:41
6870
+ /**
6871
+ * @description: 清除特殊字符
6872
+ * @author ChenRui
6873
+ * @date 2021/6/22 15:41
6764
6874
  */
6765
6875
  clearNoNum(value) {
6766
6876
  if (value) {
@@ -6776,10 +6886,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6776
6886
  }
6777
6887
  return value;
6778
6888
  }
6779
- /**
6780
- * @description: 校验数字是否超过16位纯编码
6781
- * @author ChenRui
6782
- * @date 2021/6/22 14:58
6889
+ /**
6890
+ * @description: 校验数字是否超过16位纯编码
6891
+ * @author ChenRui
6892
+ * @date 2021/6/22 14:58
6783
6893
  */
6784
6894
  validateNumBeyondLimit(value) {
6785
6895
  if (value) {
@@ -6788,10 +6898,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6788
6898
  }
6789
6899
  return false;
6790
6900
  }
6791
- /**
6792
- * @description: 删除文件
6793
- * @author ChenRui
6794
- * @date 2021/4/25 11:35
6901
+ /**
6902
+ * @description: 删除文件
6903
+ * @author ChenRui
6904
+ * @date 2021/4/25 11:35
6795
6905
  */
6796
6906
  handleRemove(file) {
6797
6907
  const index = this.formControl.value.indexOf(file);
@@ -6799,20 +6909,20 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6799
6909
  newFileList.splice(index, 1);
6800
6910
  this.formControl.value = newFileList;
6801
6911
  }
6802
- /**
6803
- * @description: 文件上传前回调函数
6804
- * @author ChenRui
6805
- * @date 2021/4/25 11:23
6912
+ /**
6913
+ * @description: 文件上传前回调函数
6914
+ * @author ChenRui
6915
+ * @date 2021/4/25 11:23
6806
6916
  */
6807
6917
  beforeUpload(file) {
6808
6918
  const fileList = [...this.formControl.value, file];
6809
6919
  this.formControl.value = fileList;
6810
6920
  return false;
6811
6921
  }
6812
- /**
6813
- * @description: 文件上传变更
6814
- * @author ChenRui
6815
- * @date 2021/4/25 11:29
6922
+ /**
6923
+ * @description: 文件上传变更
6924
+ * @author ChenRui
6925
+ * @date 2021/4/25 11:29
6816
6926
  */
6817
6927
  handleUploadChange(event) {
6818
6928
  let fileList = [...this.formControl.value];
@@ -6831,26 +6941,26 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6831
6941
  this.onChange(this.control);
6832
6942
  }
6833
6943
  }
6834
- /**
6835
- * @description: 金额菜单单机事件
6836
- * @author ChenRui
6837
- * @date 2021/2/20 17:21
6944
+ /**
6945
+ * @description: 金额菜单单机事件
6946
+ * @author ChenRui
6947
+ * @date 2021/2/20 17:21
6838
6948
  */
6839
6949
  handleMoneyUnitMenuClick(e) {
6840
6950
  this.defaultMoneyUnit = this.moneyUnits.find(item => item.code === e.key);
6841
6951
  }
6842
- /**
6843
- * @description: 将下拉弹层渲染节点固定在触发器的父元素中
6844
- * @author ZPFly
6845
- * @date 2022/8/31 11:30
6952
+ /**
6953
+ * @description: 将下拉弹层渲染节点固定在触发器的父元素中
6954
+ * @author ZPFly
6955
+ * @date 2022/8/31 11:30
6846
6956
  */
6847
6957
  getPopupContainer(triggerNode) {
6848
6958
  return triggerNode.parentNode;
6849
6959
  }
6850
- /**
6851
- * @description: 输入事件处理
6852
- * @author ChenRui
6853
- * @date 2020/12/2 14:37
6960
+ /**
6961
+ * @description: 输入事件处理
6962
+ * @author ChenRui
6963
+ * @date 2020/12/2 14:37
6854
6964
  */
6855
6965
  onChange(event) {
6856
6966
  if (this.control && (this.control.type === constants_enum["f" /* FormFieldClass */].Base.code || this.control.type === constants_enum["f" /* FormFieldClass */].Senior.code)) {
@@ -6859,34 +6969,34 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6859
6969
  }
6860
6970
  this.$emit("change", event);
6861
6971
  }
6862
- /**
6863
- * @description: 点击事件
6864
- * @author ChenRui
6865
- * @date 2021/3/4 11:37
6972
+ /**
6973
+ * @description: 点击事件
6974
+ * @author ChenRui
6975
+ * @date 2021/3/4 11:37
6866
6976
  */
6867
6977
  onClick(event) {
6868
6978
  this.$emit("click", event);
6869
6979
  }
6870
- /**
6871
- * @description: 内置前置标签事件
6872
- * @author ChenRui
6873
- * @date 2021/4/23 9:42
6980
+ /**
6981
+ * @description: 内置前置标签事件
6982
+ * @author ChenRui
6983
+ * @date 2021/4/23 9:42
6874
6984
  */
6875
6985
  onAddonBeforeHandler(event) {
6876
6986
  this.$emit("addon-before", event);
6877
6987
  }
6878
- /**
6879
- * @description: 内置后置标签事件
6880
- * @author ChenRui
6881
- * @date 2021/4/23 9:43
6988
+ /**
6989
+ * @description: 内置后置标签事件
6990
+ * @author ChenRui
6991
+ * @date 2021/4/23 9:43
6882
6992
  */
6883
6993
  onAddonAfterHandler(event) {
6884
6994
  this.$emit("addon-after", event);
6885
6995
  }
6886
- /**
6887
- * @description: 数字框失焦点
6888
- * @author ChenRui
6889
- * @date 2021/3/4 11:51
6996
+ /**
6997
+ * @description: 数字框失焦点
6998
+ * @author ChenRui
6999
+ * @date 2021/3/4 11:51
6890
7000
  */
6891
7001
  onInputNumberFocus(event) {
6892
7002
  this.onFocus(event);
@@ -6894,10 +7004,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6894
7004
  this.numberPopoverVisible = true;
6895
7005
  }
6896
7006
  }
6897
- /**
6898
- * @description: 数字输入框失焦
6899
- * @author ChenRui
6900
- * @date 2021/3/4 11:43
7007
+ /**
7008
+ * @description: 数字输入框失焦
7009
+ * @author ChenRui
7010
+ * @date 2021/3/4 11:43
6901
7011
  */
6902
7012
  onInputNumberBlur(event) {
6903
7013
  this.onBlur(event);
@@ -6905,26 +7015,26 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6905
7015
  this.numberPopoverVisible = false;
6906
7016
  }
6907
7017
  }
6908
- /**
6909
- * @description: 获取焦点
6910
- * @author ChenRui
6911
- * @date 2021/3/4 11:46
7018
+ /**
7019
+ * @description: 获取焦点
7020
+ * @author ChenRui
7021
+ * @date 2021/3/4 11:46
6912
7022
  */
6913
7023
  onFocus(event) {
6914
7024
  this.$emit("focus", event);
6915
7025
  }
6916
- /**
6917
- * @description: 失焦事件
6918
- * @author ChenRui
6919
- * @date 2021/3/4 11:38
7026
+ /**
7027
+ * @description: 失焦事件
7028
+ * @author ChenRui
7029
+ * @date 2021/3/4 11:38
6920
7030
  */
6921
7031
  onBlur(event) {
6922
7032
  this.$emit("blur", event);
6923
7033
  }
6924
- /**
6925
- * @Description 是否节假日校验
6926
- * @Author JiangTao
6927
- * @Date 2024-04-16 下午 02:33
7034
+ /**
7035
+ * @Description 是否节假日校验
7036
+ * @Author JiangTao
7037
+ * @Date 2024-04-16 下午 02:33
6928
7038
  */
6929
7039
  isRest(current) {
6930
7040
  if (JSON.parse(this.weekdayList).find(e => e.calDate === this.DateTime(current.$d))) {
@@ -6933,10 +7043,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6933
7043
  return false;
6934
7044
  }
6935
7045
  }
6936
- /**
6937
- * @Description 是否工作日校验
6938
- * @Author JiangTao
6939
- * @Date 2024-04-16 下午 02:33
7046
+ /**
7047
+ * @Description 是否工作日校验
7048
+ * @Author JiangTao
7049
+ * @Date 2024-04-16 下午 02:33
6940
7050
  */
6941
7051
  isWeekday(current) {
6942
7052
  if (JSON.parse(this.workdayList).find(e => e.calDate === this.DateTime(current.$d))) {
@@ -6945,10 +7055,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6945
7055
  return false;
6946
7056
  }
6947
7057
  }
6948
- /**
6949
- * @Description 是否交易日校验
6950
- * @Author JiangTao
6951
- * @Date 2024-04-16 下午 02:33
7058
+ /**
7059
+ * @Description 是否交易日校验
7060
+ * @Author JiangTao
7061
+ * @Date 2024-04-16 下午 02:33
6952
7062
  */
6953
7063
  isRadingDay(current) {
6954
7064
  if (JSON.parse(this.traddayList).find(e => e.calDate === this.DateTime(current.$d))) {
@@ -6957,10 +7067,10 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
6957
7067
  return false;
6958
7068
  }
6959
7069
  }
6960
- /**
6961
- * @Description 日期格式转换
6962
- * @Author JiangTao
6963
- * @Date 2024-04-16 下午 02:33
7070
+ /**
7071
+ * @Description 日期格式转换
7072
+ * @Author JiangTao
7073
+ * @Date 2024-04-16 下午 02:33
6964
7074
  */
6965
7075
  DateTime(date) {
6966
7076
  const year = date.getFullYear();
@@ -7073,11 +7183,11 @@ const DvFormLayout_exports_ = /*#__PURE__*/exportHelper_default()(DvFormLayoutvu
7073
7183
 
7074
7184
  /* eslint-disable */
7075
7185
  class DateFormatService {
7076
- /**
7077
- * 日期时间格式自定义
7078
- * @param {number|string} value 日期时间值时间戳或时间格式
7079
- * @param {string} format 输出的时间格式
7080
- * @returns {string} 定义好的时间格式
7186
+ /**
7187
+ * 日期时间格式自定义
7188
+ * @param {number|string} value 日期时间值时间戳或时间格式
7189
+ * @param {string} format 输出的时间格式
7190
+ * @returns {string} 定义好的时间格式
7081
7191
  */
7082
7192
  formatDateTime(value, format = 'YYYY-MM-dd HH:mm:ss') {
7083
7193
  const reg = /(YY|YYYY|MM|dd|HH|mm|ss|ww|WW)/g;
@@ -7128,14 +7238,14 @@ class DateFormatService {
7128
7238
  str = str.replace(/WW/g, dayMap[day]);
7129
7239
  return str;
7130
7240
  }
7131
- /**
7132
- * @Description:两个日期大小比较(开始时间 > 结束时间,返回true)
7133
- * @author LiuBo
7134
- * @date 2022/7/15
7135
- * @time 10:43
7136
- * @param startTime 开始时间 (YYYY-MM-DD)
7137
- * @param endTime 结束时间 (YYYY-MM-DD)
7138
- * @modifyLog
7241
+ /**
7242
+ * @Description:两个日期大小比较(开始时间 > 结束时间,返回true)
7243
+ * @author LiuBo
7244
+ * @date 2022/7/15
7245
+ * @time 10:43
7246
+ * @param startTime 开始时间 (YYYY-MM-DD)
7247
+ * @param endTime 结束时间 (YYYY-MM-DD)
7248
+ * @modifyLog
7139
7249
  */
7140
7250
  dateSizeCompare(startTime, endTime) {
7141
7251
  return new Date(Date.parse(startTime.replace(/-/g, "/"))).getTime() > new Date(Date.parse(endTime.replace(/-/g, "/"))).getTime();
@@ -7150,6 +7260,11 @@ const dateFormat = new DateFormatService();
7150
7260
 
7151
7261
 
7152
7262
 
7263
+
7264
+
7265
+
7266
+
7267
+
7153
7268
  // import moment from "moment";
7154
7269
 
7155
7270
 
@@ -7222,17 +7337,17 @@ var Attribute;
7222
7337
  Attribute["TextareaRows"] = "textareaRows";
7223
7338
  Attribute["IsShowHoliday"] = "isShowHoliday";
7224
7339
  })(Attribute || (Attribute = {}));
7225
- /**
7226
- * @description: 表单基础类,聚合常用api
7227
- * @author ChenRui
7228
- * @date 2020/11/28 23:27
7340
+ /**
7341
+ * @description: 表单基础类,聚合常用api
7342
+ * @author ChenRui
7343
+ * @date 2020/11/28 23:27
7229
7344
  */
7230
7345
  class FormApi_FormApi {
7231
7346
  //修改前数据
7232
- /**
7233
- * @description: 获取表单对象
7234
- * @author ChenRui
7235
- * @date 2020/11/28 23:29
7347
+ /**
7348
+ * @description: 获取表单对象
7349
+ * @author ChenRui
7350
+ * @date 2020/11/28 23:29
7236
7351
  */
7237
7352
  constructor(options = {}) {
7238
7353
  _defineProperty(this, "id", void 0);
@@ -7257,10 +7372,10 @@ class FormApi_FormApi {
7257
7372
  }
7258
7373
  return {};
7259
7374
  }
7260
- /**
7261
- * @description: 获取表单值
7262
- * @author ChenRui
7263
- * @date 2021/2/4 10:36
7375
+ /**
7376
+ * @description: 获取表单值
7377
+ * @author ChenRui
7378
+ * @date 2021/2/4 10:36
7264
7379
  */
7265
7380
  get formData() {
7266
7381
  this.apiMetaRefresh = this.dvForm.metaRefresh;
@@ -7276,10 +7391,10 @@ class FormApi_FormApi {
7276
7391
  }
7277
7392
  return null;
7278
7393
  }
7279
- /**
7280
- * @Description 获取表单全部值
7281
- * @Author JiangTao
7282
- * @Date 2023-12-22 下午 02:50
7394
+ /**
7395
+ * @Description 获取表单全部值
7396
+ * @Author JiangTao
7397
+ * @Date 2023-12-22 下午 02:50
7283
7398
  */
7284
7399
  get formAllData() {
7285
7400
  this.apiMetaRefresh = this.dvForm.metaRefresh;
@@ -7289,10 +7404,10 @@ class FormApi_FormApi {
7289
7404
  }
7290
7405
  return null;
7291
7406
  }
7292
- /**
7293
- * @description: 编码表单对象
7294
- * @author ChenRui
7295
- * @date 2021/4/25 16:41
7407
+ /**
7408
+ * @description: 编码表单对象
7409
+ * @author ChenRui
7410
+ * @date 2021/4/25 16:41
7296
7411
  */
7297
7412
  get encodedFormData() {
7298
7413
  this.apiMetaRefresh = this.dvForm.metaRefresh;
@@ -7302,10 +7417,10 @@ class FormApi_FormApi {
7302
7417
  }
7303
7418
  return null;
7304
7419
  }
7305
- /**
7306
- * @description: 设置表单值
7307
- * @author ChenRui
7308
- * @date 2021/2/4 10:37
7420
+ /**
7421
+ * @description: 设置表单值
7422
+ * @author ChenRui
7423
+ * @date 2021/2/4 10:37
7309
7424
  */
7310
7425
  setFormData(srcData, isDefault = false, validate = false, oldVal) {
7311
7426
  if (this.dvForm.desForm.formGroup) {
@@ -7317,10 +7432,10 @@ class FormApi_FormApi {
7317
7432
  }
7318
7433
  if (oldVal) this.oldVal = oldVal;
7319
7434
  }
7320
- /**
7321
- * @description: 获取控件对象
7322
- * @author ChenRui
7323
- * @date 2021/1/29 10:08
7435
+ /**
7436
+ * @description: 获取控件对象
7437
+ * @author ChenRui
7438
+ * @date 2021/1/29 10:08
7324
7439
  */
7325
7440
  getControl(key, control, showError = true) {
7326
7441
  if (key) {
@@ -7347,10 +7462,10 @@ class FormApi_FormApi {
7347
7462
  }
7348
7463
  return null;
7349
7464
  }
7350
- /**
7351
- * @description: 获取值
7352
- * @author ChenRui
7353
- * @date 2021/1/29 14:57
7465
+ /**
7466
+ * @description: 获取值
7467
+ * @author ChenRui
7468
+ * @date 2021/1/29 14:57
7354
7469
  */
7355
7470
  getValue(key) {
7356
7471
  const control = this.getControl(key);
@@ -7360,10 +7475,10 @@ class FormApi_FormApi {
7360
7475
  }
7361
7476
  return null;
7362
7477
  }
7363
- /**
7364
- * @description: 设置值
7365
- * @author ChenRui
7366
- * @date 2021/1/29 16:23
7478
+ /**
7479
+ * @description: 设置值
7480
+ * @author ChenRui
7481
+ * @date 2021/1/29 16:23
7367
7482
  */
7368
7483
  setValue(key, val, isDefault = false, validate = true) {
7369
7484
  let control = this.getControl(key);
@@ -7376,18 +7491,18 @@ class FormApi_FormApi {
7376
7491
  this.setControlValue(control, key, val, isDefault, validate);
7377
7492
  }
7378
7493
  }
7379
- /**
7380
- * @description: 重置表单
7381
- * @author ChenRui
7382
- * @date 2021/2/22 17:40
7494
+ /**
7495
+ * @description: 重置表单
7496
+ * @author ChenRui
7497
+ * @date 2021/2/22 17:40
7383
7498
  */
7384
7499
  resetValue() {
7385
7500
  this.dvForm.formatDesForm(true);
7386
7501
  }
7387
- /**
7388
- * @description: 获取文本内容
7389
- * @author ChenRui
7390
- * @date 2021/1/29 15:03
7502
+ /**
7503
+ * @description: 获取文本内容
7504
+ * @author ChenRui
7505
+ * @date 2021/1/29 15:03
7391
7506
  */
7392
7507
  getText(key) {
7393
7508
  const control = this.getControl(key);
@@ -7397,10 +7512,10 @@ class FormApi_FormApi {
7397
7512
  }
7398
7513
  return "";
7399
7514
  }
7400
- /**
7401
- * @description: 获取可选项
7402
- * @author ChenRui
7403
- * @date 2021/1/29 16:11
7515
+ /**
7516
+ * @description: 获取可选项
7517
+ * @author ChenRui
7518
+ * @date 2021/1/29 16:11
7404
7519
  */
7405
7520
  getOptions(key) {
7406
7521
  const control = this.getControl(key);
@@ -7410,10 +7525,10 @@ class FormApi_FormApi {
7410
7525
  }
7411
7526
  return [];
7412
7527
  }
7413
- /**
7414
- * @description: 设置可选项
7415
- * @author ChenRui
7416
- * @date 2021/1/29 16:15
7528
+ /**
7529
+ * @description: 设置可选项
7530
+ * @author ChenRui
7531
+ * @date 2021/1/29 16:15
7417
7532
  */
7418
7533
  setOptions(key, data, defaultVal) {
7419
7534
  let control = this.getControl(key);
@@ -7426,10 +7541,10 @@ class FormApi_FormApi {
7426
7541
  this.setControlOptions(control, key, data, defaultVal);
7427
7542
  }
7428
7543
  }
7429
- /**
7430
- * @description: 获取常规属性
7431
- * @author ChenRui
7432
- * @date 2021/1/29 17:21
7544
+ /**
7545
+ * @description: 获取常规属性
7546
+ * @author ChenRui
7547
+ * @date 2021/1/29 17:21
7433
7548
  */
7434
7549
  getAttribute(key, attribute) {
7435
7550
  const control = this.getControl(key);
@@ -7438,10 +7553,10 @@ class FormApi_FormApi {
7438
7553
  return control.controlAttr[attribute];
7439
7554
  }
7440
7555
  }
7441
- /**
7442
- * @description: 设置常规属性
7443
- * @author ChenRui
7444
- * @date 2021/1/29 17:21
7556
+ /**
7557
+ * @description: 设置常规属性
7558
+ * @author ChenRui
7559
+ * @date 2021/1/29 17:21
7445
7560
  */
7446
7561
  setAttribute(key, attribute, data) {
7447
7562
  let control = this.getControl(key);
@@ -7454,10 +7569,10 @@ class FormApi_FormApi {
7454
7569
  this.setControlAttribute(control, attribute, data);
7455
7570
  }
7456
7571
  }
7457
- /**
7458
- * @description: 根据name获取校验
7459
- * @author ChenRui
7460
- * @date 2021/1/30 11:46
7572
+ /**
7573
+ * @description: 根据name获取校验
7574
+ * @author ChenRui
7575
+ * @date 2021/1/30 11:46
7461
7576
  */
7462
7577
  getValidate(key, name) {
7463
7578
  const control = this.getControl(key);
@@ -7466,10 +7581,10 @@ class FormApi_FormApi {
7466
7581
  return control.getValidate(name);
7467
7582
  }
7468
7583
  }
7469
- /**
7470
- * @description: 移除校验
7471
- * @author ChenRui
7472
- * @date 2021/4/1 21:30
7584
+ /**
7585
+ * @description: 移除校验
7586
+ * @author ChenRui
7587
+ * @date 2021/4/1 21:30
7473
7588
  */
7474
7589
  removeValidate(key, validateName) {
7475
7590
  const control = this.getControl(key);
@@ -7484,10 +7599,10 @@ class FormApi_FormApi {
7484
7599
  }
7485
7600
  }
7486
7601
  }
7487
- /**
7488
- * @description: 移除所有校验
7489
- * @author ChenRui
7490
- * @date 2021/4/1 21:48
7602
+ /**
7603
+ * @description: 移除所有校验
7604
+ * @author ChenRui
7605
+ * @date 2021/4/1 21:48
7491
7606
  */
7492
7607
  removeAllValidates(key) {
7493
7608
  const control = this.getControl(key);
@@ -7496,10 +7611,10 @@ class FormApi_FormApi {
7496
7611
  control.validates = [];
7497
7612
  }
7498
7613
  }
7499
- /**
7500
- * @description: 获取校验集合
7501
- * @author ChenRui
7502
- * @date 2021/1/30 11:40
7614
+ /**
7615
+ * @description: 获取校验集合
7616
+ * @author ChenRui
7617
+ * @date 2021/1/30 11:40
7503
7618
  */
7504
7619
  getValidates(key) {
7505
7620
  const control = this.getControl(key);
@@ -7509,11 +7624,11 @@ class FormApi_FormApi {
7509
7624
  }
7510
7625
  return [];
7511
7626
  }
7512
- /**
7513
- * @Description: 设置必输校验
7514
- * @author GuoXuHui
7515
- * @date 2022-05-25
7516
- * @time 10:09
7627
+ /**
7628
+ * @Description: 设置必输校验
7629
+ * @author GuoXuHui
7630
+ * @date 2022-05-25
7631
+ * @time 10:09
7517
7632
  */
7518
7633
  setRequiredValidate(key, data) {
7519
7634
  if (data) {
@@ -7524,10 +7639,10 @@ class FormApi_FormApi {
7524
7639
  this.removeValidate(key, constants_enum["p" /* ValidateRules */].Required.code); // 清除必填校验
7525
7640
  }
7526
7641
  }
7527
- /**
7528
- * @description: 设置校验
7529
- * @author ChenRui
7530
- * @date 2021/1/30 11:54
7642
+ /**
7643
+ * @description: 设置校验
7644
+ * @author ChenRui
7645
+ * @date 2021/1/30 11:54
7531
7646
  */
7532
7647
  setValidate(key, validate, isCover = false) {
7533
7648
  let control = this.getControl(key);
@@ -7543,18 +7658,18 @@ class FormApi_FormApi {
7543
7658
  this.setValidateInner(control, validate, isCover);
7544
7659
  }
7545
7660
  }
7546
- /**
7547
- * @description: 校验提示
7548
- * @author ChenRui
7549
- * @date 2021/8/18 17:40
7661
+ /**
7662
+ * @description: 校验提示
7663
+ * @author ChenRui
7664
+ * @date 2021/8/18 17:40
7550
7665
  */
7551
7666
  validateTips(scrollView) {
7552
7667
  return formValidateService.validateTips(this, scrollView);
7553
7668
  }
7554
- /**
7555
- * @description: 全局校验报告
7556
- * @author ChenRui
7557
- * @date 2021/2/5 11:48
7669
+ /**
7670
+ * @description: 全局校验报告
7671
+ * @author ChenRui
7672
+ * @date 2021/2/5 11:48
7558
7673
  */
7559
7674
  validateReport(formGroup, validateReports, refreshFeedback = true) {
7560
7675
  if (validateReports == null) {
@@ -7585,19 +7700,19 @@ class FormApi_FormApi {
7585
7700
  }
7586
7701
  return validateReports;
7587
7702
  }
7588
- /**
7589
- * @description: 表单全局校验
7590
- * @author ChenRui
7591
- * @date 2021/2/5 14:11
7703
+ /**
7704
+ * @description: 表单全局校验
7705
+ * @author ChenRui
7706
+ * @date 2021/2/5 14:11
7592
7707
  */
7593
7708
  validate(refreshFeedback = true) {
7594
7709
  const validateReports = this.validateReport(undefined, undefined, refreshFeedback);
7595
7710
  return !(validateReports.length > 0);
7596
7711
  }
7597
- /**
7598
- * @description: 刷新校验
7599
- * @author ChenRui
7600
- * @date 2021/6/4 19:32
7712
+ /**
7713
+ * @description: 刷新校验
7714
+ * @author ChenRui
7715
+ * @date 2021/6/4 19:32
7601
7716
  */
7602
7717
  refreshValidate(key) {
7603
7718
  let control = this.getControl(key);
@@ -7610,18 +7725,18 @@ class FormApi_FormApi {
7610
7725
  control["refreshValidate"] = new Date().getTime();
7611
7726
  }
7612
7727
  }
7613
- /**
7614
- * @description: 重置表单校验
7615
- * @author ChenRui
7616
- * @date 2022/4/6 11:51
7728
+ /**
7729
+ * @description: 重置表单校验
7730
+ * @author ChenRui
7731
+ * @date 2022/4/6 11:51
7617
7732
  */
7618
7733
  resetFormValidateState() {
7619
7734
  this.dvForm.formValidateStateResetMark = new Date().getTime();
7620
7735
  }
7621
- /**
7622
- * @description: 设置格式化显示和输出函数
7623
- * @author ChenRui
7624
- * @date 2021/2/4 19:44
7736
+ /**
7737
+ * @description: 设置格式化显示和输出函数
7738
+ * @author ChenRui
7739
+ * @date 2021/2/4 19:44
7625
7740
  */
7626
7741
  setFormatDisplayAndOutput(key, customFormat) {
7627
7742
  if (key) {
@@ -7629,18 +7744,18 @@ class FormApi_FormApi {
7629
7744
  }
7630
7745
  this.refreshAndUpdateData();
7631
7746
  }
7632
- /**
7633
- * @description: 刷新数据
7634
- * @author ChenRui
7635
- * @date 2021/2/4 20:22
7747
+ /**
7748
+ * @description: 刷新数据
7749
+ * @author ChenRui
7750
+ * @date 2021/2/4 20:22
7636
7751
  */
7637
7752
  refreshAndUpdateData() {
7638
7753
  this.dvForm.onRefreshArgumentsHandler(new Date().getTime());
7639
7754
  }
7640
- /**
7641
- * @description: 获取控件dom对象
7642
- * @author ChenRui
7643
- * @date 2021/2/26 17:12
7755
+ /**
7756
+ * @description: 获取控件dom对象
7757
+ * @author ChenRui
7758
+ * @date 2021/2/26 17:12
7644
7759
  */
7645
7760
  getControlEl(key) {
7646
7761
  const control = this.getControl(key);
@@ -7652,10 +7767,10 @@ class FormApi_FormApi {
7652
7767
  }
7653
7768
  return null;
7654
7769
  }
7655
- /**
7656
- * @description: 检查是否包含上传控件
7657
- * @author ChenRui
7658
- * @date 2021/4/23 11:30
7770
+ /**
7771
+ * @description: 检查是否包含上传控件
7772
+ * @author ChenRui
7773
+ * @date 2021/4/23 11:30
7659
7774
  */
7660
7775
  checkHasUploadControl(abstractControl) {
7661
7776
  if (abstractControl instanceof FormGroup_FormGroup) {
@@ -7675,10 +7790,10 @@ class FormApi_FormApi {
7675
7790
  }
7676
7791
  return false;
7677
7792
  }
7678
- /**
7679
- * @description: json格式转表单格式
7680
- * @author ChenRui
7681
- * @date 2020/8/28 15:20
7793
+ /**
7794
+ * @description: json格式转表单格式
7795
+ * @author ChenRui
7796
+ * @date 2020/8/28 15:20
7682
7797
  */
7683
7798
  jsonToFormData(params) {
7684
7799
  const formData = new FormData();
@@ -7696,10 +7811,10 @@ class FormApi_FormApi {
7696
7811
  }
7697
7812
  return formData;
7698
7813
  }
7699
- /**
7700
- * @description: 设置变更历史记录
7701
- * @author ChenRui
7702
- * @date 2021/4/25 15:55
7814
+ /**
7815
+ * @description: 设置变更历史记录
7816
+ * @author ChenRui
7817
+ * @date 2021/4/25 15:55
7703
7818
  */
7704
7819
  setFieldChangeHistory(fieldChangeHistory) {
7705
7820
  fieldChangeHistory = fieldChangeHistory || {};
@@ -7732,10 +7847,10 @@ class FormApi_FormApi {
7732
7847
  }
7733
7848
  }
7734
7849
  }
7735
- /**
7736
- * @description: 隐藏布局
7737
- * @author ChenRui
7738
- * @date 2021/11/16 0:01
7850
+ /**
7851
+ * @description: 隐藏布局
7852
+ * @author ChenRui
7853
+ * @date 2021/11/16 0:01
7739
7854
  */
7740
7855
  hideLayout(layoutName, mark = true) {
7741
7856
  if (layoutName) {
@@ -7747,10 +7862,10 @@ class FormApi_FormApi {
7747
7862
  }
7748
7863
  }
7749
7864
  }
7750
- /**
7751
- * @description: 设置表单值
7752
- * @author ChenRui
7753
- * @date 2021/8/16 9:29
7865
+ /**
7866
+ * @description: 设置表单值
7867
+ * @author ChenRui
7868
+ * @date 2021/8/16 9:29
7754
7869
  */
7755
7870
  setFormDataInner(srcData, isDefault, validate) {
7756
7871
  if (srcData) {
@@ -7766,10 +7881,10 @@ class FormApi_FormApi {
7766
7881
  this.validate();
7767
7882
  }
7768
7883
  }
7769
- /**
7770
- * @description: 设置控件值
7771
- * @author ChenRui
7772
- * @date 2021/4/13 12:50
7884
+ /**
7885
+ * @description: 设置控件值
7886
+ * @author ChenRui
7887
+ * @date 2021/4/13 12:50
7773
7888
  */
7774
7889
  setControlValue(control, key, val, isDefault, validate = true) {
7775
7890
  if (control) {
@@ -7857,10 +7972,10 @@ class FormApi_FormApi {
7857
7972
  }
7858
7973
  }
7859
7974
  }
7860
- /**
7861
- * @description: 设置控件可选项
7862
- * @author ChenRui
7863
- * @date 2021/4/13 15:09
7975
+ /**
7976
+ * @description: 设置控件可选项
7977
+ * @author ChenRui
7978
+ * @date 2021/4/13 15:09
7864
7979
  */
7865
7980
  setControlOptions(control, key, data, defaultVal) {
7866
7981
  if (control && control.controlAttr) {
@@ -7873,10 +7988,10 @@ class FormApi_FormApi {
7873
7988
  this.setValue(key, defaultVal, true);
7874
7989
  }
7875
7990
  }
7876
- /**
7877
- * @description: 设置控件常规属性
7878
- * @author ChenRui
7879
- * @date 2021/4/13 15:11
7991
+ /**
7992
+ * @description: 设置控件常规属性
7993
+ * @author ChenRui
7994
+ * @date 2021/4/13 15:11
7880
7995
  */
7881
7996
  setControlAttribute(control, attribute, data) {
7882
7997
  if (control && attribute) {
@@ -7884,10 +7999,10 @@ class FormApi_FormApi {
7884
7999
  control.controlAttr[attribute] = data;
7885
8000
  }
7886
8001
  }
7887
- /**
7888
- * @description: 设置校验内部函数
7889
- * @author ChenRui
7890
- * @date 2021/7/19 17:51
8002
+ /**
8003
+ * @description: 设置校验内部函数
8004
+ * @author ChenRui
8005
+ * @date 2021/7/19 17:51
7891
8006
  */
7892
8007
  setValidateInner(control, validate, isCover = false) {
7893
8008
  if (validate != null && validate.ruleType) {
@@ -7900,10 +8015,10 @@ class FormApi_FormApi {
7900
8015
  control.addValidate(validate);
7901
8016
  }
7902
8017
  }
7903
- /**
7904
- * @description: 生成数据信息
7905
- * @author ChenRui
7906
- * @date 2021/1/29 10:06
8018
+ /**
8019
+ * @description: 生成数据信息
8020
+ * @author ChenRui
8021
+ * @date 2021/1/29 10:06
7907
8022
  */
7908
8023
  generateData(abstractControl, obj = {}) {
7909
8024
  if (abstractControl instanceof FormGroup_FormGroup) {
@@ -7918,10 +8033,10 @@ class FormApi_FormApi {
7918
8033
  }
7919
8034
  return obj;
7920
8035
  }
7921
- /**
7922
- * @description: 数据解码输出
7923
- * @author ChenRui
7924
- * @date 2021/5/29 23:03
8036
+ /**
8037
+ * @description: 数据解码输出
8038
+ * @author ChenRui
8039
+ * @date 2021/5/29 23:03
7925
8040
  */
7926
8041
  decodeData(formControl, isFinal = true) {
7927
8042
  let data = formControl.value || "";
@@ -7991,10 +8106,10 @@ class FormApi_FormApi {
7991
8106
  }
7992
8107
  return data;
7993
8108
  }
7994
- /**
7995
- * @description: 获取当前日期字符串
7996
- * @author ChenRui
7997
- * @date 2021/2/4 11:43
8109
+ /**
8110
+ * @description: 获取当前日期字符串
8111
+ * @author ChenRui
8112
+ * @date 2021/2/4 11:43
7998
8113
  */
7999
8114
  nowDateStr() {
8000
8115
  const time = new Date();
@@ -8002,10 +8117,10 @@ class FormApi_FormApi {
8002
8117
  const month = ("0" + (time.getMonth() + 1)).slice(-2);
8003
8118
  return time.getFullYear() + "/" + month + "/" + day;
8004
8119
  }
8005
- /**
8006
- * @description: uuid生成器
8007
- * @author ChenRui
8008
- * @date 2021/7/20 11:14
8120
+ /**
8121
+ * @description: uuid生成器
8122
+ * @author ChenRui
8123
+ * @date 2021/7/20 11:14
8009
8124
  */
8010
8125
  getUuid() {
8011
8126
  const s = [];
@@ -8019,11 +8134,11 @@ class FormApi_FormApi {
8019
8134
  const uuid = s.join("");
8020
8135
  return uuid;
8021
8136
  }
8022
- /**
8023
- * @Description: 对比新旧表单值
8024
- * @author lzs
8025
- * @date 2022/9/3
8026
- * @time 21:49
8137
+ /**
8138
+ * @Description: 对比新旧表单值
8139
+ * @author lzs
8140
+ * @date 2022/9/3
8141
+ * @time 21:49
8027
8142
  */
8028
8143
  contrast(objectA, objectB) {
8029
8144
  const object = {};
@@ -8080,11 +8195,11 @@ class FormApi_FormApi {
8080
8195
  object.fieldInfoArr = fieldInfoArr;
8081
8196
  return object;
8082
8197
  }
8083
- /**
8084
- * @Description: 获取表单值更改信息
8085
- * @author lzs
8086
- * @date 2022/10/11
8087
- * @time 09:53
8198
+ /**
8199
+ * @Description: 获取表单值更改信息
8200
+ * @author lzs
8201
+ * @date 2022/10/11
8202
+ * @time 09:53
8088
8203
  */
8089
8204
  getChangedInfo(control, oldValue, newValue) {
8090
8205
  oldValue = oldValue + "";
@@ -8140,11 +8255,11 @@ class FormApi_FormApi {
8140
8255
  }
8141
8256
  return flag;
8142
8257
  }
8143
- /**
8144
- * @Description: 翻译字典项
8145
- * @author lzs
8146
- * @date 2022/9/6
8147
- * @time 11:54
8258
+ /**
8259
+ * @Description: 翻译字典项
8260
+ * @author lzs
8261
+ * @date 2022/9/6
8262
+ * @time 11:54
8148
8263
  */
8149
8264
  translateDictionaries(control, key, value) {
8150
8265
  let str = value;
@@ -8251,10 +8366,10 @@ class FormApi_FormApi {
8251
8366
  }
8252
8367
  return str;
8253
8368
  }
8254
- /**
8255
- * @Description 根据报送类型返回需要隐藏的表单字段
8256
- * @Author JiangTao
8257
- * @Date 2024-01-30 上午 09:33
8369
+ /**
8370
+ * @Description 根据报送类型返回需要隐藏的表单字段
8371
+ * @Author JiangTao
8372
+ * @Date 2024-01-30 上午 09:33
8258
8373
  */
8259
8374
  getFormSubmittedType(form, code) {
8260
8375
  const strArr = code && code.length > 0 ? code : [];
@@ -8306,10 +8421,10 @@ class FormApi_FormApi {
8306
8421
  });
8307
8422
  }
8308
8423
  }
8309
- /**
8310
- * @Description 筛选报送类型字段数据处理
8311
- * @Author JiangTao
8312
- * @Date 2024-01-30 下午 08:50
8424
+ /**
8425
+ * @Description 筛选报送类型字段数据处理
8426
+ * @Author JiangTao
8427
+ * @Date 2024-01-30 下午 08:50
8313
8428
  */
8314
8429
  handleSubmittedData(submittedTypeList, codeArr, submittedData) {
8315
8430
  let submittedType = [];
@@ -8326,10 +8441,10 @@ class FormApi_FormApi {
8326
8441
  }
8327
8442
  }
8328
8443
  }
8329
- /**
8330
- * @Description 获取报送类型枚举(数组)
8331
- * @Author JiangTao
8332
- * @Date 2024-01-30 下午 03:30
8444
+ /**
8445
+ * @Description 获取报送类型枚举(数组)
8446
+ * @Author JiangTao
8447
+ * @Date 2024-01-30 下午 03:30
8333
8448
  */
8334
8449
  getSubmittedType() {
8335
8450
  const list = [];
@@ -8361,10 +8476,12 @@ class FormApi_FormApi {
8361
8476
 
8362
8477
 
8363
8478
 
8364
- /**
8365
- * @description: 动态表单
8366
- * @author ChenRui
8367
- * @date 2020/12/30 11:20
8479
+
8480
+
8481
+ /**
8482
+ * @description: 动态表单
8483
+ * @author ChenRui
8484
+ * @date 2020/12/30 11:20
8368
8485
  */
8369
8486
  let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_property_decorator_["Vue"] {
8370
8487
  constructor(...args) {
@@ -8410,28 +8527,28 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8410
8527
  formValidateStateResetMark: this.formValidateStateResetMark
8411
8528
  });
8412
8529
  }
8413
- /**
8414
- * @description: 刷新自变量监听处理
8415
- * @author ChenRui
8416
- * @date 2021/2/5 10:25
8530
+ /**
8531
+ * @description: 刷新自变量监听处理
8532
+ * @author ChenRui
8533
+ * @date 2021/2/5 10:25
8417
8534
  */
8418
8535
  onRefreshArgumentsHandler(newVal) {
8419
8536
  this.metaRefresh = newVal;
8420
8537
  }
8421
- /**
8422
- * @description: 重置表单校验状态监听
8423
- * @author ChenRui
8424
- * @date 2022/4/6 14:17
8538
+ /**
8539
+ * @description: 重置表单校验状态监听
8540
+ * @author ChenRui
8541
+ * @date 2022/4/6 14:17
8425
8542
  */
8426
8543
  onPropFormValidateStateResetHandler(newVal) {
8427
8544
  if (this._provided) {
8428
8545
  this._provided.provideInjectData.formValidateStateResetMark = this.formValidateStateResetMark;
8429
8546
  }
8430
8547
  }
8431
- /**
8432
- * @description: 值变更处理器
8433
- * @author ChenRui
8434
- * @date 2021/1/8 11:03
8548
+ /**
8549
+ * @description: 值变更处理器
8550
+ * @author ChenRui
8551
+ * @date 2021/1/8 11:03
8435
8552
  */
8436
8553
  onPropHandler(newVal) {
8437
8554
  if (this) {
@@ -8449,10 +8566,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8449
8566
  const formTheme = themes.indexOf(this.formTheme) > -1 ? this.formTheme : win.$loFormTheme;
8450
8567
  return themes.indexOf(formTheme) > -1 ? formTheme : themes[0];
8451
8568
  }
8452
- /**
8453
- * @Description 表单数据反显回调(data:Object { key: 元素码值, value: 元素值 })
8454
- * @Author JiangTao
8455
- * @Date 2023-10-07 下午 05:16
8569
+ /**
8570
+ * @Description 表单数据反显回调(data:Object { key: 元素码值, value: 元素值 })
8571
+ * @Author JiangTao
8572
+ * @Date 2023-10-07 下午 05:16
8456
8573
  */
8457
8574
  linkClick(data) {
8458
8575
  this.$emit("linkClick", data);
@@ -8476,10 +8593,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8476
8593
  this.formatDesForm();
8477
8594
  }
8478
8595
  }
8479
- /**
8480
- * @description: 初始化表单
8481
- * @author ChenRui
8482
- * @date 2020/11/23 11:19
8596
+ /**
8597
+ * @description: 初始化表单
8598
+ * @author ChenRui
8599
+ * @date 2020/11/23 11:19
8483
8600
  */
8484
8601
  initDesForm() {
8485
8602
  if (this.formId != null && this.formId !== "") {
@@ -8487,19 +8604,19 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8487
8604
  this.formatDesForm();
8488
8605
  }
8489
8606
  }
8490
- /**
8491
- * @description: 初始化字典
8492
- * @author ChenRui
8493
- * @date 2021/3/12 10:12
8607
+ /**
8608
+ * @description: 初始化字典
8609
+ * @author ChenRui
8610
+ * @date 2021/3/12 10:12
8494
8611
  */
8495
8612
  initDict() {
8496
8613
  this.sysDictDetailOptions = formToolsService.sysDictDetailOptions;
8497
8614
  this.sysDictTreeDetailOptions = formToolsService.sysDictTreeDetailOptions;
8498
8615
  }
8499
- /**
8500
- * @description: 格式化表单
8501
- * @author ChenRui
8502
- * @date 2020/11/30 16:05
8616
+ /**
8617
+ * @description: 格式化表单
8618
+ * @author ChenRui
8619
+ * @date 2020/11/30 16:05
8503
8620
  */
8504
8621
  formatDesForm(isReset) {
8505
8622
  if (this.desForm != null && this.desForm.controls != null && this.desForm.controls.length > 0) {
@@ -8514,11 +8631,11 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8514
8631
  this.$emit("complete");
8515
8632
  }
8516
8633
  }
8517
- /**
8518
- * @Description: 临时-该方法被取消
8519
- * @author LiuBo
8520
- * @date 2022/11/6
8521
- * @time 17:11
8634
+ /**
8635
+ * @Description: 临时-该方法被取消
8636
+ * @author LiuBo
8637
+ * @date 2022/11/6
8638
+ * @time 17:11
8522
8639
  */
8523
8640
  fixFormLayout() {
8524
8641
  this.$nextTick(() => {
@@ -8548,10 +8665,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8548
8665
  }
8549
8666
  });
8550
8667
  }
8551
- /**
8552
- * @description: 生成表单对象
8553
- * @author ChenRui
8554
- * @date 2021/1/7 20:48
8668
+ /**
8669
+ * @description: 生成表单对象
8670
+ * @author ChenRui
8671
+ * @date 2021/1/7 20:48
8555
8672
  */
8556
8673
  generateFormApi(isReset) {
8557
8674
  if (isReset) {
@@ -8570,10 +8687,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8570
8687
  }
8571
8688
  }
8572
8689
  }
8573
- /**
8574
- * @description: 解析对象
8575
- * @author ChenRui
8576
- * @date 2020/11/25 16:25
8690
+ /**
8691
+ * @description: 解析对象
8692
+ * @author ChenRui
8693
+ * @date 2020/11/25 16:25
8577
8694
  */
8578
8695
  analysisBindingObjects() {
8579
8696
  const models = this.objectExtraction(this.desForm.controls);
@@ -8587,10 +8704,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8587
8704
  }
8588
8705
  return obj;
8589
8706
  }
8590
- /**
8591
- * @description: 对象抽取
8592
- * @author ChenRui
8593
- * @date 2020/11/25 17:28
8707
+ /**
8708
+ * @description: 对象抽取
8709
+ * @author ChenRui
8710
+ * @date 2020/11/25 17:28
8594
8711
  */
8595
8712
  objectExtraction(controls, models = []) {
8596
8713
  controls.forEach(item => {
@@ -8633,10 +8750,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8633
8750
  });
8634
8751
  return models;
8635
8752
  }
8636
- /**
8637
- * @description: 查询字典
8638
- * @author ChenRui
8639
- * @date 2021/3/11 17:19
8753
+ /**
8754
+ * @description: 查询字典
8755
+ * @author ChenRui
8756
+ * @date 2021/3/11 17:19
8640
8757
  */
8641
8758
  findDictOptions(key, nzTreeNodeOptions) {
8642
8759
  if (nzTreeNodeOptions != null && nzTreeNodeOptions.length > 0) {
@@ -8656,10 +8773,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8656
8773
  }
8657
8774
  return [];
8658
8775
  }
8659
- /**
8660
- * @description: 安全值处理
8661
- * @author ChenRui
8662
- * @date 2021/1/29 17:01
8776
+ /**
8777
+ * @description: 安全值处理
8778
+ * @author ChenRui
8779
+ * @date 2021/1/29 17:01
8663
8780
  */
8664
8781
  securityValue(control, defaultValue) {
8665
8782
  if (control.code === constants_enum["g" /* FormFieldType */].DatePicker.code || control.code === constants_enum["g" /* FormFieldType */].TimePicker.code) {
@@ -8687,10 +8804,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8687
8804
  return defaultValue;
8688
8805
  }
8689
8806
  }
8690
- /**
8691
- * @description: 树形递归
8692
- * @author ChenRui
8693
- * @date 2021/1/11 0:23
8807
+ /**
8808
+ * @description: 树形递归
8809
+ * @author ChenRui
8810
+ * @date 2021/1/11 0:23
8694
8811
  */
8695
8812
  treeSelectRecursion(value, items) {
8696
8813
  for (let i = 0; i < items.length; i++) {
@@ -8705,10 +8822,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8705
8822
  }
8706
8823
  return "";
8707
8824
  }
8708
- /**
8709
- * @description: 对象合并
8710
- * @author ChenRui
8711
- * @date 2020/11/25 17:49
8825
+ /**
8826
+ * @description: 对象合并
8827
+ * @author ChenRui
8828
+ * @date 2020/11/25 17:49
8712
8829
  */
8713
8830
  objectMerge(modelX, modelY) {
8714
8831
  let key;
@@ -8721,10 +8838,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8721
8838
  }
8722
8839
  return modelX;
8723
8840
  }
8724
- /**
8725
- * @description: 生成表单对象
8726
- * @author ChenRui
8727
- * @date 2020/11/26 11:02
8841
+ /**
8842
+ * @description: 生成表单对象
8843
+ * @author ChenRui
8844
+ * @date 2020/11/26 11:02
8728
8845
  */
8729
8846
  generateFormGroup(model) {
8730
8847
  const group = new FormGroup_FormGroup();
@@ -8743,10 +8860,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8743
8860
  }
8744
8861
  return group;
8745
8862
  }
8746
- /**
8747
- * @description: 创建表单对象
8748
- * @author ChenRui
8749
- * @date 2020/11/23 11:19
8863
+ /**
8864
+ * @description: 创建表单对象
8865
+ * @author ChenRui
8866
+ * @date 2020/11/23 11:19
8750
8867
  */
8751
8868
  initControlForm(controls, formGroup) {
8752
8869
  controls.forEach(control => {
@@ -8768,10 +8885,10 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8768
8885
  }
8769
8886
  });
8770
8887
  }
8771
- /**
8772
- * @description: 按照节点查询控件
8773
- * @author ChenRui
8774
- * @date 2020/11/26 15:45
8888
+ /**
8889
+ * @description: 按照节点查询控件
8890
+ * @author ChenRui
8891
+ * @date 2020/11/26 15:45
8775
8892
  */
8776
8893
  findFormControlByProperty(propertys, formGroup) {
8777
8894
  let currentFormGroup = formGroup;
@@ -8784,58 +8901,58 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends external_vue_pro
8784
8901
  }
8785
8902
  }
8786
8903
  }
8787
- /**
8788
- * @description: 控件值变化事件处理
8789
- * @author ChenRui
8790
- * @date 2020/12/2 14:35
8904
+ /**
8905
+ * @description: 控件值变化事件处理
8906
+ * @author ChenRui
8907
+ * @date 2020/12/2 14:35
8791
8908
  */
8792
8909
  onChange(event) {
8793
8910
  this.$emit("change", event);
8794
8911
  }
8795
- /**
8796
- * @description: 下拉选项新增
8797
- * @author ChenRui
8798
- * @date 2021/1/14 20:05
8912
+ /**
8913
+ * @description: 下拉选项新增
8914
+ * @author ChenRui
8915
+ * @date 2021/1/14 20:05
8799
8916
  */
8800
8917
  selectAddItem(event) {
8801
8918
  this.$emit("add-item", event);
8802
8919
  }
8803
- /**
8804
- * @description: 单击事件
8805
- * @author ChenRui
8806
- * @date 2021/3/4 11:39
8920
+ /**
8921
+ * @description: 单击事件
8922
+ * @author ChenRui
8923
+ * @date 2021/3/4 11:39
8807
8924
  */
8808
8925
  onClick(event) {
8809
8926
  this.$emit("click", event);
8810
8927
  }
8811
- /**
8812
- * @description: 内置前置标签事件
8813
- * @author ChenRui
8814
- * @date 2021/4/23 9:42
8928
+ /**
8929
+ * @description: 内置前置标签事件
8930
+ * @author ChenRui
8931
+ * @date 2021/4/23 9:42
8815
8932
  */
8816
8933
  onAddonBeforeHandler(event) {
8817
8934
  this.$emit("addon-before", event);
8818
8935
  }
8819
- /**
8820
- * @description: 内置后置标签事件
8821
- * @author ChenRui
8822
- * @date 2021/4/23 9:43
8936
+ /**
8937
+ * @description: 内置后置标签事件
8938
+ * @author ChenRui
8939
+ * @date 2021/4/23 9:43
8823
8940
  */
8824
8941
  onAddonAfterHandler(event) {
8825
8942
  this.$emit("addon-after", event);
8826
8943
  }
8827
- /**
8828
- * @description: 获取焦点
8829
- * @author ChenRui
8830
- * @date 2021/3/4 11:46
8944
+ /**
8945
+ * @description: 获取焦点
8946
+ * @author ChenRui
8947
+ * @date 2021/3/4 11:46
8831
8948
  */
8832
8949
  onFocus(event) {
8833
8950
  this.$emit("focus", event);
8834
8951
  }
8835
- /**
8836
- * @description: 失焦事件
8837
- * @author ChenRui
8838
- * @date 2021/3/4 11:38
8952
+ /**
8953
+ * @description: 失焦事件
8954
+ * @author ChenRui
8955
+ * @date 2021/3/4 11:38
8839
8956
  */
8840
8957
  onBlur(event) {
8841
8958
  this.$emit("blur", event);
@@ -8949,6 +9066,8 @@ var zh_cn_ = __webpack_require__("2a2b");
8949
9066
 
8950
9067
 
8951
9068
 
9069
+
9070
+
8952
9071
  const components = {
8953
9072
  DyForm: DvForm
8954
9073
  };
@@ -8963,6 +9082,7 @@ const install = function (app, options) {
8963
9082
  const url = options && options.url ? options.url : "./resources/json/" + DEFAULT_FORM_FILE_NAME;
8964
9083
  app.config.globalProperties.$qlForm = {
8965
9084
  url: url,
9085
+ contextPath: options.contextPath || "/ms-loong",
8966
9086
  dictUrl: options && options.dictUrl ? options.dictUrl : "",
8967
9087
  dictRestLoadMode: options && options.dictRestLoadMode ? options.dictRestLoadMode : "GET",
8968
9088
  dictRestLoadBody: options && options.dictRestLoadBody ? options.dictRestLoadBody : undefined,