cnhis-design-vue 3.3.3-beta.7 → 3.3.3-beta.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/audio-sdk/index.d.ts +18 -16
- package/es/components/audio-sdk/src/Index.vue.d.ts +18 -16
- package/es/components/audio-sdk/src/Index.vue2.js +40 -5
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +6 -6
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +6 -6
- package/es/components/audio-sdk/src/components/recording.vue2.js +17 -3
- package/es/components/base-search/index.d.ts +3 -0
- package/es/components/base-search/src/index.vue.d.ts +3 -0
- package/es/components/big-table/src/components/NoData.vue2.js +8 -1
- package/es/components/big-table/src/hooks/useTableParse.js +8 -1
- package/es/components/button-print/index.d.ts +67 -2
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +67 -2
- package/es/components/button-print/src/ButtonPrint.vue2.js +6 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +28 -3
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +138 -15
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +18 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +35 -6
- package/es/components/button-print/src/utils/print.d.ts +7 -5
- package/es/components/button-print/src/utils/print.js +183 -7
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/calendar/src/Calendar.vue2.js +15 -5
- package/es/components/callback/src/components/render/popupMaps.d.ts +18 -0
- package/es/components/card-reader-sdk-cn/src/henan/index.js +8 -1
- package/es/components/classification/index.d.ts +555 -10
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +555 -10
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +555 -10
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +555 -10
- package/es/components/date-picker/src/DatePicker.vue2.js +8 -1
- package/es/components/expand-field/index.d.ts +792 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/form.vue2.js +8 -1
- package/es/components/expand-field/src/index.vue.d.ts +792 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +3 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +3 -2
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +58 -15
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +4 -3
- package/es/components/field-editor/index.d.ts +18 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +18 -0
- package/es/components/field-editor/src/FieldEditor.vue2.js +2 -1
- package/es/components/field-editor/src/fields.d.ts +1 -0
- package/es/components/field-editor/src/fields.js +6 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +10 -5
- package/es/components/field-set/src/FieldFilter.vue.d.ts +10 -5
- package/es/components/field-set/src/FieldSet.vue.d.ts +43 -6
- package/es/components/field-set/src/FieldSet.vue2.js +118 -69
- package/es/components/field-set/src/Index.vue2.js +8 -3
- package/es/components/field-set/src/TableStyle.vue2.js +2 -2
- package/es/components/field-set/src/components/table-row.vue.d.ts +6 -5
- package/es/components/field-set/src/components/table-row.vue2.js +21 -6
- package/es/components/field-set/src/constants/index.d.ts +1 -1
- package/es/components/field-set/src/types/index.d.ts +3 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +102 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +102 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +18 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +63 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +4 -4
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +18 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +9 -2
- package/es/components/form-config/src/constants/index.d.ts +31 -1
- package/es/components/form-config/src/constants/index.js +150 -1
- package/es/components/form-config/src/hooks/useConfigurationField.d.ts +2 -2
- package/es/components/form-config/src/hooks/useConfigurationField.js +53 -6
- package/es/components/form-config/src/hooks/useLocale.d.ts +6 -0
- package/es/components/form-config/src/hooks/useLocale.js +34 -0
- package/es/components/form-config/src/types/index.d.ts +12 -0
- package/es/components/form-render/index.d.ts +18 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +18 -0
- package/es/components/form-render/src/FormRender.vue2.js +5 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/date.d.ts +3 -1
- package/es/components/form-render/src/components/renderer/date.js +12 -10
- package/es/components/form-render/src/components/renderer/formItem.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/formItem.js +17 -3
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +4 -2
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +9 -3
- package/es/components/form-render/src/components/renderer/searchCascade.js +3 -0
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +12 -3
- package/es/components/form-render/src/hooks/useBusinessBinding.js +7 -7
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +5 -2
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFieldNormalize.js +15 -0
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +8 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +2 -1
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/src/utils/business.d.ts +3 -1
- package/es/components/form-render/src/utils/business.js +7 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-chat/index.d.ts +902 -99
- package/es/components/iho-chat/src/Index.vue.d.ts +902 -99
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +181 -8
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +51 -41
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +66 -6
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +158 -57
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +329 -15
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +21 -19
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +235 -20
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +298 -279
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +51 -5
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +3 -3
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +48 -2
- package/es/components/iho-chat/src/components/ContextMenu.js +34 -27
- package/es/components/iho-chat/src/components/ImageLightbox.vue.d.ts +104 -0
- package/es/components/iho-chat/src/components/ImageLightbox.vue.js +6 -0
- package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +307 -0
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +53 -6
- package/es/components/iho-chat/src/components/MessageMergeForward.vue2.js +3 -3
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +93 -30
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +348 -144
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SelectLabel.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +38 -25
- package/es/components/iho-chat/src/components/Video.vue2.js +35 -40
- package/es/components/iho-chat/src/hooks/index.d.ts +1 -0
- package/es/components/iho-chat/src/hooks/index.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +51 -4
- package/es/components/iho-chat/src/hooks/useData.js +2 -7
- package/es/components/iho-chat/src/hooks/useDraggable.d.ts +25 -0
- package/es/components/iho-chat/src/hooks/useDraggable.js +160 -0
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +78 -11
- package/es/components/iho-chat/src/hooks/useVideo.js +420 -44
- package/es/components/iho-chat/src/types/index.d.ts +37 -1
- package/es/components/iho-chat/src/utils/emoji.d.ts +1 -1
- package/es/components/iho-chat/src/utils/emoji.js +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +4 -3
- package/es/components/iho-chat/src/utils/index.js +33 -39
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +8 -1
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +5 -2
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +2 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -0
- package/es/components/index.js +2 -1
- package/es/components/info-header/index.d.ts +41 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +41 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +56 -22
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +19 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +18 -0
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +16 -2
- package/es/components/keyboard/index.d.ts +9 -0
- package/es/components/keyboard/src/Keyboard.vue.d.ts +9 -0
- package/es/components/keyboard/src/Keyboard.vue2.js +33 -9
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -0
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +50 -17
- package/es/components/keyboard/src/types.d.ts +17 -0
- package/es/components/keyboard/src/types.js +1 -0
- package/es/components/quick-search/index.d.ts +2 -0
- package/es/components/quick-search/src/index.vue.d.ts +2 -0
- package/es/components/scale-view/index.d.ts +66 -3
- package/es/components/scale-view/src/ScaleView.vue.d.ts +69 -5
- package/es/components/scale-view/src/ScaleView.vue2.js +79 -4
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +5 -0
- package/es/components/scale-view/src/components/AnswerParse.vue2.js +74 -8
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +3 -0
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +26 -2
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +3 -0
- package/es/components/scale-view/src/components/EvaluatePage.vue2.js +27 -6
- package/es/components/scale-view/src/components/NoData.vue2.js +9 -3
- package/es/components/scale-view/src/components/ScaleScore.d.ts +1 -1
- package/es/components/scale-view/src/components/ScaleScore.js +45 -3
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +16 -2
- package/es/components/scale-view/src/components/formitem/r-sign.js +32 -4
- package/es/components/scale-view/src/components/formitem/r-upload.js +65 -7
- package/es/components/scale-view/src/components/formitem/sign-com.js +8 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +20 -4
- package/es/components/scale-view/src/hooks/scaleview-init.js +24 -3
- package/es/components/scale-view/src/hooks/scaleview-methods.js +40 -5
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +12 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +12 -0
- package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +2 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +64 -8
- package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +157 -24
- package/es/components/scale-view/src/hooks/use-evaluate.js +16 -2
- package/es/components/scale-view/src/hooks/use-noData.js +33 -5
- package/es/components/scale-view/src/utils/judge-types.d.ts +2 -1
- package/es/components/scale-view/src/utils/judge-types.js +10 -10
- package/es/components/scale-view/src/utils/watch-form-change.d.ts +13 -0
- package/es/components/scale-view/src/utils/watch-form-change.js +71 -0
- package/es/components/select-person/index.d.ts +792 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +433 -273
- package/es/components/select-person/src/SelectPerson.vue.js +6 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +795 -0
- package/es/components/select-person/src/SelectPersonRole.vue.js +2 -2
- package/es/components/select-person/src/components/GroupItem.vue.d.ts +19 -0
- package/es/components/select-person/src/components/GroupItem.vue.js +6 -0
- package/es/components/select-person/src/components/GroupItem.vue2.js +37 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.d.ts +214 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.js +6 -0
- package/es/components/select-person/src/components/SearchGroupList.vue2.js +145 -0
- package/es/components/select-person/src/components/SearchMultiple.vue2.js +1 -1
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +21 -12
- package/es/components/select-person/src/components/TagItem.vue.d.ts +43 -0
- package/es/components/select-person/src/components/TagItem.vue.js +6 -0
- package/es/components/select-person/src/components/TagItem.vue2.js +40 -0
- package/es/components/select-person/src/index.vue.d.ts +793 -1
- package/es/components/select-person/src/index.vue2.js +21 -4
- package/es/components/select-person/src/types/index.d.ts +35 -0
- package/es/components/select-person/src/types/index.js +1 -0
- package/es/components/select-person/src/utils/index.d.ts +3 -0
- package/es/components/select-person/src/utils/index.js +25 -2
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +18 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +18 -0
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +543 -6
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +32 -10
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +226 -0
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.js +6 -0
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +156 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +255 -2
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +79 -5
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +256 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +92 -6
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +512 -4
- package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +5 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +49 -2
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +2 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +554 -10
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +17 -7
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +25 -6
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +12 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +32 -4
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +23 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +5 -5
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +25 -7
- package/es/components/table-filter/src/hooks/useRenderWidget.js +4 -0
- package/es/components/table-filter/src/tool/baseOptions.js +8 -1
- package/es/components/table-filter/src/tool/date.d.ts +3 -0
- package/es/components/table-filter/src/tool/date.js +139 -0
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
- package/es/components/table-filter/src/tool/transformData.js +11 -8
- package/es/components/table-filter/src/types/enums.d.ts +5 -0
- package/es/components/table-filter/src/types/enums.js +7 -2
- package/es/components/table-filter/src/types/index.d.ts +12 -0
- package/es/components/vertify/index.d.ts +1 -0
- package/es/components/vertify/index.js +1 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.d.ts +89 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.js +6 -0
- package/es/components/vertify/src/components/IdentityVerification.vue2.js +256 -0
- package/es/components/vertify/src/utils/dialog.d.ts +7 -0
- package/es/components/vertify/src/utils/dialog.js +73 -0
- package/es/components/vertify/src/utils/index.d.ts +11 -0
- package/es/components/vertify/src/utils/index.js +24 -0
- package/es/components/vod-chunk-upload/index.d.ts +16 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +20 -31
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +205 -78
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +1 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +35 -4
- package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +4 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +78 -11
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +16 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +81 -10
- package/es/components/vod-chunk-upload/style/index.css +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
- package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +3 -3
- package/es/shared/package.json.js +2 -2
- package/es/shared/utils/fabricjs/index.js +1 -1
- package/package.json +6 -5
@@ -1,11 +1,11 @@
|
|
1
|
-
import { createElementVNode, defineComponent, ref, computed, onBeforeUnmount, openBlock, createElementBlock, withDirectives,
|
2
|
-
import { NButton, NIcon } from 'naive-ui';
|
1
|
+
import { createElementVNode, defineComponent, ref, computed, watch, onBeforeUnmount, openBlock, createElementBlock, Fragment, withDirectives, normalizeStyle, unref, toDisplayString, vShow, createVNode, withCtx, renderList, createCommentVNode, createTextVNode, nextTick } from 'vue';
|
2
|
+
import { NButton, NIcon, NAvatar } from 'naive-ui';
|
3
3
|
import ChatAdd from './ChatAdd.vue.js';
|
4
|
-
import { Close, Mic, MicOff, Videocam, VideocamOff, Call, PersonAdd } from '@vicons/ionicons5';
|
4
|
+
import { Close, Mic, MicOff, Videocam, VideocamOff, Call, PersonAdd, ResizeOutline } from '@vicons/ionicons5';
|
5
5
|
import { getUserDetailApi } from '../api/index.js';
|
6
6
|
import '@vueuse/core';
|
7
7
|
import { $message } from '../utils/index.js';
|
8
|
-
import
|
8
|
+
import 'lodash-es';
|
9
9
|
import { CHAT_TYPE, SUBSCRIBE_MESSAGE_TYPE } from '../constants/index.js';
|
10
10
|
import '../../../../shared/utils/index.js';
|
11
11
|
import 'date-fns';
|
@@ -16,32 +16,29 @@ import '../../../../shared/hooks/useScrollLoading.js';
|
|
16
16
|
import 'stompjs';
|
17
17
|
import 'sockjs-client/dist/sockjs.min.js';
|
18
18
|
import { useVideo } from '../hooks/useVideo.js';
|
19
|
-
import
|
19
|
+
import { useDraggable } from '../hooks/useDraggable.js';
|
20
20
|
|
21
21
|
const _hoisted_1 = {
|
22
|
-
class: "
|
22
|
+
class: "top-right-btns"
|
23
23
|
};
|
24
24
|
const _hoisted_2 = {
|
25
|
-
class: "video-header"
|
26
|
-
};
|
27
|
-
const _hoisted_3 = {
|
28
25
|
key: 0,
|
29
26
|
class: "video-main"
|
30
27
|
};
|
31
|
-
const
|
28
|
+
const _hoisted_3 = {
|
32
29
|
class: "video-main__left"
|
33
30
|
};
|
34
|
-
const
|
35
|
-
const
|
31
|
+
const _hoisted_4 = ["data-name"];
|
32
|
+
const _hoisted_5 = {
|
36
33
|
class: "video-bottom"
|
37
34
|
};
|
38
|
-
const
|
35
|
+
const _hoisted_6 = {
|
39
36
|
class: "btn-group"
|
40
37
|
};
|
41
|
-
const
|
38
|
+
const _hoisted_7 = {
|
42
39
|
class: "btn"
|
43
40
|
};
|
44
|
-
const
|
41
|
+
const _hoisted_8 = /* @__PURE__ */ createElementVNode("span", {
|
45
42
|
class: "text"
|
46
43
|
}, function() {
|
47
44
|
var _a, _b, _c;
|
@@ -51,10 +48,10 @@ const _hoisted_9 = /* @__PURE__ */ createElementVNode("span", {
|
|
51
48
|
return "\u9759\u97F3";
|
52
49
|
}
|
53
50
|
}(), -1);
|
54
|
-
const
|
51
|
+
const _hoisted_9 = {
|
55
52
|
class: "btn"
|
56
53
|
};
|
57
|
-
const
|
54
|
+
const _hoisted_10 = /* @__PURE__ */ createElementVNode("span", {
|
58
55
|
class: "text"
|
59
56
|
}, function() {
|
60
57
|
var _a, _b, _c;
|
@@ -64,7 +61,7 @@ const _hoisted_11 = /* @__PURE__ */ createElementVNode("span", {
|
|
64
61
|
return "\u6444\u50CF\u5934";
|
65
62
|
}
|
66
63
|
}(), -1);
|
67
|
-
const
|
64
|
+
const _hoisted_11 = /* @__PURE__ */ createElementVNode("span", {
|
68
65
|
class: "text"
|
69
66
|
}, function() {
|
70
67
|
var _a, _b, _c;
|
@@ -74,10 +71,10 @@ const _hoisted_12 = /* @__PURE__ */ createElementVNode("span", {
|
|
74
71
|
return "\u7ED3\u675F\u4F1A\u8BCA";
|
75
72
|
}
|
76
73
|
}(), -1);
|
77
|
-
const
|
74
|
+
const _hoisted_12 = {
|
78
75
|
class: "btn"
|
79
76
|
};
|
80
|
-
const
|
77
|
+
const _hoisted_13 = /* @__PURE__ */ createElementVNode("span", {
|
81
78
|
class: "text"
|
82
79
|
}, function() {
|
83
80
|
var _a, _b, _c;
|
@@ -87,35 +84,35 @@ const _hoisted_14 = /* @__PURE__ */ createElementVNode("span", {
|
|
87
84
|
return "\u6DFB\u52A0\u53C2\u4F1A\u4EBA";
|
88
85
|
}
|
89
86
|
}(), -1);
|
90
|
-
const
|
87
|
+
const _hoisted_14 = {
|
91
88
|
class: "video-main__right"
|
92
89
|
};
|
93
|
-
const
|
94
|
-
const
|
90
|
+
const _hoisted_15 = ["id", "data-name"];
|
91
|
+
const _hoisted_16 = {
|
95
92
|
class: "user"
|
96
93
|
};
|
97
|
-
const
|
94
|
+
const _hoisted_17 = {
|
98
95
|
class: "name"
|
99
96
|
};
|
100
|
-
const
|
97
|
+
const _hoisted_18 = {
|
101
98
|
key: 0,
|
102
99
|
class: "tip"
|
103
100
|
};
|
104
|
-
const
|
101
|
+
const _hoisted_19 = {
|
105
102
|
key: 0,
|
106
103
|
class: "calling-box"
|
107
104
|
};
|
108
|
-
const
|
105
|
+
const _hoisted_20 = {
|
109
106
|
class: "btn-box"
|
110
107
|
};
|
111
|
-
const
|
108
|
+
const _hoisted_21 = {
|
112
109
|
key: 1,
|
113
110
|
class: "opt-btn"
|
114
111
|
};
|
115
|
-
const
|
112
|
+
const _hoisted_22 = {
|
116
113
|
class: "btn"
|
117
114
|
};
|
118
|
-
const
|
115
|
+
const _hoisted_23 = /* @__PURE__ */ createElementVNode("span", null, function() {
|
119
116
|
var _a, _b, _c;
|
120
117
|
try {
|
121
118
|
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";
|
@@ -123,10 +120,10 @@ const _hoisted_24 = /* @__PURE__ */ createElementVNode("span", null, function()
|
|
123
120
|
return "\u62D2\u63A5";
|
124
121
|
}
|
125
122
|
}(), -1);
|
126
|
-
const
|
123
|
+
const _hoisted_24 = {
|
127
124
|
class: "btn"
|
128
125
|
};
|
129
|
-
const
|
126
|
+
const _hoisted_25 = /* @__PURE__ */ createElementVNode("span", null, function() {
|
130
127
|
var _a, _b, _c;
|
131
128
|
try {
|
132
129
|
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";
|
@@ -134,30 +131,51 @@ const _hoisted_26 = /* @__PURE__ */ createElementVNode("span", null, function()
|
|
134
131
|
return "\u63A5\u542C";
|
135
132
|
}
|
136
133
|
}(), -1);
|
134
|
+
const _hoisted_26 = {
|
135
|
+
class: "header"
|
136
|
+
};
|
137
|
+
const _hoisted_27 = {
|
138
|
+
class: "content"
|
139
|
+
};
|
137
140
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
138
141
|
__name: "MultipleVideo",
|
139
142
|
setup(__props) {
|
140
143
|
const selfVideoRef = ref();
|
141
|
-
const remoteUsers = ref([]);
|
142
144
|
const {
|
143
145
|
state,
|
144
146
|
sendMessage,
|
145
|
-
trtc,
|
146
|
-
trtcProxy,
|
147
147
|
voiceClose,
|
148
148
|
isAudio,
|
149
149
|
isCall,
|
150
150
|
startTimer,
|
151
|
-
resetTimer,
|
152
151
|
toggleAudio,
|
153
152
|
messageTypeText,
|
154
153
|
timing,
|
155
154
|
toggleVideo,
|
156
155
|
videocamClose,
|
157
156
|
installEventHandlers,
|
158
|
-
uninstallEventHandlers
|
159
|
-
|
160
|
-
|
157
|
+
uninstallEventHandlers,
|
158
|
+
isConnect,
|
159
|
+
remoteUsers,
|
160
|
+
enterRoom,
|
161
|
+
exitRoom,
|
162
|
+
startLocalMedia,
|
163
|
+
findUser,
|
164
|
+
addOrUpdateUser,
|
165
|
+
removeUser,
|
166
|
+
tryRenderRemoteVideo,
|
167
|
+
stopRemoteVideo,
|
168
|
+
setVideoRef,
|
169
|
+
checkAndRenderAllVideos,
|
170
|
+
MAIN_STREAM_TYPE
|
171
|
+
} = useVideo({
|
172
|
+
isMultiple: true,
|
173
|
+
enableRetry: true
|
174
|
+
});
|
175
|
+
const wrapperRef = ref(null);
|
176
|
+
const handleRef = ref(null);
|
177
|
+
const isMaxSize = ref(true);
|
178
|
+
const miniWrapperRef = ref(null);
|
161
179
|
const callUser = computed(() => isCall.value ? state.userInfo.name : state.currentAVMsg.sendName);
|
162
180
|
const title = computed(() => {
|
163
181
|
if (!isConnect.value)
|
@@ -165,18 +183,58 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
165
183
|
const count = isCall.value ? `\uFF08${remoteUsers.value.length + 1}/${state.currentAVMsg.checkedIds.length + 1}\uFF09` : "";
|
166
184
|
return `${callUser.value}\u53D1\u8D77\u7684${messageTypeText.value}\u4F1A\u8BCA${count} ${timing.value}`;
|
167
185
|
});
|
186
|
+
const {
|
187
|
+
style,
|
188
|
+
changePosition
|
189
|
+
} = useDraggable(wrapperRef, {
|
190
|
+
initialPosition: "center",
|
191
|
+
handle: handleRef
|
192
|
+
});
|
193
|
+
const {
|
194
|
+
style: miniStyle,
|
195
|
+
changePosition: changeMiniPosition
|
196
|
+
} = useDraggable(miniWrapperRef);
|
197
|
+
watch(() => isMaxSize.value, (val) => {
|
198
|
+
if (val) {
|
199
|
+
changePosition("center");
|
200
|
+
} else {
|
201
|
+
changeMiniPosition("top-right");
|
202
|
+
}
|
203
|
+
});
|
204
|
+
watch(() => remoteUsers.value.length, (newLength, oldLength) => {
|
205
|
+
console.log(`Remote users count changed: ${oldLength} -> ${newLength}`);
|
206
|
+
if (newLength > 0 && isConnect.value) {
|
207
|
+
setTimeout(() => {
|
208
|
+
checkAndRenderAllVideos();
|
209
|
+
}, 500);
|
210
|
+
}
|
211
|
+
});
|
168
212
|
function handleAddPerson({
|
169
213
|
checkedIds,
|
170
214
|
checkedOptions
|
171
215
|
}) {
|
172
|
-
|
173
|
-
|
174
|
-
|
216
|
+
if (!(checkedIds == null ? void 0 : checkedIds.length)) {
|
217
|
+
console.warn("No users selected to add");
|
218
|
+
return;
|
219
|
+
}
|
220
|
+
console.log("Adding persons to call:", checkedIds, checkedOptions);
|
221
|
+
try {
|
222
|
+
state.currentAVMsg.checkedIds.push(...checkedIds);
|
223
|
+
if (isConnect.value) {
|
224
|
+
sendInvitations(checkedIds);
|
225
|
+
} else {
|
226
|
+
handleCall();
|
227
|
+
}
|
228
|
+
} catch (error) {
|
229
|
+
console.error("Error adding persons to call:", error);
|
230
|
+
$message.error("\u6DFB\u52A0\u53C2\u4F1A\u4EBA\u5931\u8D25");
|
231
|
+
}
|
175
232
|
}
|
176
|
-
function
|
177
|
-
|
178
|
-
|
179
|
-
|
233
|
+
function sendInvitations(userIds) {
|
234
|
+
if (!(userIds == null ? void 0 : userIds.length))
|
235
|
+
return;
|
236
|
+
userIds.forEach((id) => {
|
237
|
+
try {
|
180
238
|
sendMessage({
|
181
239
|
chatType: CHAT_TYPE.SINGLE,
|
182
240
|
content: {
|
@@ -185,154 +243,279 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
185
243
|
},
|
186
244
|
receiver: id
|
187
245
|
});
|
188
|
-
})
|
189
|
-
|
190
|
-
|
246
|
+
} catch (error) {
|
247
|
+
console.error("Failed to send invitation to user:", id, error);
|
248
|
+
}
|
249
|
+
});
|
250
|
+
}
|
251
|
+
function handleCall() {
|
252
|
+
var _a;
|
253
|
+
if (isConnect.value) {
|
254
|
+
console.log("Already connected to call");
|
191
255
|
return;
|
192
|
-
|
256
|
+
}
|
257
|
+
try {
|
258
|
+
if ((_a = state.currentAVMsg.checkedIds) == null ? void 0 : _a.length) {
|
259
|
+
sendInvitations(state.currentAVMsg.checkedIds);
|
260
|
+
}
|
261
|
+
handleEnter();
|
262
|
+
} catch (error) {
|
263
|
+
console.error("Error starting call:", error);
|
264
|
+
$message.error("\u5F00\u59CB\u901A\u8BDD\u5931\u8D25");
|
265
|
+
}
|
193
266
|
}
|
194
267
|
async function handleEnter() {
|
195
|
-
const
|
196
|
-
if (!
|
197
|
-
console.log("checkResult :>> ", checkResult);
|
268
|
+
const success = await enterRoom();
|
269
|
+
if (!success) {
|
198
270
|
state.showMultipleVideo = false;
|
199
271
|
return;
|
200
272
|
}
|
201
273
|
try {
|
202
|
-
await trtc.enterRoom({
|
203
|
-
strRoomId: state.currentAVMsg.strRoomId,
|
204
|
-
sdkAppId: parseInt(state.userInfo.sdkAppID),
|
205
|
-
userId: state.userInfo.id,
|
206
|
-
userSig: state.userInfo.userSig,
|
207
|
-
proxy: trtcProxy.value
|
208
|
-
});
|
209
|
-
isConnect.value = true;
|
210
274
|
startTimer();
|
211
275
|
installEventHandlers({
|
212
276
|
handleError,
|
213
277
|
handleRemoteUserEnter,
|
214
278
|
handleRemoteAudioAvailable,
|
215
279
|
handleRemoteUserExit,
|
216
|
-
handleRemoteVideoAvailable
|
217
|
-
|
218
|
-
await trtc.startLocalAudio({
|
219
|
-
mute: voiceClose.value
|
220
|
-
});
|
221
|
-
if (isAudio.value)
|
222
|
-
return;
|
223
|
-
await trtc.startLocalVideo({
|
224
|
-
view: selfVideoRef.value,
|
225
|
-
mute: videocamClose.value
|
280
|
+
handleRemoteVideoAvailable,
|
281
|
+
handleRemoteVideoUnavailable
|
226
282
|
});
|
283
|
+
await startLocalMedia(selfVideoRef.value);
|
284
|
+
console.log("Successfully set up multiple video call");
|
285
|
+
setTimeout(() => {
|
286
|
+
checkAndRenderAllVideos();
|
287
|
+
}, 1e3);
|
288
|
+
periodicCheckInterval = setInterval(() => {
|
289
|
+
if (isConnect.value && remoteUsers.value.length > 0) {
|
290
|
+
console.log("Periodic video check, current users:", remoteUsers.value.map((u) => `${u.id}(video:${u.hasVideo})`));
|
291
|
+
checkAndRenderAllVideos();
|
292
|
+
} else if (!isConnect.value) {
|
293
|
+
console.log("Not connected, clearing check interval");
|
294
|
+
if (periodicCheckInterval) {
|
295
|
+
clearInterval(periodicCheckInterval);
|
296
|
+
periodicCheckInterval = null;
|
297
|
+
}
|
298
|
+
}
|
299
|
+
}, 5e3);
|
227
300
|
} catch (error) {
|
228
|
-
console.
|
229
|
-
$message.error(error);
|
230
|
-
state.showMultipleVideo = false;
|
301
|
+
console.error("Error setting up multiple video call:", error);
|
231
302
|
}
|
232
303
|
}
|
233
304
|
async function handleExit() {
|
234
305
|
try {
|
235
306
|
state.showMultipleVideo = false;
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
await trtc.stopLocalVideo();
|
307
|
+
if (isConnect.value) {
|
308
|
+
uninstallEventHandlers({
|
309
|
+
handleError,
|
310
|
+
handleRemoteUserEnter,
|
311
|
+
handleRemoteAudioAvailable,
|
312
|
+
handleRemoteUserExit,
|
313
|
+
handleRemoteVideoAvailable,
|
314
|
+
handleRemoteVideoUnavailable
|
315
|
+
});
|
316
|
+
}
|
317
|
+
await exitRoom();
|
248
318
|
} catch (error) {
|
249
|
-
console.
|
319
|
+
console.error("Error during exit:", error);
|
250
320
|
}
|
251
321
|
}
|
252
322
|
async function handleRemoteVideoAvailable(event) {
|
253
323
|
const {
|
254
324
|
userId,
|
255
|
-
streamType
|
325
|
+
streamType,
|
326
|
+
available
|
256
327
|
} = event;
|
328
|
+
if (!userId) {
|
329
|
+
return;
|
330
|
+
}
|
331
|
+
const isMainStream = !streamType || streamType === MAIN_STREAM_TYPE;
|
332
|
+
if (!isMainStream) {
|
333
|
+
return;
|
334
|
+
}
|
257
335
|
try {
|
258
|
-
|
336
|
+
console.log(`Remote video ${available ? "available" : "unavailable"} for user:`, userId);
|
337
|
+
let user = findUser(userId);
|
338
|
+
if (!user) {
|
339
|
+
const name = await getUserName(userId);
|
340
|
+
addOrUpdateUser(userId, {
|
341
|
+
name,
|
342
|
+
hasVideo: true
|
343
|
+
});
|
344
|
+
console.log("Added user from video available event:", userId, name);
|
259
345
|
await nextTick();
|
260
|
-
|
261
|
-
userId
|
262
|
-
|
263
|
-
|
346
|
+
setTimeout(() => {
|
347
|
+
tryRenderRemoteVideo(userId);
|
348
|
+
}, 100);
|
349
|
+
} else {
|
350
|
+
addOrUpdateUser(userId, {
|
351
|
+
hasVideo: true
|
264
352
|
});
|
353
|
+
await nextTick();
|
354
|
+
await tryRenderRemoteVideo(userId);
|
265
355
|
}
|
266
356
|
} catch (error) {
|
267
|
-
console.
|
357
|
+
console.error("Error handling remote video available:", error);
|
268
358
|
}
|
269
359
|
}
|
360
|
+
async function handleRemoteVideoUnavailable(event) {
|
361
|
+
const {
|
362
|
+
userId,
|
363
|
+
streamType,
|
364
|
+
available
|
365
|
+
} = event;
|
366
|
+
addOrUpdateUser(userId, {
|
367
|
+
hasVideo: false
|
368
|
+
});
|
369
|
+
await stopRemoteVideo(userId);
|
370
|
+
}
|
270
371
|
async function handleRemoteAudioAvailable(event) {
|
271
|
-
var _a;
|
272
372
|
const {
|
273
|
-
userId
|
373
|
+
userId,
|
374
|
+
available
|
274
375
|
} = event;
|
275
|
-
if (
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
376
|
+
if (!userId)
|
377
|
+
return;
|
378
|
+
try {
|
379
|
+
console.log(`Remote audio ${available ? "available" : "unavailable"} for user:`, userId);
|
380
|
+
let user = findUser(userId);
|
381
|
+
if (!user && available) {
|
382
|
+
const name = await getUserName(userId);
|
383
|
+
addOrUpdateUser(userId, {
|
384
|
+
name,
|
385
|
+
hasAudio: true
|
386
|
+
});
|
387
|
+
console.log("Added user from audio available event:", userId, name);
|
388
|
+
} else {
|
389
|
+
addOrUpdateUser(userId, {
|
390
|
+
hasAudio: available
|
391
|
+
});
|
392
|
+
}
|
393
|
+
} catch (error) {
|
394
|
+
console.error("Error handling remote audio available:", error);
|
281
395
|
}
|
282
396
|
}
|
283
397
|
async function handleRemoteUserEnter(event) {
|
284
398
|
const {
|
285
399
|
userId
|
286
400
|
} = event;
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
401
|
+
if (!userId)
|
402
|
+
return;
|
403
|
+
try {
|
404
|
+
console.log("\u76D1\u542C\u5230\u8FDC\u7A0B\u7528\u6237\u8FDB\u623F\u95F4\u4E86\u300B\u300B\u300B\u300B\u300B", userId);
|
405
|
+
if (!findUser(userId)) {
|
406
|
+
const name = await getUserName(userId);
|
407
|
+
addOrUpdateUser(userId, {
|
408
|
+
name
|
409
|
+
});
|
410
|
+
console.log("Remote user entered:", userId, name);
|
411
|
+
await nextTick();
|
412
|
+
setTimeout(() => {
|
413
|
+
const user = findUser(userId);
|
414
|
+
if (user == null ? void 0 : user.hasVideo) {
|
415
|
+
console.log("User already has video stream, attempting to render");
|
416
|
+
tryRenderRemoteVideo(userId);
|
417
|
+
}
|
418
|
+
}, 100);
|
419
|
+
}
|
420
|
+
} catch (error) {
|
421
|
+
console.error("Error handling remote user enter:", error);
|
422
|
+
}
|
293
423
|
}
|
294
424
|
async function getUserName(userId) {
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
425
|
+
try {
|
426
|
+
const data = await getUserDetailApi({
|
427
|
+
userId
|
428
|
+
});
|
429
|
+
return (data == null ? void 0 : data.name) || userId;
|
430
|
+
} catch (error) {
|
431
|
+
console.warn("Failed to get user name for:", userId, error);
|
432
|
+
return userId;
|
433
|
+
}
|
299
434
|
}
|
300
435
|
function handleRemoteUserExit(event) {
|
301
|
-
console.log("event :>> \u9000\u623F", event);
|
302
436
|
const {
|
303
437
|
userId
|
304
438
|
} = event;
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
439
|
+
if (!userId)
|
440
|
+
return;
|
441
|
+
console.log("Remote user exited:", userId);
|
442
|
+
try {
|
443
|
+
removeUser(userId);
|
444
|
+
console.log("Cleaned up resources for user:", userId);
|
445
|
+
setTimeout(() => {
|
446
|
+
const user = findUser(userId);
|
447
|
+
if (user) {
|
448
|
+
console.warn("User still exists after removal, force removing:", userId);
|
449
|
+
const userIndex = remoteUsers.value.findIndex((u) => u.id === userId);
|
450
|
+
if (userIndex !== -1) {
|
451
|
+
remoteUsers.value.splice(userIndex, 1);
|
452
|
+
}
|
453
|
+
}
|
454
|
+
}, 100);
|
455
|
+
} catch (error) {
|
456
|
+
console.error("Error handling remote user exit:", error);
|
457
|
+
}
|
309
458
|
}
|
310
459
|
function handleError(error) {
|
311
|
-
console.
|
460
|
+
console.error("TRTC error occurred:", error);
|
461
|
+
if (error.code) {
|
462
|
+
switch (error.code) {
|
463
|
+
case -3301:
|
464
|
+
$message.error("\u8FDB\u5165\u623F\u95F4\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5");
|
465
|
+
break;
|
466
|
+
case -3302:
|
467
|
+
$message.error("\u7F51\u7EDC\u8FDE\u63A5\u65AD\u5F00\uFF0C\u6B63\u5728\u5C1D\u8BD5\u91CD\u8FDE...");
|
468
|
+
break;
|
469
|
+
default:
|
470
|
+
$message.error(`\u901A\u8BDD\u51FA\u73B0\u9519\u8BEF: ${error.message || "\u672A\u77E5\u9519\u8BEF"}`);
|
471
|
+
}
|
472
|
+
} else {
|
473
|
+
$message.error("\u901A\u8BDD\u51FA\u73B0\u672A\u77E5\u9519\u8BEF");
|
474
|
+
}
|
312
475
|
state.showMultipleVideo = false;
|
313
476
|
}
|
314
|
-
|
315
|
-
|
477
|
+
let periodicCheckInterval = null;
|
478
|
+
onBeforeUnmount(async () => {
|
479
|
+
console.log("Component unmounting, cleaning up...");
|
480
|
+
if (periodicCheckInterval) {
|
481
|
+
clearInterval(periodicCheckInterval);
|
482
|
+
periodicCheckInterval = null;
|
483
|
+
}
|
484
|
+
await handleExit();
|
316
485
|
});
|
317
486
|
return (_ctx, _cache) => {
|
318
|
-
return openBlock(), createElementBlock(
|
487
|
+
return openBlock(), createElementBlock(Fragment, null, [withDirectives(createElementVNode("div", {
|
488
|
+
class: "video-wrapper video-wrapper--multiple",
|
489
|
+
ref_key: "wrapperRef",
|
490
|
+
ref: wrapperRef,
|
491
|
+
style: normalizeStyle(unref(style))
|
492
|
+
}, [createElementVNode("div", {
|
493
|
+
class: "video-header",
|
494
|
+
ref_key: "handleRef",
|
495
|
+
ref: handleRef
|
496
|
+
}, [withDirectives(createElementVNode("span", {
|
319
497
|
class: "title"
|
320
|
-
}, toDisplayString(unref(title)), 513), [[vShow, isConnect
|
498
|
+
}, toDisplayString(unref(title)), 513), [[vShow, unref(isConnect)]]), createElementVNode("div", _hoisted_1, [createVNode(unref(NButton), {
|
321
499
|
quaternary: "",
|
322
|
-
|
500
|
+
size: "tiny",
|
501
|
+
class: "custom-btn",
|
502
|
+
onClick: _cache[0] || (_cache[0] = () => isMaxSize.value = false)
|
503
|
+
}), createVNode(unref(NButton), {
|
504
|
+
text: "",
|
323
505
|
color: "#ffffffcc",
|
324
506
|
onClick: handleExit
|
325
507
|
}, {
|
326
|
-
|
508
|
+
default: withCtx(() => [createVNode(unref(NIcon), {
|
509
|
+
size: "18",
|
327
510
|
component: unref(Close)
|
328
511
|
}, null, 8, ["component"])]),
|
329
512
|
_: 1
|
330
|
-
})]), isConnect
|
513
|
+
})])], 512), unref(isConnect) ? (openBlock(), createElementBlock("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createElementVNode("div", {
|
331
514
|
ref_key: "selfVideoRef",
|
332
515
|
ref: selfVideoRef,
|
333
516
|
class: "video-view",
|
334
517
|
"data-name": unref(state).userInfo.name
|
335
|
-
}, null, 8,
|
518
|
+
}, null, 8, _hoisted_4), createElementVNode("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [createElementVNode("div", _hoisted_7, [createVNode(unref(NButton), {
|
336
519
|
text: "",
|
337
520
|
color: !unref(voiceClose) ? "#fff" : "#000",
|
338
521
|
onClick: unref(toggleAudio)
|
@@ -341,7 +524,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
341
524
|
component: !unref(voiceClose) ? unref(Mic) : unref(MicOff)
|
342
525
|
}, null, 8, ["component"])]),
|
343
526
|
_: 1
|
344
|
-
}, 8, ["color", "onClick"]),
|
527
|
+
}, 8, ["color", "onClick"]), _hoisted_8]), createElementVNode("div", _hoisted_9, [createVNode(unref(NButton), {
|
345
528
|
text: "",
|
346
529
|
color: !unref(videocamClose) ? "#fff" : "#000",
|
347
530
|
disabled: unref(isAudio),
|
@@ -351,7 +534,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
351
534
|
component: !unref(videocamClose) ? unref(Videocam) : unref(VideocamOff)
|
352
535
|
}, null, 8, ["component"])]),
|
353
536
|
_: 1
|
354
|
-
}, 8, ["color", "disabled", "onClick"]),
|
537
|
+
}, 8, ["color", "disabled", "onClick"]), _hoisted_10]), createElementVNode("div", {
|
355
538
|
class: "btn",
|
356
539
|
onClick: handleExit
|
357
540
|
}, [createVNode(unref(NButton), {
|
@@ -363,11 +546,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
363
546
|
component: unref(Call)
|
364
547
|
}, null, 8, ["component"])]),
|
365
548
|
_: 1
|
366
|
-
}),
|
549
|
+
}), _hoisted_11]), createVNode(ChatAdd, {
|
367
550
|
onComfirm: handleAddPerson,
|
368
551
|
disabledIds: unref(state).currentAVMsg.checkedIds
|
369
552
|
}, {
|
370
|
-
trigger: withCtx(() => [createElementVNode("div",
|
553
|
+
trigger: withCtx(() => [createElementVNode("div", _hoisted_12, [createVNode(unref(NButton), {
|
371
554
|
text: "",
|
372
555
|
color: "#fff"
|
373
556
|
}, {
|
@@ -375,18 +558,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
375
558
|
component: unref(PersonAdd)
|
376
559
|
}, null, 8, ["component"])]),
|
377
560
|
_: 1
|
378
|
-
}),
|
561
|
+
}), _hoisted_13])]),
|
379
562
|
_: 1
|
380
|
-
}, 8, ["disabledIds"])])])]), createElementVNode("div",
|
563
|
+
}, 8, ["disabledIds"])])])]), createElementVNode("div", _hoisted_14, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(remoteUsers), (user) => {
|
381
564
|
return openBlock(), createElementBlock("div", {
|
382
565
|
key: user.id,
|
383
566
|
id: user.id,
|
384
567
|
class: "video-view",
|
385
|
-
"data-name": user.name
|
386
|
-
|
568
|
+
"data-name": user.name,
|
569
|
+
ref_for: true,
|
570
|
+
ref: (el) => unref(setVideoRef)(user.id, el)
|
571
|
+
}, null, 8, _hoisted_15);
|
387
572
|
}), 128))])])) : (openBlock(), createElementBlock(Fragment, {
|
388
573
|
key: 1
|
389
|
-
}, [createElementVNode("div",
|
574
|
+
}, [createElementVNode("div", _hoisted_16, [createElementVNode("span", _hoisted_17, toDisplayString(unref(callUser)) + function() {
|
390
575
|
var _a, _b, _c;
|
391
576
|
try {
|
392
577
|
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.108")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.108")) || "\u53D1\u8D77\u7684";
|
@@ -400,7 +585,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
400
585
|
} catch (e) {
|
401
586
|
return "\u4F1A\u8BAE";
|
402
587
|
}
|
403
|
-
}(), 1), !unref(isCall) ? (openBlock(), createElementBlock("span",
|
588
|
+
}(), 1), !unref(isCall) ? (openBlock(), createElementBlock("span", _hoisted_18, function() {
|
404
589
|
var _a, _b, _c;
|
405
590
|
try {
|
406
591
|
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.110")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.110")) || "\u9080\u8BF7\u4F60\u52A0\u5165";
|
@@ -414,7 +599,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
414
599
|
} catch (e) {
|
415
600
|
return "\u4F1A\u8BAE";
|
416
601
|
}
|
417
|
-
}(), 1)) : createCommentVNode("v-if", true)]), unref(isCall) ? (openBlock(), createElementBlock("div",
|
602
|
+
}(), 1)) : createCommentVNode("v-if", true)]), unref(isCall) ? (openBlock(), createElementBlock("div", _hoisted_19, [createVNode(ChatAdd, {
|
418
603
|
onComfirm: handleAddPerson,
|
419
604
|
disabledIds: unref(state).currentAVMsg.checkedIds
|
420
605
|
}, {
|
@@ -459,10 +644,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
459
644
|
}
|
460
645
|
}())]),
|
461
646
|
_: 1
|
462
|
-
}), createElementVNode("div",
|
647
|
+
}), createElementVNode("div", _hoisted_20, [createVNode(unref(NButton), {
|
463
648
|
color: "#000",
|
464
649
|
round: "",
|
465
|
-
onClick: _cache[
|
650
|
+
onClick: _cache[1] || (_cache[1] = ($event) => voiceClose.value = !unref(voiceClose))
|
466
651
|
}, {
|
467
652
|
icon: withCtx(() => [createVNode(unref(NIcon), {
|
468
653
|
component: unref(voiceClose) ? unref(MicOff) : unref(Mic)
|
@@ -471,25 +656,25 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
471
656
|
}), createVNode(unref(NButton), {
|
472
657
|
color: "#000",
|
473
658
|
round: "",
|
474
|
-
onClick: _cache[
|
659
|
+
onClick: _cache[2] || (_cache[2] = ($event) => videocamClose.value = !unref(videocamClose)),
|
475
660
|
disabled: unref(isAudio)
|
476
661
|
}, {
|
477
662
|
icon: withCtx(() => [createVNode(unref(NIcon), {
|
478
663
|
component: unref(videocamClose) ? unref(VideocamOff) : unref(Videocam)
|
479
664
|
}, null, 8, ["component"])]),
|
480
665
|
_: 1
|
481
|
-
}, 8, ["disabled"])])])) : (openBlock(), createElementBlock("div",
|
666
|
+
}, 8, ["disabled"])])])) : (openBlock(), createElementBlock("div", _hoisted_21, [createElementVNode("div", _hoisted_22, [createVNode(unref(NButton), {
|
482
667
|
circle: "",
|
483
668
|
color: "#f17568",
|
484
669
|
class: "btn--rotate",
|
485
|
-
onClick: _cache[
|
670
|
+
onClick: _cache[3] || (_cache[3] = () => unref(state).showMultipleVideo = false)
|
486
671
|
}, {
|
487
672
|
icon: withCtx(() => [createVNode(unref(NIcon), {
|
488
673
|
size: "30",
|
489
674
|
component: unref(Call)
|
490
675
|
}, null, 8, ["component"])]),
|
491
676
|
_: 1
|
492
|
-
}),
|
677
|
+
}), _hoisted_23]), createElementVNode("div", _hoisted_24, [createVNode(unref(NButton), {
|
493
678
|
circle: "",
|
494
679
|
color: "#2ac98b",
|
495
680
|
onClick: handleEnter
|
@@ -499,7 +684,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
499
684
|
component: unref(Call)
|
500
685
|
}, null, 8, ["component"])]),
|
501
686
|
_: 1
|
502
|
-
}),
|
687
|
+
}), _hoisted_25])]))], 64))], 4), [[vShow, isMaxSize.value]]), withDirectives(createElementVNode("div", {
|
688
|
+
class: "video-wrapper video-wrapper--mini",
|
689
|
+
ref_key: "miniWrapperRef",
|
690
|
+
ref: miniWrapperRef,
|
691
|
+
style: normalizeStyle(unref(miniStyle))
|
692
|
+
}, [createElementVNode("div", _hoisted_26, [createVNode(unref(NButton), {
|
693
|
+
text: "",
|
694
|
+
color: "#ffffffcc",
|
695
|
+
onClick: _cache[4] || (_cache[4] = () => isMaxSize.value = true)
|
696
|
+
}, {
|
697
|
+
default: withCtx(() => [createVNode(unref(NIcon), {
|
698
|
+
size: "18",
|
699
|
+
component: unref(ResizeOutline)
|
700
|
+
}, null, 8, ["component"])]),
|
701
|
+
_: 1
|
702
|
+
})]), createElementVNode("div", _hoisted_27, [createVNode(unref(NAvatar), {
|
703
|
+
round: "",
|
704
|
+
size: 48,
|
705
|
+
src: unref(state).userInfo.avatar
|
706
|
+
}, null, 8, ["src"])])], 4), [[vShow, !isMaxSize.value]])], 64);
|
503
707
|
};
|
504
708
|
}
|
505
709
|
});
|