cnhis-design-vue 3.3.3-release.0 → 3.3.3-release.13
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 +47 -12
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- 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 +69 -3
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +69 -3
- package/es/components/button-print/src/ButtonPrint.vue2.js +12 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +29 -4
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +121 -16
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +18 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +17 -3
- package/es/components/button-print/src/utils/print.d.ts +6 -4
- package/es/components/button-print/src/utils/print.js +201 -27
- package/es/components/button-print/style/index.css +1 -1
- 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 +56 -6
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +56 -6
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +56 -6
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +56 -6
- 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/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 +6 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +6 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +38 -1
- 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 +2 -1
- 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/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 +2 -1
- 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/iho-chat/index.d.ts +901 -98
- package/es/components/iho-chat/src/Index.vue.d.ts +901 -98
- 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 +349 -143
- 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 +422 -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/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -0
- package/es/components/index.js +1 -0
- 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 +8 -0
- package/es/components/keyboard/src/Keyboard.vue.d.ts +8 -0
- package/es/components/keyboard/src/Keyboard.vue2.js +33 -9
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +3 -0
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +27 -7
- 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 +80 -17
- package/es/components/scale-view/src/ScaleView.vue.d.ts +83 -19
- package/es/components/scale-view/src/ScaleView.vue2.js +84 -10
- 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 +10 -7
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +28 -4
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +10 -7
- package/es/components/scale-view/src/components/EvaluatePage.vue2.js +29 -8
- 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 +47 -4
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +20 -2
- package/es/components/scale-view/src/components/formitem/r-radio.js +2 -0
- 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 +22 -6
- 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/scale-view/style/index.css +1 -1
- package/es/components/select-person/index.d.ts +792 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +434 -341
- package/es/components/select-person/src/SelectPerson.vue2.js +521 -675
- package/es/components/select-person/src/SelectPersonRole.vue.d.ts +630 -0
- package/es/components/select-person/src/SelectPersonRole.vue.js +6 -0
- package/es/components/select-person/src/SelectPersonRole.vue2.js +942 -0
- 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 +29 -8
- 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/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 +54 -6
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +26 -10
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +17 -2
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +37 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +18 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +44 -1
- 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 +36 -4
- 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 +55 -6
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +6 -3
- package/es/components/table-filter/src/components/render-widget/components/DateInner.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 +1 -1
- 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 +2 -2
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +32 -4
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +2 -2
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +20 -3
- 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 +1 -0
- package/es/components/table-filter/src/types/enums.js +2 -1
- 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/useLevelSearchCascader.js +3 -3
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.js +1 -1
- package/package.json +4 -3
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AnyObject } from '../../../shared/types';
|
1
2
|
declare const _default: import("vue").DefineComponent<{
|
2
3
|
guageData: {
|
3
4
|
type: ObjectConstructor;
|
@@ -90,6 +91,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
90
91
|
type: FunctionConstructor;
|
91
92
|
default: () => Promise<{}>;
|
92
93
|
};
|
94
|
+
chunkUploadApiConfig: {
|
95
|
+
type: ObjectConstructor;
|
96
|
+
default: () => {};
|
97
|
+
};
|
93
98
|
fontSizeObj: {
|
94
99
|
type: ObjectConstructor;
|
95
100
|
default: () => {
|
@@ -119,7 +124,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
119
124
|
type: ObjectConstructor;
|
120
125
|
default: () => {};
|
121
126
|
};
|
127
|
+
closeConfirm: {
|
128
|
+
type: BooleanConstructor;
|
129
|
+
default: boolean;
|
130
|
+
};
|
131
|
+
closeConfirmText: {
|
132
|
+
type: StringConstructor;
|
133
|
+
default: string;
|
134
|
+
};
|
122
135
|
}, {
|
136
|
+
dialog: import("naive-ui").DialogApi;
|
123
137
|
ScaleViewState: {
|
124
138
|
other: string;
|
125
139
|
form: {};
|
@@ -245,6 +259,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
245
259
|
type: FunctionConstructor;
|
246
260
|
default: () => Promise<{}>;
|
247
261
|
};
|
262
|
+
chunkUploadApiConfig: {
|
263
|
+
type: ObjectConstructor;
|
264
|
+
default: () => {};
|
265
|
+
};
|
248
266
|
fontSizeObj: {
|
249
267
|
type: ObjectConstructor;
|
250
268
|
default: () => {
|
@@ -274,6 +292,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
274
292
|
type: ObjectConstructor;
|
275
293
|
default: () => {};
|
276
294
|
};
|
295
|
+
closeConfirm: {
|
296
|
+
type: BooleanConstructor;
|
297
|
+
default: boolean;
|
298
|
+
};
|
299
|
+
closeConfirmText: {
|
300
|
+
type: StringConstructor;
|
301
|
+
default: string;
|
302
|
+
};
|
277
303
|
}>> & {
|
278
304
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
279
305
|
onSubmitNoRequest?: ((...args: any[]) => any) | undefined;
|
@@ -281,6 +307,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
281
307
|
onStartWriteScale?: ((...args: any[]) => any) | undefined;
|
282
308
|
}>>;
|
283
309
|
state: any;
|
310
|
+
formChecker: {
|
311
|
+
setInitialSnapshot: (formData: Record<string, any>) => void;
|
312
|
+
checkFormChange: (newFormData?: Record<string, any> | null) => boolean;
|
313
|
+
getInitialSnapshot: () => Record<string, any> | null;
|
314
|
+
getFormDiff: (newFormData?: Record<string, any> | null) => Record<string, {
|
315
|
+
old: any;
|
316
|
+
new: any;
|
317
|
+
}> | null;
|
318
|
+
};
|
284
319
|
emit: (event: "onCloseSetting" | "submitNoRequest" | "onSubmit" | "startWriteScale", ...args: any[]) => void;
|
285
320
|
scaleViewDom: any;
|
286
321
|
countdownDom: any;
|
@@ -341,8 +376,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
341
376
|
desStart: import("vue").ComputedRef<boolean>;
|
342
377
|
desEnd: import("vue").ComputedRef<boolean>;
|
343
378
|
desContent: import("vue").ComputedRef<any>;
|
344
|
-
initForm: (data:
|
345
|
-
batchInjectForm: (data:
|
379
|
+
initForm: (data: AnyObject) => Promise<void> | undefined;
|
380
|
+
batchInjectForm: (data: AnyObject, skipValid?: boolean) => Promise<boolean>;
|
346
381
|
submitMethod: () => {
|
347
382
|
params: any;
|
348
383
|
hasCallbackItem: any;
|
@@ -350,7 +385,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
350
385
|
};
|
351
386
|
onSubmitData: () => void;
|
352
387
|
onSubmitForm: () => Promise<unknown>;
|
353
|
-
handleScoreJson: () =>
|
388
|
+
handleScoreJson: () => AnyObject;
|
354
389
|
nextLogicEvent: (choiceValue: any, formItem: any, formArray?: any[], isInit?: boolean | undefined) => void;
|
355
390
|
handleDynamicDataRelation: (list: any[], formItem: any, formArray: any[]) => void;
|
356
391
|
scaleChange: (val: any, item: any, config?: any) => void;
|
@@ -362,8 +397,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
362
397
|
handleQuery: () => void;
|
363
398
|
init: (configData: any) => Promise<void>;
|
364
399
|
onSubmitDataDebounce: (this: unknown, ...args: any[]) => any;
|
365
|
-
|
400
|
+
getFormChanged: () => boolean;
|
401
|
+
beforeCloseFn: () => Promise<unknown>;
|
402
|
+
cancel: () => Promise<void>;
|
366
403
|
getScaleData: () => any;
|
404
|
+
batchInjectFormNew: (data: AnyObject, skipValid?: boolean) => Promise<void>;
|
367
405
|
isCollection: (e: string) => boolean;
|
368
406
|
NoData: import("vue").DefineComponent<{
|
369
407
|
noDataTip: {
|
@@ -419,8 +457,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
419
457
|
default: () => never[];
|
420
458
|
};
|
421
459
|
evaluateResultConfig: {
|
422
|
-
type:
|
423
|
-
default: () =>
|
460
|
+
type: ArrayConstructor;
|
461
|
+
default: () => never[];
|
424
462
|
};
|
425
463
|
evaluateResultSetting: {
|
426
464
|
type: ObjectConstructor;
|
@@ -456,6 +494,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
456
494
|
vDrag: {
|
457
495
|
beforeMount(el: any, binding: any): void;
|
458
496
|
};
|
497
|
+
str1: string;
|
498
|
+
str2: string;
|
499
|
+
str3: string;
|
459
500
|
state: {
|
460
501
|
source: string;
|
461
502
|
setAnswered: number;
|
@@ -477,8 +518,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
477
518
|
default: () => never[];
|
478
519
|
};
|
479
520
|
evaluateResultConfig: {
|
480
|
-
type:
|
481
|
-
default: () =>
|
521
|
+
type: ArrayConstructor;
|
522
|
+
default: () => never[];
|
482
523
|
};
|
483
524
|
evaluateResultSetting: {
|
484
525
|
type: ObjectConstructor;
|
@@ -552,8 +593,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
552
593
|
default: () => never[];
|
553
594
|
};
|
554
595
|
evaluateResultConfig: {
|
555
|
-
type:
|
556
|
-
default: () =>
|
596
|
+
type: ArrayConstructor;
|
597
|
+
default: () => never[];
|
557
598
|
};
|
558
599
|
evaluateResultSetting: {
|
559
600
|
type: ObjectConstructor;
|
@@ -590,7 +631,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
590
631
|
}, {
|
591
632
|
isEvaluetaResSituation: boolean;
|
592
633
|
formArray: unknown[];
|
593
|
-
evaluateResultConfig:
|
634
|
+
evaluateResultConfig: unknown[];
|
594
635
|
evaluateResultSetting: Record<string, any>;
|
595
636
|
form: Record<string, any>;
|
596
637
|
currentTime: number;
|
@@ -605,8 +646,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
605
646
|
default: () => never[];
|
606
647
|
};
|
607
648
|
evaluateResultConfig: {
|
608
|
-
type:
|
609
|
-
default: () =>
|
649
|
+
type: ArrayConstructor;
|
650
|
+
default: () => never[];
|
610
651
|
};
|
611
652
|
evaluateResultSetting: {
|
612
653
|
type: ObjectConstructor;
|
@@ -621,6 +662,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
621
662
|
default: number;
|
622
663
|
};
|
623
664
|
}, {
|
665
|
+
str1: string;
|
666
|
+
str2: string;
|
667
|
+
str3: string;
|
624
668
|
state: {
|
625
669
|
source: string;
|
626
670
|
timer: null;
|
@@ -634,8 +678,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
634
678
|
default: () => never[];
|
635
679
|
};
|
636
680
|
evaluateResultConfig: {
|
637
|
-
type:
|
638
|
-
default: () =>
|
681
|
+
type: ArrayConstructor;
|
682
|
+
default: () => never[];
|
639
683
|
};
|
640
684
|
evaluateResultSetting: {
|
641
685
|
type: ObjectConstructor;
|
@@ -683,8 +727,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
683
727
|
default: () => never[];
|
684
728
|
};
|
685
729
|
evaluateResultConfig: {
|
686
|
-
type:
|
687
|
-
default: () =>
|
730
|
+
type: ArrayConstructor;
|
731
|
+
default: () => never[];
|
688
732
|
};
|
689
733
|
evaluateResultSetting: {
|
690
734
|
type: ObjectConstructor;
|
@@ -703,7 +747,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
703
747
|
onWriteGuage?: ((...args: any[]) => any) | undefined;
|
704
748
|
}, {
|
705
749
|
formArray: unknown[];
|
706
|
-
evaluateResultConfig:
|
750
|
+
evaluateResultConfig: unknown[];
|
707
751
|
evaluateResultSetting: Record<string, any>;
|
708
752
|
isFinished: boolean;
|
709
753
|
maxScore: number;
|
@@ -714,6 +758,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
714
758
|
default: () => {};
|
715
759
|
};
|
716
760
|
}, {
|
761
|
+
str1: string;
|
762
|
+
str2: string;
|
763
|
+
str3: string;
|
764
|
+
str4: string;
|
717
765
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
718
766
|
item: {
|
719
767
|
type: ObjectConstructor;
|
@@ -727,6 +775,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
727
775
|
scoreText: import("vue").ComputedRef<"" | "部分">;
|
728
776
|
correctAnswer: import("vue").ComputedRef<any>;
|
729
777
|
answerKeyText: import("vue").ComputedRef<any>;
|
778
|
+
answerStr: import("vue").ComputedRef<string>;
|
730
779
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
731
780
|
item: {
|
732
781
|
type: ObjectConstructor;
|
@@ -754,8 +803,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
754
803
|
default: number;
|
755
804
|
};
|
756
805
|
}>> & {}, {
|
757
|
-
maxScore: number;
|
758
806
|
config: Record<string, any>;
|
807
|
+
maxScore: number;
|
759
808
|
}>;
|
760
809
|
DescribeContent: import("vue").DefineComponent<{
|
761
810
|
content: {
|
@@ -872,6 +921,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
872
921
|
type: FunctionConstructor;
|
873
922
|
default: () => Promise<{}>;
|
874
923
|
};
|
924
|
+
chunkUploadApiConfig: {
|
925
|
+
type: ObjectConstructor;
|
926
|
+
default: () => {};
|
927
|
+
};
|
875
928
|
fontSizeObj: {
|
876
929
|
type: ObjectConstructor;
|
877
930
|
default: () => {
|
@@ -901,6 +954,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
901
954
|
type: ObjectConstructor;
|
902
955
|
default: () => {};
|
903
956
|
};
|
957
|
+
closeConfirm: {
|
958
|
+
type: BooleanConstructor;
|
959
|
+
default: boolean;
|
960
|
+
};
|
961
|
+
closeConfirmText: {
|
962
|
+
type: StringConstructor;
|
963
|
+
default: string;
|
964
|
+
};
|
904
965
|
}>> & {
|
905
966
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
906
967
|
onSubmitNoRequest?: ((...args: any[]) => any) | undefined;
|
@@ -928,11 +989,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
928
989
|
uploadFileUrl: string;
|
929
990
|
ak: string;
|
930
991
|
getChunkUploadConfig: Function;
|
992
|
+
chunkUploadApiConfig: Record<string, any>;
|
931
993
|
fontSizeObj: Record<string, any>;
|
932
994
|
hasExtendBtn: boolean;
|
933
995
|
printingHideBtn: boolean;
|
934
996
|
isGeneratePrintPdf: boolean;
|
935
997
|
combinationParmas: Record<string, any>;
|
936
998
|
allQuery: Record<string, any>;
|
999
|
+
closeConfirm: boolean;
|
1000
|
+
closeConfirmText: string;
|
937
1001
|
}>;
|
938
1002
|
export default _default;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, reactive, ref, watch, nextTick, openBlock, createElementBlock, normalizeClass, unref, Fragment, createBlock, mergeProps, createCommentVNode, createElementVNode,
|
1
|
+
import { defineComponent, reactive, ref, watch, nextTick, openBlock, createElementBlock, normalizeClass, unref, Fragment, createBlock, mergeProps, createCommentVNode, createElementVNode, createVNode, withCtx, renderList, toDisplayString, createTextVNode, resolveDynamicComponent, renderSlot } from 'vue';
|
2
2
|
import useNoData from './hooks/use-noData.js';
|
3
3
|
import { ScaleViewProps } from './hooks/scaleview-props.js';
|
4
4
|
import { getScaleViewState } from './hooks/scaleview-state.js';
|
@@ -17,7 +17,8 @@ import EvaluatePage from './components/EvaluatePage.vue.js';
|
|
17
17
|
import AnswerParse from './components/AnswerParse.vue.js';
|
18
18
|
import ScaleScore from './components/ScaleScore.js';
|
19
19
|
import DescribeContent from './components/DescribeContent.vue.js';
|
20
|
-
import { NForm, NFormItem, NButton } from 'naive-ui';
|
20
|
+
import { useDialog, NForm, NFormItem, NButton } from 'naive-ui';
|
21
|
+
import { useFormChangeWatcher } from './utils/watch-form-change.js';
|
21
22
|
|
22
23
|
const _hoisted_1 = ["innerHTML"];
|
23
24
|
const _hoisted_2 = {
|
@@ -50,10 +51,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
50
51
|
emit
|
51
52
|
}) {
|
52
53
|
const props = __props;
|
54
|
+
const dialog = useDialog();
|
53
55
|
const {
|
54
56
|
ScaleViewState
|
55
57
|
} = getScaleViewState();
|
56
58
|
const state = reactive(ScaleViewState);
|
59
|
+
const formChecker = useFormChangeWatcher();
|
57
60
|
const scaleViewDom = ref(null);
|
58
61
|
const countdownDom = ref(null);
|
59
62
|
const formRef = ref(null);
|
@@ -134,6 +137,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
134
137
|
id && (state.shareId = id);
|
135
138
|
};
|
136
139
|
const init = async (configData) => {
|
140
|
+
window._beforeCloseFn = null;
|
137
141
|
handleQuery();
|
138
142
|
try {
|
139
143
|
resetNodata();
|
@@ -144,6 +148,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
144
148
|
state.hasFrontAddress = false;
|
145
149
|
setNoData(true, error == null ? void 0 : error.resultMsg, error == null ? void 0 : error.result);
|
146
150
|
}
|
151
|
+
if (!props.closeConfirm)
|
152
|
+
return;
|
153
|
+
formChecker.setInitialSnapshot(state.form);
|
154
|
+
window._beforeCloseFn = beforeCloseFn;
|
147
155
|
};
|
148
156
|
watch(() => props.ids, (newVal, oldVal) => {
|
149
157
|
if (oldVal) {
|
@@ -172,7 +180,58 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
172
180
|
immediate: true
|
173
181
|
});
|
174
182
|
const onSubmitDataDebounce = vexutilsExpand.debounce(onSubmitData, 300);
|
175
|
-
const
|
183
|
+
const getFormChanged = () => {
|
184
|
+
return formChecker.checkFormChange(state.form);
|
185
|
+
};
|
186
|
+
const beforeCloseFn = () => {
|
187
|
+
const isChange = getFormChanged();
|
188
|
+
if (!isChange)
|
189
|
+
return Promise.resolve(true);
|
190
|
+
const tips = props.closeConfirmText || "\u786E\u8BA4\u8981\u5173\u95ED\u5F53\u524D\u9875\u9762\u5417\uFF1F";
|
191
|
+
return new Promise((resolve) => {
|
192
|
+
dialog.warning({
|
193
|
+
title: function() {
|
194
|
+
var _a, _b, _c;
|
195
|
+
try {
|
196
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.589")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.589")) || "\u63D0\u793A";
|
197
|
+
} catch (e) {
|
198
|
+
return "\u63D0\u793A";
|
199
|
+
}
|
200
|
+
}(),
|
201
|
+
content: tips,
|
202
|
+
positiveText: function() {
|
203
|
+
var _a, _b, _c;
|
204
|
+
try {
|
205
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A";
|
206
|
+
} catch (e) {
|
207
|
+
return "\u786E\u5B9A";
|
208
|
+
}
|
209
|
+
}(),
|
210
|
+
negativeText: function() {
|
211
|
+
var _a, _b, _c;
|
212
|
+
try {
|
213
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
|
214
|
+
} catch (e) {
|
215
|
+
return "\u53D6\u6D88";
|
216
|
+
}
|
217
|
+
}(),
|
218
|
+
onPositiveClick: () => {
|
219
|
+
resolve(true);
|
220
|
+
},
|
221
|
+
onNegativeClick: () => {
|
222
|
+
resolve(false);
|
223
|
+
}
|
224
|
+
});
|
225
|
+
});
|
226
|
+
};
|
227
|
+
const cancel = async () => {
|
228
|
+
if (!props.closeConfirm) {
|
229
|
+
emit("onCloseSetting");
|
230
|
+
return;
|
231
|
+
}
|
232
|
+
const closeStatus = await beforeCloseFn();
|
233
|
+
if (!closeStatus)
|
234
|
+
return;
|
176
235
|
emit("onCloseSetting");
|
177
236
|
};
|
178
237
|
const getScaleData = () => {
|
@@ -180,11 +239,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
180
239
|
...state
|
181
240
|
};
|
182
241
|
};
|
242
|
+
const batchInjectFormNew = async (data, skipValid = false) => {
|
243
|
+
window._beforeCloseFn = null;
|
244
|
+
await batchInjectForm(data, skipValid);
|
245
|
+
if (!skipValid || !props.closeConfirm)
|
246
|
+
return;
|
247
|
+
formChecker.setInitialSnapshot(state.form);
|
248
|
+
window._beforeCloseFn = beforeCloseFn;
|
249
|
+
};
|
183
250
|
expose({
|
184
251
|
getScaleData,
|
185
252
|
onSubmitForm,
|
186
253
|
cancel,
|
187
|
-
batchInjectForm
|
254
|
+
batchInjectForm: batchInjectFormNew,
|
255
|
+
getFormChanged
|
188
256
|
});
|
189
257
|
return (_ctx, _cache) => {
|
190
258
|
return openBlock(), createElementBlock("div", {
|
@@ -217,8 +285,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
217
285
|
class: normalizeClass(["scale-container", {
|
218
286
|
"scale-container-nopadding": unref(handlePageClass),
|
219
287
|
"scale-container-hasfooter": unref(showScaleFooter)
|
220
|
-
}])
|
221
|
-
style: normalizeStyle(unref(scaleStyle))
|
288
|
+
}])
|
222
289
|
}, [unref(hasScore) ? (openBlock(), createBlock(unref(ScaleScore), {
|
223
290
|
key: 0,
|
224
291
|
config: state.config,
|
@@ -241,7 +308,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
241
308
|
key: 0,
|
242
309
|
path: item.val_key,
|
243
310
|
"show-label": !unref(isCollection)(item.type),
|
244
|
-
class: "c-scle-form-item"
|
311
|
+
class: normalizeClass(["c-scle-form-item", ["c-scale-form-item-" + item.type]])
|
245
312
|
}, {
|
246
313
|
label: withCtx(() => [createElementVNode("span", {
|
247
314
|
class: normalizeClass({
|
@@ -252,7 +319,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
252
319
|
key: 2,
|
253
320
|
class: "evalute-tip",
|
254
321
|
onClick: ($event) => unref(showEvaTipModal)(item)
|
255
|
-
}, [_hoisted_5, createTextVNode(
|
322
|
+
}, [_hoisted_5, createTextVNode(function() {
|
323
|
+
var _a, _b, _c;
|
324
|
+
try {
|
325
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.578")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.578")) || "\u67E5\u770B\u63D0\u793A";
|
326
|
+
} catch (e) {
|
327
|
+
return "\u67E5\u770B\u63D0\u793A";
|
328
|
+
}
|
329
|
+
}())], 8, _hoisted_4)) : createCommentVNode("v-if", true)]),
|
256
330
|
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(item.renderCom), mergeProps(unref(propsConfig)(item, index), {
|
257
331
|
key: (item.id || item.seq) + index + (item.randomKey || 0),
|
258
332
|
onScaleChange: unref(scaleChange),
|
@@ -263,13 +337,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
263
337
|
item
|
264
338
|
}, null, 8, ["item"])) : createCommentVNode("v-if", true)]),
|
265
339
|
_: 2
|
266
|
-
}, 1032, ["path", "show-label"])) : createCommentVNode("v-if", true)], 64);
|
340
|
+
}, 1032, ["path", "show-label", "class"])) : createCommentVNode("v-if", true)], 64);
|
267
341
|
}), 128))]),
|
268
342
|
_: 1
|
269
343
|
}, 8, ["model", "rules"]), unref(desEnd) ? (openBlock(), createBlock(DescribeContent, {
|
270
344
|
key: 2,
|
271
345
|
content: unref(desContent)
|
272
|
-
}, null, 8, ["content"])) : createCommentVNode("v-if", true)],
|
346
|
+
}, null, 8, ["content"])) : createCommentVNode("v-if", true)], 2), unref(showScaleFooter) ? (openBlock(), createElementBlock("div", _hoisted_6, [createCommentVNode(" \u5206\u4EAB\u7684\u94FE\u63A5 \u9690\u85CF\u53D6\u6D88\u6309\u94AE "), unref(isCancelBtn) ? (openBlock(), createBlock(unref(NButton), {
|
273
347
|
key: 0,
|
274
348
|
onClick: cancel
|
275
349
|
}, {
|
@@ -4,6 +4,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
default: () => {};
|
5
5
|
};
|
6
6
|
}, {
|
7
|
+
str1: string;
|
8
|
+
str2: string;
|
9
|
+
str3: string;
|
10
|
+
str4: string;
|
7
11
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
8
12
|
item: {
|
9
13
|
type: ObjectConstructor;
|
@@ -17,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
17
21
|
scoreText: import("vue").ComputedRef<"" | "部分">;
|
18
22
|
correctAnswer: import("vue").ComputedRef<any>;
|
19
23
|
answerKeyText: import("vue").ComputedRef<any>;
|
24
|
+
answerStr: import("vue").ComputedRef<string>;
|
20
25
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
21
26
|
item: {
|
22
27
|
type: ObjectConstructor;
|
@@ -13,11 +13,9 @@ const _hoisted_4 = {
|
|
13
13
|
key: 0,
|
14
14
|
class: "correct-answer"
|
15
15
|
};
|
16
|
-
const _hoisted_5 =
|
17
|
-
const _hoisted_6 = {
|
16
|
+
const _hoisted_5 = {
|
18
17
|
class: "answer-key"
|
19
18
|
};
|
20
|
-
const _hoisted_7 = /* @__PURE__ */ createElementVNode("p", null, "\u7B54\u6848\u89E3\u6790\uFF1A", -1);
|
21
19
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
22
20
|
__name: "AnswerParse",
|
23
21
|
props: {
|
@@ -28,6 +26,38 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
26
|
},
|
29
27
|
setup(__props) {
|
30
28
|
const props = __props;
|
29
|
+
const str1 = function() {
|
30
|
+
var _a, _b, _c;
|
31
|
+
try {
|
32
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.615")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.615")) || "\u5F97\u5206\uFF1A";
|
33
|
+
} catch (e) {
|
34
|
+
return "\u5F97\u5206\uFF1A";
|
35
|
+
}
|
36
|
+
}();
|
37
|
+
const str2 = function() {
|
38
|
+
var _a, _b, _c;
|
39
|
+
try {
|
40
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.611")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.611")) || "\u5206";
|
41
|
+
} catch (e) {
|
42
|
+
return "\u5206";
|
43
|
+
}
|
44
|
+
}();
|
45
|
+
const str3 = function() {
|
46
|
+
var _a, _b, _c;
|
47
|
+
try {
|
48
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.614")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.614")) || "\u6B63\u786E\u7B54\u6848\uFF1A";
|
49
|
+
} catch (e) {
|
50
|
+
return "\u6B63\u786E\u7B54\u6848\uFF1A";
|
51
|
+
}
|
52
|
+
}();
|
53
|
+
const str4 = function() {
|
54
|
+
var _a, _b, _c;
|
55
|
+
try {
|
56
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.613")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.613")) || "\u7B54\u6848\u89E3\u6790\uFF1A";
|
57
|
+
} catch (e) {
|
58
|
+
return "\u7B54\u6848\u89E3\u6790\uFF1A";
|
59
|
+
}
|
60
|
+
}();
|
31
61
|
const questionScore = computed(() => {
|
32
62
|
var _a;
|
33
63
|
return ((_a = props.item) == null ? void 0 : _a.questionScore) || 0;
|
@@ -42,14 +72,42 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
72
|
const answerResText = computed(() => {
|
43
73
|
var _a;
|
44
74
|
if ((_a = props.item) == null ? void 0 : _a.questionPartScore) {
|
45
|
-
return
|
75
|
+
return function() {
|
76
|
+
var _a2, _b, _c;
|
77
|
+
try {
|
78
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.610")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.610")) || "\u90E8\u5206\u6B63\u786E";
|
79
|
+
} catch (e) {
|
80
|
+
return "\u90E8\u5206\u6B63\u786E";
|
81
|
+
}
|
82
|
+
}();
|
46
83
|
}
|
47
|
-
return answerSuccess.value ?
|
84
|
+
return answerSuccess.value ? function() {
|
85
|
+
var _a2, _b, _c;
|
86
|
+
try {
|
87
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.609")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.609")) || "\u56DE\u7B54\u6B63\u786E";
|
88
|
+
} catch (e) {
|
89
|
+
return "\u56DE\u7B54\u6B63\u786E";
|
90
|
+
}
|
91
|
+
}() : function() {
|
92
|
+
var _a2, _b, _c;
|
93
|
+
try {
|
94
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.608")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.608")) || "\u56DE\u7B54\u9519\u8BEF";
|
95
|
+
} catch (e) {
|
96
|
+
return "\u56DE\u7B54\u9519\u8BEF";
|
97
|
+
}
|
98
|
+
}();
|
48
99
|
});
|
49
100
|
const scoreText = computed(() => {
|
50
101
|
var _a;
|
51
102
|
if ((_a = props.item) == null ? void 0 : _a.questionPartScore) {
|
52
|
-
return
|
103
|
+
return function() {
|
104
|
+
var _a2, _b, _c;
|
105
|
+
try {
|
106
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.607")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.607")) || "\u90E8\u5206";
|
107
|
+
} catch (e) {
|
108
|
+
return "\u90E8\u5206";
|
109
|
+
}
|
110
|
+
}();
|
53
111
|
}
|
54
112
|
return "";
|
55
113
|
});
|
@@ -65,8 +123,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
65
123
|
let {
|
66
124
|
answerKey
|
67
125
|
} = ((_a = props.item) == null ? void 0 : _a.scoreConfigs) || {};
|
68
|
-
return answerKey ||
|
126
|
+
return answerKey || function() {
|
127
|
+
var _a2, _b, _c;
|
128
|
+
try {
|
129
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.606")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.606")) || "\u65E0";
|
130
|
+
} catch (e) {
|
131
|
+
return "\u65E0";
|
132
|
+
}
|
133
|
+
}();
|
69
134
|
});
|
135
|
+
const answerStr = computed(() => `${scoreText.value}${str1}${questionScore.value}${str2}`);
|
70
136
|
return (_ctx, _cache) => {
|
71
137
|
return openBlock(), createElementBlock("div", {
|
72
138
|
class: normalizeClass(["c-answerParse", {
|
@@ -74,7 +140,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
74
140
|
}])
|
75
141
|
}, [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("i", {
|
76
142
|
class: normalizeClass(["scale-view-iconfont", unref(answerIcon)])
|
77
|
-
}, null, 2), createTextVNode(" " + toDisplayString(unref(answerResText)), 1)]), unref(answerSuccess) ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(unref(
|
143
|
+
}, null, 2), createTextVNode(" " + toDisplayString(unref(answerResText)), 1)]), unref(answerSuccess) ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(unref(answerStr)), 1)) : createCommentVNode("v-if", true)]), unref(correctAnswer) ? (openBlock(), createElementBlock("div", _hoisted_4, [createElementVNode("p", null, toDisplayString(str3)), createElementVNode("span", null, toDisplayString(unref(correctAnswer)), 1)])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_5, [createElementVNode("p", null, toDisplayString(str4)), createElementVNode("span", null, toDisplayString(unref(answerKeyText)), 1)])], 2);
|
78
144
|
};
|
79
145
|
}
|
80
146
|
});
|
@@ -4,8 +4,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
default: () => never[];
|
5
5
|
};
|
6
6
|
evaluateResultConfig: {
|
7
|
-
type:
|
8
|
-
default: () =>
|
7
|
+
type: ArrayConstructor;
|
8
|
+
default: () => never[];
|
9
9
|
};
|
10
10
|
evaluateResultSetting: {
|
11
11
|
type: ObjectConstructor;
|
@@ -41,6 +41,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
41
41
|
vDrag: {
|
42
42
|
beforeMount(el: any, binding: any): void;
|
43
43
|
};
|
44
|
+
str1: string;
|
45
|
+
str2: string;
|
46
|
+
str3: string;
|
44
47
|
state: {
|
45
48
|
source: string;
|
46
49
|
setAnswered: number;
|
@@ -62,8 +65,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
62
65
|
default: () => never[];
|
63
66
|
};
|
64
67
|
evaluateResultConfig: {
|
65
|
-
type:
|
66
|
-
default: () =>
|
68
|
+
type: ArrayConstructor;
|
69
|
+
default: () => never[];
|
67
70
|
};
|
68
71
|
evaluateResultSetting: {
|
69
72
|
type: ObjectConstructor;
|
@@ -137,8 +140,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
137
140
|
default: () => never[];
|
138
141
|
};
|
139
142
|
evaluateResultConfig: {
|
140
|
-
type:
|
141
|
-
default: () =>
|
143
|
+
type: ArrayConstructor;
|
144
|
+
default: () => never[];
|
142
145
|
};
|
143
146
|
evaluateResultSetting: {
|
144
147
|
type: ObjectConstructor;
|
@@ -175,7 +178,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
175
178
|
}, {
|
176
179
|
isEvaluetaResSituation: boolean;
|
177
180
|
formArray: unknown[];
|
178
|
-
evaluateResultConfig:
|
181
|
+
evaluateResultConfig: unknown[];
|
179
182
|
evaluateResultSetting: Record<string, any>;
|
180
183
|
form: Record<string, any>;
|
181
184
|
currentTime: number;
|