cnhis-design-vue 3.3.2-release.0 → 3.3.2-release.3
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/README.md +87 -87
- 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.vue.d.ts +3 -0
- 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 +1 -1
- package/es/components/field-set/src/FieldColor.vue2.js +88 -21
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue2.js +32 -16
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- 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 +1 -1
- 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 +67 -12
- 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/selectRendererPlugin/selectUtils.js +17 -3
- 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 +17 -9
- 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/env.d.ts +25 -25
- 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
@@ -1,11 +1,24 @@
|
|
1
1
|
import { ConditionEnums } from '../../../types/enums.js';
|
2
2
|
|
3
|
-
var _a, _b;
|
4
3
|
const conditionOptions = [{
|
5
|
-
label: (
|
4
|
+
label: function() {
|
5
|
+
var _a, _b, _c;
|
6
|
+
try {
|
7
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.376")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.376")) || "\u81EA\u5B9A\u4E49";
|
8
|
+
} catch (e) {
|
9
|
+
return "\u81EA\u5B9A\u4E49";
|
10
|
+
}
|
11
|
+
}(),
|
6
12
|
value: ConditionEnums.EQUAL
|
7
13
|
}, {
|
8
|
-
label: (
|
14
|
+
label: function() {
|
15
|
+
var _a, _b, _c;
|
16
|
+
try {
|
17
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.338")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.338")) || "\u4E3A\u7A7A";
|
18
|
+
} catch (e) {
|
19
|
+
return "\u4E3A\u7A7A";
|
20
|
+
}
|
21
|
+
}(),
|
9
22
|
value: ConditionEnums.NULL
|
10
23
|
}];
|
11
24
|
|
package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js
CHANGED
@@ -55,8 +55,14 @@ const useDisplayCategory = (selectedDisplayCategory, {
|
|
55
55
|
const initDisplayCategories = (rawDataDisplayCategories, displayCategory) => {
|
56
56
|
const displayCategories = [];
|
57
57
|
rawDataDisplayCategories.forEach((item) => {
|
58
|
-
|
59
|
-
|
58
|
+
if (item !== function() {
|
59
|
+
var _a, _b, _c;
|
60
|
+
try {
|
61
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.378")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.378")) || "\u672A\u5206\u7C7B";
|
62
|
+
} catch (e) {
|
63
|
+
return "\u672A\u5206\u7C7B";
|
64
|
+
}
|
65
|
+
}()) {
|
60
66
|
displayCategories.push({
|
61
67
|
disabled: true,
|
62
68
|
value: item
|
@@ -8,7 +8,6 @@ import { useFilterConditions } from './hooks/useFilterConditions.js';
|
|
8
8
|
import { conditionOptions } from './helpers/options.js';
|
9
9
|
import { InjectionClassifyFilterList } from '../../constants/index.js';
|
10
10
|
|
11
|
-
var _a;
|
12
11
|
const _hoisted_1 = {
|
13
12
|
class: "searchConditionByApi_wrapper"
|
14
13
|
};
|
@@ -41,7 +40,14 @@ const _hoisted_10 = {
|
|
41
40
|
const _hoisted_11 = /* @__PURE__ */ createElementVNode("span", {
|
42
41
|
class: "label"
|
43
42
|
}, " \u8FC7\u6EE4\u6761\u4EF6\uFF1A ", -1);
|
44
|
-
const _hoisted_12 = /* @__PURE__ */ createElementVNode("span", null, (
|
43
|
+
const _hoisted_12 = /* @__PURE__ */ createElementVNode("span", null, function() {
|
44
|
+
var _a, _b, _c;
|
45
|
+
try {
|
46
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.86")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.86")) || "\u6DFB\u52A0";
|
47
|
+
} catch (e) {
|
48
|
+
return "\u6DFB\u52A0";
|
49
|
+
}
|
50
|
+
}(), -1);
|
45
51
|
const _hoisted_13 = {
|
46
52
|
class: "select-item-list"
|
47
53
|
};
|
@@ -149,14 +155,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
149
155
|
FormState.filterConditions = [];
|
150
156
|
}
|
151
157
|
async function handleInitConditions() {
|
152
|
-
var
|
158
|
+
var _a;
|
153
159
|
try {
|
154
160
|
clearFormData();
|
155
161
|
loading.value = true;
|
156
162
|
initDisplayCategories($attrs.displayCategoryList, props.actionList_prop.displayCategory || void 0);
|
157
163
|
if (props.actionList_prop) {
|
158
164
|
FormState.className = props.actionList_prop.name;
|
159
|
-
await initFilterConditions(props.tableId, (
|
165
|
+
await initFilterConditions(props.tableId, (_a = props.actionList_prop.conObj) != null ? _a : []);
|
160
166
|
const isAdd = FormState.filterConditions.length < 1;
|
161
167
|
if (isAdd && paramOptions.value && paramOptions.value.length > 0) {
|
162
168
|
addFilterCondition();
|
@@ -168,13 +174,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
168
174
|
}
|
169
175
|
function validate() {
|
170
176
|
return new Promise((resolve) => {
|
171
|
-
var _a2, _b, _c;
|
172
177
|
if (!FormState.className && props.showItemName) {
|
173
|
-
$message.warning((
|
178
|
+
$message.warning(function() {
|
179
|
+
var _a, _b, _c;
|
180
|
+
try {
|
181
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.360")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.360")) || "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0";
|
182
|
+
} catch (e) {
|
183
|
+
return "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0";
|
184
|
+
}
|
185
|
+
}());
|
174
186
|
return;
|
175
187
|
}
|
176
188
|
if (FormState.filterConditions.length === 0) {
|
177
|
-
$message.warning((
|
189
|
+
$message.warning(function() {
|
190
|
+
var _a, _b, _c;
|
191
|
+
try {
|
192
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.364")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.364")) || "\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u6761\u4EF6";
|
193
|
+
} catch (e) {
|
194
|
+
return "\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u6761\u4EF6";
|
195
|
+
}
|
196
|
+
}());
|
178
197
|
return;
|
179
198
|
}
|
180
199
|
const isEmpty = FormState.filterConditions.some(({
|
@@ -186,7 +205,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
186
205
|
return !key || !condition || condition === ConditionEnums.EQUAL && !value && !presetVal;
|
187
206
|
});
|
188
207
|
if (isEmpty) {
|
189
|
-
$message.warning((
|
208
|
+
$message.warning(function() {
|
209
|
+
var _a, _b, _c;
|
210
|
+
try {
|
211
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.365")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.365")) || "\u8BF7\u8865\u5145\u5B8C\u6574\u6761\u4EF6\u5185\u5BB9";
|
212
|
+
} catch (e) {
|
213
|
+
return "\u8BF7\u8865\u5145\u5B8C\u6574\u6761\u4EF6\u5185\u5BB9";
|
214
|
+
}
|
215
|
+
}());
|
190
216
|
return;
|
191
217
|
}
|
192
218
|
resolve(true);
|
@@ -231,134 +257,173 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
231
257
|
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(NSpin), {
|
232
258
|
show: loading.value
|
233
259
|
}, {
|
234
|
-
default: withCtx(() => {
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
}
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
onBlur: () => item.disabled = true,
|
271
|
-
value: item.value,
|
272
|
-
"onUpdate:value": ($event) => item.value = $event,
|
273
|
-
maxlength: 20
|
274
|
-
}, null, 8, ["disabled", "onBlur", "value", "onUpdate:value"]))], 8, _hoisted_7);
|
275
|
-
}), 128)), unref(isEnableAddDisplayCategory) ? (openBlock(), createElementBlock(Fragment, {
|
276
|
-
key: 0
|
277
|
-
}, [withDirectives(createVNode(unref(NButton), {
|
278
|
-
class: "ant-btn",
|
279
|
-
icon: "plus",
|
280
|
-
dashed: "",
|
281
|
-
onClick: handleDisplayCategoryAddState
|
282
|
-
}, {
|
283
|
-
default: withCtx(() => {
|
284
|
-
var _a3;
|
285
|
-
return [createVNode(unref(NIcon), {
|
286
|
-
component: unref(AddOutline),
|
287
|
-
size: "20"
|
288
|
-
}, null, 8, ["component"]), createTextVNode(" " + toDisplayString(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.362")) || "\u6DFB\u52A0\u7236\u7C7B"))];
|
289
|
-
}),
|
290
|
-
_: 1
|
291
|
-
}, 512), [[vShow, !unref(DisplayCategoryState).showAdd]]), withDirectives(createVNode(unref(NInput), {
|
292
|
-
ref_key: "parentInputAddRef",
|
293
|
-
ref: parentInputAddRef,
|
260
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2, [__props.showItemName ? (openBlock(), createElementBlock("div", _hoisted_3, [_hoisted_4, createVNode(unref(NInput), {
|
261
|
+
value: FormState.className,
|
262
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => FormState.className = $event),
|
263
|
+
placeholder: function() {
|
264
|
+
var _a, _b, _c;
|
265
|
+
try {
|
266
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.360")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.360")) || "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0";
|
267
|
+
} catch (e) {
|
268
|
+
return "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0";
|
269
|
+
}
|
270
|
+
}(),
|
271
|
+
style: {
|
272
|
+
"width": "250px"
|
273
|
+
},
|
274
|
+
maxlength: "10"
|
275
|
+
}, null, 8, ["value"])])) : createCommentVNode("v-if", true), __props.showItemName ? (openBlock(), createElementBlock("div", _hoisted_5, [_hoisted_6, (openBlock(true), createElementBlock(Fragment, null, renderList(unref(DisplayCategoryState).displayCategories, (item, index) => {
|
276
|
+
return openBlock(), createElementBlock("div", {
|
277
|
+
class: "parent-name",
|
278
|
+
key: index,
|
279
|
+
onClick: ($event) => handleDisplayCategorySelectProxy(item)
|
280
|
+
}, [item.disabled ? (openBlock(), createElementBlock("div", {
|
281
|
+
key: 0,
|
282
|
+
class: normalizeClass(["edit-tag", {
|
283
|
+
"edit-tag-select": item.value === FormState.displayCategory && item.disabled
|
284
|
+
}]),
|
285
|
+
onDblclick: ($event) => handleEditDisplayCategory(item)
|
286
|
+
}, [createElementVNode("div", _hoisted_9, toDisplayString(item.value), 1), createVNode(unref(NIcon), {
|
287
|
+
component: unref(CloseOutline),
|
288
|
+
class: "anticon-close",
|
289
|
+
size: "20",
|
290
|
+
onClick: ($event) => unref(handleDisplayCategoryRemove)(index, item)
|
291
|
+
}, null, 8, ["component", "onClick"])], 42, _hoisted_8)) : (openBlock(), createBlock(unref(NInput), {
|
292
|
+
key: 1,
|
293
|
+
ref_for: true,
|
294
|
+
ref_key: "parentInputRef",
|
295
|
+
ref: parentInputRef,
|
294
296
|
class: "parent-input",
|
295
|
-
value: unref(DisplayCategoryState).addDisplayCategory,
|
296
|
-
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => unref(DisplayCategoryState).addDisplayCategory = $event),
|
297
|
-
valueModifiers: {
|
298
|
-
trim: true
|
299
|
-
},
|
300
297
|
style: {
|
301
298
|
"width": "100px"
|
302
299
|
},
|
303
|
-
|
300
|
+
disabled: item.disabled,
|
301
|
+
onBlur: () => item.disabled = true,
|
302
|
+
value: item.value,
|
303
|
+
"onUpdate:value": ($event) => item.value = $event,
|
304
304
|
maxlength: 20
|
305
|
-
}, null, 8, ["
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
305
|
+
}, null, 8, ["disabled", "onBlur", "value", "onUpdate:value"]))], 8, _hoisted_7);
|
306
|
+
}), 128)), unref(isEnableAddDisplayCategory) ? (openBlock(), createElementBlock(Fragment, {
|
307
|
+
key: 0
|
308
|
+
}, [withDirectives(createVNode(unref(NButton), {
|
309
|
+
class: "ant-btn",
|
310
|
+
icon: "plus",
|
311
|
+
dashed: "",
|
312
|
+
onClick: handleDisplayCategoryAddState
|
313
|
+
}, {
|
314
|
+
default: withCtx(() => [createVNode(unref(NIcon), {
|
315
|
+
component: unref(AddOutline),
|
316
|
+
size: "20"
|
317
|
+
}, null, 8, ["component"]), createTextVNode(" " + toDisplayString(function() {
|
318
|
+
var _a, _b, _c;
|
319
|
+
try {
|
320
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.362")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.362")) || "\u6DFB\u52A0\u7236\u7C7B";
|
321
|
+
} catch (e) {
|
322
|
+
return "\u6DFB\u52A0\u7236\u7C7B";
|
310
323
|
}
|
311
|
-
}
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
},
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
324
|
+
}()))]),
|
325
|
+
_: 1
|
326
|
+
}, 512), [[vShow, !unref(DisplayCategoryState).showAdd]]), withDirectives(createVNode(unref(NInput), {
|
327
|
+
ref_key: "parentInputAddRef",
|
328
|
+
ref: parentInputAddRef,
|
329
|
+
class: "parent-input",
|
330
|
+
value: unref(DisplayCategoryState).addDisplayCategory,
|
331
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => unref(DisplayCategoryState).addDisplayCategory = $event),
|
332
|
+
valueModifiers: {
|
333
|
+
trim: true
|
334
|
+
},
|
335
|
+
style: {
|
336
|
+
"width": "100px"
|
337
|
+
},
|
338
|
+
onBlur: unref(handlerBlur),
|
339
|
+
maxlength: 20
|
340
|
+
}, null, 8, ["value", "onBlur"]), [[vShow, unref(DisplayCategoryState).showAdd]])], 64)) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), !__props.hideAddBtn ? (openBlock(), createElementBlock("div", _hoisted_10, [_hoisted_11, createElementVNode("span", {
|
341
|
+
class: "addAction",
|
342
|
+
onClick: _cache[2] || (_cache[2] = (...args) => unref(addFilterCondition) && unref(addFilterCondition)(...args)),
|
343
|
+
style: {
|
344
|
+
"cursor": "pointer"
|
345
|
+
}
|
346
|
+
}, [createVNode(unref(NIcon), {
|
347
|
+
component: unref(AddCircleSharp),
|
348
|
+
class: "blue",
|
349
|
+
size: "18"
|
350
|
+
}, null, 8, ["component"]), _hoisted_12])])) : createCommentVNode("v-if", true), createElementVNode("ul", _hoisted_13, [(openBlock(true), createElementBlock(Fragment, null, renderList(FormState.filterConditions, (item, index) => {
|
351
|
+
return openBlock(), createElementBlock("li", {
|
352
|
+
key: index
|
353
|
+
}, [createElementVNode("span", _hoisted_14, toDisplayString(index + 1), 1), createCommentVNode(" \u9009\u62E9 field_key "), createVNode(unref(NSelect), {
|
354
|
+
class: "form-item",
|
355
|
+
placeholder: function() {
|
356
|
+
var _a, _b, _c;
|
357
|
+
try {
|
358
|
+
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";
|
359
|
+
} catch (e) {
|
360
|
+
return "\u8BF7\u9009\u62E9";
|
361
|
+
}
|
362
|
+
}(),
|
363
|
+
value: item.key,
|
364
|
+
"menu-props": menuProps,
|
365
|
+
to: "body",
|
366
|
+
filterable: "",
|
367
|
+
options: unref(paramOptions),
|
368
|
+
"onUpdate:value": ($event) => unref(updateKey)(index, $event)
|
369
|
+
}, null, 8, ["value", "options", "onUpdate:value"]), createCommentVNode(" \u9009\u62E9 \u5173\u7CFB "), item.key ? (openBlock(), createBlock(unref(NSelect), {
|
370
|
+
key: 0,
|
371
|
+
class: "form-item",
|
372
|
+
placeholder: function() {
|
373
|
+
var _a, _b, _c;
|
374
|
+
try {
|
375
|
+
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";
|
376
|
+
} catch (e) {
|
377
|
+
return "\u8BF7\u9009\u62E9";
|
378
|
+
}
|
379
|
+
}(),
|
380
|
+
value: item.condition,
|
381
|
+
to: "body",
|
382
|
+
filterable: "",
|
383
|
+
options: unref(conditionOptions),
|
384
|
+
"onUpdate:value": ($event) => unref(updateCondition)(index, $event)
|
385
|
+
}, null, 8, ["value", "options", "onUpdate:value"])) : createCommentVNode("v-if", true), createCommentVNode(function() {
|
386
|
+
var _a, _b, _c;
|
387
|
+
try {
|
388
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.376")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.376")) || "\u81EA\u5B9A\u4E49";
|
389
|
+
} catch (e) {
|
390
|
+
return "\u81EA\u5B9A\u4E49";
|
391
|
+
}
|
392
|
+
}()), item.key && item.condition && item.condition !== unref(ConditionEnums).NULL ? (openBlock(), createBlock(ValueCfg, {
|
393
|
+
key: 1,
|
394
|
+
modelValue: item.value,
|
395
|
+
"onUpdate:modelValue": ($event) => item.value = $event,
|
396
|
+
presetVal: item.presetVal,
|
397
|
+
"onUpdate:presetVal": ($event) => item.presetVal = $event,
|
398
|
+
isAccurate: item.isAccurateSearch,
|
399
|
+
"onUpdate:isAccurate": ($event) => item.isAccurateSearch = $event,
|
400
|
+
"param-cfg": unref(getParamCfg)(item.key)
|
401
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "presetVal", "onUpdate:presetVal", "isAccurate", "onUpdate:isAccurate", "param-cfg"])) : createCommentVNode("v-if", true), createVNode(unref(NTooltip), {
|
402
|
+
title: function() {
|
403
|
+
var _a, _b, _c;
|
404
|
+
try {
|
405
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.215")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.215")) || "\u5220\u9664";
|
406
|
+
} catch (e) {
|
407
|
+
return "\u5220\u9664";
|
408
|
+
}
|
409
|
+
}(),
|
410
|
+
trigger: "hover"
|
411
|
+
}, {
|
412
|
+
trigger: withCtx(() => [createElementVNode("i", {
|
413
|
+
onClick: ($event) => unref(delFilterCondition)(index),
|
414
|
+
class: "iconfont-table-filter delete-item-icon icon-table-filter-menzhenyishengzhananniuqingchu"
|
415
|
+
}, null, 8, _hoisted_15)]),
|
416
|
+
default: withCtx(() => [createTextVNode(function() {
|
417
|
+
var _a, _b, _c;
|
418
|
+
try {
|
419
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.215")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.215")) || "\u5220\u9664";
|
420
|
+
} catch (e) {
|
421
|
+
return "\u5220\u9664";
|
422
|
+
}
|
423
|
+
}())]),
|
424
|
+
_: 2
|
425
|
+
}, 1024)]);
|
426
|
+
}), 128))])])]),
|
362
427
|
_: 1
|
363
428
|
}, 8, ["show"])]);
|
364
429
|
};
|
package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js
CHANGED
@@ -7,7 +7,6 @@ import { WidgetOptionEnums } from '../../../types/enums.js';
|
|
7
7
|
import { dateDisabledCollect, setDateDisabled, setTimeDisabled } from '../helpers/dateDisabled.js';
|
8
8
|
import DateQuickBtn from './DateQuickBtn/index.vue.js';
|
9
9
|
|
10
|
-
var _a;
|
11
10
|
const _hoisted_1 = {
|
12
11
|
class: "render-widget-date-range"
|
13
12
|
};
|
@@ -31,7 +30,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
31
30
|
},
|
32
31
|
placeholder: {
|
33
32
|
type: String,
|
34
|
-
default: (
|
33
|
+
default: function() {
|
34
|
+
var _a, _b, _c;
|
35
|
+
try {
|
36
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.383")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.383")) || "\u8BF7\u8F93\u5165";
|
37
|
+
} catch (e) {
|
38
|
+
return "\u8BF7\u8F93\u5165";
|
39
|
+
}
|
40
|
+
}()
|
35
41
|
},
|
36
42
|
value: {
|
37
43
|
type: String,
|
@@ -62,22 +68,35 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
62
68
|
return formateStr;
|
63
69
|
});
|
64
70
|
const showTabStr = computed(() => {
|
65
|
-
var _a2, _b;
|
66
71
|
let formateStr = "";
|
67
72
|
switch (props.type) {
|
68
73
|
case "date":
|
69
|
-
formateStr = (
|
74
|
+
formateStr = function() {
|
75
|
+
var _a, _b, _c;
|
76
|
+
try {
|
77
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.384")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.384")) || "\u9009\u62E9\u65E5\u671F";
|
78
|
+
} catch (e) {
|
79
|
+
return "\u9009\u62E9\u65E5\u671F";
|
80
|
+
}
|
81
|
+
}();
|
70
82
|
break;
|
71
83
|
case "datetime":
|
72
|
-
formateStr = (
|
84
|
+
formateStr = function() {
|
85
|
+
var _a, _b, _c;
|
86
|
+
try {
|
87
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.385")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.385")) || "\u9009\u62E9\u65F6\u95F4";
|
88
|
+
} catch (e) {
|
89
|
+
return "\u9009\u62E9\u65F6\u95F4";
|
90
|
+
}
|
91
|
+
}();
|
73
92
|
break;
|
74
93
|
}
|
75
94
|
return formateStr;
|
76
95
|
});
|
77
96
|
const radioValue = computed(() => props.unit);
|
78
97
|
const optionSetting = computed(() => {
|
79
|
-
var
|
80
|
-
return (
|
98
|
+
var _a;
|
99
|
+
return (_a = props.componentCfg) == null ? void 0 : _a.widgetCfg.optionSetting;
|
81
100
|
});
|
82
101
|
const onlyRadio = computed(() => optionSetting.value !== WidgetOptionEnums.SELECT_TIME);
|
83
102
|
const defaultTime = computed(() => dateDisabledCollect.curTime);
|
@@ -7,7 +7,6 @@ import { DateExtraOptions, DateExtraMap } from '../helpers/dateExtraMap.js';
|
|
7
7
|
import { setDateDisabled, setTimeDisabled } from '../helpers/dateDisabled.js';
|
8
8
|
import { presetValToTimestamp } from '../helpers/presetValToTimestamp.js';
|
9
9
|
|
10
|
-
var _a;
|
11
10
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
12
11
|
__name: "DateOut",
|
13
12
|
props: {
|
@@ -28,7 +27,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
27
|
},
|
29
28
|
placeholder: {
|
30
29
|
type: String,
|
31
|
-
default: (
|
30
|
+
default: function() {
|
31
|
+
var _a, _b, _c;
|
32
|
+
try {
|
33
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.383")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.383")) || "\u8BF7\u8F93\u5165";
|
34
|
+
} catch (e) {
|
35
|
+
return "\u8BF7\u8F93\u5165";
|
36
|
+
}
|
37
|
+
}()
|
32
38
|
},
|
33
39
|
value: {
|
34
40
|
type: String,
|
@@ -55,8 +61,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
55
61
|
return formateStr;
|
56
62
|
});
|
57
63
|
const optionSetting = computed(() => {
|
58
|
-
var
|
59
|
-
return (
|
64
|
+
var _a;
|
65
|
+
return (_a = props.componentCfg) == null ? void 0 : _a.widgetCfg.optionSetting;
|
60
66
|
});
|
61
67
|
watch(() => props.value, (val) => {
|
62
68
|
if (val && isString(val)) {
|
@@ -79,10 +85,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
79
85
|
return setTimeDisabled(ts, optionSetting.value);
|
80
86
|
}
|
81
87
|
function init() {
|
82
|
-
var
|
88
|
+
var _a, _b;
|
83
89
|
const {
|
84
90
|
originType
|
85
|
-
} = (
|
91
|
+
} = (_a = props.componentCfg) == null ? void 0 : _a.widgetCfg;
|
86
92
|
const type = `${originType}_${optionSetting.value || WidgetOptionEnums.ALL}`;
|
87
93
|
const shortOptions = (_b = DateExtraOptions[DateExtraMap[type]]) != null ? _b : [];
|
88
94
|
let optionsObj = {};
|
package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js
CHANGED
@@ -7,7 +7,6 @@ import { WidgetOptionEnums } from '../../../types/enums.js';
|
|
7
7
|
import { dateDisabledCollect, isStartDateRangeDisabled, isTimeStartRangeDisabled, isEndDateRangeDisabled, isTimeEndRangeDisabled } from '../helpers/dateDisabled.js';
|
8
8
|
import DateQuickBtn from './DateQuickBtn/index.vue.js';
|
9
9
|
|
10
|
-
var _a, _b;
|
11
10
|
const _hoisted_1 = {
|
12
11
|
class: "render-widget-date-range"
|
13
12
|
};
|
@@ -38,11 +37,25 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
38
37
|
},
|
39
38
|
startPlaceholder: {
|
40
39
|
type: String,
|
41
|
-
default: (
|
40
|
+
default: function() {
|
41
|
+
var _a, _b, _c;
|
42
|
+
try {
|
43
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.386")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.386")) || "\u8D77\u59CB";
|
44
|
+
} catch (e) {
|
45
|
+
return "\u8D77\u59CB";
|
46
|
+
}
|
47
|
+
}()
|
42
48
|
},
|
43
49
|
endPlaceholder: {
|
44
50
|
type: String,
|
45
|
-
default: (
|
51
|
+
default: function() {
|
52
|
+
var _a, _b, _c;
|
53
|
+
try {
|
54
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.387")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.387")) || "\u622A\u6B62";
|
55
|
+
} catch (e) {
|
56
|
+
return "\u622A\u6B62";
|
57
|
+
}
|
58
|
+
}()
|
46
59
|
},
|
47
60
|
value: {
|
48
61
|
type: String,
|
@@ -63,8 +76,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
63
76
|
const endDate = ref();
|
64
77
|
const radioValue = computed(() => props.unit);
|
65
78
|
const optionSetting = computed(() => {
|
66
|
-
var
|
67
|
-
return (
|
79
|
+
var _a;
|
80
|
+
return (_a = props.componentCfg) == null ? void 0 : _a.widgetCfg.optionSetting;
|
68
81
|
});
|
69
82
|
const onlyRadio = computed(() => optionSetting.value !== WidgetOptionEnums.SELECT_TIME);
|
70
83
|
const isPastTime = computed(() => optionSetting.value === WidgetOptionEnums.PAST_TIME);
|
@@ -82,14 +95,27 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
82
95
|
return formateStr;
|
83
96
|
});
|
84
97
|
const showTabStr = computed(() => {
|
85
|
-
var _a2, _b2;
|
86
98
|
let formateStr = "";
|
87
99
|
switch (props.type) {
|
88
100
|
case "date":
|
89
|
-
formateStr = (
|
101
|
+
formateStr = function() {
|
102
|
+
var _a, _b, _c;
|
103
|
+
try {
|
104
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.384")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.384")) || "\u9009\u62E9\u65E5\u671F";
|
105
|
+
} catch (e) {
|
106
|
+
return "\u9009\u62E9\u65E5\u671F";
|
107
|
+
}
|
108
|
+
}();
|
90
109
|
break;
|
91
110
|
case "datetime":
|
92
|
-
formateStr = (
|
111
|
+
formateStr = function() {
|
112
|
+
var _a, _b, _c;
|
113
|
+
try {
|
114
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.385")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.385")) || "\u9009\u62E9\u65F6\u95F4";
|
115
|
+
} catch (e) {
|
116
|
+
return "\u9009\u62E9\u65F6\u95F4";
|
117
|
+
}
|
118
|
+
}();
|
93
119
|
break;
|
94
120
|
}
|
95
121
|
return formateStr;
|