cnhis-design-vue 3.3.2-beta.12 → 3.3.2-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/audio-sdk/src/Index.vue2.js +1 -1
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/base-search/src/index.vue2.js +15 -27
- package/es/components/big-table/src/BigTable.vue2.js +131 -189
- package/es/components/big-table/src/components/NoData.vue2.js +4 -16
- package/es/components/big-table/src/components/edit-form/edit-date.js +6 -12
- package/es/components/big-table/src/components/edit-form/edit-input.js +2 -8
- package/es/components/big-table/src/components/edit-form/edit-select.js +17 -21
- package/es/components/big-table/src/components/edit-form/edit-time.js +4 -11
- package/es/components/big-table/src/components/input-button.vue2.js +3 -7
- package/es/components/big-table/src/hooks/useNestTable.js +4 -18
- package/es/components/big-table/src/hooks/useTableParse.js +3 -16
- package/es/components/body-select/src/index.vue2.js +4 -24
- package/es/components/button-print/index.d.ts +0 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +0 -1
- package/es/components/button-print/src/ButtonPrint.vue2.js +11 -52
- package/es/components/button-print/src/components/EditFormat.vue2.js +6 -14
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +43 -94
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +94 -229
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +0 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +32 -92
- package/es/components/button-print/src/components/Preview.vue2.js +2 -8
- package/es/components/button-print/src/utils/dialog.js +6 -24
- package/es/components/button-print/src/utils/print.d.ts +5 -5
- package/es/components/button-print/src/utils/print.js +21 -108
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +2 -8
- package/es/components/card-reader-sdk/src/utils/readHealthCard.js +4 -16
- package/es/components/card-reader-sdk-cn/src/henan/index.js +11 -38
- package/es/components/classification/src/components/search-filter/index.vue2.js +10 -24
- package/es/components/classification/src/components/set-classification/index.vue2.js +6 -23
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/components/table-modal/index.vue2.js +165 -324
- package/es/components/classification/src/index.vue2.js +69 -261
- package/es/components/default-page/src/constants/index.js +19 -144
- package/es/components/default-page/src/index.vue2.js +2 -8
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +51 -75
- package/es/components/expand-field/src/components/FormItemPerson.vue2.js +38 -46
- package/es/components/expand-field/src/components/PersonModal.vue2.js +50 -62
- package/es/components/expand-field/src/components/form.vue2.js +412 -783
- package/es/components/expand-field/src/index.vue2.js +22 -88
- package/es/components/expand-field/src/utils/constant.js +12 -88
- package/es/components/fabric-chart/src/components/PopupMenu.js +15 -32
- package/es/components/fabric-chart/src/constants/index.js +10 -72
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +3 -16
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +2 -8
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +5 -32
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +2 -8
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +41 -63
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -5
- package/es/components/fabric-chart/src/hooks/useCommon.js +4 -24
- 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 +30 -232
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldColor.vue2.js +21 -88
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue2.js +12 -28
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +57 -210
- package/es/components/field-set/src/Index.vue2.js +6 -40
- package/es/components/field-set/src/TableStyle.vue2.js +13 -48
- package/es/components/field-set/src/components/condition.vue2.js +11 -27
- package/es/components/field-set/src/components/edit-dialog.vue2.js +69 -149
- package/es/components/field-set/src/components/edit-filter.vue2.js +4 -24
- 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 +42 -123
- package/es/components/field-set/src/constants/filter.js +42 -328
- package/es/components/field-set/src/constants/index.js +64 -504
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +46 -91
- package/es/components/form-config/src/constants/index.js +11 -80
- package/es/components/form-config/src/hooks/useLocale.js +31 -240
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +3 -7
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +3 -7
- package/es/components/form-render/src/components/renderer/combination/tableCombination.js +2 -8
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +3 -7
- package/es/components/form-render/src/components/renderer/remoteSearch.js +2 -8
- package/es/components/form-render/src/components/renderer/switch.js +4 -24
- package/es/components/form-render/src/utils/schema.js +6 -26
- package/es/components/iho-chat/src/Index.vue2.js +38 -42
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +33 -108
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +90 -132
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +48 -110
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +15 -35
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +22 -54
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +45 -77
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +208 -256
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +211 -309
- package/es/components/iho-chat/src/components/ContextMenu.js +9 -50
- package/es/components/iho-chat/src/components/MessageEvent.vue2.js +4 -16
- package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +2 -8
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +18 -104
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +12 -67
- package/es/components/iho-chat/src/components/SelectLabel.vue2.js +43 -47
- package/es/components/iho-chat/src/components/SiderList.vue2.js +40 -70
- package/es/components/iho-chat/src/components/Video.vue2.js +11 -38
- package/es/components/iho-chat/src/hooks/useVideo.js +4 -15
- package/es/components/iho-chat/src/utils/index.js +14 -79
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +2 -8
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +15 -40
- package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +15 -40
- 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 +20 -50
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +6 -14
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +3 -10
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +18 -45
- 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 +14 -20
- package/es/components/index.css +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +23 -142
- package/es/components/keyboard/src/Keyboard.vue2.js +9 -21
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +35 -49
- package/es/components/map/src/Map.vue2.js +3 -7
- package/es/components/picture-clipper/src/PictureClipper.vue2.js +6 -14
- package/es/components/quick-search/src/index.vue2.js +132 -177
- package/es/components/recommend-search/src/components/BaseSearch.js +8 -14
- package/es/components/recommend-search/src/components/RecommendInput.vue2.js +8 -28
- package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +5 -18
- package/es/components/scale-view/src/ScaleView.vue2.js +7 -15
- package/es/components/scale-view/src/components/NoData.vue2.js +4 -16
- package/es/components/scale-view/src/components/formitem/r-cascader.js +2 -8
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +6 -24
- package/es/components/scale-view/src/components/formitem/r-input.js +2 -8
- package/es/components/scale-view/src/components/formitem/r-map.js +2 -8
- package/es/components/scale-view/src/components/formitem/r-radio.js +6 -24
- package/es/components/scale-view/src/components/formitem/r-select.js +2 -8
- package/es/components/scale-view/src/components/formitem/r-sign.js +9 -30
- package/es/components/scale-view/src/components/formitem/standard-modal.js +3 -16
- package/es/components/scale-view/src/hooks/scaleview-computed.js +5 -24
- package/es/components/scale-view/src/hooks/scaleview-methods.js +4 -16
- package/es/components/scale-view/src/hooks/scaleview-submit.js +3 -16
- package/es/components/scale-view/src/hooks/scaleview-validate.js +9 -40
- package/es/components/search-cascader/src/SearchCascader.vue2.js +14 -20
- package/es/components/select-label/src/LabelFormContent.vue2.js +21 -53
- package/es/components/select-label/src/SelectLabel.vue2.js +55 -85
- package/es/components/select-label/src/components/label-classify.vue2.js +11 -28
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +5 -18
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +8 -34
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +5 -18
- package/es/components/select-person/src/SelectPerson.vue2.js +141 -214
- package/es/components/select-person/src/SelectPersonType.vue2.js +105 -130
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +2 -9
- package/es/components/select-person/src/index.vue2.js +7 -20
- package/es/components/slider-tree/src/index.vue2.js +3 -16
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +112 -186
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +88 -147
- package/es/components/table-export-field/src/index.vue2.js +12 -28
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +5 -32
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +34 -264
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +135 -214
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +3 -16
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +2 -9
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +6 -39
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +5 -18
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +18 -29
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +3 -16
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +2 -8
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +130 -195
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +7 -26
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +7 -13
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +8 -34
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +8 -21
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +3 -7
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +6 -19
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +3 -16
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +10 -24
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +207 -1648
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +2 -8
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +3 -16
- package/es/components/table-filter/src/tool/baseOptions.js +19 -144
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +12 -28
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +2 -22
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +3 -7
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +6 -14
- package/es/env.d.ts +25 -25
- package/es/shared/hooks/selectHooks/useSelectAllowModify.js +2 -2
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -50,6 +50,7 @@ const _hoisted_11 = ["innerHTML"];
|
|
50
50
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
51
51
|
__name: "SiderList",
|
52
52
|
setup(__props) {
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
53
54
|
const filterKey = {
|
54
55
|
all: "all",
|
55
56
|
unread: "unread",
|
@@ -59,34 +60,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
59
60
|
const flexWidth = ref(300);
|
60
61
|
const listBoxRef = ref();
|
61
62
|
const filterListByTag = ref([{
|
62
|
-
label:
|
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
|
-
}(),
|
63
|
+
label: ((_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",
|
70
64
|
key: filterKey.all
|
71
65
|
}, {
|
72
|
-
label:
|
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
|
-
}(),
|
66
|
+
label: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.124")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.124")) || "\u672A\u8BFB",
|
80
67
|
key: filterKey.unread
|
81
68
|
}, {
|
82
|
-
label:
|
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
|
-
}(),
|
69
|
+
label: ((_g = window.getLanguageByCode) == null ? void 0 : _g.call(window, "10010.1.77")) || ((_i = (_h = window.top) == null ? void 0 : _h.getLanguageByCode) == null ? void 0 : _i.call(_h, "10010.1.77")) || "\u7ED3\u675F",
|
90
70
|
key: filterKey.ended
|
91
71
|
}]);
|
92
72
|
const contextmenuRef = ref();
|
@@ -128,22 +108,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
128
108
|
currentFilterKey.value = key;
|
129
109
|
if (key === filterKey.unread) {
|
130
110
|
unreadSessionKeys = (sessionList.value.filter((session) => {
|
131
|
-
var
|
132
|
-
return ((
|
111
|
+
var _a2;
|
112
|
+
return ((_a2 = session.unreadNum) != null ? _a2 : 0) > 0;
|
133
113
|
}) || []).map((session) => session.sessionKey);
|
134
114
|
}
|
135
115
|
}
|
136
116
|
function showSession(item, currentKey = unref(currentFilterKey)) {
|
137
|
-
var
|
117
|
+
var _a2;
|
138
118
|
if (currentKey === filterKey.all)
|
139
119
|
return true;
|
140
120
|
if (currentKey === filterKey.unread)
|
141
|
-
return unreadSessionKeys.includes(item.sessionKey) || ((
|
121
|
+
return unreadSessionKeys.includes(item.sessionKey) || ((_a2 = item.unreadNum) != null ? _a2 : 0) > 0;
|
142
122
|
if (currentKey === filterKey.ended)
|
143
123
|
return item.status === STATUS.ENDED;
|
144
124
|
}
|
145
125
|
async function handleContextmenu(event, id) {
|
146
|
-
var
|
126
|
+
var _a2, _b2, _c2, _d2, _e2;
|
147
127
|
sessionId.value = id;
|
148
128
|
showMenu.value = true;
|
149
129
|
await nextTick();
|
@@ -156,12 +136,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
156
136
|
height = 0,
|
157
137
|
left = 0,
|
158
138
|
top = 0
|
159
|
-
} = ((
|
139
|
+
} = ((_a2 = listBoxRef.value) == null ? void 0 : _a2.getBoundingClientRect()) || {};
|
160
140
|
const {
|
161
141
|
width: contextmenuWidth = 100,
|
162
142
|
height: contextmenuHeight = 80
|
163
|
-
} = ((
|
164
|
-
const scrollTop = (
|
143
|
+
} = ((_c2 = (_b2 = contextmenuRef.value) == null ? void 0 : _b2.$el) == null ? void 0 : _c2.getBoundingClientRect()) || {};
|
144
|
+
const scrollTop = (_e2 = (_d2 = listBoxRef.value) == null ? void 0 : _d2.scrollTop) != null ? _e2 : 0;
|
165
145
|
const offset = 5;
|
166
146
|
const style = {};
|
167
147
|
if (clientX < left + width - (contextmenuWidth + 2) - offset) {
|
@@ -223,9 +203,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
223
203
|
}
|
224
204
|
}
|
225
205
|
function handleClickoutside(e) {
|
226
|
-
var
|
227
|
-
const panelInstEl = (
|
228
|
-
const show = !!(e.target && (panelInstEl && panelInstEl.contains(e.target) || ((
|
206
|
+
var _a2, _b2, _c2, _d2, _e2;
|
207
|
+
const panelInstEl = (_c2 = (_b2 = (_a2 = datePickerRef.value) == null ? void 0 : _a2.$datePicker) == null ? void 0 : _b2.panelInstRef) == null ? void 0 : _c2.$el;
|
208
|
+
const show = !!(e.target && (panelInstEl && panelInstEl.contains(e.target) || ((_d2 = inputRef.value) == null ? void 0 : _d2.$el) && ((_e2 = inputRef.value) == null ? void 0 : _e2.$el.contains(e.target))));
|
229
209
|
handleUpdateShow(show);
|
230
210
|
}
|
231
211
|
function handleUpdateDate(value) {
|
@@ -278,33 +258,29 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
278
258
|
}, null, 8, ["component"])]),
|
279
259
|
_: 1
|
280
260
|
}, 8, ["value", "onInput"])]),
|
281
|
-
default: withCtx(() =>
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
}()
|
305
|
-
},
|
306
|
-
type: "5"
|
307
|
-
}, null, 512), [[vShow, filterList.value.length < 1]])])]),
|
261
|
+
default: withCtx(() => {
|
262
|
+
var _a2, _b2, _c2;
|
263
|
+
return [createVNode(unref(DatePicker), {
|
264
|
+
ref_key: "datePickerRef",
|
265
|
+
ref: datePickerRef,
|
266
|
+
"formatted-value": dateRange.value,
|
267
|
+
type: "daterange",
|
268
|
+
clearable: "",
|
269
|
+
"onUpdate:formattedValue": handleUpdateDate
|
270
|
+
}, null, 8, ["formatted-value"]), createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(filterList.value, (item) => {
|
271
|
+
return openBlock(), createBlock(unref(userItemRender), {
|
272
|
+
key: item.id,
|
273
|
+
item,
|
274
|
+
onItemClick: _cache[2] || (_cache[2] = () => handleUpdateShow(false))
|
275
|
+
}, null, 8, ["item"]);
|
276
|
+
}), 128)), withDirectives(createVNode(unref(DefaultPage), {
|
277
|
+
config: {
|
278
|
+
title: " ",
|
279
|
+
content: ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.81")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.81")) || "\u627E\u4E0D\u5230\u76F8\u5173\u7684\u7ED3\u679C"
|
280
|
+
},
|
281
|
+
type: "5"
|
282
|
+
}, null, 512), [[vShow, filterList.value.length < 1]])])];
|
283
|
+
}),
|
308
284
|
_: 1
|
309
285
|
}, 8, ["show"])])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(filterListByTag.value, (filterItem) => {
|
310
286
|
return openBlock(), createBlock(unref(NTag), {
|
@@ -322,6 +298,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
322
298
|
ref_key: "listBoxRef",
|
323
299
|
ref: listBoxRef
|
324
300
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(sessionList), (item) => {
|
301
|
+
var _a2, _b2, _c2;
|
325
302
|
return openBlock(), createElementBlock(Fragment, {
|
326
303
|
key: item.id
|
327
304
|
}, [item.status !== unref(STATUS).REMOVED ? withDirectives((openBlock(), createElementBlock("div", {
|
@@ -337,14 +314,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
337
314
|
src: item.avatar
|
338
315
|
}, 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", {
|
339
316
|
class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(item.roleInfo) ? "isDoctor" : ""])
|
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,
|
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", {
|
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, ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.68")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.68")) || "\u64A4\u56DE\u4E86\u4E00\u6761\u6D88\u606F")) : (openBlock(), createElementBlock("div", {
|
348
318
|
key: 1,
|
349
319
|
innerHTML: item.lastMessageContent
|
350
320
|
}, null, 8, _hoisted_11))]), createVNode(unref(NBadge), {
|
@@ -17,6 +17,7 @@ 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, _e, _f, _g, _h, _i, _j, _k, _l;
|
20
21
|
const _hoisted_1 = {
|
21
22
|
class: "video-wrapper"
|
22
23
|
};
|
@@ -35,41 +36,13 @@ const _hoisted_5 = {
|
|
35
36
|
const _hoisted_6 = {
|
36
37
|
class: "btn"
|
37
38
|
};
|
38
|
-
const _hoisted_7 = /* @__PURE__ */ createElementVNode("span", null,
|
39
|
-
|
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);
|
39
|
+
const _hoisted_7 = /* @__PURE__ */ createElementVNode("span", null, ((_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", -1);
|
40
|
+
const _hoisted_8 = /* @__PURE__ */ createElementVNode("span", null, ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.113")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.113")) || "\u62D2\u63A5", -1);
|
54
41
|
const _hoisted_9 = {
|
55
42
|
class: "btn"
|
56
43
|
};
|
57
|
-
const _hoisted_10 = /* @__PURE__ */ createElementVNode("span", null,
|
58
|
-
|
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);
|
44
|
+
const _hoisted_10 = /* @__PURE__ */ createElementVNode("span", null, ((_g = window.getLanguageByCode) == null ? void 0 : _g.call(window, "10010.1.125")) || ((_i = (_h = window.top) == null ? void 0 : _h.getLanguageByCode) == null ? void 0 : _i.call(_h, "10010.1.125")) || "\u6302\u65AD", -1);
|
45
|
+
const _hoisted_11 = /* @__PURE__ */ createElementVNode("span", null, ((_j = window.getLanguageByCode) == null ? void 0 : _j.call(window, "10010.1.114")) || ((_l = (_k = window.top) == null ? void 0 : _k.getLanguageByCode) == null ? void 0 : _l.call(_k, "10010.1.114")) || "\u63A5\u542C", -1);
|
73
46
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
74
47
|
__name: "Video",
|
75
48
|
setup(__props) {
|
@@ -95,7 +68,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
95
68
|
const isConnect = ref(false);
|
96
69
|
let timeout = null;
|
97
70
|
const info = computed(() => {
|
98
|
-
var
|
71
|
+
var _a2, _b2, _c2;
|
99
72
|
if (isCall.value) {
|
100
73
|
return {
|
101
74
|
avatar: state.currentSessionItem.avatar,
|
@@ -104,9 +77,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
104
77
|
};
|
105
78
|
} else {
|
106
79
|
return {
|
107
|
-
avatar: (
|
108
|
-
name: (
|
109
|
-
userId: (
|
80
|
+
avatar: (_a2 = state.currentAVMsg.currentMsg) == null ? void 0 : _a2.senderAvatar,
|
81
|
+
name: (_b2 = state.currentAVMsg.currentMsg) == null ? void 0 : _b2.senderName,
|
82
|
+
userId: (_c2 = state.currentAVMsg.currentMsg) == null ? void 0 : _c2.sender
|
110
83
|
};
|
111
84
|
}
|
112
85
|
});
|
@@ -119,8 +92,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
119
92
|
return isAudio.value ? timing.value : "";
|
120
93
|
});
|
121
94
|
const status = computed(() => {
|
122
|
-
var
|
123
|
-
return (
|
95
|
+
var _a2, _b2;
|
96
|
+
return (_b2 = (_a2 = state.currentAVMsg.currentMsg) == null ? void 0 : _a2.content) == null ? void 0 : _b2.avStatus;
|
124
97
|
});
|
125
98
|
async function handleStatus(status2 = AV_STATUS.FINISHED) {
|
126
99
|
sendMessage({
|
@@ -23,21 +23,10 @@ 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, _c;
|
28
|
-
|
29
|
-
|
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
|
-
}());
|
26
|
+
const messageTypeText = computed(() => {
|
27
|
+
var _a, _b, _c, _d, _e, _f;
|
28
|
+
return isAudio.value ? ((_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" : ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.131")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.131")) || "\u89C6\u9891";
|
29
|
+
});
|
41
30
|
const trtc = TRTC.create();
|
42
31
|
function startTimer() {
|
43
32
|
resetTimer();
|
@@ -9,24 +9,19 @@ const {
|
|
9
9
|
message: $message
|
10
10
|
} = createDiscreteApi(["message"]);
|
11
11
|
function formatTime(dateStr) {
|
12
|
+
var _a, _b, _c;
|
12
13
|
const date = new Date(dateStr);
|
13
14
|
let siderMsgTime, msgTime;
|
14
15
|
if (isToday(date)) {
|
15
16
|
siderMsgTime = msgTime = format(date, "HH:mm");
|
16
17
|
} else {
|
17
|
-
siderMsgTime = isYesterday(date) ?
|
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");
|
18
|
+
siderMsgTime = isYesterday(date) ? ((_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" : format(date, "MM-dd");
|
25
19
|
const dateYear = date.getFullYear();
|
26
20
|
const currentYear = new Date().getFullYear();
|
27
21
|
msgTime = format(date, dateYear < currentYear ? "yyyy\u5E74M\u6708d\u65E5 HH:mm" : "M\u6708d\u65E5 HH:mm");
|
28
22
|
}
|
29
23
|
function formatRecordTime(time) {
|
24
|
+
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
30
25
|
const currentTime = new Date(time);
|
31
26
|
const nowTimeStamp = Date.now();
|
32
27
|
const currentTimeStamp = currentTime.getTime();
|
@@ -34,41 +29,13 @@ function formatTime(dateStr) {
|
|
34
29
|
const oneMinuteAgo = 60 * 1e3;
|
35
30
|
const oneHourAgo = 60 * 60 * 1e3;
|
36
31
|
if (distance < oneMinuteAgo) {
|
37
|
-
return
|
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
|
-
}();
|
32
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.133")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.133")) || "\u521A\u521A";
|
45
33
|
} else if (distance < oneHourAgo) {
|
46
|
-
return Math.ceil(distance / 1e3 / 60) +
|
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
|
-
}();
|
34
|
+
return Math.ceil(distance / 1e3 / 60) + (((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.136")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.136")) || "\u5206\u949F\u524D");
|
54
35
|
} else if (isToday(currentTime)) {
|
55
|
-
return
|
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");
|
36
|
+
return (((_g = window.getLanguageByCode) == null ? void 0 : _g.call(window, "10010.1.134")) || ((_i = (_h = window.top) == null ? void 0 : _h.getLanguageByCode) == null ? void 0 : _i.call(_h, "10010.1.134")) || "\u4ECA\u5929") + format(currentTime, "HH:mm");
|
63
37
|
} else if (isYesterday(currentTime)) {
|
64
|
-
return
|
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");
|
38
|
+
return (((_j = window.getLanguageByCode) == null ? void 0 : _j.call(window, "10010.1.132")) || ((_l = (_k = window.top) == null ? void 0 : _k.getLanguageByCode) == null ? void 0 : _l.call(_k, "10010.1.132")) || "\u6628\u5929") + format(currentTime, "HH:mm");
|
72
39
|
} else {
|
73
40
|
const dateYear = currentTime.getFullYear();
|
74
41
|
const currentYear = new Date().getFullYear();
|
@@ -123,6 +90,7 @@ function transformMessage(content) {
|
|
123
90
|
return msg;
|
124
91
|
}
|
125
92
|
function getAVTime(msg) {
|
93
|
+
var _a, _b, _c, _d, _e, _f;
|
126
94
|
if (msg && isNumber(+msg) && !isNaN(+msg)) {
|
127
95
|
const time = formatSeconds(+msg);
|
128
96
|
const timeArray = time.split(":");
|
@@ -130,23 +98,9 @@ function getAVTime(msg) {
|
|
130
98
|
if (timeArray.length === 3 && timeArray[0] === "00") {
|
131
99
|
_timeStr = `${timeArray[1]}:${timeArray[2]}`;
|
132
100
|
}
|
133
|
-
return
|
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;
|
101
|
+
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") + _timeStr;
|
141
102
|
}
|
142
|
-
return
|
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
|
-
}();
|
103
|
+
return ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.138")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.138")) || "\u5DF2\u53D6\u6D88";
|
150
104
|
}
|
151
105
|
function simplifyMessage(lastMessage) {
|
152
106
|
var _a;
|
@@ -252,6 +206,7 @@ function isDoctorRole(type) {
|
|
252
206
|
return type === ROLE_TYPE.DOCTOR;
|
253
207
|
}
|
254
208
|
function getRoleName(type) {
|
209
|
+
var _a, _b, _c;
|
255
210
|
let roleName = "";
|
256
211
|
switch (type) {
|
257
212
|
case ROLE_TYPE.DOCTOR: {
|
@@ -259,14 +214,7 @@ function getRoleName(type) {
|
|
259
214
|
break;
|
260
215
|
}
|
261
216
|
case ROLE_TYPE.PATIENT: {
|
262
|
-
roleName =
|
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
|
-
}();
|
217
|
+
roleName = ((_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";
|
270
218
|
break;
|
271
219
|
}
|
272
220
|
}
|
@@ -304,21 +252,8 @@ function getDetail(item, isShowSize) {
|
|
304
252
|
return details;
|
305
253
|
}
|
306
254
|
function showAudioAndVideoRecord(chatMessageType) {
|
307
|
-
|
308
|
-
|
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
|
-
}();
|
255
|
+
var _a, _b, _c, _d, _e, _f;
|
256
|
+
return chatMessageType === MESSAGE_TYPE.AUDIO ? ((_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" : ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.59")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.59")) || "\u89C6\u9891\u901A\u8BDD";
|
322
257
|
}
|
323
258
|
|
324
259
|
export { $message, base64ToFile, downloadFile, formatSeconds, formatTime, getAVTime, getDetail, getFileDetails, getFileSize, getFileType, getForwardTitle, getRoleName, isAudioOrVideoMessage, isDoctorRole, isGroup, listSort, showAudioAndVideoRecord, simplifyMessage, transformMessage };
|
@@ -20,19 +20,13 @@ 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, _b, _c;
|
23
24
|
if (value === "1")
|
24
25
|
return;
|
25
26
|
if (value === "0")
|
26
27
|
_editRules[_fieldItem.val_key] = [{
|
27
28
|
required: true,
|
28
|
-
message:
|
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
|
-
}()
|
29
|
+
message: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B"
|
36
30
|
}];
|
37
31
|
};
|
38
32
|
const validateHandler = (value, result) => {
|
@@ -231,6 +231,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
231
231
|
}
|
232
232
|
onMounted(fetchOption);
|
233
233
|
return (_ctx, _cache) => {
|
234
|
+
var _a2, _b2, _c, _d, _e, _f;
|
234
235
|
const _component_vxe_grid = resolveComponent("vxe-grid");
|
235
236
|
return openBlock(), createElementBlock("section", _hoisted_1, [createVNode(unref(NInput), {
|
236
237
|
value: searchFilterText.value,
|
@@ -281,63 +282,37 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
281
282
|
size: "small"
|
282
283
|
}, null, 8, ["page", "page-size", "item-count"])) : createCommentVNode("v-if", true)]),
|
283
284
|
_: 1
|
284
|
-
}, 8, ["show"]), createElementVNode("footer", _hoisted_2, [createElementVNode("section", null, [createTextVNode(
|
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", {
|
285
|
+
}, 8, ["show"]), createElementVNode("footer", _hoisted_2, [createElementVNode("section", null, [createTextVNode(((_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"), createElementVNode("span", {
|
292
286
|
style: normalizeStyle({
|
293
287
|
color: "var(--c-primary-color)"
|
294
288
|
})
|
295
|
-
}, toDisplayString(checkedCacheRef.value.length), 5), createTextVNode(
|
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), {
|
289
|
+
}, toDisplayString(checkedCacheRef.value.length), 5), createTextVNode(((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.417")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.417")) || "\u9879")]), createVNode(unref(NButtonGroup), {
|
303
290
|
size: "small"
|
304
291
|
}, {
|
305
292
|
default: withCtx(() => [createVNode(unref(NButton), {
|
306
293
|
onClick: reset
|
307
294
|
}, {
|
308
|
-
default: withCtx(() =>
|
309
|
-
var
|
310
|
-
|
311
|
-
|
312
|
-
} catch (e) {
|
313
|
-
return "\u6E05\u7A7A";
|
314
|
-
}
|
315
|
-
}())]),
|
295
|
+
default: withCtx(() => {
|
296
|
+
var _a3, _b3, _c2;
|
297
|
+
return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.509")) || ((_c2 = (_b3 = window.top) == null ? void 0 : _b3.getLanguageByCode) == null ? void 0 : _c2.call(_b3, "10010.1.509")) || "\u6E05\u7A7A")];
|
298
|
+
}),
|
316
299
|
_: 1
|
317
300
|
}), createVNode(unref(NButton), {
|
318
301
|
onClick: close
|
319
302
|
}, {
|
320
|
-
default: withCtx(() =>
|
321
|
-
var
|
322
|
-
|
323
|
-
|
324
|
-
} catch (e) {
|
325
|
-
return "\u53D6\u6D88";
|
326
|
-
}
|
327
|
-
}())]),
|
303
|
+
default: withCtx(() => {
|
304
|
+
var _a3, _b3, _c2;
|
305
|
+
return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.28")) || ((_c2 = (_b3 = window.top) == null ? void 0 : _b3.getLanguageByCode) == null ? void 0 : _c2.call(_b3, "10010.1.28")) || "\u53D6\u6D88")];
|
306
|
+
}),
|
328
307
|
_: 1
|
329
308
|
}), createVNode(unref(NButton), {
|
330
309
|
type: "primary",
|
331
310
|
onClick: confirm
|
332
311
|
}, {
|
333
|
-
default: withCtx(() =>
|
334
|
-
var
|
335
|
-
|
336
|
-
|
337
|
-
} catch (e) {
|
338
|
-
return "\u786E\u5B9A";
|
339
|
-
}
|
340
|
-
}())]),
|
312
|
+
default: withCtx(() => {
|
313
|
+
var _a3, _b3, _c2;
|
314
|
+
return [createTextVNode(((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.27")) || ((_c2 = (_b3 = window.top) == null ? void 0 : _b3.getLanguageByCode) == null ? void 0 : _c2.call(_b3, "10010.1.27")) || "\u786E\u5B9A")];
|
315
|
+
}),
|
341
316
|
_: 1
|
342
317
|
})]),
|
343
318
|
_: 1
|