cnhis-design-vue 3.1.40-beta.12 → 3.1.40-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_virtual/plugin-vue_export-helper.js +1 -9
- package/es/components/annotation-edit/index.js +1 -10
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -164
- package/es/components/big-table/index.js +1 -15
- package/es/components/big-table/src/BigTable.vue.js +1 -6
- package/es/components/big-table/src/BigTable.vue2.js +1 -2498
- package/es/components/big-table/src/bigTableEmits.js +1 -53
- package/es/components/big-table/src/bigTableProps.js +1 -120
- package/es/components/big-table/src/bigTableState.js +1 -62
- package/es/components/big-table/src/components/NoData.vue.js +1 -74
- package/es/components/big-table/src/components/edit-form/edit-date.js +1 -214
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -95
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -139
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -103
- package/es/components/big-table/src/components/edit-form/edit-time.js +1 -122
- package/es/components/big-table/src/components/edit-form/useCommon.js +1 -23
- package/es/components/big-table/src/components/input-button.vue.js +1 -39
- package/es/components/big-table/src/components/separate.vue.js +1 -30
- package/es/components/big-table/src/constants/index.js +1 -3
- package/es/components/big-table/src/hooks/index.js +1 -9
- package/es/components/big-table/src/hooks/useAnchor.js +1 -49
- package/es/components/big-table/src/hooks/useAnnotation.js +1 -21
- package/es/components/big-table/src/hooks/useBatchEditing.js +1 -301
- package/es/components/big-table/src/hooks/useEdit.js +1 -133
- package/es/components/big-table/src/hooks/useEvent.js +1 -95
- package/es/components/big-table/src/hooks/useFormat.js +1 -507
- package/es/components/big-table/src/hooks/useNestTable.js +1 -86
- package/es/components/big-table/src/hooks/useSeparateRow.js +1 -177
- package/es/components/big-table/src/hooks/useTableParse.js +1 -142
- package/es/components/big-table/src/utils.js +1 -618
- package/es/components/bpmn-workflow/index.js +1 -10
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -258
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +1 -1452
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +1 -99
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +1 -114
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +1 -40
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +1 -14
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +1 -10
- package/es/components/button-print/index.js +1 -12
- package/es/components/button-print/src/ButtonPrint.vue.js +1 -6
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -528
- package/es/components/button-print/src/components/EditFormat.vue.js +1 -173
- package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -182
- package/es/components/button-print/src/components/Preview.vue.js +1 -6
- package/es/components/button-print/src/components/Preview.vue2.js +1 -67
- package/es/components/button-print/src/utils/browserPrint.d.ts +2 -1
- package/es/components/button-print/src/utils/browserPrint.js +1 -43
- package/es/components/button-print/src/utils/dialog.js +1 -121
- package/es/components/button-print/src/utils/index.js +1 -2
- package/es/components/button-print/src/utils/print.d.ts +5 -1
- package/es/components/button-print/src/utils/print.js +1 -432
- package/es/components/editor/index.js +1 -10
- package/es/components/editor/src/Editor.js +1 -77
- package/es/components/fabric-chart/index.js +1 -10
- package/es/components/fabric-chart/src/FabricChart.vue.js +1 -71
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -118
- package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -34
- package/es/components/fabric-chart/src/components/useStyle.js +1 -36
- package/es/components/fabric-chart/src/hooks/constant.js +1 -78
- package/es/components/fabric-chart/src/hooks/index.js +1 -11
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -642
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -153
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -91
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -734
- package/es/components/fabric-chart/src/hooks/useCommon.js +1 -32
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -79
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -182
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -146
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -54
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -331
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -95
- package/es/components/fabric-chart/src/hooks/useRight.js +1 -22
- package/es/components/fabric-chart/src/hooks/useShadow.js +1 -132
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -341
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -154
- package/es/components/fabric-chart/src/utils/index.js +1 -15624
- package/es/components/fabric-chart/src/utils/utils.js +1 -32
- package/es/components/field-set/index.js +1 -10
- package/es/components/field-set/src/FieldSet.vue.js +1 -470
- package/es/components/form-config/index.js +1 -10
- package/es/components/form-config/src/FormConfig.vue.js +1 -124
- package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -100
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -45
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -97
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -28
- package/es/components/form-config/src/components/index.js +1 -6
- package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -45
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -45
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -60
- package/es/components/form-config/src/components/renderer/index.js +1 -3
- package/es/components/form-config/src/constants/index.js +1 -61
- package/es/components/form-config/src/hooks/index.js +1 -3
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -90
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -35
- package/es/components/form-config/src/hooks/usePresetRenderer.js +1 -36
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -42
- package/es/components/form-config/src/utils/index.js +1 -26
- package/es/components/form-render/index.js +1 -30
- package/es/components/form-render/src/FormRender.vue.js +1 -239
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -49
- package/es/components/form-render/src/components/renderer/combination.js +1 -114
- package/es/components/form-render/src/components/renderer/complex.js +1 -37
- package/es/components/form-render/src/components/renderer/date.js +1 -171
- package/es/components/form-render/src/components/renderer/formItem.js +1 -128
- package/es/components/form-render/src/components/renderer/index.js +1 -43
- package/es/components/form-render/src/components/renderer/input.js +1 -50
- package/es/components/form-render/src/components/renderer/inputGroup.js +1 -11
- package/es/components/form-render/src/components/renderer/inputNumber.js +1 -55
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +1 -35
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -175
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -274
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -71
- package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -11
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -111
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -139
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -244
- package/es/components/form-render/src/components/renderer/select.js +1 -176
- package/es/components/form-render/src/components/renderer/simpleComponent.js +1 -57
- package/es/components/form-render/src/components/renderer/slider.js +1 -38
- package/es/components/form-render/src/components/renderer/switch.js +1 -48
- package/es/components/form-render/src/components/renderer/textarea.js +1 -36
- package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -37
- package/es/components/form-render/src/constants/index.js +1 -59
- package/es/components/form-render/src/hooks/index.js +1 -15
- package/es/components/form-render/src/hooks/useAnchor.js +1 -99
- package/es/components/form-render/src/hooks/useAsyncQueue.js +1 -153
- package/es/components/form-render/src/hooks/useAutoHidden.js +1 -43
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -119
- package/es/components/form-render/src/hooks/useChangeContext.js +1 -20
- package/es/components/form-render/src/hooks/useCommonInjection.js +1 -43
- package/es/components/form-render/src/hooks/useCommonLog.js +1 -12
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -225
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -290
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -65
- package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -46
- package/es/components/form-render/src/hooks/useFormContext.js +1 -70
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -140
- package/es/components/form-render/src/hooks/useFormField.js +1 -13
- package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -31
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +1 -10
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -278
- package/es/components/form-render/src/hooks/useFormRequest.js +1 -42
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -83
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -85
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -18
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -22
- package/es/components/form-render/src/types/fieldItem.js +1 -1
- package/es/components/form-render/src/types/index.js +1 -1
- package/es/components/form-render/src/utils/business.js +1 -114
- package/es/components/form-render/src/utils/dom.js +1 -38
- package/es/components/form-render/src/utils/index.js +1 -241
- package/es/components/form-render/src/utils/schema.js +1 -105
- package/es/components/grid/index.js +1 -11
- package/es/components/grid/src/Grid.js +1 -28
- package/es/components/grid/src/hooks.js +1 -168
- package/es/components/iho-table/index.js +1 -36
- package/es/components/iho-table/src/IhoTable.vue.js +1 -157
- package/es/components/iho-table/src/constants/index.js +1 -157
- package/es/components/iho-table/src/hooks/export.js +1 -2
- package/es/components/iho-table/src/hooks/index.js +1 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -159
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -67
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -26
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +1 -27
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -280
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -26
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +1 -38
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -27
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -164
- package/es/components/iho-table/src/hooks/useTableContext.js +1 -17
- package/es/components/iho-table/src/hooks/useTablePlugin.js +1 -20
- package/es/components/iho-table/src/plugins/anchorPlugin/index.js +1 -19
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -51
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -87
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -48
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +1 -230
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -240
- package/es/components/iho-table/src/plugins/index.js +1 -47
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -30
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -127
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -203
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -41
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -21
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -41
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -79
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -64
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -46
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -16
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -108
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -163
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -42
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +1 -50
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -30
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -48
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -62
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -52
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -92
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -59
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -34
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -30
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -53
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -100
- package/es/components/iho-table/src/types/index.js +1 -1
- package/es/components/iho-table/src/types/pluginType.js +1 -16
- package/es/components/iho-table/src/utils/index.js +1 -169
- package/es/components/index.js +1 -119
- package/es/components/info-header/index.js +1 -10
- package/es/components/info-header/src/HiddenContent.vue.js +1 -70
- package/es/components/info-header/src/InfoEllipsis.vue.js +1 -43
- package/es/components/info-header/src/InfoHeader.vue.js +1 -313
- package/es/components/insurance-sdk/index.js +1 -1
- package/es/components/insurance-sdk/src/constants/index.js +1 -160
- package/es/components/insurance-sdk/src/utils/index.js +1 -1
- package/es/components/insurance-sdk/src/utils/insurance.js +1 -268
- package/es/components/keyboard/index.js +1 -10
- package/es/components/keyboard/src/Keyboard.vue.js +1 -164
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -86
- package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -299
- package/es/components/keyboard/src/utils/index.js +1 -5
- package/es/components/map/index.js +1 -10
- package/es/components/map/src/Map.vue.js +1 -336
- package/es/components/recommend-search/index.js +1 -10
- package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -63
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +1 -157
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -125
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -104
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -146
- package/es/components/recommend-search/src/constant/index.js +1 -7
- package/es/components/scale-view/index.js +1 -35
- package/es/components/scale-view/src/ScaleView.vue.js +1 -429
- package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -80
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -117
- package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -141
- package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -19
- package/es/components/scale-view/src/components/NoData.vue.js +1 -74
- package/es/components/scale-view/src/components/ScaleScore.js +1 -63
- package/es/components/scale-view/src/components/composables/choose-common.js +1 -83
- package/es/components/scale-view/src/components/formitem/address.js +1 -3993
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -226
- package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -133
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -281
- package/es/components/scale-view/src/components/formitem/r-collection.js +1 -111
- package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -212
- package/es/components/scale-view/src/components/formitem/r-input.js +1 -86
- package/es/components/scale-view/src/components/formitem/r-map.js +1 -106
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -240
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -202
- package/es/components/scale-view/src/components/formitem/r-sign.js +1 -177
- package/es/components/scale-view/src/components/formitem/r-upload.js +1 -215
- package/es/components/scale-view/src/components/formitem/sign-com.js +1 -307
- package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -129
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -354
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -437
- package/es/components/scale-view/src/hooks/scaleview-props.js +1 -81
- package/es/components/scale-view/src/hooks/scaleview-state.js +1 -38
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -154
- package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -187
- package/es/components/scale-view/src/hooks/use-component.js +1 -86
- package/es/components/scale-view/src/hooks/use-evaluate.js +1 -150
- package/es/components/scale-view/src/hooks/use-event.js +1 -129
- package/es/components/scale-view/src/hooks/use-noData.js +1 -41
- package/es/components/scale-view/src/utils/judge-types.js +1 -36
- package/es/components/search-cascader/index.js +1 -10
- package/es/components/search-cascader/src/SearchCascader.vue.js +1 -194
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -196
- package/es/components/search-cascader/src/components/index.js +1 -1
- package/es/components/search-cascader/src/constants/index.js +1 -11
- package/es/components/search-cascader/src/hooks/index.js +1 -1
- package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -7
- package/es/components/search-cascader/src/utils/index.js +1 -11
- package/es/components/select-label/index.js +1 -15
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -447
- package/es/components/select-label/src/SelectLabel.vue.js +1 -6
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -451
- package/es/components/select-label/src/components/label-classify.vue.js +1 -132
- package/es/components/select-person/index.js +1 -10
- package/es/components/select-person/src/SelectPerson.vue.js +1 -6
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -303
- package/es/components/select-person/src/utils/index.js +1 -58
- package/es/components/shortcut-provider/index.js +1 -12
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -42
- package/es/components/shortcut-provider/src/constants/index.js +1 -8
- package/es/components/shortcut-provider/src/hooks/index.js +1 -2
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +1 -12
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -188
- package/es/components/shortcut-provider/src/utils/index.js +1 -92
- package/es/components/shortcut-setter/index.js +1 -10
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -98
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -76
- package/es/components/steps-wheel/index.js +1 -10
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -376
- package/es/components/table-filter/index.js +1 -21
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -2272
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1315
- package/es/components/table-filter/src/classification/search-class-name.vue.js +1 -195
- package/es/components/table-filter/src/classification/search-professional-model.vue.js +1 -594
- package/es/components/table-filter/src/components/age-com/index.vue.js +1 -185
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +1 -86
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +1 -30
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +1 -253
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -114
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -14
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -87
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -147
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -304
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +1 -153
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +1 -310
- package/es/components/table-filter/src/components/range-age/index.vue.js +1 -137
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -64
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -45
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -2
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -27
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -70
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -107
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -152
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1 -1520
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +1 -171
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +1 -199
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +1 -241
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +1 -526
- package/es/components/table-filter/src/const/dataOptions.js +1 -107
- package/es/components/table-filter/src/const/index.js +1 -5
- package/es/components/table-filter/src/directive/flexibleResize.js +1 -157
- package/es/components/table-filter/src/directive/preventReClick.js +1 -14
- package/es/components/table-filter/src/directive/resize.js +1 -12
- package/es/components/table-filter/src/hooks/export.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -64
- package/es/components/table-filter/src/hooks/useMixins.js +1 -532
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -94
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +1 -131
- package/es/components/table-filter/src/hooks/useWordBookutils.js +1 -91
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -2038
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -65
- package/es/components/table-filter/src/tool/getWidgetType.js +1 -27
- package/es/components/table-filter/src/tool/options.js +1 -200
- package/es/components/table-filter/src/tool/resizeSensor.js +1 -123
- package/es/components/table-filter/src/tool/time-domain.js +1 -100
- package/es/components/table-filter/src/tool/transformData.js +1 -169
- package/es/components/table-filter/src/tool/utils.js +1 -29
- package/es/components/table-filter/src/types/enums.js +1 -67
- package/es/components/table-filter/style/index.css +1 -1
- package/es/components/time-line/index.js +1 -10
- package/es/components/time-line/src/TimeLine.vue.js +1 -70
- package/es/components/vod-chunk-upload/index.js +1 -14
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -480
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +1 -70
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +1 -96
- package/es/components/vod-chunk-upload/src/hooks/vod-computed.js +1 -79
- package/es/components/vod-chunk-upload/src/hooks/vod-data.js +1 -28
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +1 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -332
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -94
- package/es/shared/assets/img/failure.png.js +1 -3
- package/es/shared/assets/img/no-permission.png.js +1 -3
- package/es/shared/assets/img/nodata.png.js +1 -3
- package/es/shared/assets/img/notfound.png.js +1 -3
- package/es/shared/assets/img/qr.png.js +1 -3
- package/es/shared/assets/img/success.png.js +1 -3
- package/es/shared/assets/img/video.png.js +1 -3
- package/es/shared/assets/img/video_default_cover.png.js +1 -3
- package/es/shared/assets/img/xb_big.png.js +1 -3
- package/es/shared/assets/img/xb_small.png.js +1 -3
- package/es/shared/components/SelectPage/SelectPage.vue.js +1 -61
- package/es/shared/components/SelectPage/index.js +1 -2
- package/es/shared/components/SlotRender/SlotRender.js +1 -35
- package/es/shared/components/SlotRender/index.js +1 -2
- package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -36
- package/es/shared/components/SvgIcon/index.js +1 -2
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -77
- package/es/shared/components/TextOverTooltip/index.js +1 -2
- package/es/shared/components/VueDraggable/index.js +1 -2
- package/es/shared/components/VueDraggable/src/core/componentBuilderHelper.js +1 -35
- package/es/shared/components/VueDraggable/src/core/componentStructure.js +1 -54
- package/es/shared/components/VueDraggable/src/core/renderHelper.js +1 -47
- package/es/shared/components/VueDraggable/src/core/sortableEvents.js +1 -14
- package/es/shared/components/VueDraggable/src/util/console.js +1 -9
- package/es/shared/components/VueDraggable/src/util/htmlHelper.js +1 -11
- package/es/shared/components/VueDraggable/src/util/string.js +1 -11
- package/es/shared/components/VueDraggable/src/util/tags.js +1 -130
- package/es/shared/components/VueDraggable/src/vuedraggable.js +1 -265
- package/es/shared/components/no-data/NoData.vue.js +1 -74
- package/es/shared/components/no-data/index.js +1 -2
- package/es/shared/components/player-vod/player.js +1 -121
- package/es/shared/components/player-vod/video-modal.js +1 -91
- package/es/shared/global/variable.js +1 -3
- package/es/shared/utils/anime.js +1 -129
- package/es/shared/utils/colorLog.js +1 -53
- package/es/shared/utils/index.js +1 -167
- package/es/shared/utils/loadViewer.js +1 -11
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -63
- package/es/shared/utils/tapable/AsyncParallelHook.js +1 -27
- package/es/shared/utils/tapable/AsyncSeriesBailHook.js +1 -18
- package/es/shared/utils/tapable/AsyncSeriesHook.js +1 -27
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +1 -12
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +1 -22
- package/es/shared/utils/tapable/Hook.js +1 -140
- package/es/shared/utils/tapable/HookCodeFactory.js +1 -456
- package/es/shared/utils/tapable/SyncBailHook.js +1 -19
- package/es/shared/utils/tapable/SyncHook.js +1 -34
- package/es/shared/utils/tapable/SyncLoopHook.js +1 -13
- package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -47
- package/es/shared/utils/utilExpand.js +1 -781
- package/es/shared/utils/vexutils.js +1 -59
- package/package.json +2 -2
|
@@ -1,173 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useMessage, NForm, NFormItem, NSpace, NUpload, NUploadDragger, NIcon, NText, NP } from 'naive-ui';
|
|
3
|
-
import { Archive } from '@vicons/ionicons5';
|
|
4
|
-
import axios from 'axios';
|
|
5
|
-
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
6
|
-
|
|
7
|
-
const _hoisted_1 = { style: { "margin-bottom": "12px" } };
|
|
8
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
-
__name: "EditFormat",
|
|
10
|
-
props: {
|
|
11
|
-
formatId: null,
|
|
12
|
-
token: null
|
|
13
|
-
},
|
|
14
|
-
setup(__props, { expose }) {
|
|
15
|
-
const props = __props;
|
|
16
|
-
const PROTOCOL = window.location.protocol;
|
|
17
|
-
const HOST = window.location.host;
|
|
18
|
-
const BASEURL = `${PROTOCOL}//${HOST}/bi-api`;
|
|
19
|
-
const SAVEIREPORT = `${BASEURL}/reprot/print/open/client/saveIReportFormat`;
|
|
20
|
-
const QUERYFILELIST = `${BASEURL}/reprot/print/open/client/getIReportFiles`;
|
|
21
|
-
const DELETEFILE = `${BASEURL}/reprot/print/open/client/delIReportFiles`;
|
|
22
|
-
const instance = axios.create({});
|
|
23
|
-
const $message = useMessage();
|
|
24
|
-
const fileList = ref([]);
|
|
25
|
-
queryFileList();
|
|
26
|
-
function queryFileList() {
|
|
27
|
-
var _a;
|
|
28
|
-
instance.get(`${QUERYFILELIST}?formatId=${(_a = props.formatId) == null ? void 0 : _a.split("_")[1]}&authorizationKey=${props.token}`).then(({ data }) => {
|
|
29
|
-
(data.list || []).forEach((file) => {
|
|
30
|
-
fileList.value.push({
|
|
31
|
-
id: Date.now().toString(),
|
|
32
|
-
name: file,
|
|
33
|
-
status: "finished"
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function onRemove(options) {
|
|
39
|
-
return new Promise((resolve, reject) => {
|
|
40
|
-
var _a;
|
|
41
|
-
instance.get(
|
|
42
|
-
`${DELETEFILE}?formatId=${(_a = props.formatId) == null ? void 0 : _a.split("_")[1]}&authorizationKey=${props.token}&fileName=${options.file.name}`
|
|
43
|
-
).then(({ data }) => {
|
|
44
|
-
if ((data == null ? void 0 : data.result) !== "SUCCESS") {
|
|
45
|
-
$message.error((data == null ? void 0 : data.resultMsg) || "\u5220\u9664\u6587\u4EF6\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01");
|
|
46
|
-
reject();
|
|
47
|
-
} else {
|
|
48
|
-
$message.success("\u5220\u9664\u6587\u4EF6\u6210\u529F\uFF01");
|
|
49
|
-
resolve("SUCCESS");
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function submit(datas) {
|
|
55
|
-
return new Promise((resolve, reject) => {
|
|
56
|
-
if (!validateFormat()) {
|
|
57
|
-
$message.warning("\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2Ajrxml\u6587\u4EF6\u548C\u4E00\u4E2Ajasper\u6587\u4EF6\uFF01");
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
const files = fileList.value.filter((file) => file.file);
|
|
61
|
-
if (files.length === 0) {
|
|
62
|
-
$message.warning("\u672C\u6B21\u65E0\u65B0\u6587\u4EF6\u589E\u52A0\uFF0C\u8BF7\u5148\u6DFB\u52A0\u65B0\u6587\u4EF6\uFF01");
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
const params = new FormData();
|
|
66
|
-
Object.keys(datas).forEach((v) => {
|
|
67
|
-
params.append(v, datas[v]);
|
|
68
|
-
});
|
|
69
|
-
fileList.value.forEach((file) => {
|
|
70
|
-
file.file && params.append("files", file.file);
|
|
71
|
-
});
|
|
72
|
-
instance.post(SAVEIREPORT, params, {
|
|
73
|
-
headers: {
|
|
74
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
75
|
-
}
|
|
76
|
-
}).then(({ data }) => {
|
|
77
|
-
if ((data == null ? void 0 : data.result) !== "SUCCESS") {
|
|
78
|
-
$message.error((data == null ? void 0 : data.resultMsg) || "\u4E0A\u4F20\u6587\u4EF6\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01");
|
|
79
|
-
reject();
|
|
80
|
-
} else {
|
|
81
|
-
resolve("SUCCESS");
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
function validateFormat() {
|
|
87
|
-
if (fileList.value.length < 2)
|
|
88
|
-
return false;
|
|
89
|
-
let isJrxml = false;
|
|
90
|
-
let isJasper = false;
|
|
91
|
-
const rExt = /\.([^.]+)$/;
|
|
92
|
-
fileList.value.forEach((file) => {
|
|
93
|
-
var _a;
|
|
94
|
-
const name = ((_a = file.file) == null ? void 0 : _a.name) || file.name || "";
|
|
95
|
-
const ext = rExt.exec(name) ? RegExp.$1.toLowerCase() : "";
|
|
96
|
-
if (ext && ".jrxml".includes(ext))
|
|
97
|
-
isJrxml = true;
|
|
98
|
-
if (ext && ".jasper".includes(ext))
|
|
99
|
-
isJasper = true;
|
|
100
|
-
});
|
|
101
|
-
if (isJrxml && isJasper)
|
|
102
|
-
return true;
|
|
103
|
-
return false;
|
|
104
|
-
}
|
|
105
|
-
expose({
|
|
106
|
-
submit
|
|
107
|
-
});
|
|
108
|
-
return (_ctx, _cache) => {
|
|
109
|
-
return openBlock(), createBlock(unref(NForm), {
|
|
110
|
-
"label-placement": "left",
|
|
111
|
-
"label-width": 75
|
|
112
|
-
}, {
|
|
113
|
-
default: withCtx(() => [
|
|
114
|
-
createVNode(unref(NFormItem), {
|
|
115
|
-
label: "\u683C\u5F0F\u6587\u4EF6:",
|
|
116
|
-
path: "file"
|
|
117
|
-
}, {
|
|
118
|
-
default: withCtx(() => [
|
|
119
|
-
createVNode(unref(NSpace), { vertical: "" }, {
|
|
120
|
-
default: withCtx(() => [
|
|
121
|
-
createVNode(unref(NUpload), {
|
|
122
|
-
multiple: "",
|
|
123
|
-
"directory-dnd": "",
|
|
124
|
-
"file-list": fileList.value,
|
|
125
|
-
"onUpdate:file-list": _cache[0] || (_cache[0] = ($event) => fileList.value = $event),
|
|
126
|
-
onRemove
|
|
127
|
-
}, {
|
|
128
|
-
default: withCtx(() => [
|
|
129
|
-
createVNode(unref(NUploadDragger), null, {
|
|
130
|
-
default: withCtx(() => [
|
|
131
|
-
createElementVNode("div", _hoisted_1, [
|
|
132
|
-
createVNode(unref(NIcon), {
|
|
133
|
-
size: "36",
|
|
134
|
-
depth: 3,
|
|
135
|
-
component: unref(Archive)
|
|
136
|
-
}, null, 8, ["component"])
|
|
137
|
-
]),
|
|
138
|
-
createVNode(unref(NText), { style: { "font-size": "12px" } }, {
|
|
139
|
-
default: withCtx(() => [
|
|
140
|
-
createTextVNode("\u70B9\u51FB\u6216\u8005\u62D6\u52A8\u6587\u4EF6\u5230\u8BE5\u533A\u57DF\u6765\u4E0A\u4F20")
|
|
141
|
-
]),
|
|
142
|
-
_: 1
|
|
143
|
-
}),
|
|
144
|
-
createVNode(unref(NP), {
|
|
145
|
-
depth: "3",
|
|
146
|
-
style: { "margin": "5px 0 0 0", "font-size": "13px" }
|
|
147
|
-
}, {
|
|
148
|
-
default: withCtx(() => [
|
|
149
|
-
createTextVNode("\u81F3\u5C11\u5305\u542B\u4E00\u4E2Ajxml\u6587\u4EF6\u548C\u4E00\u4E2Ajasper\u6587\u4EF6")
|
|
150
|
-
]),
|
|
151
|
-
_: 1
|
|
152
|
-
})
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
})
|
|
156
|
-
]),
|
|
157
|
-
_: 1
|
|
158
|
-
}, 8, ["file-list"])
|
|
159
|
-
]),
|
|
160
|
-
_: 1
|
|
161
|
-
})
|
|
162
|
-
]),
|
|
163
|
-
_: 1
|
|
164
|
-
})
|
|
165
|
-
]),
|
|
166
|
-
_: 1
|
|
167
|
-
});
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
var EditFormat = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "EditFormat.vue"]]);
|
|
172
|
-
|
|
173
|
-
export { EditFormat as default };
|
|
1
|
+
import{defineComponent as e,ref as t,openBlock as o,createBlock as l,unref as n,withCtx as r,createVNode as i,createElementVNode as a,createTextVNode as u}from"vue";import{useMessage as s,NForm as p,NFormItem as d,NSpace as f,NUpload as m,NUploadDragger as c,NIcon as v,NText as h,NP as w}from"naive-ui";import{Archive as _}from"@vicons/ionicons5";import g from"axios";import x from"../../../../_virtual/plugin-vue_export-helper.js";const $={style:{"margin-bottom":"12px"}};var S=x(e({__name:"EditFormat",props:{formatId:null,token:null},setup(e,{expose:x}){const S=e,E=`${window.location.protocol}//${window.location.host}/bi-api`,C=`${E}/reprot/print/open/client/saveIReportFormat`,j=`${E}/reprot/print/open/client/getIReportFiles`,y=`${E}/reprot/print/open/client/delIReportFiles`,I=g.create({}),b=s(),F=t([]);var z;function R(e){return new Promise(((t,o)=>{var l;I.get(`${y}?formatId=${null==(l=S.formatId)?void 0:l.split("_")[1]}&authorizationKey=${S.token}&fileName=${e.file.name}`).then((({data:e})=>{"SUCCESS"!==(null==e?void 0:e.result)?(b.error((null==e?void 0:e.resultMsg)||"删除文件失败,请重试!"),o()):(b.success("删除文件成功!"),t("SUCCESS"))}))}))}return I.get(`${j}?formatId=${null==(z=S.formatId)?void 0:z.split("_")[1]}&authorizationKey=${S.token}`).then((({data:e})=>{(e.list||[]).forEach((e=>{F.value.push({id:Date.now().toString(),name:e,status:"finished"})}))})),x({submit:function(e){return new Promise(((t,o)=>{if(!function(){if(F.value.length<2)return!1;let e=!1,t=!1;const o=/\.([^.]+)$/;return F.value.forEach((l=>{var n;const r=(null==(n=l.file)?void 0:n.name)||l.name||"",i=o.exec(r)?RegExp.$1.toLowerCase():"";i&&".jrxml".includes(i)&&(e=!0),i&&".jasper".includes(i)&&(t=!0)})),!(!e||!t)}())return void b.warning("请至少上传一个jrxml文件和一个jasper文件!");if(0===F.value.filter((e=>e.file)).length)return void b.warning("本次无新文件增加,请先添加新文件!");const l=new FormData;Object.keys(e).forEach((t=>{l.append(t,e[t])})),F.value.forEach((e=>{e.file&&l.append("files",e.file)})),I.post(C,l,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((({data:e})=>{"SUCCESS"!==(null==e?void 0:e.result)?(b.error((null==e?void 0:e.resultMsg)||"上传文件失败,请重试!"),o()):t("SUCCESS")}))}))}}),(e,t)=>(o(),l(n(p),{"label-placement":"left","label-width":75},{default:r((()=>[i(n(d),{label:"格式文件:",path:"file"},{default:r((()=>[i(n(f),{vertical:""},{default:r((()=>[i(n(m),{multiple:"","directory-dnd":"","file-list":F.value,"onUpdate:file-list":t[0]||(t[0]=e=>F.value=e),onRemove:R},{default:r((()=>[i(n(c),null,{default:r((()=>[a("div",$,[i(n(v),{size:"36",depth:3,component:n(_)},null,8,["component"])]),i(n(h),{style:{"font-size":"12px"}},{default:r((()=>[u("点击或者拖动文件到该区域来上传")])),_:1}),i(n(w),{depth:"3",style:{margin:"5px 0 0 0","font-size":"13px"}},{default:r((()=>[u("至少包含一个jxml文件和一个jasper文件")])),_:1})])),_:1})])),_:1},8,["file-list"])])),_:1})])),_:1})])),_:1}))}}),[["__file","EditFormat.vue"]]);export{S as default};
|
|
@@ -1,182 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useMessage, NModal, NForm, NFormItem, NInput, NButton } from 'naive-ui';
|
|
3
|
-
import EditFormat from './EditFormat.vue.js';
|
|
4
|
-
import '../utils/print.js';
|
|
5
|
-
import { isIReport } from '../utils/browserPrint.js';
|
|
6
|
-
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
7
|
-
|
|
8
|
-
const _hoisted_1 = { class: "content" };
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
__name: "IdentityVerification",
|
|
11
|
-
props: {
|
|
12
|
-
verifyUser: { type: Function, default: () => Promise.resolve() },
|
|
13
|
-
identityVerificationTitle: { default: "\u6253\u5370\u670D\u52A1\u8EAB\u4EFD\u6821\u9A8C" },
|
|
14
|
-
modelValue: { type: Boolean },
|
|
15
|
-
formatId: null,
|
|
16
|
-
templateId: null
|
|
17
|
-
},
|
|
18
|
-
emits: ["update:modelValue", "success", "close"],
|
|
19
|
-
setup(__props, { emit }) {
|
|
20
|
-
const props = __props;
|
|
21
|
-
const $message = useMessage();
|
|
22
|
-
const DEFAULT_FORM = {
|
|
23
|
-
account: "",
|
|
24
|
-
password: ""
|
|
25
|
-
};
|
|
26
|
-
const editFormRef = ref(null);
|
|
27
|
-
const showEditForm = ref(false);
|
|
28
|
-
const token = ref("");
|
|
29
|
-
let form = reactive({ ...DEFAULT_FORM });
|
|
30
|
-
const rules = {
|
|
31
|
-
account: { required: true, message: "\u8BF7\u8F93\u5165\u8D26\u53F7" },
|
|
32
|
-
password: { required: true, message: "\u8BF7\u8F93\u5165\u5BC6\u7801" }
|
|
33
|
-
};
|
|
34
|
-
const style = {
|
|
35
|
-
width: "416px"
|
|
36
|
-
};
|
|
37
|
-
const formRef = ref(null);
|
|
38
|
-
const handleClickClose = () => {
|
|
39
|
-
emit("update:modelValue", false);
|
|
40
|
-
emit("close");
|
|
41
|
-
};
|
|
42
|
-
const loading = ref(false);
|
|
43
|
-
const submit = async () => {
|
|
44
|
-
var _a, _b;
|
|
45
|
-
try {
|
|
46
|
-
loading.value = true;
|
|
47
|
-
const { data = {} } = await props.verifyUser(form) || {};
|
|
48
|
-
if (data.result !== "SUCCESS") {
|
|
49
|
-
$message.error(data.resultMsg || "\u8EAB\u4EFD\u6821\u9A8C\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01");
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
if (isIReport(props.formatId || "")) {
|
|
53
|
-
showEditForm.value = true;
|
|
54
|
-
token.value = (_a = data.map) == null ? void 0 : _a.token;
|
|
55
|
-
} else {
|
|
56
|
-
emit("success", (_b = data.map) == null ? void 0 : _b.token);
|
|
57
|
-
}
|
|
58
|
-
} finally {
|
|
59
|
-
loading.value = false;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
const handleClickSubmit = () => {
|
|
63
|
-
var _a;
|
|
64
|
-
(_a = formRef.value) == null ? void 0 : _a.validate((errors) => {
|
|
65
|
-
if (!errors) {
|
|
66
|
-
submit();
|
|
67
|
-
} else {
|
|
68
|
-
console.log(errors);
|
|
69
|
-
return false;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
const submitEditFile = async () => {
|
|
74
|
-
var _a, _b;
|
|
75
|
-
try {
|
|
76
|
-
loading.value = true;
|
|
77
|
-
const data = await ((_b = editFormRef.value) == null ? void 0 : _b.submit({
|
|
78
|
-
authorizationKey: token.value,
|
|
79
|
-
id: (_a = props.formatId) == null ? void 0 : _a.split("_")[1],
|
|
80
|
-
templateId: props.templateId,
|
|
81
|
-
datasourceName: null,
|
|
82
|
-
dataSourceId: null
|
|
83
|
-
}));
|
|
84
|
-
if (!data)
|
|
85
|
-
return false;
|
|
86
|
-
emit("success", token.value);
|
|
87
|
-
} finally {
|
|
88
|
-
loading.value = false;
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
watch(
|
|
92
|
-
() => props.modelValue,
|
|
93
|
-
(val) => {
|
|
94
|
-
if (val)
|
|
95
|
-
return;
|
|
96
|
-
Object.assign(form, DEFAULT_FORM);
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
return (_ctx, _cache) => {
|
|
100
|
-
return openBlock(), createBlock(unref(NModal), {
|
|
101
|
-
preset: "dialog",
|
|
102
|
-
title: showEditForm.value ? "\u7F16\u8F91" : __props.identityVerificationTitle,
|
|
103
|
-
class: "standard-modal standard-modal-white authentication-modal c-button-print-modal",
|
|
104
|
-
show: __props.modelValue,
|
|
105
|
-
"close-on-esc": false,
|
|
106
|
-
"show-icon": false,
|
|
107
|
-
style: normalizeStyle({ width: style.width, overflowY: "auto" }),
|
|
108
|
-
"positive-text": showEditForm.value ? "\u786E\u8BA4" : "",
|
|
109
|
-
"negative-text": showEditForm.value ? "\u53D6\u6D88" : "",
|
|
110
|
-
onClose: handleClickClose,
|
|
111
|
-
onNegativeClick: handleClickClose,
|
|
112
|
-
onPositiveClick: submitEditFile
|
|
113
|
-
}, {
|
|
114
|
-
default: withCtx(() => [
|
|
115
|
-
createElementVNode("div", _hoisted_1, [
|
|
116
|
-
showEditForm.value ? (openBlock(), createBlock(EditFormat, mergeProps({
|
|
117
|
-
key: 0,
|
|
118
|
-
ref_key: "editFormRef",
|
|
119
|
-
ref: editFormRef
|
|
120
|
-
}, _ctx.$attrs, {
|
|
121
|
-
formatId: __props.formatId,
|
|
122
|
-
token: token.value
|
|
123
|
-
}), null, 16, ["formatId", "token"])) : (openBlock(), createBlock(unref(NForm), {
|
|
124
|
-
key: 1,
|
|
125
|
-
class: "login-form-button-print",
|
|
126
|
-
ref_key: "formRef",
|
|
127
|
-
ref: formRef,
|
|
128
|
-
model: unref(form),
|
|
129
|
-
rules
|
|
130
|
-
}, {
|
|
131
|
-
default: withCtx(() => [
|
|
132
|
-
createVNode(unref(NFormItem), { path: "account" }, {
|
|
133
|
-
default: withCtx(() => [
|
|
134
|
-
createVNode(unref(NInput), {
|
|
135
|
-
value: unref(form).account,
|
|
136
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => unref(form).account = $event),
|
|
137
|
-
placeholder: "\u8BF7\u8F93\u5165\u8D26\u53F7"
|
|
138
|
-
}, null, 8, ["value"])
|
|
139
|
-
]),
|
|
140
|
-
_: 1
|
|
141
|
-
}),
|
|
142
|
-
createVNode(unref(NFormItem), { path: "password" }, {
|
|
143
|
-
default: withCtx(() => [
|
|
144
|
-
createVNode(unref(NInput), {
|
|
145
|
-
type: "password",
|
|
146
|
-
"input-props": { autocomplete: "on", name: "password" },
|
|
147
|
-
value: unref(form).password,
|
|
148
|
-
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => unref(form).password = $event),
|
|
149
|
-
placeholder: "\u8BF7\u8F93\u5165\u5BC6\u7801"
|
|
150
|
-
}, null, 8, ["value"])
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
|
-
}),
|
|
154
|
-
createVNode(unref(NFormItem), null, {
|
|
155
|
-
default: withCtx(() => [
|
|
156
|
-
createVNode(unref(NButton), {
|
|
157
|
-
loading: loading.value,
|
|
158
|
-
type: "primary",
|
|
159
|
-
class: "login-form-button",
|
|
160
|
-
onClick: handleClickSubmit
|
|
161
|
-
}, {
|
|
162
|
-
default: withCtx(() => [
|
|
163
|
-
createTextVNode("\u767B\u5F55")
|
|
164
|
-
]),
|
|
165
|
-
_: 1
|
|
166
|
-
}, 8, ["loading"])
|
|
167
|
-
]),
|
|
168
|
-
_: 1
|
|
169
|
-
})
|
|
170
|
-
]),
|
|
171
|
-
_: 1
|
|
172
|
-
}, 8, ["model"]))
|
|
173
|
-
])
|
|
174
|
-
]),
|
|
175
|
-
_: 1
|
|
176
|
-
}, 8, ["title", "show", "style", "positive-text", "negative-text"]);
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
var IdentityVerification = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "IdentityVerification.vue"]]);
|
|
181
|
-
|
|
182
|
-
export { IdentityVerification as default };
|
|
1
|
+
import{defineComponent as e,ref as t,reactive as a,watch as l,openBlock as o,createBlock as i,unref as u,normalizeStyle as r,withCtx as s,createElementVNode as n,mergeProps as d,createVNode as p,createTextVNode as c}from"vue";import{useMessage as m,NModal as v,NForm as f,NFormItem as y,NInput as w,NButton as _}from"naive-ui";import g from"./EditFormat.vue.js";import"../utils/print.js";import{isIReport as h}from"../utils/browserPrint.js";import I from"../../../../_virtual/plugin-vue_export-helper.js";const k={class:"content"};var V=I(e({__name:"IdentityVerification",props:{verifyUser:{type:Function,default:()=>Promise.resolve()},identityVerificationTitle:{default:"打印服务身份校验"},modelValue:{type:Boolean},formatId:null,templateId:null},emits:["update:modelValue","success","close"],setup(e,{emit:I}){const V=e,x=m(),b={account:"",password:""},C=t(null),j=t(!1),U=t("");let S=a({...b});const F={account:{required:!0,message:"请输入账号"},password:{required:!0,message:"请输入密码"}},P="416px",q=t(null),E=()=>{I("update:modelValue",!1),I("close")},N=t(!1),R=()=>{var e;null==(e=q.value)||e.validate((e=>{if(e)return console.log(e),!1;(async()=>{var e,t;try{N.value=!0;const{data:a={}}=await V.verifyUser(S)||{};if("SUCCESS"!==a.result)return x.error(a.resultMsg||"身份校验失败,请重试!"),!1;h(V.formatId||"")?(j.value=!0,U.value=null==(e=a.map)?void 0:e.token):I("success",null==(t=a.map)?void 0:t.token)}finally{N.value=!1}})()}))},T=async()=>{var e,t;try{N.value=!0;if(!await(null==(t=C.value)?void 0:t.submit({authorizationKey:U.value,id:null==(e=V.formatId)?void 0:e.split("_")[1],templateId:V.templateId,datasourceName:null,dataSourceId:null})))return!1;I("success",U.value)}finally{N.value=!1}};return l((()=>V.modelValue),(e=>{e||Object.assign(S,b)})),(t,a)=>(o(),i(u(v),{preset:"dialog",title:j.value?"编辑":e.identityVerificationTitle,class:"standard-modal standard-modal-white authentication-modal c-button-print-modal",show:e.modelValue,"close-on-esc":!1,"show-icon":!1,style:r({width:P,overflowY:"auto"}),"positive-text":j.value?"确认":"","negative-text":j.value?"取消":"",onClose:E,onNegativeClick:E,onPositiveClick:T},{default:s((()=>[n("div",k,[j.value?(o(),i(g,d({key:0,ref_key:"editFormRef",ref:C},t.$attrs,{formatId:e.formatId,token:U.value}),null,16,["formatId","token"])):(o(),i(u(f),{key:1,class:"login-form-button-print",ref_key:"formRef",ref:q,model:u(S),rules:F},{default:s((()=>[p(u(y),{path:"account"},{default:s((()=>[p(u(w),{value:u(S).account,"onUpdate:value":a[0]||(a[0]=e=>u(S).account=e),placeholder:"请输入账号"},null,8,["value"])])),_:1}),p(u(y),{path:"password"},{default:s((()=>[p(u(w),{type:"password","input-props":{autocomplete:"on",name:"password"},value:u(S).password,"onUpdate:value":a[1]||(a[1]=e=>u(S).password=e),placeholder:"请输入密码"},null,8,["value"])])),_:1}),p(u(y),null,{default:s((()=>[p(u(_),{loading:N.value,type:"primary",class:"login-form-button",onClick:R},{default:s((()=>[c("登录")])),_:1},8,["loading"])])),_:1})])),_:1},8,["model"]))])])),_:1},8,["title","show","style","positive-text","negative-text"]))}}),[["__file","IdentityVerification.vue"]]);export{V as default};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
3
|
-
|
|
4
|
-
var Preview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "Preview.vue"]]);
|
|
5
|
-
|
|
6
|
-
export { Preview as default };
|
|
1
|
+
import e from"./Preview.vue2.js";import r from"../../../../_virtual/plugin-vue_export-helper.js";var i=r(e,[["__file","Preview.vue"]]);export{i as default};
|
|
@@ -1,67 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NModal, NIcon } from 'naive-ui';
|
|
3
|
-
import { SquareOutline, CopyOutline } from '@vicons/ionicons5';
|
|
4
|
-
|
|
5
|
-
const _hoisted_1 = ["src"];
|
|
6
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "Preview",
|
|
8
|
-
props: {
|
|
9
|
-
visible: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
default: false
|
|
12
|
-
},
|
|
13
|
-
src: {
|
|
14
|
-
type: String
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
emits: ["update:visible"],
|
|
18
|
-
setup(__props, {
|
|
19
|
-
emit
|
|
20
|
-
}) {
|
|
21
|
-
const props = __props;
|
|
22
|
-
const isNormalSize = ref(true);
|
|
23
|
-
const style = computed(() => {
|
|
24
|
-
const size = isNormalSize.value ? 80 : 100;
|
|
25
|
-
return `width: ${size}vw; height: ${size}vh`;
|
|
26
|
-
});
|
|
27
|
-
function titleRender() {
|
|
28
|
-
return createVNode(Fragment, null, [createVNode("div", null, [createTextVNode("\u9884\u89C8")]), createVNode(NIcon, {
|
|
29
|
-
"style": {
|
|
30
|
-
margin: "0 0 0 auto",
|
|
31
|
-
transform: isNormalSize.value ? "none" : "rotate(90deg)"
|
|
32
|
-
},
|
|
33
|
-
"onClick": changeSize,
|
|
34
|
-
"component": isNormalSize.value ? SquareOutline : CopyOutline
|
|
35
|
-
}, null)]);
|
|
36
|
-
}
|
|
37
|
-
function changeSize() {
|
|
38
|
-
isNormalSize.value = !isNormalSize.value;
|
|
39
|
-
}
|
|
40
|
-
function onClose() {
|
|
41
|
-
props.src && window.URL.revokeObjectURL(props.src);
|
|
42
|
-
emit("update:visible", false);
|
|
43
|
-
}
|
|
44
|
-
return (_ctx, _cache) => {
|
|
45
|
-
return openBlock(), createBlock(unref(NModal), {
|
|
46
|
-
preset: "dialog",
|
|
47
|
-
show: __props.visible,
|
|
48
|
-
"show-icon": false,
|
|
49
|
-
style: normalizeStyle(unref(style)),
|
|
50
|
-
class: "c-button-preview-modal",
|
|
51
|
-
title: titleRender,
|
|
52
|
-
onClose,
|
|
53
|
-
onMaskClick: onClose
|
|
54
|
-
}, {
|
|
55
|
-
default: withCtx(() => [createElementVNode("iframe", {
|
|
56
|
-
src: __props.src,
|
|
57
|
-
frameborder: "0",
|
|
58
|
-
width: "100%",
|
|
59
|
-
height: "97%"
|
|
60
|
-
}, null, 8, _hoisted_1)]),
|
|
61
|
-
_: 1
|
|
62
|
-
}, 8, ["show", "style"]);
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
export { _sfc_main as default };
|
|
1
|
+
import{defineComponent as e,ref as t,computed as o,openBlock as i,createBlock as n,unref as r,normalizeStyle as l,withCtx as s,createElementVNode as a,createVNode as u,Fragment as c,createTextVNode as v}from"vue";import{NModal as m,NIcon as p}from"naive-ui";import{SquareOutline as d,CopyOutline as f}from"@vicons/ionicons5";const h=["src"];var w=e({__name:"Preview",props:{visible:{type:Boolean,default:!1},src:{type:String}},emits:["update:visible"],setup(e,{emit:w}){const b=e,g=t(!0),y=o((()=>{const e=g.value?80:100;return`width: ${e}vw; height: ${e}vh`}));function k(){return u(c,null,[u("div",null,[v("预览")]),u(p,{style:{margin:"0 0 0 auto",transform:g.value?"none":"rotate(90deg)"},onClick:C,component:g.value?d:f},null)])}function C(){g.value=!g.value}function _(){b.src&&window.URL.revokeObjectURL(b.src),w("update:visible",!1)}return(t,o)=>(i(),n(r(m),{preset:"dialog",show:e.visible,"show-icon":!1,style:l(r(y)),class:"c-button-preview-modal",title:k,onClose:_,onMaskClick:_},{default:s((()=>[a("iframe",{src:e.src,frameborder:"0",width:"100%",height:"97%"},null,8,h)])),_:1},8,["show","style"]))}});export{w as default};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export declare function useBrowserPrint(data: Blob, mode?: string): string | void;
|
|
1
|
+
export declare function useBrowserPrint(data: Blob | null, mode?: string, fileUrl?: string): string | void;
|
|
2
2
|
export declare function isIReport(formatId: string): boolean;
|
|
3
|
+
export declare function getFileUrl(url: string): Promise<string | undefined>;
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
function
|
|
2
|
-
if (!data)
|
|
3
|
-
return console.log("\u6587\u6863\u6D41\u4E0D\u5B58\u5728\uFF01");
|
|
4
|
-
const blob = new Blob([data], { type: "application/pdf;charset=utf-8" });
|
|
5
|
-
const src = window.URL.createObjectURL(blob);
|
|
6
|
-
switch (mode) {
|
|
7
|
-
case "printDirect":
|
|
8
|
-
{
|
|
9
|
-
const iframe = document.createElement("iframe");
|
|
10
|
-
iframe.style.display = "none";
|
|
11
|
-
iframe.style.pageBreakBefore = "always";
|
|
12
|
-
iframe.src = src;
|
|
13
|
-
document.body.appendChild(iframe);
|
|
14
|
-
iframe.onload = () => {
|
|
15
|
-
var _a;
|
|
16
|
-
iframe.focus();
|
|
17
|
-
(_a = iframe.contentWindow) == null ? void 0 : _a.print();
|
|
18
|
-
window.URL.revokeObjectURL(iframe.src);
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
break;
|
|
22
|
-
case "preview":
|
|
23
|
-
return src;
|
|
24
|
-
default:
|
|
25
|
-
{
|
|
26
|
-
const a = document.createElement("a");
|
|
27
|
-
a.style.display = "none";
|
|
28
|
-
a.href = src;
|
|
29
|
-
a.download = "";
|
|
30
|
-
document.body.appendChild(a);
|
|
31
|
-
a.click();
|
|
32
|
-
document.body.removeChild(a);
|
|
33
|
-
window.URL.revokeObjectURL(a.href);
|
|
34
|
-
}
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function isIReport(formatId) {
|
|
39
|
-
var _a;
|
|
40
|
-
return (_a = formatId == null ? void 0 : formatId.includes) == null ? void 0 : _a.call(formatId, "iReport");
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { isIReport, useBrowserPrint };
|
|
1
|
+
function e(e,n="downloadPDF",t){let o="";if(t)o=t;else{if(!e)return console.log("文档流不存在!");const n=new Blob([e],{type:"application/pdf;charset=utf-8"});o=t||window.URL.createObjectURL(n)}switch(n){case"printDirect":{const e=document.createElement("iframe");e.style.display="none",e.style.pageBreakBefore="always",e.src=o,document.body.appendChild(e),e.onload=()=>{var n;e.focus(),null==(n=e.contentWindow)||n.print(),window.URL.revokeObjectURL(e.src)}}break;case"preview":return o;default:{const e=document.createElement("a");e.style.display="none",e.href=o,e.download="",document.body.appendChild(e),e.click(),document.body.removeChild(e),window.URL.revokeObjectURL(e.href)}return}}function n(e){var n;return null==(n=null==e?void 0:e.includes)?void 0:n.call(e,"iReport")}async function t(e){try{const n=await fetch(e),t=await n.blob();return window.URL.createObjectURL(t)}catch(e){console.log(e)}}export{t as getFileUrl,n as isIReport,e as useBrowserPrint};
|
|
@@ -1,121 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import IdentityVerification from '../components/IdentityVerification.vue.js';
|
|
3
|
-
import Preview from '../components/Preview.vue.js';
|
|
4
|
-
|
|
5
|
-
class IdentityVerificationDialog {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.rendered = false;
|
|
8
|
-
}
|
|
9
|
-
static createMsg(message) {
|
|
10
|
-
return `[IdentityVerificationDialog] ${message}`;
|
|
11
|
-
}
|
|
12
|
-
show(instance, title, api, formatId, templateId) {
|
|
13
|
-
if (this.rendered)
|
|
14
|
-
return Promise.reject(IdentityVerificationDialog.createMsg("\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97"));
|
|
15
|
-
return new Promise((resolve, reject) => {
|
|
16
|
-
this.rendered = true;
|
|
17
|
-
const container = document.createElement("div");
|
|
18
|
-
const visible = ref(false);
|
|
19
|
-
const ProviderWrapper = createProviderWrapper(instance);
|
|
20
|
-
render(createVNode(ProviderWrapper, null, {
|
|
21
|
-
default: withCtx(() => createVNode(IdentityVerification, {
|
|
22
|
-
"to": container,
|
|
23
|
-
"verifyUser": api,
|
|
24
|
-
"modelValue": visible.value,
|
|
25
|
-
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
26
|
-
"identityVerificationTitle": title,
|
|
27
|
-
"onClose": onClose,
|
|
28
|
-
"onAfterLeave": () => unmount(container),
|
|
29
|
-
"onSuccess": onSuccess,
|
|
30
|
-
"formatId": formatId,
|
|
31
|
-
"templateId": templateId
|
|
32
|
-
}, null), instance)
|
|
33
|
-
}), container);
|
|
34
|
-
mount(container);
|
|
35
|
-
nextTick(() => visible.value = true);
|
|
36
|
-
function onClose() {
|
|
37
|
-
reject(IdentityVerificationDialog.createMsg("\u5F39\u7A97\u5173\u95ED"));
|
|
38
|
-
}
|
|
39
|
-
function onSuccess(token) {
|
|
40
|
-
resolve(token);
|
|
41
|
-
visible.value = false;
|
|
42
|
-
}
|
|
43
|
-
function mount(target) {
|
|
44
|
-
document.body.appendChild(target);
|
|
45
|
-
}
|
|
46
|
-
const that = this;
|
|
47
|
-
function unmount(target) {
|
|
48
|
-
if (!target.parentElement)
|
|
49
|
-
return;
|
|
50
|
-
that.rendered = false;
|
|
51
|
-
target.parentElement.removeChild(target);
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
class PreviewDialog {
|
|
57
|
-
constructor() {
|
|
58
|
-
this.rendered = false;
|
|
59
|
-
}
|
|
60
|
-
static createMsg(message) {
|
|
61
|
-
return `[PreviewDialog] ${message}`;
|
|
62
|
-
}
|
|
63
|
-
show(instance, src) {
|
|
64
|
-
if (this.rendered)
|
|
65
|
-
return Promise.reject(PreviewDialog.createMsg("\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97"));
|
|
66
|
-
return new Promise((resolve, reject) => {
|
|
67
|
-
this.rendered = true;
|
|
68
|
-
const container = document.createElement("div");
|
|
69
|
-
const visible = ref(false);
|
|
70
|
-
const ProviderWrapper = createProviderWrapper(instance);
|
|
71
|
-
render(createVNode(ProviderWrapper, null, {
|
|
72
|
-
default: withCtx(() => createVNode(Preview, {
|
|
73
|
-
"visible": visible.value,
|
|
74
|
-
"onUpdate:visible": ($event) => visible.value = $event,
|
|
75
|
-
"src": src,
|
|
76
|
-
"onAfterLeave": () => unmount(container)
|
|
77
|
-
}, null), instance)
|
|
78
|
-
}), container);
|
|
79
|
-
mount(container);
|
|
80
|
-
nextTick(() => {
|
|
81
|
-
visible.value = true;
|
|
82
|
-
resolve("success");
|
|
83
|
-
});
|
|
84
|
-
function mount(target) {
|
|
85
|
-
document.body.appendChild(target);
|
|
86
|
-
}
|
|
87
|
-
const that = this;
|
|
88
|
-
function unmount(target) {
|
|
89
|
-
if (!target.parentElement)
|
|
90
|
-
return;
|
|
91
|
-
that.rendered = false;
|
|
92
|
-
target.parentElement.removeChild(target);
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function createProviderWrapper(instance) {
|
|
98
|
-
return defineComponent({
|
|
99
|
-
setup(_, {
|
|
100
|
-
slots
|
|
101
|
-
}) {
|
|
102
|
-
let provides = (instance == null ? void 0 : instance.parent) && Reflect.get(instance.parent, "provides");
|
|
103
|
-
const keys = [];
|
|
104
|
-
while (provides) {
|
|
105
|
-
Object.entries(provides).forEach(([k, v]) => {
|
|
106
|
-
if (keys.includes(k))
|
|
107
|
-
return;
|
|
108
|
-
keys.push(k);
|
|
109
|
-
provide(k, v);
|
|
110
|
-
});
|
|
111
|
-
provides = Object.getPrototypeOf(provides);
|
|
112
|
-
}
|
|
113
|
-
return () => {
|
|
114
|
-
var _a;
|
|
115
|
-
return createVNode("div", null, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export { IdentityVerificationDialog, PreviewDialog };
|
|
1
|
+
import{ref as e,render as t,createVNode as r,withCtx as n,nextTick as o,defineComponent as i,provide as l}from"vue";import s from"../components/IdentityVerification.vue.js";import a from"../components/Preview.vue.js";class c{constructor(){this.rendered=!1}static createMsg(e){return`[IdentityVerificationDialog] ${e}`}show(i,l,a,d,m){return this.rendered?Promise.reject(c.createMsg("请勿重复打开弹窗")):new Promise(((v,f)=>{this.rendered=!0;const p=document.createElement("div"),h=e(!1),g=u(i);var y;function E(){f(c.createMsg("弹窗关闭"))}function P(e){v(e),h.value=!1}t(r(g,null,{default:n((()=>r(s,{to:p,verifyUser:a,modelValue:h.value,"onUpdate:modelValue":e=>h.value=e,identityVerificationTitle:l,onClose:E,onAfterLeave:()=>function(e){if(!e.parentElement)return;b.rendered=!1,e.parentElement.removeChild(e)}(p),onSuccess:P,formatId:d,templateId:m},null)),i)}),p),y=p,document.body.appendChild(y),o((()=>h.value=!0));const b=this}))}}class d{constructor(){this.rendered=!1}static createMsg(e){return`[PreviewDialog] ${e}`}show(i,l){return this.rendered?Promise.reject(d.createMsg("请勿重复打开弹窗")):new Promise(((s,c)=>{this.rendered=!0;const d=document.createElement("div"),m=e(!1),v=u(i);var f;t(r(v,null,{default:n((()=>r(a,{visible:m.value,"onUpdate:visible":e=>m.value=e,src:l,onAfterLeave:()=>function(e){if(!e.parentElement)return;p.rendered=!1,e.parentElement.removeChild(e)}(d)},null)),i)}),d),f=d,document.body.appendChild(f),o((()=>{m.value=!0,s("success")}));const p=this}))}}function u(e){return i({setup(t,{slots:n}){let o=(null==e?void 0:e.parent)&&Reflect.get(e.parent,"provides");const i=[];for(;o;)Object.entries(o).forEach((([e,t])=>{i.includes(e)||(i.push(e),l(e,t))})),o=Object.getPrototypeOf(o);return()=>{var e;return r("div",null,[null==(e=n.default)?void 0:e.call(n)])}}})}export{c as IdentityVerificationDialog,d as PreviewDialog};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { isIReport, useBrowserPrint } from './browserPrint.js';
|
|
1
|
+
export{Print}from"./print.js";export{getFileUrl,isIReport,useBrowserPrint}from"./browserPrint.js";
|
|
@@ -7,6 +7,8 @@ export declare class Print {
|
|
|
7
7
|
private dialogPreview;
|
|
8
8
|
private instance;
|
|
9
9
|
private downloadPath;
|
|
10
|
+
private printOrigin;
|
|
11
|
+
private isRemote;
|
|
10
12
|
constructor();
|
|
11
13
|
private readonly messageHandlerQueue;
|
|
12
14
|
private messageHandler;
|
|
@@ -36,8 +38,10 @@ export declare class Print {
|
|
|
36
38
|
};
|
|
37
39
|
_handleEventDirect({ templateId, formatId, params, cmdid, print, printdlgshow, nobillnode, btnprint }: AnyObject): Promise<any>;
|
|
38
40
|
_handleEventEditFormat({ templateId, formatId, params, token }: AnyObject): Promise<any>;
|
|
41
|
+
_queryProxyOrigin(): Promise<void>;
|
|
39
42
|
_queryPrintFile(formatId: string, params?: string): Promise<any>;
|
|
40
|
-
|
|
43
|
+
_browserPrint(result: AnyObject, mode: string): Promise<string | void>;
|
|
44
|
+
preview({ templateId, formatId, params, btnprint, print }: AnyObject, successCallbackFn?: Func, errorCallbackFn?: Func): Promise<any>;
|
|
41
45
|
printDirect({ templateId, formatId, params, print, printdlgshow, nobillnode }: AnyObject, successCallbackFn: Func, errorCallbackFn: Func, mode?: string): Promise<any>;
|
|
42
46
|
private _downloadPDF;
|
|
43
47
|
/**
|