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
@@ -73,12 +73,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
73
73
|
expose,
|
74
74
|
emit
|
75
75
|
}) {
|
76
|
-
var _a;
|
77
76
|
const props = __props;
|
78
77
|
const rules = {
|
79
78
|
classname: {
|
80
79
|
required: true,
|
81
|
-
message: (
|
80
|
+
message: function() {
|
81
|
+
var _a, _b, _c;
|
82
|
+
try {
|
83
|
+
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";
|
84
|
+
} catch (e) {
|
85
|
+
return "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0";
|
86
|
+
}
|
87
|
+
}(),
|
82
88
|
trigger: ["input", "blur"]
|
83
89
|
}
|
84
90
|
};
|
@@ -144,14 +150,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
144
150
|
return getConObj(quickSearch.value) || [];
|
145
151
|
}
|
146
152
|
function openSaveToCalss() {
|
147
|
-
var _a2;
|
148
153
|
let conObj = getConObjParams();
|
149
154
|
if (!conObj)
|
150
155
|
return;
|
151
156
|
if (conObj.length > 0) {
|
152
157
|
showInner.value = true;
|
153
158
|
} else {
|
154
|
-
$message.warning((
|
159
|
+
$message.warning(function() {
|
160
|
+
var _a, _b, _c;
|
161
|
+
try {
|
162
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.409")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.409")) || "\u8BF7\u8BBE\u7F6E\u641C\u7D22\u6761\u4EF6";
|
163
|
+
} catch (e) {
|
164
|
+
return "\u8BF7\u8BBE\u7F6E\u641C\u7D22\u6761\u4EF6";
|
165
|
+
}
|
166
|
+
}());
|
155
167
|
}
|
156
168
|
}
|
157
169
|
function getConObj(arr) {
|
@@ -173,16 +185,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
173
185
|
return res;
|
174
186
|
}
|
175
187
|
function saveToCalss() {
|
176
|
-
var
|
177
|
-
(
|
178
|
-
var
|
188
|
+
var _a;
|
189
|
+
(_a = formRef.value) == null ? void 0 : _a.validate((err) => {
|
190
|
+
var _a2;
|
179
191
|
if (err)
|
180
192
|
return;
|
181
193
|
let conObj = getConObjParams();
|
182
194
|
if (!conObj.length) {
|
183
195
|
conObj = [];
|
184
196
|
}
|
185
|
-
let displayCategory = (
|
197
|
+
let displayCategory = (_a2 = parentNames.value.filter((item) => item.selected)[0]) == null ? void 0 : _a2.value;
|
186
198
|
let params = {
|
187
199
|
tableId: props.tableId || "",
|
188
200
|
setting: JSON.stringify({
|
@@ -266,13 +278,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
266
278
|
parentNames.value.splice(index, 1);
|
267
279
|
}
|
268
280
|
async function saveTableCondiTion(params) {
|
269
|
-
var
|
281
|
+
var _a;
|
270
282
|
try {
|
271
283
|
let res = await handleGetConfigApi(params, "requestSaveTableCondiTion", {}, props.filterApiConfig);
|
272
284
|
if (!res)
|
273
285
|
return;
|
274
286
|
showInner.value = false;
|
275
|
-
(
|
287
|
+
(_a = formRef.value) == null ? void 0 : _a.restoreValidation();
|
276
288
|
formValue.value.classname = "";
|
277
289
|
parentNames.value = [];
|
278
290
|
clearData();
|
@@ -298,10 +310,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
298
310
|
}
|
299
311
|
function setDefaultCon(widgetArr) {
|
300
312
|
quickSearch.value.forEach((item) => {
|
301
|
-
var
|
313
|
+
var _a, _b;
|
302
314
|
if (isRender(item)) {
|
303
315
|
const curItem = widgetArr.find((widget) => widget.field_key === item.columnName);
|
304
|
-
if (curItem && ((
|
316
|
+
if (curItem && ((_a = curItem.value) == null ? void 0 : _a.length) > 0) {
|
305
317
|
item.value = getCacheDef(item, curItem.value);
|
306
318
|
item.unit = (_b = curItem.unit) != null ? _b : "";
|
307
319
|
}
|
@@ -317,10 +329,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
317
329
|
const keys = params ? Object.keys(params) : [];
|
318
330
|
if (keys.length > 0) {
|
319
331
|
quickSearch.value.forEach((v) => {
|
320
|
-
var
|
332
|
+
var _a, _b;
|
321
333
|
if (isRender(v) && keys.includes(v.columnName)) {
|
322
334
|
const result = params[v.columnName];
|
323
|
-
v.value = Array.isArray(result) && ((
|
335
|
+
v.value = Array.isArray(result) && ((_a = v.widgetCfg) == null ? void 0 : _a.multiple) === false && ((_b = v == null ? void 0 : v.widgetCfg) == null ? void 0 : _b.widgetType) != WidgetTypeEnums.SELECTDYNAMIC ? result[0] : result;
|
324
336
|
}
|
325
337
|
});
|
326
338
|
}
|
@@ -364,7 +376,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
364
376
|
onFilterChange
|
365
377
|
});
|
366
378
|
return (_ctx, _cache) => {
|
367
|
-
var _a2, _b;
|
368
379
|
return openBlock(), createElementBlock("div", null, [createElementVNode("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(quickSearch), (item) => {
|
369
380
|
return openBlock(), createElementBlock("div", {
|
370
381
|
class: normalizeClass(["quick-item", {
|
@@ -388,135 +399,169 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
388
399
|
}), 128))]), createCommentVNode(" \u4FDD\u5B58\u5230\u5206\u7C7B\u7684\u5F39\u7A97 "), createVNode(unref(NModal), {
|
389
400
|
show: unref(showInner),
|
390
401
|
maskClosable: false,
|
391
|
-
"positive-text": (
|
392
|
-
|
402
|
+
"positive-text": function() {
|
403
|
+
var _a, _b, _c;
|
404
|
+
try {
|
405
|
+
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";
|
406
|
+
} catch (e) {
|
407
|
+
return "\u786E\u8BA4";
|
408
|
+
}
|
409
|
+
}(),
|
410
|
+
"negative-text": function() {
|
411
|
+
var _a, _b, _c;
|
412
|
+
try {
|
413
|
+
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";
|
414
|
+
} catch (e) {
|
415
|
+
return "\u53D6\u6D88";
|
416
|
+
}
|
417
|
+
}(),
|
393
418
|
onPositiveClick: saveToCalss,
|
394
419
|
onNegativeClick: cancelSaveToCalss,
|
395
420
|
class: "classification-modal-block"
|
396
421
|
}, {
|
397
|
-
default: withCtx(() => {
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
"
|
422
|
+
default: withCtx(() => [createVNode(unref(NCard), {
|
423
|
+
title: function() {
|
424
|
+
var _a, _b, _c;
|
425
|
+
try {
|
426
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.407")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.407")) || "\u8BBE\u7F6E\u7B5B\u9009\u5206\u7C7B";
|
427
|
+
} catch (e) {
|
428
|
+
return "\u8BBE\u7F6E\u7B5B\u9009\u5206\u7C7B";
|
429
|
+
}
|
430
|
+
}(),
|
431
|
+
style: {
|
432
|
+
"width": "520px"
|
433
|
+
},
|
434
|
+
bordered: false,
|
435
|
+
size: "huge",
|
436
|
+
role: "dialog",
|
437
|
+
"aria-modal": "true"
|
438
|
+
}, {
|
439
|
+
"header-extra": withCtx(() => [createElementVNode("div", _hoisted_5, [createVNode(unref(NIcon), {
|
440
|
+
component: unref(CloseOutline),
|
441
|
+
size: "24",
|
442
|
+
onClick: cancelSaveToCalss
|
443
|
+
}, null, 8, ["component"])])]),
|
444
|
+
footer: withCtx(() => [createElementVNode("div", _hoisted_6, [createVNode(unref(NButton), {
|
445
|
+
onClick: cancelSaveToCalss
|
408
446
|
}, {
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
},
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
}
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => formValue.value.classname = $event),
|
450
|
-
placeholder: ((_a5 = window.getLanguageByCode) == null ? void 0 : _a5.call(window, "10010.1.360")) || "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",
|
451
|
-
clearable: ""
|
452
|
-
}, null, 8, ["value"])];
|
453
|
-
}),
|
454
|
-
_: 1
|
455
|
-
})];
|
456
|
-
}),
|
457
|
-
_: 1
|
458
|
-
}, 8, ["model"]), createElementVNode("div", _hoisted_8, [_hoisted_9, (openBlock(true), createElementBlock(Fragment, null, renderList(unref(parentNames), (item, index) => {
|
459
|
-
return openBlock(), createElementBlock("div", {
|
460
|
-
class: "parent-name",
|
461
|
-
key: index,
|
462
|
-
onDblclick: ($event) => editParentName(item),
|
463
|
-
onClick: ($event) => handleParentNameSelect(item, index)
|
464
|
-
}, [item.disabled ? (openBlock(), createElementBlock("div", {
|
465
|
-
key: 0,
|
466
|
-
class: normalizeClass(["edit-tag", {
|
467
|
-
"edit-tag-select": item.selected && item.disabled
|
468
|
-
}])
|
469
|
-
}, [createElementVNode("div", _hoisted_11, toDisplayString(item.value), 1), createVNode(unref(NIcon), {
|
470
|
-
component: unref(CloseOutline),
|
471
|
-
class: "anticon-close",
|
472
|
-
size: "20",
|
473
|
-
onClick: ($event) => handleParentNamesRemove(index)
|
474
|
-
}, null, 8, ["component", "onClick"])], 2)) : (openBlock(), createBlock(unref(NInput), {
|
475
|
-
key: 1,
|
476
|
-
ref_for: true,
|
477
|
-
ref_key: "parentInputRef",
|
478
|
-
ref: parentInputRef,
|
479
|
-
class: "parent-input",
|
480
|
-
style: {
|
481
|
-
"width": "100px"
|
482
|
-
},
|
483
|
-
value: item.value,
|
484
|
-
"onUpdate:value": ($event) => item.value = $event,
|
485
|
-
disabled: item.disabled,
|
486
|
-
onBlur: () => item.disabled = true,
|
487
|
-
maxlength: 20
|
488
|
-
}, null, 8, ["value", "onUpdate:value", "disabled", "onBlur"]))], 40, _hoisted_10);
|
489
|
-
}), 128)), !unref(parentNamesHasAdd) ? (openBlock(), createElementBlock(Fragment, {
|
490
|
-
key: 0
|
491
|
-
}, [withDirectives(createVNode(unref(NButton), {
|
492
|
-
dashed: "",
|
493
|
-
icon: "plus",
|
494
|
-
class: "ant-btn",
|
495
|
-
onClick: handleParentNamesAdd
|
447
|
+
default: withCtx(() => [createTextVNode(function() {
|
448
|
+
var _a, _b, _c;
|
449
|
+
try {
|
450
|
+
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";
|
451
|
+
} catch (e) {
|
452
|
+
return "\u53D6\u6D88";
|
453
|
+
}
|
454
|
+
}())]),
|
455
|
+
_: 1
|
456
|
+
}), createVNode(unref(NButton), {
|
457
|
+
type: "info",
|
458
|
+
onClick: saveToCalss
|
459
|
+
}, {
|
460
|
+
default: withCtx(() => [createTextVNode(function() {
|
461
|
+
var _a, _b, _c;
|
462
|
+
try {
|
463
|
+
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";
|
464
|
+
} catch (e) {
|
465
|
+
return "\u786E\u8BA4";
|
466
|
+
}
|
467
|
+
}())]),
|
468
|
+
_: 1
|
469
|
+
})])]),
|
470
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_7, [createVNode(unref(NForm), {
|
471
|
+
ref_key: "formRef",
|
472
|
+
ref: formRef,
|
473
|
+
"label-placement": "left",
|
474
|
+
rules,
|
475
|
+
model: formValue.value
|
476
|
+
}, {
|
477
|
+
default: withCtx(() => [createVNode(unref(NFormItem), {
|
478
|
+
label: function() {
|
479
|
+
var _a, _b, _c;
|
480
|
+
try {
|
481
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.408")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.408")) || "\u7B5B\u9009\u96C6\u540D\u79F0";
|
482
|
+
} catch (e) {
|
483
|
+
return "\u7B5B\u9009\u96C6\u540D\u79F0";
|
484
|
+
}
|
485
|
+
}(),
|
486
|
+
path: "classname"
|
496
487
|
}, {
|
497
|
-
default: withCtx(() => [createVNode(unref(
|
498
|
-
|
499
|
-
|
500
|
-
|
488
|
+
default: withCtx(() => [createVNode(unref(NInput), {
|
489
|
+
value: formValue.value.classname,
|
490
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => formValue.value.classname = $event),
|
491
|
+
placeholder: function() {
|
492
|
+
var _a, _b, _c;
|
493
|
+
try {
|
494
|
+
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";
|
495
|
+
} catch (e) {
|
496
|
+
return "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0";
|
497
|
+
}
|
498
|
+
}(),
|
499
|
+
clearable: ""
|
500
|
+
}, null, 8, ["value"])]),
|
501
501
|
_: 1
|
502
|
-
}
|
503
|
-
|
504
|
-
|
502
|
+
})]),
|
503
|
+
_: 1
|
504
|
+
}, 8, ["model"]), createElementVNode("div", _hoisted_8, [_hoisted_9, (openBlock(true), createElementBlock(Fragment, null, renderList(unref(parentNames), (item, index) => {
|
505
|
+
return openBlock(), createElementBlock("div", {
|
506
|
+
class: "parent-name",
|
507
|
+
key: index,
|
508
|
+
onDblclick: ($event) => editParentName(item),
|
509
|
+
onClick: ($event) => handleParentNameSelect(item, index)
|
510
|
+
}, [item.disabled ? (openBlock(), createElementBlock("div", {
|
511
|
+
key: 0,
|
512
|
+
class: normalizeClass(["edit-tag", {
|
513
|
+
"edit-tag-select": item.selected && item.disabled
|
514
|
+
}])
|
515
|
+
}, [createElementVNode("div", _hoisted_11, toDisplayString(item.value), 1), createVNode(unref(NIcon), {
|
516
|
+
component: unref(CloseOutline),
|
517
|
+
class: "anticon-close",
|
518
|
+
size: "20",
|
519
|
+
onClick: ($event) => handleParentNamesRemove(index)
|
520
|
+
}, null, 8, ["component", "onClick"])], 2)) : (openBlock(), createBlock(unref(NInput), {
|
521
|
+
key: 1,
|
522
|
+
ref_for: true,
|
523
|
+
ref_key: "parentInputRef",
|
524
|
+
ref: parentInputRef,
|
505
525
|
class: "parent-input",
|
506
526
|
style: {
|
507
527
|
"width": "100px"
|
508
528
|
},
|
509
|
-
value:
|
510
|
-
"onUpdate:value":
|
511
|
-
|
512
|
-
|
513
|
-
},
|
514
|
-
onBlur: hanldeBlur,
|
529
|
+
value: item.value,
|
530
|
+
"onUpdate:value": ($event) => item.value = $event,
|
531
|
+
disabled: item.disabled,
|
532
|
+
onBlur: () => item.disabled = true,
|
515
533
|
maxlength: 20
|
516
|
-
}, null, 8, ["value"
|
534
|
+
}, null, 8, ["value", "onUpdate:value", "disabled", "onBlur"]))], 40, _hoisted_10);
|
535
|
+
}), 128)), !unref(parentNamesHasAdd) ? (openBlock(), createElementBlock(Fragment, {
|
536
|
+
key: 0
|
537
|
+
}, [withDirectives(createVNode(unref(NButton), {
|
538
|
+
dashed: "",
|
539
|
+
icon: "plus",
|
540
|
+
class: "ant-btn",
|
541
|
+
onClick: handleParentNamesAdd
|
542
|
+
}, {
|
543
|
+
default: withCtx(() => [createVNode(unref(NIcon), {
|
544
|
+
component: unref(AddOutline),
|
545
|
+
size: "20"
|
546
|
+
}, null, 8, ["component"]), createTextVNode("\u6DFB\u52A0\u5206\u7C7B ")]),
|
517
547
|
_: 1
|
518
|
-
})]
|
519
|
-
|
548
|
+
}, 512), [[vShow, !unref(showAdd)]]), withDirectives(createVNode(unref(NInput), {
|
549
|
+
ref_key: "parentInputAddRef",
|
550
|
+
ref: parentInputAddRef,
|
551
|
+
class: "parent-input",
|
552
|
+
style: {
|
553
|
+
"width": "100px"
|
554
|
+
},
|
555
|
+
value: unref(addVal),
|
556
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(addVal) ? addVal.value = $event : addVal = $event),
|
557
|
+
valueModifiers: {
|
558
|
+
trim: true
|
559
|
+
},
|
560
|
+
onBlur: hanldeBlur,
|
561
|
+
maxlength: 20
|
562
|
+
}, null, 8, ["value"]), [[vShow, unref(showAdd)]])], 64)) : createCommentVNode("v-if", true)])])]),
|
563
|
+
_: 1
|
564
|
+
})]),
|
520
565
|
_: 1
|
521
566
|
}, 8, ["show"])]);
|
522
567
|
};
|
@@ -5,7 +5,6 @@ import { useDebounceFn, onClickOutside } from '@vueuse/core';
|
|
5
5
|
import { NPopover, NInput, NSpin } from 'naive-ui';
|
6
6
|
import { InjectionRecommendSearchRootSlots, InjectionRecommendSearchRef } from '../constant/index.js';
|
7
7
|
|
8
|
-
var _a;
|
9
8
|
var BaseSearch = /* @__PURE__ */ defineComponent({
|
10
9
|
props: {
|
11
10
|
displayValue: {
|
@@ -22,7 +21,14 @@ var BaseSearch = /* @__PURE__ */ defineComponent({
|
|
22
21
|
},
|
23
22
|
placeholder: {
|
24
23
|
type: String,
|
25
|
-
default: (
|
24
|
+
default: function() {
|
25
|
+
var _a, _b, _c;
|
26
|
+
try {
|
27
|
+
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";
|
28
|
+
} catch (e) {
|
29
|
+
return "\u8BF7\u8F93\u5165";
|
30
|
+
}
|
31
|
+
}()
|
26
32
|
},
|
27
33
|
clearable: {
|
28
34
|
type: Boolean,
|
@@ -76,8 +82,8 @@ var BaseSearch = /* @__PURE__ */ defineComponent({
|
|
76
82
|
}
|
77
83
|
});
|
78
84
|
function openMenuAtInput(evt) {
|
79
|
-
var
|
80
|
-
if (((
|
85
|
+
var _a;
|
86
|
+
if (((_a = evt.target) == null ? void 0 : _a.tagName) !== "INPUT")
|
81
87
|
return;
|
82
88
|
openMenu();
|
83
89
|
}
|
@@ -91,23 +97,23 @@ var BaseSearch = /* @__PURE__ */ defineComponent({
|
|
91
97
|
}
|
92
98
|
}
|
93
99
|
function closeMenu() {
|
94
|
-
var
|
100
|
+
var _a;
|
95
101
|
show.value = false;
|
96
|
-
(
|
102
|
+
(_a = inputRef.value) == null ? void 0 : _a.blur();
|
97
103
|
emit("closeMenu");
|
98
104
|
}
|
99
105
|
function onClear() {
|
100
106
|
emit("clear");
|
101
107
|
}
|
102
108
|
onClickOutside(inputRef, (evt) => {
|
103
|
-
var
|
109
|
+
var _a;
|
104
110
|
if (!show.value)
|
105
111
|
return;
|
106
112
|
const _evt = evt;
|
107
113
|
if (!_evt.target)
|
108
114
|
return closeMenu();
|
109
115
|
if (isInPopper(_evt.target)) {
|
110
|
-
(
|
116
|
+
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
111
117
|
return;
|
112
118
|
}
|
113
119
|
closeMenu();
|
@@ -3,18 +3,31 @@ import { useVModel, useVirtualList } from '@vueuse/core';
|
|
3
3
|
import RecommendMenu from './RecommendMenu.vue.js';
|
4
4
|
import BaseSearch from './BaseSearch.js';
|
5
5
|
|
6
|
-
var _a, _b, _c;
|
7
6
|
const _hoisted_1 = {
|
8
7
|
class: "recommend-search"
|
9
8
|
};
|
10
9
|
const _hoisted_2 = /* @__PURE__ */ createElementVNode("section", {
|
11
10
|
class: "recommend-search__empty"
|
12
|
-
}, (
|
11
|
+
}, function() {
|
12
|
+
var _a, _b, _c;
|
13
|
+
try {
|
14
|
+
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";
|
15
|
+
} catch (e) {
|
16
|
+
return "\u6682\u65E0\u6570\u636E";
|
17
|
+
}
|
18
|
+
}(), -1);
|
13
19
|
const _hoisted_3 = ["onClick"];
|
14
20
|
const _hoisted_4 = ["title"];
|
15
21
|
const _hoisted_5 = /* @__PURE__ */ createElementVNode("section", {
|
16
22
|
class: "recommend-search__empty"
|
17
|
-
}, (
|
23
|
+
}, function() {
|
24
|
+
var _a, _b, _c;
|
25
|
+
try {
|
26
|
+
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";
|
27
|
+
} catch (e) {
|
28
|
+
return "\u6682\u65E0\u6570\u636E";
|
29
|
+
}
|
30
|
+
}(), -1);
|
18
31
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
19
32
|
__name: "RecommendInput",
|
20
33
|
props: {
|
@@ -27,7 +40,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
40
|
},
|
28
41
|
placeholder: {
|
29
42
|
type: String,
|
30
|
-
default: (
|
43
|
+
default: function() {
|
44
|
+
var _a, _b, _c;
|
45
|
+
try {
|
46
|
+
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";
|
47
|
+
} catch (e) {
|
48
|
+
return "\u8BF7\u8F93\u5165";
|
49
|
+
}
|
50
|
+
}()
|
31
51
|
},
|
32
52
|
clearable: {
|
33
53
|
type: Boolean,
|
@@ -53,8 +73,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
53
73
|
const props = __props;
|
54
74
|
const baseSearchRef = ref();
|
55
75
|
function setPattern(value = "") {
|
56
|
-
var
|
57
|
-
(
|
76
|
+
var _a;
|
77
|
+
(_a = baseSearchRef.value) == null ? void 0 : _a.setPattern(value);
|
58
78
|
}
|
59
79
|
const valueRef = useVModel(props, "value", emits);
|
60
80
|
watch(valueRef, setPattern);
|
@@ -84,9 +104,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
84
104
|
type,
|
85
105
|
value
|
86
106
|
}) {
|
87
|
-
var
|
107
|
+
var _a;
|
88
108
|
valueRef.value = value.itemObj;
|
89
|
-
(
|
109
|
+
(_a = baseSearchRef.value) == null ? void 0 : _a.closeMenu();
|
90
110
|
emits("choose", {
|
91
111
|
type,
|
92
112
|
value: value.itemObj
|
@@ -6,7 +6,6 @@ import { isObject } from 'lodash-es';
|
|
6
6
|
import BaseSearch from './BaseSearch.js';
|
7
7
|
import { NIcon } from 'naive-ui';
|
8
8
|
|
9
|
-
var _a, _b;
|
10
9
|
const _hoisted_1 = {
|
11
10
|
class: "recommend-search"
|
12
11
|
};
|
@@ -14,7 +13,14 @@ const _hoisted_2 = ["onClick"];
|
|
14
13
|
const _hoisted_3 = ["title"];
|
15
14
|
const _hoisted_4 = /* @__PURE__ */ createElementVNode("section", {
|
16
15
|
class: "recommend-search__empty"
|
17
|
-
}, (
|
16
|
+
}, function() {
|
17
|
+
var _a, _b, _c;
|
18
|
+
try {
|
19
|
+
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";
|
20
|
+
} catch (e) {
|
21
|
+
return "\u6682\u65E0\u6570\u636E";
|
22
|
+
}
|
23
|
+
}(), -1);
|
18
24
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
19
25
|
__name: "RecommendSelect",
|
20
26
|
props: {
|
@@ -31,7 +37,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
31
37
|
},
|
32
38
|
placeholder: {
|
33
39
|
type: String,
|
34
|
-
default: (
|
40
|
+
default: function() {
|
41
|
+
var _a, _b, _c;
|
42
|
+
try {
|
43
|
+
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";
|
44
|
+
} catch (e) {
|
45
|
+
return "\u8BF7\u9009\u62E9";
|
46
|
+
}
|
47
|
+
}()
|
35
48
|
},
|
36
49
|
editPlaceholder: {
|
37
50
|
type: String,
|
@@ -111,11 +124,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
111
124
|
});
|
112
125
|
}
|
113
126
|
function onChooseOption(option) {
|
114
|
-
var
|
127
|
+
var _a;
|
115
128
|
if (!isObject(option))
|
116
129
|
return;
|
117
130
|
valueRef.value = option[props.valueKey];
|
118
|
-
(
|
131
|
+
(_a = baseSearchRef.value) == null ? void 0 : _a.closeMenu();
|
119
132
|
currentOption.value = option;
|
120
133
|
emitChoose(option[props.valueKey]);
|
121
134
|
}
|
@@ -193,7 +193,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
193
193
|
}]),
|
194
194
|
ref_key: "scaleViewDom",
|
195
195
|
ref: scaleViewDom
|
196
|
-
}, [createCommentVNode(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="\u52A0\u8F7D\u4E2D"></n-spin>\n </template> '), !state.spinning && !state.hasFrontAddress ? (openBlock(), createElementBlock(Fragment, {
|
196
|
+
}, [createCommentVNode(' <template v-if="state.spinning">\r\n <n-spin :show="state.spinning" description="\u52A0\u8F7D\u4E2D"></n-spin>\r\n </template> '), !state.spinning && !state.hasFrontAddress ? (openBlock(), createElementBlock(Fragment, {
|
197
197
|
key: 0
|
198
198
|
}, [unref(noDataState).noData ? (openBlock(), createBlock(NoData, {
|
199
199
|
key: 0,
|
@@ -273,10 +273,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
273
273
|
key: 0,
|
274
274
|
onClick: cancel
|
275
275
|
}, {
|
276
|
-
default: withCtx(() => {
|
277
|
-
var _a;
|
278
|
-
|
279
|
-
|
276
|
+
default: withCtx(() => [createTextVNode(function() {
|
277
|
+
var _a, _b, _c;
|
278
|
+
try {
|
279
|
+
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";
|
280
|
+
} catch (e) {
|
281
|
+
return "\u53D6\u6D88";
|
282
|
+
}
|
283
|
+
}())]),
|
280
284
|
_: 1
|
281
285
|
})) : createCommentVNode("v-if", true), unref(isSaveBtn) ? (openBlock(), createBlock(unref(NButton), {
|
282
286
|
key: 1,
|
@@ -284,10 +288,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
284
288
|
disabled: state.banSubmit,
|
285
289
|
type: "primary"
|
286
290
|
}, {
|
287
|
-
default: withCtx(() => {
|
288
|
-
var _a;
|
289
|
-
|
290
|
-
|
291
|
+
default: withCtx(() => [createTextVNode(function() {
|
292
|
+
var _a, _b, _c;
|
293
|
+
try {
|
294
|
+
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";
|
295
|
+
} catch (e) {
|
296
|
+
return "\u4FDD\u5B58";
|
297
|
+
}
|
298
|
+
}())]),
|
291
299
|
_: 1
|
292
300
|
}, 8, ["onClick", "disabled"])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "extendBtn")])) : createCommentVNode("v-if", true)], 64))], 64))], 64)) : createCommentVNode("v-if", true)], 2);
|
293
301
|
};
|