cnhis-design-vue 3.3.2-beta.12 → 3.3.2-beta.6

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 (179) hide show
  1. package/README.md +87 -87
  2. package/es/components/audio-sdk/src/Index.vue2.js +1 -1
  3. package/es/components/audio-sdk/style/index.css +1 -1
  4. package/es/components/base-search/src/index.vue2.js +15 -27
  5. package/es/components/big-table/src/BigTable.vue2.js +131 -189
  6. package/es/components/big-table/src/components/NoData.vue2.js +4 -16
  7. package/es/components/big-table/src/components/edit-form/edit-date.js +6 -12
  8. package/es/components/big-table/src/components/edit-form/edit-input.js +2 -8
  9. package/es/components/big-table/src/components/edit-form/edit-select.js +17 -21
  10. package/es/components/big-table/src/components/edit-form/edit-time.js +4 -11
  11. package/es/components/big-table/src/components/input-button.vue2.js +3 -7
  12. package/es/components/big-table/src/hooks/useNestTable.js +4 -18
  13. package/es/components/big-table/src/hooks/useTableParse.js +3 -16
  14. package/es/components/body-select/src/index.vue2.js +4 -24
  15. package/es/components/button-print/index.d.ts +0 -1
  16. package/es/components/button-print/src/ButtonPrint.vue.d.ts +0 -1
  17. package/es/components/button-print/src/ButtonPrint.vue2.js +11 -52
  18. package/es/components/button-print/src/components/EditFormat.vue2.js +6 -14
  19. package/es/components/button-print/src/components/IdentityVerification.vue2.js +43 -94
  20. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +94 -229
  21. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +0 -1
  22. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +32 -92
  23. package/es/components/button-print/src/components/Preview.vue2.js +2 -8
  24. package/es/components/button-print/src/utils/dialog.js +6 -24
  25. package/es/components/button-print/src/utils/print.d.ts +5 -5
  26. package/es/components/button-print/src/utils/print.js +21 -108
  27. package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +2 -8
  28. package/es/components/card-reader-sdk/src/utils/readHealthCard.js +4 -16
  29. package/es/components/card-reader-sdk-cn/src/henan/index.js +11 -38
  30. package/es/components/classification/src/components/search-filter/index.vue2.js +10 -24
  31. package/es/components/classification/src/components/set-classification/index.vue2.js +6 -23
  32. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  33. package/es/components/classification/src/components/table-modal/index.vue2.js +165 -324
  34. package/es/components/classification/src/index.vue2.js +69 -261
  35. package/es/components/default-page/src/constants/index.js +19 -144
  36. package/es/components/default-page/src/index.vue2.js +2 -8
  37. package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +51 -75
  38. package/es/components/expand-field/src/components/FormItemPerson.vue2.js +38 -46
  39. package/es/components/expand-field/src/components/PersonModal.vue2.js +50 -62
  40. package/es/components/expand-field/src/components/form.vue2.js +412 -783
  41. package/es/components/expand-field/src/index.vue2.js +22 -88
  42. package/es/components/expand-field/src/utils/constant.js +12 -88
  43. package/es/components/fabric-chart/src/components/PopupMenu.js +15 -32
  44. package/es/components/fabric-chart/src/constants/index.js +10 -72
  45. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +3 -16
  46. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +2 -8
  47. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +5 -32
  48. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +2 -8
  49. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +41 -63
  50. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  51. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -5
  52. package/es/components/fabric-chart/src/hooks/useCommon.js +4 -24
  53. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  54. package/es/components/fabric-chart/src/utils/index.js +2 -2
  55. package/es/components/field-editor/src/fields.js +30 -232
  56. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  57. package/es/components/field-set/src/FieldColor.vue2.js +21 -88
  58. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  59. package/es/components/field-set/src/FieldFilter.vue2.js +12 -28
  60. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  61. package/es/components/field-set/src/FieldSet.vue2.js +57 -210
  62. package/es/components/field-set/src/Index.vue2.js +6 -40
  63. package/es/components/field-set/src/TableStyle.vue2.js +13 -48
  64. package/es/components/field-set/src/components/condition.vue2.js +11 -27
  65. package/es/components/field-set/src/components/edit-dialog.vue2.js +69 -149
  66. package/es/components/field-set/src/components/edit-filter.vue2.js +4 -24
  67. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  68. package/es/components/field-set/src/components/table-row.vue2.js +42 -123
  69. package/es/components/field-set/src/constants/filter.js +42 -328
  70. package/es/components/field-set/src/constants/index.js +64 -504
  71. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +46 -91
  72. package/es/components/form-config/src/constants/index.js +11 -80
  73. package/es/components/form-config/src/hooks/useLocale.js +31 -240
  74. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +3 -7
  75. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +3 -7
  76. package/es/components/form-render/src/components/renderer/combination/tableCombination.js +2 -8
  77. package/es/components/form-render/src/components/renderer/radio_checkbox.js +3 -7
  78. package/es/components/form-render/src/components/renderer/remoteSearch.js +2 -8
  79. package/es/components/form-render/src/components/renderer/switch.js +4 -24
  80. package/es/components/form-render/src/utils/schema.js +6 -26
  81. package/es/components/iho-chat/src/Index.vue2.js +38 -42
  82. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +33 -108
  83. package/es/components/iho-chat/src/components/ChatFile.vue2.js +90 -132
  84. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +48 -110
  85. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +15 -35
  86. package/es/components/iho-chat/src/components/ChatMain.vue2.js +22 -54
  87. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +45 -77
  88. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +208 -256
  89. package/es/components/iho-chat/src/components/ChatSet.vue2.js +211 -309
  90. package/es/components/iho-chat/src/components/ContextMenu.js +9 -50
  91. package/es/components/iho-chat/src/components/MessageEvent.vue2.js +4 -16
  92. package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +2 -8
  93. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +18 -104
  94. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +12 -67
  95. package/es/components/iho-chat/src/components/SelectLabel.vue2.js +43 -47
  96. package/es/components/iho-chat/src/components/SiderList.vue2.js +40 -70
  97. package/es/components/iho-chat/src/components/Video.vue2.js +11 -38
  98. package/es/components/iho-chat/src/hooks/useVideo.js +4 -15
  99. package/es/components/iho-chat/src/utils/index.js +14 -79
  100. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +2 -8
  101. package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +15 -40
  102. package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +15 -40
  103. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  104. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +20 -50
  105. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +6 -14
  106. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +3 -10
  107. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +18 -45
  108. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  109. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +14 -20
  110. package/es/components/index.css +1 -1
  111. package/es/components/info-header/src/components/patientInfo/index.vue2.js +23 -142
  112. package/es/components/keyboard/src/Keyboard.vue2.js +9 -21
  113. package/es/components/keyboard/src/components/NumberPanel.vue2.js +35 -49
  114. package/es/components/map/src/Map.vue2.js +3 -7
  115. package/es/components/picture-clipper/src/PictureClipper.vue2.js +6 -14
  116. package/es/components/quick-search/src/index.vue2.js +132 -177
  117. package/es/components/recommend-search/src/components/BaseSearch.js +8 -14
  118. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +8 -28
  119. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +5 -18
  120. package/es/components/scale-view/src/ScaleView.vue2.js +7 -15
  121. package/es/components/scale-view/src/components/NoData.vue2.js +4 -16
  122. package/es/components/scale-view/src/components/formitem/r-cascader.js +2 -8
  123. package/es/components/scale-view/src/components/formitem/r-checkbox.js +6 -24
  124. package/es/components/scale-view/src/components/formitem/r-input.js +2 -8
  125. package/es/components/scale-view/src/components/formitem/r-map.js +2 -8
  126. package/es/components/scale-view/src/components/formitem/r-radio.js +6 -24
  127. package/es/components/scale-view/src/components/formitem/r-select.js +2 -8
  128. package/es/components/scale-view/src/components/formitem/r-sign.js +9 -30
  129. package/es/components/scale-view/src/components/formitem/standard-modal.js +3 -16
  130. package/es/components/scale-view/src/hooks/scaleview-computed.js +5 -24
  131. package/es/components/scale-view/src/hooks/scaleview-methods.js +4 -16
  132. package/es/components/scale-view/src/hooks/scaleview-submit.js +3 -16
  133. package/es/components/scale-view/src/hooks/scaleview-validate.js +9 -40
  134. package/es/components/search-cascader/src/SearchCascader.vue2.js +14 -20
  135. package/es/components/select-label/src/LabelFormContent.vue2.js +21 -53
  136. package/es/components/select-label/src/SelectLabel.vue2.js +55 -85
  137. package/es/components/select-label/src/components/label-classify.vue2.js +11 -28
  138. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +5 -18
  139. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +8 -34
  140. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +5 -18
  141. package/es/components/select-person/src/SelectPerson.vue2.js +141 -214
  142. package/es/components/select-person/src/SelectPersonType.vue2.js +105 -130
  143. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +2 -9
  144. package/es/components/select-person/src/index.vue2.js +7 -20
  145. package/es/components/slider-tree/src/index.vue2.js +3 -16
  146. package/es/components/table-export-field/src/components/ExportModal.vue2.js +112 -186
  147. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +88 -147
  148. package/es/components/table-export-field/src/index.vue2.js +12 -28
  149. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +5 -32
  150. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +34 -264
  151. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +135 -214
  152. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +3 -16
  153. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +2 -9
  154. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +6 -39
  155. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +5 -18
  156. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +18 -29
  157. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +3 -16
  158. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +2 -8
  159. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +130 -195
  160. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +7 -26
  161. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +7 -13
  162. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +8 -34
  163. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +8 -21
  164. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +3 -7
  165. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +6 -19
  166. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +3 -16
  167. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +10 -24
  168. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +207 -1648
  169. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +2 -8
  170. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +3 -16
  171. package/es/components/table-filter/src/tool/baseOptions.js +19 -144
  172. package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +12 -28
  173. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +2 -22
  174. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +3 -7
  175. package/es/components/vod-chunk-upload/src/vod-upload-modal.js +6 -14
  176. package/es/env.d.ts +25 -25
  177. package/es/shared/hooks/selectHooks/useSelectAllowModify.js +2 -2
  178. package/es/shared/package.json.js +1 -1
  179. package/package.json +2 -2
@@ -4,6 +4,7 @@ import noPermission from '../../../../shared/assets/img/no-permission.png.js';
4
4
  import failure from '../../../../shared/assets/img/failure.png.js';
5
5
  import notfound from '../../../../shared/assets/img/notfound.png.js';
6
6
 
7
+ var _a, _b, _c;
7
8
  const _hoisted_1 = {
8
9
  class: "no-data-tip NoData-page"
9
10
  };
@@ -16,14 +17,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
16
17
  props: {
17
18
  noDataTip: {
18
19
  type: String,
19
- default: function() {
20
- var _a, _b, _c;
21
- try {
22
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.445")) || "\u6682\u65E0\u6570\u636E";
23
- } catch (e) {
24
- return "\u6682\u65E0\u6570\u636E";
25
- }
26
- }()
20
+ default: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.445")) || "\u6682\u65E0\u6570\u636E"
27
21
  },
28
22
  noDataImg: {
29
23
  type: String,
@@ -55,20 +49,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
55
49
  return str;
56
50
  });
57
51
  const handleDesc = computed(() => {
52
+ var _a2, _b2, _c2;
58
53
  let res = "";
59
54
  switch (props.noDataImg) {
60
55
  case "no-permission":
61
56
  res = "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458";
62
57
  break;
63
58
  case "failure":
64
- res = function() {
65
- var _a, _b, _c;
66
- try {
67
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.449")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.449")) || "\u8BF7\u7A0D\u540E\u518D\u8BD5";
68
- } catch (e) {
69
- return "\u8BF7\u7A0D\u540E\u518D\u8BD5";
70
- }
71
- }();
59
+ res = ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.449")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.449")) || "\u8BF7\u7A0D\u540E\u518D\u8BD5";
72
60
  break;
73
61
  }
74
62
  return res;
@@ -110,19 +110,13 @@ var RCascader = /* @__PURE__ */ defineComponent({
110
110
  context.emit("scaleChange", path, props.item);
111
111
  };
112
112
  return () => {
113
+ var _a, _b, _c;
113
114
  return createVNode(resolveComponent("n-cascader"), {
114
115
  "value": state.cascaderValue,
115
116
  "onUpdate:value": ($event) => state.cascaderValue = $event,
116
117
  "filterable": true,
117
118
  "clearable": true,
118
- "placeholder": function() {
119
- var _a, _b, _c;
120
- try {
121
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.147")) || "\u8BF7\u9009\u62E9";
122
- } catch (e) {
123
- return "\u8BF7\u9009\u62E9";
124
- }
125
- }(),
119
+ "placeholder": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.147")) || "\u8BF7\u9009\u62E9",
126
120
  "check-strategy": "parent",
127
121
  "value-field": "theUniqueKey",
128
122
  "disabled": props.isLock,
@@ -227,15 +227,9 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
227
227
  }, null)])]);
228
228
  };
229
229
  const renderPrintSpan = (o) => {
230
+ var _a2, _b2, _c;
230
231
  const val = o ? state.optionsPreSuffixObj[o.key] : state.othersText;
231
- const showVal = val ? val : function() {
232
- var _a2, _b2, _c;
233
- try {
234
- return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
235
- } catch (e) {
236
- return "\u8BF7\u8F93\u5165";
237
- }
238
- }();
232
+ const showVal = val ? val : ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
239
233
  return createVNode("span", {
240
234
  "class": ["print-span", {
241
235
  "print-span-disabled": isDisabled.value,
@@ -244,6 +238,7 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
244
238
  }, [showVal]);
245
239
  };
246
240
  const renderPresuffix = (o) => {
241
+ var _a2, _b2, _c;
247
242
  return createVNode("div", {
248
243
  "class": "presuffix-wrap"
249
244
  }, [o.prefix && createVNode("span", {
@@ -258,14 +253,7 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
258
253
  "style": {
259
254
  color: choiceColor.value(o)
260
255
  },
261
- "placeholder": function() {
262
- var _a2, _b2, _c;
263
- try {
264
- return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
265
- } catch (e) {
266
- return "\u8BF7\u8F93\u5165";
267
- }
268
- }(),
256
+ "placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165",
269
257
  "bordered": false,
270
258
  "onInput": (val) => inputPreSuffixCheckboxChangeMethod(val, o),
271
259
  "onClick": stopClick,
@@ -288,6 +276,7 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
288
276
  }, [o.label]);
289
277
  };
290
278
  const renderOther = (o) => {
279
+ var _a2, _b2, _c;
291
280
  return createVNode("div", {
292
281
  "class": "choose-other",
293
282
  "onClick": stopClick
@@ -298,14 +287,7 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
298
287
  "style": {
299
288
  color: choiceColor.value(o)
300
289
  },
301
- "placeholder": function() {
302
- var _a2, _b2, _c;
303
- try {
304
- return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
305
- } catch (e) {
306
- return "\u8BF7\u8F93\u5165";
307
- }
308
- }(),
290
+ "placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165",
309
291
  "bordered": false,
310
292
  "type": "textarea",
311
293
  "autosize": true,
@@ -73,15 +73,9 @@ var RInput = /* @__PURE__ */ defineComponent({
73
73
  emit("scaleChange", inputValue.value, props.item);
74
74
  };
75
75
  const renderPrintSpan = () => {
76
+ var _a2, _b2, _c2;
76
77
  const val = inputValue.value;
77
- const showVal = val ? val : function() {
78
- var _a2, _b2, _c2;
79
- try {
80
- return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
81
- } catch (e) {
82
- return "\u8BF7\u8F93\u5165";
83
- }
84
- }();
78
+ const showVal = val ? val : ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
85
79
  return createVNode("div", {
86
80
  "class": ["input-print-span", {
87
81
  "input-print-span-disabled": props.isLock,
@@ -66,6 +66,7 @@ var RMap = /* @__PURE__ */ defineComponent({
66
66
  state.mapVisible = true;
67
67
  };
68
68
  const renderMap = () => {
69
+ var _a, _b, _c;
69
70
  return createVNode("div", {
70
71
  "class": {
71
72
  "c-map-container": !props.isLock
@@ -75,14 +76,7 @@ var RMap = /* @__PURE__ */ defineComponent({
75
76
  "readonly": true,
76
77
  "class": "map-input",
77
78
  "on-click": clickMap,
78
- "placeholder": function() {
79
- var _a, _b, _c;
80
- try {
81
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.147")) || "\u8BF7\u9009\u62E9";
82
- } catch (e) {
83
- return "\u8BF7\u9009\u62E9";
84
- }
85
- }()
79
+ "placeholder": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.147")) || "\u8BF7\u9009\u62E9"
86
80
  }, {
87
81
  prefix: () => createVNode(resolveComponent("n-icon"), {
88
82
  "size": "18",
@@ -192,15 +192,9 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
192
192
  }, null)])]);
193
193
  };
194
194
  const renderPrintSpan = (o) => {
195
+ var _a2, _b2, _c;
195
196
  const val = o ? state.optionsPreSuffixObj[o.key] : state.othersText;
196
- const showVal = val ? val : function() {
197
- var _a2, _b2, _c;
198
- try {
199
- return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
200
- } catch (e) {
201
- return "\u8BF7\u8F93\u5165";
202
- }
203
- }();
197
+ const showVal = val ? val : ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
204
198
  return createVNode("span", {
205
199
  "class": ["print-span", {
206
200
  "print-span-disabled": isDisabled.value,
@@ -209,6 +203,7 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
209
203
  }, [showVal]);
210
204
  };
211
205
  const renderPresuffix = (o) => {
206
+ var _a2, _b2, _c;
212
207
  return createVNode("div", {
213
208
  "class": "presuffix-wrap"
214
209
  }, [o.prefix && createVNode("span", {
@@ -223,14 +218,7 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
223
218
  "style": {
224
219
  color: choiceColor.value(o)
225
220
  },
226
- "placeholder": function() {
227
- var _a2, _b2, _c;
228
- try {
229
- return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
230
- } catch (e) {
231
- return "\u8BF7\u8F93\u5165";
232
- }
233
- }(),
221
+ "placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165",
234
222
  "bordered": false,
235
223
  "on-update:value": (val) => inputPreSuffixChangeMethod(val, o),
236
224
  "onClick": stopClick,
@@ -253,6 +241,7 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
253
241
  }, [o.label]);
254
242
  };
255
243
  const renderOther = (o) => {
244
+ var _a2, _b2, _c;
256
245
  return createVNode("div", {
257
246
  "class": "choose-other",
258
247
  "onClick": stopClick
@@ -263,14 +252,7 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
263
252
  "style": {
264
253
  color: choiceColor.value(o)
265
254
  },
266
- "placeholder": function() {
267
- var _a2, _b2, _c;
268
- try {
269
- return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
270
- } catch (e) {
271
- return "\u8BF7\u8F93\u5165";
272
- }
273
- }(),
255
+ "placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165",
274
256
  "bordered": false,
275
257
  "type": "textarea",
276
258
  "autosize": true,
@@ -218,19 +218,13 @@ var scriptSelect = /* @__PURE__ */ defineComponent({
218
218
  immediate: true
219
219
  });
220
220
  return () => {
221
+ var _a, _b, _c;
221
222
  return createVNode(resolveComponent("n-select"), {
222
223
  "value": props.form[props.item.val_key],
223
224
  "onUpdate:value": [($event) => props.form[props.item.val_key] = $event, handleSelectChange],
224
225
  "filterable": true,
225
226
  "clearable": true,
226
- "placeholder": function() {
227
- var _a, _b, _c;
228
- try {
229
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.147")) || "\u8BF7\u9009\u62E9";
230
- } catch (e) {
231
- return "\u8BF7\u9009\u62E9";
232
- }
233
- }(),
227
+ "placeholder": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.147")) || "\u8BF7\u9009\u62E9",
234
228
  "value-field": columnKey.value,
235
229
  "label-field": labelKey.value,
236
230
  "multiple": isMultiple.value,
@@ -82,27 +82,14 @@ var RSign = /* @__PURE__ */ defineComponent({
82
82
  });
83
83
  };
84
84
  const deleteImg = (index) => {
85
+ var _a, _b, _c, _d, _e, _f;
85
86
  if (props.isLock)
86
87
  return;
87
88
  dialog.warning({
88
89
  title: "\u63D0\u793A",
89
90
  content: "\u786E\u8BA4\u8981\u5220\u9664\u7B7E\u540D\u5417\uFF1F",
90
- positiveText: function() {
91
- var _a, _b, _c;
92
- try {
93
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A";
94
- } catch (e) {
95
- return "\u786E\u5B9A";
96
- }
97
- }(),
98
- negativeText: function() {
99
- var _a, _b, _c;
100
- try {
101
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
102
- } catch (e) {
103
- return "\u53D6\u6D88";
104
- }
105
- }(),
91
+ positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A",
92
+ negativeText: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.28")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.28")) || "\u53D6\u6D88",
106
93
  maskClosable: false,
107
94
  closable: false,
108
95
  positiveButtonProps: {
@@ -144,14 +131,10 @@ var RSign = /* @__PURE__ */ defineComponent({
144
131
  "size": "small",
145
132
  "onClick": cancel
146
133
  }, {
147
- default: () => [createTextVNode(function() {
134
+ default: () => {
148
135
  var _a, _b, _c;
149
- try {
150
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
151
- } catch (e) {
152
- return "\u53D6\u6D88";
153
- }
154
- }())]
136
+ return [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88")];
137
+ }
155
138
  }), createVNode(resolveComponent("n-button"), {
156
139
  "size": "small",
157
140
  "onClick": handleReset,
@@ -163,14 +146,10 @@ var RSign = /* @__PURE__ */ defineComponent({
163
146
  "onClick": handleGenerate,
164
147
  "type": "primary"
165
148
  }, {
166
- default: () => [createTextVNode(function() {
149
+ default: () => {
167
150
  var _a, _b, _c;
168
- try {
169
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.428")) || "\u786E\u8BA4";
170
- } catch (e) {
171
- return "\u786E\u8BA4";
172
- }
173
- }())]
151
+ return [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.428")) || "\u786E\u8BA4")];
152
+ }
174
153
  })]
175
154
  })]);
176
155
  };
@@ -90,6 +90,7 @@ var StandardModal = /* @__PURE__ */ defineComponent({
90
90
  }, null) : null])]);
91
91
  };
92
92
  const rednerModal = () => {
93
+ var _a, _b, _c, _d, _e, _f;
93
94
  const curSlot = {
94
95
  ...context.slots
95
96
  };
@@ -107,22 +108,8 @@ var StandardModal = /* @__PURE__ */ defineComponent({
107
108
  height: modalConfig.modalHeight
108
109
  },
109
110
  "preset": "dialog",
110
- "positive-text": function() {
111
- var _a, _b, _c;
112
- try {
113
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.428")) || "\u786E\u8BA4";
114
- } catch (e) {
115
- return "\u786E\u8BA4";
116
- }
117
- }(),
118
- "negative-text": function() {
119
- var _a, _b, _c;
120
- try {
121
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
122
- } catch (e) {
123
- return "\u53D6\u6D88";
124
- }
125
- }(),
111
+ "positive-text": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.428")) || "\u786E\u8BA4",
112
+ "negative-text": ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.28")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.28")) || "\u53D6\u6D88",
126
113
  "on-positive-click": handleOk,
127
114
  "on-negative-click": cancel,
128
115
  "positiveButtonProps": {
@@ -230,23 +230,10 @@ const ScaleViewComputed = (props, state, config) => {
230
230
  return !!props.hideBtn || !!props.isLock || state.isFinished && !canEdit.value;
231
231
  });
232
232
  const showEvaluateLabel = computed(() => (item) => {
233
+ var _a, _b, _c, _d, _e, _f;
233
234
  const obj = {
234
- EVALUATE_RADIO_BLOCK: function() {
235
- var _a, _b, _c;
236
- try {
237
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.298")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.298")) || "\u5355\u9009";
238
- } catch (e) {
239
- return "\u5355\u9009";
240
- }
241
- }(),
242
- EVALUATE_CHECKBOX_BLOCK: function() {
243
- var _a, _b, _c;
244
- try {
245
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.100")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.100")) || "\u591A\u9009";
246
- } catch (e) {
247
- return "\u591A\u9009";
248
- }
249
- }()
235
+ EVALUATE_RADIO_BLOCK: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.298")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.298")) || "\u5355\u9009",
236
+ EVALUATE_CHECKBOX_BLOCK: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.100")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.100")) || "\u591A\u9009"
250
237
  };
251
238
  return obj[item.type];
252
239
  });
@@ -273,14 +260,8 @@ const ScaleViewComputed = (props, state, config) => {
273
260
  return isShow && isRang <= 0;
274
261
  });
275
262
  const tipMsg = computed(() => {
276
- return props.type === "customList" ? function() {
277
- var _a, _b, _c;
278
- try {
279
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.244")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.244")) || "\u4FDD\u5B58";
280
- } catch (e) {
281
- return "\u4FDD\u5B58";
282
- }
283
- }() : "\u63D0\u4EA4";
263
+ var _a, _b, _c;
264
+ return props.type === "customList" ? ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.244")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.244")) || "\u4FDD\u5B58" : "\u63D0\u4EA4";
284
265
  });
285
266
  const selectProps = computed(() => {
286
267
  return {
@@ -115,6 +115,7 @@ const ScaleViewMethods = (props, state, emit, config) => {
115
115
  emit("startWriteScale");
116
116
  };
117
117
  const closeEvaluateCountdown = () => {
118
+ var _a, _b, _c;
118
119
  state.showEvaluateCountdown = false;
119
120
  if (isPreviewScale.value)
120
121
  return;
@@ -124,18 +125,12 @@ const ScaleViewMethods = (props, state, emit, config) => {
124
125
  title: "\u6E29\u99A8\u63D0\u793A",
125
126
  content: "\u6D4B\u8BC4\u65F6\u95F4\u5230\u4E86\uFF0C\u7ED3\u675F\u6D4B\u8BC4\uFF01",
126
127
  maskClosable: false,
127
- positiveText: function() {
128
- var _a, _b, _c;
129
- try {
130
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A";
131
- } catch (e) {
132
- return "\u786E\u5B9A";
133
- }
134
- }(),
128
+ positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A",
135
129
  onPositiveClick: () => ({})
136
130
  });
137
131
  };
138
132
  const evatipConfirm = (str) => {
133
+ var _a, _b, _c;
139
134
  dialog.warning({
140
135
  title: "\u63D0\u793A",
141
136
  content: () => {
@@ -145,14 +140,7 @@ const ScaleViewMethods = (props, state, emit, config) => {
145
140
  },
146
141
  class: "c-evatip-dialog-wrap",
147
142
  showIcon: false,
148
- positiveText: function() {
149
- var _a, _b, _c;
150
- try {
151
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A";
152
- } catch (e) {
153
- return "\u786E\u5B9A";
154
- }
155
- }(),
143
+ positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A",
156
144
  negativeText: "\u5173\u95ED",
157
145
  maskClosable: false,
158
146
  onPositiveClick() {
@@ -228,6 +228,7 @@ const ScaleViewSubmit = (props, state, emit, config) => {
228
228
  });
229
229
  };
230
230
  const confirmSubmit = (message2) => {
231
+ var _a, _b, _c, _d, _e, _f;
231
232
  dialog.warning({
232
233
  title: "\u6E29\u99A8\u63D0\u793A",
233
234
  content: () => h("div", {
@@ -235,22 +236,8 @@ const ScaleViewSubmit = (props, state, emit, config) => {
235
236
  paddingLeft: "30px"
236
237
  }
237
238
  }, message2),
238
- positiveText: function() {
239
- var _a, _b, _c;
240
- try {
241
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A";
242
- } catch (e) {
243
- return "\u786E\u5B9A";
244
- }
245
- }(),
246
- negativeText: function() {
247
- var _a, _b, _c;
248
- try {
249
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
250
- } catch (e) {
251
- return "\u53D6\u6D88";
252
- }
253
- }(),
239
+ positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A",
240
+ negativeText: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.28")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.28")) || "\u53D6\u6D88",
254
241
  maskClosable: false,
255
242
  closable: false,
256
243
  positiveButtonProps: {
@@ -20,45 +20,26 @@ const ScaleViewValidate = (props, state, config) => {
20
20
  return isAdress;
21
21
  };
22
22
  const checkAdress = (rule, value) => {
23
+ var _a, _b, _c;
23
24
  let {
24
25
  address
25
26
  } = value || {};
26
27
  if (!address) {
27
- return new Error(function() {
28
- var _a, _b, _c;
29
- try {
30
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B";
31
- } catch (e) {
32
- return "\u5FC5\u586B";
33
- }
34
- }());
28
+ return new Error(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B");
35
29
  }
36
30
  return true;
37
31
  };
38
32
  const checkLabel = (rule, value) => {
33
+ var _a, _b, _c, _d, _e, _f;
39
34
  if (!value || !Object.keys(value).length) {
40
- return new Error(function() {
41
- var _a, _b, _c;
42
- try {
43
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B";
44
- } catch (e) {
45
- return "\u5FC5\u586B";
46
- }
47
- }());
35
+ return new Error(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B");
48
36
  }
49
37
  let {
50
38
  labelStr,
51
39
  labels = []
52
40
  } = value;
53
41
  if (!labelStr || !labels.length) {
54
- return new Error(function() {
55
- var _a, _b, _c;
56
- try {
57
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B";
58
- } catch (e) {
59
- return "\u5FC5\u586B";
60
- }
61
- }());
42
+ return new Error(((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.248")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.248")) || "\u5FC5\u586B");
62
43
  }
63
44
  return true;
64
45
  };
@@ -135,6 +116,7 @@ const ScaleViewValidate = (props, state, config) => {
135
116
  return Object.prototype.toString.call(val);
136
117
  };
137
118
  const validateRequired = (rule, value) => {
119
+ var _a, _b, _c;
138
120
  let type = checkType(value);
139
121
  if (type == "[object Object]") {
140
122
  if (value && Object.keys(value).length)
@@ -149,32 +131,19 @@ const ScaleViewValidate = (props, state, config) => {
149
131
  if (value)
150
132
  return true;
151
133
  }
152
- return new Error(function() {
153
- var _a, _b, _c;
154
- try {
155
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B";
156
- } catch (e) {
157
- return "\u5FC5\u586B";
158
- }
159
- }());
134
+ return new Error(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B");
160
135
  };
161
136
  const filterArr = ["LABEL", "ADDRESS"];
162
137
  const formatRules = (formArray) => {
163
138
  const rules = {};
164
139
  formArray.forEach((item) => {
140
+ var _a, _b, _c;
165
141
  let newTitle = item.val_key;
166
142
  rules[newTitle] = [];
167
143
  if (item.required && !filterArr.includes(item.type)) {
168
144
  rules[newTitle].push({
169
145
  required: item.required,
170
- message: function() {
171
- var _a, _b, _c;
172
- try {
173
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B";
174
- } catch (e) {
175
- return "\u5FC5\u586B";
176
- }
177
- }(),
146
+ message: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B",
178
147
  trigger: "change",
179
148
  validator: validateRequired
180
149
  });