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
@@ -50,7 +50,6 @@ const _hoisted_11 = ["innerHTML"];
|
|
50
50
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
51
51
|
__name: "SiderList",
|
52
52
|
setup(__props) {
|
53
|
-
var _a, _b, _c;
|
54
53
|
const filterKey = {
|
55
54
|
all: "all",
|
56
55
|
unread: "unread",
|
@@ -60,13 +59,34 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
60
59
|
const flexWidth = ref(300);
|
61
60
|
const listBoxRef = ref();
|
62
61
|
const filterListByTag = ref([{
|
63
|
-
label: (
|
62
|
+
label: function() {
|
63
|
+
var _a, _b, _c;
|
64
|
+
try {
|
65
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.123")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.123")) || "\u5168\u90E8";
|
66
|
+
} catch (e) {
|
67
|
+
return "\u5168\u90E8";
|
68
|
+
}
|
69
|
+
}(),
|
64
70
|
key: filterKey.all
|
65
71
|
}, {
|
66
|
-
label: (
|
72
|
+
label: function() {
|
73
|
+
var _a, _b, _c;
|
74
|
+
try {
|
75
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.124")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.124")) || "\u672A\u8BFB";
|
76
|
+
} catch (e) {
|
77
|
+
return "\u672A\u8BFB";
|
78
|
+
}
|
79
|
+
}(),
|
67
80
|
key: filterKey.unread
|
68
81
|
}, {
|
69
|
-
label: (
|
82
|
+
label: function() {
|
83
|
+
var _a, _b, _c;
|
84
|
+
try {
|
85
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.77")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.77")) || "\u7ED3\u675F";
|
86
|
+
} catch (e) {
|
87
|
+
return "\u7ED3\u675F";
|
88
|
+
}
|
89
|
+
}(),
|
70
90
|
key: filterKey.ended
|
71
91
|
}]);
|
72
92
|
const contextmenuRef = ref();
|
@@ -108,22 +128,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
108
128
|
currentFilterKey.value = key;
|
109
129
|
if (key === filterKey.unread) {
|
110
130
|
unreadSessionKeys = (sessionList.value.filter((session) => {
|
111
|
-
var
|
112
|
-
return ((
|
131
|
+
var _a;
|
132
|
+
return ((_a = session.unreadNum) != null ? _a : 0) > 0;
|
113
133
|
}) || []).map((session) => session.sessionKey);
|
114
134
|
}
|
115
135
|
}
|
116
136
|
function showSession(item, currentKey = unref(currentFilterKey)) {
|
117
|
-
var
|
137
|
+
var _a;
|
118
138
|
if (currentKey === filterKey.all)
|
119
139
|
return true;
|
120
140
|
if (currentKey === filterKey.unread)
|
121
|
-
return unreadSessionKeys.includes(item.sessionKey) || ((
|
141
|
+
return unreadSessionKeys.includes(item.sessionKey) || ((_a = item.unreadNum) != null ? _a : 0) > 0;
|
122
142
|
if (currentKey === filterKey.ended)
|
123
143
|
return item.status === STATUS.ENDED;
|
124
144
|
}
|
125
145
|
async function handleContextmenu(event, id) {
|
126
|
-
var
|
146
|
+
var _a, _b, _c, _d, _e;
|
127
147
|
sessionId.value = id;
|
128
148
|
showMenu.value = true;
|
129
149
|
await nextTick();
|
@@ -136,11 +156,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
136
156
|
height = 0,
|
137
157
|
left = 0,
|
138
158
|
top = 0
|
139
|
-
} = ((
|
159
|
+
} = ((_a = listBoxRef.value) == null ? void 0 : _a.getBoundingClientRect()) || {};
|
140
160
|
const {
|
141
161
|
width: contextmenuWidth = 100,
|
142
162
|
height: contextmenuHeight = 80
|
143
|
-
} = ((
|
163
|
+
} = ((_c = (_b = contextmenuRef.value) == null ? void 0 : _b.$el) == null ? void 0 : _c.getBoundingClientRect()) || {};
|
144
164
|
const scrollTop = (_e = (_d = listBoxRef.value) == null ? void 0 : _d.scrollTop) != null ? _e : 0;
|
145
165
|
const offset = 5;
|
146
166
|
const style = {};
|
@@ -203,8 +223,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
203
223
|
}
|
204
224
|
}
|
205
225
|
function handleClickoutside(e) {
|
206
|
-
var
|
207
|
-
const panelInstEl = (
|
226
|
+
var _a, _b, _c, _d, _e;
|
227
|
+
const panelInstEl = (_c = (_b = (_a = datePickerRef.value) == null ? void 0 : _a.$datePicker) == null ? void 0 : _b.panelInstRef) == null ? void 0 : _c.$el;
|
208
228
|
const show = !!(e.target && (panelInstEl && panelInstEl.contains(e.target) || ((_d = inputRef.value) == null ? void 0 : _d.$el) && ((_e = inputRef.value) == null ? void 0 : _e.$el.contains(e.target))));
|
209
229
|
handleUpdateShow(show);
|
210
230
|
}
|
@@ -258,29 +278,33 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
258
278
|
}, null, 8, ["component"])]),
|
259
279
|
_: 1
|
260
280
|
}, 8, ["value", "onInput"])]),
|
261
|
-
default: withCtx(() => {
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
281
|
+
default: withCtx(() => [createVNode(unref(DatePicker), {
|
282
|
+
ref_key: "datePickerRef",
|
283
|
+
ref: datePickerRef,
|
284
|
+
"formatted-value": dateRange.value,
|
285
|
+
type: "daterange",
|
286
|
+
clearable: "",
|
287
|
+
"onUpdate:formattedValue": handleUpdateDate
|
288
|
+
}, null, 8, ["formatted-value"]), createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(filterList.value, (item) => {
|
289
|
+
return openBlock(), createBlock(unref(userItemRender), {
|
290
|
+
key: item.id,
|
291
|
+
item,
|
292
|
+
onItemClick: _cache[2] || (_cache[2] = () => handleUpdateShow(false))
|
293
|
+
}, null, 8, ["item"]);
|
294
|
+
}), 128)), withDirectives(createVNode(unref(DefaultPage), {
|
295
|
+
config: {
|
296
|
+
title: " ",
|
297
|
+
content: function() {
|
298
|
+
var _a, _b, _c;
|
299
|
+
try {
|
300
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.81")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.81")) || "\u627E\u4E0D\u5230\u76F8\u5173\u7684\u7ED3\u679C";
|
301
|
+
} catch (e) {
|
302
|
+
return "\u627E\u4E0D\u5230\u76F8\u5173\u7684\u7ED3\u679C";
|
303
|
+
}
|
304
|
+
}()
|
305
|
+
},
|
306
|
+
type: "5"
|
307
|
+
}, null, 512), [[vShow, filterList.value.length < 1]])])]),
|
284
308
|
_: 1
|
285
309
|
}, 8, ["show"])])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(filterListByTag.value, (filterItem) => {
|
286
310
|
return openBlock(), createBlock(unref(NTag), {
|
@@ -298,7 +322,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
298
322
|
ref_key: "listBoxRef",
|
299
323
|
ref: listBoxRef
|
300
324
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(sessionList), (item) => {
|
301
|
-
var _a2;
|
302
325
|
return openBlock(), createElementBlock(Fragment, {
|
303
326
|
key: item.id
|
304
327
|
}, [item.status !== unref(STATUS).REMOVED ? withDirectives((openBlock(), createElementBlock("div", {
|
@@ -314,7 +337,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
314
337
|
src: item.avatar
|
315
338
|
}, null, 8, ["src"]), createElementVNode("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_7, toDisplayString(item.name), 1), withDirectives(createElementVNode("label", {
|
316
339
|
class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(item.roleInfo) ? "isDoctor" : ""])
|
317
|
-
}, toDisplayString(unref(getRoleName)(item.roleInfo)), 3), [[vShow, unref(getRoleName)(item.roleInfo)]])]), createElementVNode("span", null, toDisplayString(item.lastMessage ? unref(formatTime)(item.lastMessageSendTime).siderMsgTime : ""), 1)]), createElementVNode("div", _hoisted_8, [createElementVNode("div", _hoisted_9, [item.lastMessageStatus === "WITHDRAWN" ? (openBlock(), createElementBlock("div", _hoisted_10, (
|
340
|
+
}, toDisplayString(unref(getRoleName)(item.roleInfo)), 3), [[vShow, unref(getRoleName)(item.roleInfo)]])]), createElementVNode("span", null, toDisplayString(item.lastMessage ? unref(formatTime)(item.lastMessageSendTime).siderMsgTime : ""), 1)]), createElementVNode("div", _hoisted_8, [createElementVNode("div", _hoisted_9, [item.lastMessageStatus === "WITHDRAWN" ? (openBlock(), createElementBlock("div", _hoisted_10, function() {
|
341
|
+
var _a, _b, _c;
|
342
|
+
try {
|
343
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.68")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.68")) || "\u64A4\u56DE\u4E86\u4E00\u6761\u6D88\u606F";
|
344
|
+
} catch (e) {
|
345
|
+
return "\u64A4\u56DE\u4E86\u4E00\u6761\u6D88\u606F";
|
346
|
+
}
|
347
|
+
}())) : (openBlock(), createElementBlock("div", {
|
318
348
|
key: 1,
|
319
349
|
innerHTML: item.lastMessageContent
|
320
350
|
}, null, 8, _hoisted_11))]), createVNode(unref(NBadge), {
|
@@ -17,7 +17,6 @@ import 'sockjs-client/dist/sockjs.min.js';
|
|
17
17
|
import { useVideo } from '../hooks/useVideo.js';
|
18
18
|
import TRTC from 'trtc-sdk-v5';
|
19
19
|
|
20
|
-
var _a, _b, _c, _d;
|
21
20
|
const _hoisted_1 = {
|
22
21
|
class: "video-wrapper"
|
23
22
|
};
|
@@ -36,13 +35,41 @@ const _hoisted_5 = {
|
|
36
35
|
const _hoisted_6 = {
|
37
36
|
class: "btn"
|
38
37
|
};
|
39
|
-
const _hoisted_7 = /* @__PURE__ */ createElementVNode("span", null, (
|
40
|
-
|
38
|
+
const _hoisted_7 = /* @__PURE__ */ createElementVNode("span", null, function() {
|
39
|
+
var _a, _b, _c;
|
40
|
+
try {
|
41
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.104")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.104")) || "\u9759\u97F3";
|
42
|
+
} catch (e) {
|
43
|
+
return "\u9759\u97F3";
|
44
|
+
}
|
45
|
+
}(), -1);
|
46
|
+
const _hoisted_8 = /* @__PURE__ */ createElementVNode("span", null, function() {
|
47
|
+
var _a, _b, _c;
|
48
|
+
try {
|
49
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.113")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.113")) || "\u62D2\u63A5";
|
50
|
+
} catch (e) {
|
51
|
+
return "\u62D2\u63A5";
|
52
|
+
}
|
53
|
+
}(), -1);
|
41
54
|
const _hoisted_9 = {
|
42
55
|
class: "btn"
|
43
56
|
};
|
44
|
-
const _hoisted_10 = /* @__PURE__ */ createElementVNode("span", null, (
|
45
|
-
|
57
|
+
const _hoisted_10 = /* @__PURE__ */ createElementVNode("span", null, function() {
|
58
|
+
var _a, _b, _c;
|
59
|
+
try {
|
60
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.125")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.125")) || "\u6302\u65AD";
|
61
|
+
} catch (e) {
|
62
|
+
return "\u6302\u65AD";
|
63
|
+
}
|
64
|
+
}(), -1);
|
65
|
+
const _hoisted_11 = /* @__PURE__ */ createElementVNode("span", null, function() {
|
66
|
+
var _a, _b, _c;
|
67
|
+
try {
|
68
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.114")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.114")) || "\u63A5\u542C";
|
69
|
+
} catch (e) {
|
70
|
+
return "\u63A5\u542C";
|
71
|
+
}
|
72
|
+
}(), -1);
|
46
73
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
47
74
|
__name: "Video",
|
48
75
|
setup(__props) {
|
@@ -68,7 +95,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
68
95
|
const isConnect = ref(false);
|
69
96
|
let timeout = null;
|
70
97
|
const info = computed(() => {
|
71
|
-
var
|
98
|
+
var _a, _b, _c;
|
72
99
|
if (isCall.value) {
|
73
100
|
return {
|
74
101
|
avatar: state.currentSessionItem.avatar,
|
@@ -77,9 +104,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
77
104
|
};
|
78
105
|
} else {
|
79
106
|
return {
|
80
|
-
avatar: (
|
81
|
-
name: (
|
82
|
-
userId: (
|
107
|
+
avatar: (_a = state.currentAVMsg.currentMsg) == null ? void 0 : _a.senderAvatar,
|
108
|
+
name: (_b = state.currentAVMsg.currentMsg) == null ? void 0 : _b.senderName,
|
109
|
+
userId: (_c = state.currentAVMsg.currentMsg) == null ? void 0 : _c.sender
|
83
110
|
};
|
84
111
|
}
|
85
112
|
});
|
@@ -92,8 +119,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
92
119
|
return isAudio.value ? timing.value : "";
|
93
120
|
});
|
94
121
|
const status = computed(() => {
|
95
|
-
var
|
96
|
-
return (
|
122
|
+
var _a, _b;
|
123
|
+
return (_b = (_a = state.currentAVMsg.currentMsg) == null ? void 0 : _a.content) == null ? void 0 : _b.avStatus;
|
97
124
|
});
|
98
125
|
async function handleStatus(status2 = AV_STATUS.FINISHED) {
|
99
126
|
sendMessage({
|
@@ -23,10 +23,21 @@ function useVideo() {
|
|
23
23
|
const videocamClose = ref(false);
|
24
24
|
const isAudio = computed(() => state.currentAVMsg.chatMessageType === MESSAGE_TYPE.AUDIO);
|
25
25
|
const isCall = computed(() => state.currentAVMsg.callMode === "call");
|
26
|
-
const messageTypeText = computed(() => {
|
27
|
-
var _a, _b;
|
28
|
-
|
29
|
-
|
26
|
+
const messageTypeText = computed(() => isAudio.value ? function() {
|
27
|
+
var _a, _b, _c;
|
28
|
+
try {
|
29
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.130")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.130")) || "\u8BED\u97F3";
|
30
|
+
} catch (e) {
|
31
|
+
return "\u8BED\u97F3";
|
32
|
+
}
|
33
|
+
}() : function() {
|
34
|
+
var _a, _b, _c;
|
35
|
+
try {
|
36
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.131")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.131")) || "\u89C6\u9891";
|
37
|
+
} catch (e) {
|
38
|
+
return "\u89C6\u9891";
|
39
|
+
}
|
40
|
+
}());
|
30
41
|
const trtc = TRTC.create();
|
31
42
|
function startTimer() {
|
32
43
|
resetTimer();
|
@@ -9,19 +9,24 @@ const {
|
|
9
9
|
message: $message
|
10
10
|
} = createDiscreteApi(["message"]);
|
11
11
|
function formatTime(dateStr) {
|
12
|
-
var _a;
|
13
12
|
const date = new Date(dateStr);
|
14
13
|
let siderMsgTime, msgTime;
|
15
14
|
if (isToday(date)) {
|
16
15
|
siderMsgTime = msgTime = format(date, "HH:mm");
|
17
16
|
} else {
|
18
|
-
siderMsgTime = isYesterday(date) ? (
|
17
|
+
siderMsgTime = isYesterday(date) ? function() {
|
18
|
+
var _a, _b, _c;
|
19
|
+
try {
|
20
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.132")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.132")) || "\u6628\u5929";
|
21
|
+
} catch (e) {
|
22
|
+
return "\u6628\u5929";
|
23
|
+
}
|
24
|
+
}() : format(date, "MM-dd");
|
19
25
|
const dateYear = date.getFullYear();
|
20
26
|
const currentYear = new Date().getFullYear();
|
21
27
|
msgTime = format(date, dateYear < currentYear ? "yyyy\u5E74M\u6708d\u65E5 HH:mm" : "M\u6708d\u65E5 HH:mm");
|
22
28
|
}
|
23
29
|
function formatRecordTime(time) {
|
24
|
-
var _a2, _b, _c, _d;
|
25
30
|
const currentTime = new Date(time);
|
26
31
|
const nowTimeStamp = Date.now();
|
27
32
|
const currentTimeStamp = currentTime.getTime();
|
@@ -29,13 +34,41 @@ function formatTime(dateStr) {
|
|
29
34
|
const oneMinuteAgo = 60 * 1e3;
|
30
35
|
const oneHourAgo = 60 * 60 * 1e3;
|
31
36
|
if (distance < oneMinuteAgo) {
|
32
|
-
return (
|
37
|
+
return function() {
|
38
|
+
var _a, _b, _c;
|
39
|
+
try {
|
40
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.133")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.133")) || "\u521A\u521A";
|
41
|
+
} catch (e) {
|
42
|
+
return "\u521A\u521A";
|
43
|
+
}
|
44
|
+
}();
|
33
45
|
} else if (distance < oneHourAgo) {
|
34
|
-
return Math.ceil(distance / 1e3 / 60) + (
|
46
|
+
return Math.ceil(distance / 1e3 / 60) + function() {
|
47
|
+
var _a, _b, _c;
|
48
|
+
try {
|
49
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.136")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.136")) || "\u5206\u949F\u524D";
|
50
|
+
} catch (e) {
|
51
|
+
return "\u5206\u949F\u524D";
|
52
|
+
}
|
53
|
+
}();
|
35
54
|
} else if (isToday(currentTime)) {
|
36
|
-
return (
|
55
|
+
return function() {
|
56
|
+
var _a, _b, _c;
|
57
|
+
try {
|
58
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.134")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.134")) || "\u4ECA\u5929";
|
59
|
+
} catch (e) {
|
60
|
+
return "\u4ECA\u5929";
|
61
|
+
}
|
62
|
+
}() + format(currentTime, "HH:mm");
|
37
63
|
} else if (isYesterday(currentTime)) {
|
38
|
-
return (
|
64
|
+
return function() {
|
65
|
+
var _a, _b, _c;
|
66
|
+
try {
|
67
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.132")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.132")) || "\u6628\u5929";
|
68
|
+
} catch (e) {
|
69
|
+
return "\u6628\u5929";
|
70
|
+
}
|
71
|
+
}() + format(currentTime, "HH:mm");
|
39
72
|
} else {
|
40
73
|
const dateYear = currentTime.getFullYear();
|
41
74
|
const currentYear = new Date().getFullYear();
|
@@ -90,7 +123,6 @@ function transformMessage(content) {
|
|
90
123
|
return msg;
|
91
124
|
}
|
92
125
|
function getAVTime(msg) {
|
93
|
-
var _a, _b;
|
94
126
|
if (msg && isNumber(+msg) && !isNaN(+msg)) {
|
95
127
|
const time = formatSeconds(+msg);
|
96
128
|
const timeArray = time.split(":");
|
@@ -98,9 +130,23 @@ function getAVTime(msg) {
|
|
98
130
|
if (timeArray.length === 3 && timeArray[0] === "00") {
|
99
131
|
_timeStr = `${timeArray[1]}:${timeArray[2]}`;
|
100
132
|
}
|
101
|
-
return (
|
133
|
+
return function() {
|
134
|
+
var _a, _b, _c;
|
135
|
+
try {
|
136
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.137")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.137")) || "\u901A\u8BDD\u65F6\u957F";
|
137
|
+
} catch (e) {
|
138
|
+
return "\u901A\u8BDD\u65F6\u957F";
|
139
|
+
}
|
140
|
+
}() + _timeStr;
|
102
141
|
}
|
103
|
-
return (
|
142
|
+
return function() {
|
143
|
+
var _a, _b, _c;
|
144
|
+
try {
|
145
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.138")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.138")) || "\u5DF2\u53D6\u6D88";
|
146
|
+
} catch (e) {
|
147
|
+
return "\u5DF2\u53D6\u6D88";
|
148
|
+
}
|
149
|
+
}();
|
104
150
|
}
|
105
151
|
function simplifyMessage(lastMessage) {
|
106
152
|
var _a;
|
@@ -206,7 +252,6 @@ function isDoctorRole(type) {
|
|
206
252
|
return type === ROLE_TYPE.DOCTOR;
|
207
253
|
}
|
208
254
|
function getRoleName(type) {
|
209
|
-
var _a;
|
210
255
|
let roleName = "";
|
211
256
|
switch (type) {
|
212
257
|
case ROLE_TYPE.DOCTOR: {
|
@@ -214,7 +259,14 @@ function getRoleName(type) {
|
|
214
259
|
break;
|
215
260
|
}
|
216
261
|
case ROLE_TYPE.PATIENT: {
|
217
|
-
roleName = (
|
262
|
+
roleName = function() {
|
263
|
+
var _a, _b, _c;
|
264
|
+
try {
|
265
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.200")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.200")) || "\u60A3\u8005";
|
266
|
+
} catch (e) {
|
267
|
+
return "\u60A3\u8005";
|
268
|
+
}
|
269
|
+
}();
|
218
270
|
break;
|
219
271
|
}
|
220
272
|
}
|
@@ -252,8 +304,21 @@ function getDetail(item, isShowSize) {
|
|
252
304
|
return details;
|
253
305
|
}
|
254
306
|
function showAudioAndVideoRecord(chatMessageType) {
|
255
|
-
|
256
|
-
|
307
|
+
return chatMessageType === MESSAGE_TYPE.AUDIO ? function() {
|
308
|
+
var _a, _b, _c;
|
309
|
+
try {
|
310
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.57")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.57")) || "\u8BED\u97F3\u901A\u8BDD";
|
311
|
+
} catch (e) {
|
312
|
+
return "\u8BED\u97F3\u901A\u8BDD";
|
313
|
+
}
|
314
|
+
}() : function() {
|
315
|
+
var _a, _b, _c;
|
316
|
+
try {
|
317
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.59")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.59")) || "\u89C6\u9891\u901A\u8BDD";
|
318
|
+
} catch (e) {
|
319
|
+
return "\u89C6\u9891\u901A\u8BDD";
|
320
|
+
}
|
321
|
+
}();
|
257
322
|
}
|
258
323
|
|
259
324
|
export { $message, base64ToFile, downloadFile, formatSeconds, formatTime, getAVTime, getDetail, getFileDetails, getFileSize, getFileType, getForwardTitle, getRoleName, isAudioOrVideoMessage, isDoctorRole, isGroup, listSort, showAudioAndVideoRecord, simplifyMessage, transformMessage };
|
@@ -20,13 +20,19 @@ function useColumnConfigAdaptor() {
|
|
20
20
|
const isEditValueMap = /* @__PURE__ */ new Map([["0", 0], ["1", 1]]);
|
21
21
|
const htmlTypeValueMap = new Map([...["RADIO", "RADIO_BLOCK", "CHECKBOX", "CHECKBOX_BLOCK", "SELECT", "SEARCH", "SEARCH_MORE", "SWITCH_COMPONENT"].map((type) => [type, "select"]), ...["DATE"].map((type) => [type, "date"]), ...["INPUT"].map((type) => [type, "input"]), ...["DIGITAL"].map((type) => [type, "number"])]);
|
22
22
|
const isNullHandler = (value, result, _fieldItem, _editRules) => {
|
23
|
-
var _a;
|
24
23
|
if (value === "1")
|
25
24
|
return;
|
26
25
|
if (value === "0")
|
27
26
|
_editRules[_fieldItem.val_key] = [{
|
28
27
|
required: true,
|
29
|
-
message: (
|
28
|
+
message: function() {
|
29
|
+
var _a, _b, _c;
|
30
|
+
try {
|
31
|
+
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";
|
32
|
+
} catch (e) {
|
33
|
+
return "\u5FC5\u586B";
|
34
|
+
}
|
35
|
+
}()
|
30
36
|
}];
|
31
37
|
};
|
32
38
|
const validateHandler = (value, result) => {
|
@@ -231,7 +231,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
231
231
|
}
|
232
232
|
onMounted(fetchOption);
|
233
233
|
return (_ctx, _cache) => {
|
234
|
-
var _a2, _b2;
|
235
234
|
const _component_vxe_grid = resolveComponent("vxe-grid");
|
236
235
|
return openBlock(), createElementBlock("section", _hoisted_1, [createVNode(unref(NInput), {
|
237
236
|
value: searchFilterText.value,
|
@@ -282,37 +281,63 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
282
281
|
size: "small"
|
283
282
|
}, null, 8, ["page", "page-size", "item-count"])) : createCommentVNode("v-if", true)]),
|
284
283
|
_: 1
|
285
|
-
}, 8, ["show"]), createElementVNode("footer", _hoisted_2, [createElementVNode("section", null, [createTextVNode((
|
284
|
+
}, 8, ["show"]), createElementVNode("footer", _hoisted_2, [createElementVNode("section", null, [createTextVNode(function() {
|
285
|
+
var _a2, _b2, _c;
|
286
|
+
try {
|
287
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.39")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.39")) || "\u5DF2\u9009\u62E9";
|
288
|
+
} catch (e) {
|
289
|
+
return "\u5DF2\u9009\u62E9";
|
290
|
+
}
|
291
|
+
}()), createElementVNode("span", {
|
286
292
|
style: normalizeStyle({
|
287
293
|
color: "var(--c-primary-color)"
|
288
294
|
})
|
289
|
-
}, toDisplayString(checkedCacheRef.value.length), 5), createTextVNode((
|
295
|
+
}, toDisplayString(checkedCacheRef.value.length), 5), createTextVNode(function() {
|
296
|
+
var _a2, _b2, _c;
|
297
|
+
try {
|
298
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.417")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.417")) || "\u9879";
|
299
|
+
} catch (e) {
|
300
|
+
return "\u9879";
|
301
|
+
}
|
302
|
+
}())]), createVNode(unref(NButtonGroup), {
|
290
303
|
size: "small"
|
291
304
|
}, {
|
292
305
|
default: withCtx(() => [createVNode(unref(NButton), {
|
293
306
|
onClick: reset
|
294
307
|
}, {
|
295
|
-
default: withCtx(() => {
|
296
|
-
var
|
297
|
-
|
298
|
-
|
308
|
+
default: withCtx(() => [createTextVNode(function() {
|
309
|
+
var _a2, _b2, _c;
|
310
|
+
try {
|
311
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.509")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.509")) || "\u6E05\u7A7A";
|
312
|
+
} catch (e) {
|
313
|
+
return "\u6E05\u7A7A";
|
314
|
+
}
|
315
|
+
}())]),
|
299
316
|
_: 1
|
300
317
|
}), createVNode(unref(NButton), {
|
301
318
|
onClick: close
|
302
319
|
}, {
|
303
|
-
default: withCtx(() => {
|
304
|
-
var
|
305
|
-
|
306
|
-
|
320
|
+
default: withCtx(() => [createTextVNode(function() {
|
321
|
+
var _a2, _b2, _c;
|
322
|
+
try {
|
323
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.28")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.28")) || "\u53D6\u6D88";
|
324
|
+
} catch (e) {
|
325
|
+
return "\u53D6\u6D88";
|
326
|
+
}
|
327
|
+
}())]),
|
307
328
|
_: 1
|
308
329
|
}), createVNode(unref(NButton), {
|
309
330
|
type: "primary",
|
310
331
|
onClick: confirm
|
311
332
|
}, {
|
312
|
-
default: withCtx(() => {
|
313
|
-
var
|
314
|
-
|
315
|
-
|
333
|
+
default: withCtx(() => [createTextVNode(function() {
|
334
|
+
var _a2, _b2, _c;
|
335
|
+
try {
|
336
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.27")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.27")) || "\u786E\u5B9A";
|
337
|
+
} catch (e) {
|
338
|
+
return "\u786E\u5B9A";
|
339
|
+
}
|
340
|
+
}())]),
|
316
341
|
_: 1
|
317
342
|
})]),
|
318
343
|
_: 1
|
@@ -39,7 +39,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
39
|
function confirm() {
|
40
40
|
}
|
41
41
|
return (_ctx, _cache) => {
|
42
|
-
var _a, _b;
|
43
42
|
return openBlock(), createElementBlock("section", _hoisted_1, [createVNode(unref(NInput), {
|
44
43
|
value: searchFilterText.value,
|
45
44
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchFilterText.value = $event)
|
@@ -77,37 +76,63 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
77
76
|
_: 1
|
78
77
|
}, 8, ["value"])]),
|
79
78
|
_: 1
|
80
|
-
}, 8, ["show"]), createElementVNode("footer", _hoisted_3, [createElementVNode("section", null, [createTextVNode((
|
79
|
+
}, 8, ["show"]), createElementVNode("footer", _hoisted_3, [createElementVNode("section", null, [createTextVNode(function() {
|
80
|
+
var _a, _b, _c;
|
81
|
+
try {
|
82
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.39")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.39")) || "\u5DF2\u9009\u62E9";
|
83
|
+
} catch (e) {
|
84
|
+
return "\u5DF2\u9009\u62E9";
|
85
|
+
}
|
86
|
+
}()), createElementVNode("span", {
|
81
87
|
style: normalizeStyle({
|
82
88
|
color: "var(--c-primary-color)"
|
83
89
|
})
|
84
|
-
}, toDisplayString(checkedRef.value.length), 5), createTextVNode((
|
90
|
+
}, toDisplayString(checkedRef.value.length), 5), createTextVNode(function() {
|
91
|
+
var _a, _b, _c;
|
92
|
+
try {
|
93
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.417")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.417")) || "\u9879";
|
94
|
+
} catch (e) {
|
95
|
+
return "\u9879";
|
96
|
+
}
|
97
|
+
}())]), createVNode(unref(NButtonGroup), {
|
85
98
|
size: "small"
|
86
99
|
}, {
|
87
100
|
default: withCtx(() => [createVNode(unref(NButton), {
|
88
101
|
onClick: reset
|
89
102
|
}, {
|
90
|
-
default: withCtx(() => {
|
91
|
-
var
|
92
|
-
|
93
|
-
|
103
|
+
default: withCtx(() => [createTextVNode(function() {
|
104
|
+
var _a, _b, _c;
|
105
|
+
try {
|
106
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.509")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.509")) || "\u6E05\u7A7A";
|
107
|
+
} catch (e) {
|
108
|
+
return "\u6E05\u7A7A";
|
109
|
+
}
|
110
|
+
}())]),
|
94
111
|
_: 1
|
95
112
|
}), createVNode(unref(NButton), {
|
96
113
|
onClick: close
|
97
114
|
}, {
|
98
|
-
default: withCtx(() => {
|
99
|
-
var
|
100
|
-
|
101
|
-
|
115
|
+
default: withCtx(() => [createTextVNode(function() {
|
116
|
+
var _a, _b, _c;
|
117
|
+
try {
|
118
|
+
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";
|
119
|
+
} catch (e) {
|
120
|
+
return "\u53D6\u6D88";
|
121
|
+
}
|
122
|
+
}())]),
|
102
123
|
_: 1
|
103
124
|
}), createVNode(unref(NButton), {
|
104
125
|
type: "primary",
|
105
126
|
onClick: confirm
|
106
127
|
}, {
|
107
|
-
default: withCtx(() => {
|
108
|
-
var
|
109
|
-
|
110
|
-
|
128
|
+
default: withCtx(() => [createTextVNode(function() {
|
129
|
+
var _a, _b, _c;
|
130
|
+
try {
|
131
|
+
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";
|
132
|
+
} catch (e) {
|
133
|
+
return "\u786E\u5B9A";
|
134
|
+
}
|
135
|
+
}())]),
|
111
136
|
_: 1
|
112
137
|
})]),
|
113
138
|
_: 1
|