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