cnhis-design-vue 3.2.14-release.1 → 3.2.15-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/ai-chat/index.d.ts +1 -0
- package/es/components/ai-chat/src/Index.vue.d.ts +1 -0
- package/es/components/ai-chat/src/components/ChatCard.js +1 -1
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +1 -0
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatMain.js +1 -1
- package/es/components/ai-chat/src/components/ChatPatient.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatPrompt.vue2.js +1 -1
- package/es/components/ai-chat/style/index.css +1 -1
- package/es/components/audio-sdk/src/components/recording.vue2.js +1 -1
- package/es/components/base-search/index.d.ts +8 -3
- package/es/components/base-search/src/index.vue.d.ts +8 -3
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/big-table/src/components/NoData.vue2.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-date.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-time.js +1 -1
- package/es/components/big-table/src/components/input-button.vue2.js +1 -1
- package/es/components/big-table/src/hooks/useNestTable.js +1 -1
- package/es/components/big-table/src/hooks/useTableParse.js +1 -1
- package/es/components/body-select/src/index.vue2.js +1 -1
- package/es/components/branch-notice/index.d.ts +63 -0
- package/es/components/branch-notice/index.js +1 -0
- package/es/components/branch-notice/src/BranchNotice.vue.d.ts +64 -0
- package/es/components/branch-notice/src/BranchNotice.vue.js +1 -0
- package/es/components/branch-notice/src/BranchNotice.vue2.js +1 -0
- package/es/components/branch-notice/src/canstants.d.ts +7 -0
- package/es/components/branch-notice/src/canstants.js +1 -0
- package/es/components/branch-notice/src/components/NoticeItem.vue.d.ts +151 -0
- package/es/components/branch-notice/src/components/NoticeItemAside.vue.d.ts +35 -0
- package/es/components/branch-notice/src/components/NoticeOperationList.vue.d.ts +49 -0
- package/es/components/branch-notice/src/drawLine.d.ts +2 -0
- package/es/components/branch-notice/src/drawLine.js +1 -0
- package/es/components/branch-notice/src/types.d.ts +14 -0
- package/es/components/branch-notice/src/types.js +1 -0
- package/es/components/branch-notice/style/index.css +1 -0
- package/es/components/button-print/index.d.ts +4 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/EditFormat.vue2.js +1 -1
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +4 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/Preview.vue2.js +1 -1
- package/es/components/button-print/src/utils/dialog.js +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/calendar/index.d.ts +4 -4
- package/es/components/calendar/src/Calendar.vue.d.ts +4 -4
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +1 -1
- package/es/components/card-reader-sdk/src/utils/readHealthCard.js +1 -1
- package/es/components/classification/index.d.ts +1 -0
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
- package/es/components/classification/src/index.vue.d.ts +1 -0
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/classification/style/index.css +1 -1
- package/es/components/default-page/src/constants/index.js +1 -1
- package/es/components/default-page/src/index.vue2.js +1 -1
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue2.js +1 -1
- package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/expand-field/src/index.vue2.js +1 -1
- package/es/components/expand-field/src/utils/constant.js +1 -1
- package/es/components/fabric-chart/index.d.ts +23 -4
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +23 -4
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +13 -0
- package/es/components/fabric-chart/src/components/PopupTip.vue2.js +1 -1
- package/es/components/fabric-chart/src/components/useStyle.js +1 -1
- package/es/components/fabric-chart/src/constants/index.d.ts +1 -1
- package/es/components/fabric-chart/src/constants/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +7 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +3 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +3 -3
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +5 -4
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/Index.vue2.js +1 -1
- package/es/components/field-set/src/TableStyle.vue2.js +1 -1
- package/es/components/field-set/src/components/condition.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-filter.vue2.js +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +2 -2
- package/es/components/field-set/src/components/table-row.vue2.js +1 -1
- package/es/components/field-set/src/constants/filter.d.ts +21 -12
- package/es/components/field-set/src/constants/filter.js +1 -1
- package/es/components/field-set/src/constants/index.js +1 -1
- package/es/components/field-set/src/types/index.d.ts +1 -1
- package/es/components/form-config/index.d.ts +108 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +108 -3
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.js +1 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -0
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useLocale.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/tableCombination.js +1 -1
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/switch.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/usePresetScope.d.ts +1 -1
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -1
- package/es/components/iho-chat/index.d.ts +635 -54
- package/es/components/iho-chat/src/Index.vue.d.ts +638 -61
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/api/index.d.ts +1 -0
- package/es/components/iho-chat/src/api/index.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +32 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +52 -3
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +52 -2
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +221 -11
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +82 -6
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +19 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +49 -10
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +71 -4
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.d.ts +11 -2
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MessageTemplate.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +51 -2
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +19 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +69 -1
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +19 -1
- package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
- package/es/components/iho-chat/src/constants/index.d.ts +12 -3
- package/es/components/iho-chat/src/constants/index.js +1 -1
- package/es/components/iho-chat/src/hooks/index.d.ts +2 -2
- package/es/components/iho-chat/src/hooks/index.js +1 -1
- package/es/components/iho-chat/src/hooks/useData.d.ts +94 -0
- package/es/components/iho-chat/src/hooks/useData.js +1 -0
- package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -1
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +19 -1
- package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
- package/es/components/iho-chat/src/hooks/useWebSocket.d.ts +3 -0
- package/es/components/iho-chat/src/hooks/useWebSocket.js +1 -0
- package/es/components/iho-chat/src/types/index.d.ts +0 -6
- package/es/components/iho-chat/src/types/index.js +1 -1
- package/es/components/iho-chat/src/utils/chatSock.js +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +2 -0
- package/es/components/iho-chat/src/utils/index.js +1 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +1 -1
- package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +1 -1
- package/es/components/map/src/Map.vue2.js +1 -1
- package/es/components/picture-clipper/src/PictureClipper.vue2.js +1 -1
- package/es/components/quick-search/index.d.ts +3 -1
- package/es/components/quick-search/src/index.vue.d.ts +3 -1
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/recommend-search/src/components/BaseSearch.js +1 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue2.js +1 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +1 -1
- package/es/components/scale-view/index.d.ts +31 -0
- package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/NoData.vue2.js +1 -1
- package/es/components/scale-view/src/components/composables/choose-common.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +9 -0
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-input.d.ts +9 -0
- package/es/components/scale-view/src/components/formitem/r-input.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-map.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-radio.d.ts +9 -0
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-sign.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-methods.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +72 -0
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
- package/es/components/select-label/src/components/label-classify.vue2.js +1 -1
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -1
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -1
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -1
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/SelectPersonType.vue2.js +1 -1
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +1 -1
- package/es/components/select-person/src/index.vue2.js +1 -1
- package/es/components/slider-tree/src/index.vue2.js +1 -1
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -1
- package/es/components/table-export-field/src/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +3 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/tool/baseOptions.js +1 -1
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -1
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +1 -1
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +1 -1
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/iho-chat/src/hooks/useSession.d.ts +0 -12
- package/es/components/iho-chat/src/hooks/useSession.js +0 -1
- package/es/components/iho-chat/src/hooks/useState.d.ts +0 -18
- package/es/components/iho-chat/src/hooks/useState.js +0 -1
@@ -1 +1 @@
|
|
1
|
-
@font-face{font-family:classification-iconfont;src:url(classification-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:classification-iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-name{align-items:center;display:flex}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-input{margin-bottom:10px;margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;display:flex;justify-content:center;margin-bottom:10px;margin-right:10px;max-width:120px;padding:0 10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;display:flex;justify-content:center;line-height:1;width:18px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding:12px 0 0}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .filter-expression{display:flex;flex-direction:column}.classification-modal-block .n-card__content .class-filter-content .filter-expression .textarea{margin-top:6px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.classification-block .tree-type{border:1px solid #d5d5d5;border-radius:4px;height:100%;line-height:32px;margin-top:0;padding-bottom:80px;width:150px}.classification-block .tree-type .header{border-bottom:1px solid #e6eaef;display:flex;font-size:14px;justify-content:space-between;padding:0 10px}.classification-block .tree-type .header .header-1{align-items:center;cursor:pointer;display:flex}.classification-block .tree-type .tree{height:calc(100% - 32px);line-height:32px;margin:0;overflow:auto;padding-left:0}.classification-block .tree-type .tree::-webkit-scrollbar{width:5px}.classification-block .tree-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer}.classification-block .tree-type .tree .tree-item.tree-header{box-sizing:border-box;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .tree-type .tree .tree-item .header-item{box-sizing:border-box;line-height:1.4}.classification-block .tree-type .tree .tree-item .header-item.selected,.classification-block .tree-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children{align-items:center;display:flex;height:32px;padding-left:23px;padding-right:10px}.classification-block .tree-type .tree .tree-item .children .child-item{align-items:center;border-bottom:1px solid transparent;color:#7c7c7c;display:flex;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .tree-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-content{align-items:center;display:flex}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name{display:flex;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name .number{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .digital-span{flex:1;margin-left:5px;text-align:left}.classification-block .tree-type .tree .tree-item:last-child{border-bottom:none}.classification-block .tree-type .tree-type-footer{border-top:1px solid #d5d5d5;bottom:0;height:80px;line-height:20px;padding-left:16px;position:absolute;width:100%}.classification-block .tree-type .tree-type-footer .selected-num{margin:10px}.classification-block .tree-type .tree-type-footer .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;justify-content:center;margin-left:0}.classification-block .tile-type{border:1px solid #d5d5d5;border-radius:4px;margin-bottom:8px;padding:0 17px}.classification-block .tile-type .header{align-items:center;border-bottom:1px solid #d5d5d5;display:inline-flex;justify-content:space-between;line-height:44px;width:100%}.classification-block .tile-type .header .all-data{border-bottom:1px solid transparent;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:500;line-height:1.4;margin-right:auto}.classification-block .tile-type .header .all-data:hover{color:#2d7aff}.classification-block .tile-type .header .all-data:active{border-color:transparent;color:#000}.classification-block .tile-type .header .selected{color:#2d7aff}.classification-block .tile-type .header .right-setting{display:flex}.classification-block .tile-type .header .right-setting .setting-1{align-items:center;cursor:pointer;display:flex}.classification-block .tile-type .header .right-setting .setting-1 .n-icon{margin-right:6px}.classification-block .tile-type .header .right-setting .upack-up-btn{color:#2d7aff}.classification-block .tile-type .tile{border-bottom:1px solid #d5d5d5;margin:0;padding:9px 0}.classification-block .tile-type .tile .tile-item{cursor:pointer;display:flex;line-height:38px}.classification-block .tile-type .tile .tile-item .parent{box-sizing:border-box;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:600;max-width:135px;padding-right:16px;width:135px}.classification-block .tile-type .tile .tile-item .children{flex:1}.classification-block .tile-type .tile .tile-item .children .child-item{border-bottom:1px solid transparent;border-radius:4px;color:#7c7c7c;display:inline-block;font-size:14px;line-height:1.5;margin:0 5px;padding:1px 6px}.classification-block .tile-type .tile .tile-item .children .child-item.selected,.classification-block .tile-type .tile .tile-item .children .child-item:hover{background-color:rgba(45,122,255,.1);color:#2d7aff}.classification-block .tile-type .tile .tile-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tile-type .tile .tile-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tile-type .tile .tile-item .child-item.selected{color:#2d7aff}.classification-block .tile-type .selected-list{align-items:center;display:flex;padding:12px 6px}.classification-block .tile-type .selected-list .selected-num{font-size:14px;line-height:20px;margin-right:8px}.classification-block .tile-type .selected-list .selected-item{align-items:center;background-color:rgba(45,122,255,.1);border-radius:4px;color:#2d7aff;cursor:pointer;display:flex;margin-left:8px;padding:1px 8px}.classification-block .tile-type .selected-list .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;font-size:14px;line-height:20px;margin-left:22px}.classification-block .select-type{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px;position:relative;width:100px}.classification-block .select-type .title{align-items:center;border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;color:#969696;cursor:pointer;display:flex;font-size:12px;height:100%;justify-content:space-between;padding:0 8px;width:100%}.classification-block .select-type .title>.name{color:#212121;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .main-wrapper{background-color:#fff;border:1px solid #d5d5d5;border-radius:4px;min-width:270px;position:absolute;top:39px;width:100%;z-index:3000}.classification-block .select-type .main-wrapper::-webkit-scrollbar{width:5px}.classification-block .select-type .tree{margin:0;max-height:300px;overflow:auto;padding:32px 0}.classification-block .select-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer;line-height:32px}.classification-block .select-type .tree .tree-item.tree-header{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;height:40px;padding:0 10px;position:absolute;top:0;width:100%;z-index:1}.classification-block .select-type .tree .tree-item .tree-footer{align-items:center;color:rgba(0,0,0,.6);display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon{align-items:center;cursor:pointer;display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon .n-icon{margin-right:6px}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon:first-child{margin-right:16px}.classification-block .select-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .select-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .select-type .tree .tree-item .header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6);flex:1}.classification-block .select-type .tree .tree-item .header-item.selected,.classification-block .select-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children{align-items:center;display:flex;height:32px;line-height:32px;padding-left:23px;padding-right:10px}.classification-block .select-type .tree .tree-item .children .child-item{border-bottom:1px solid transparent;color:#7c7c7c;display:inline-block;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item .child-item-name{display:flex;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item .child-item-name .number{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item.child-header{padding:0 10px}.classification-block .select-type .tree .tree-item .children .child-item.header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6)}.classification-block .select-type .tree .tree-item .children .child-item.header-item.selected,.classification-block .select-type .tree .tree-item .children .child-item.header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .select-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .select-type .tree .tree-item:last-child{border-bottom:0}.classification-block .select-type .select-type-footer{align-items:center;background-color:#fff;border-top:1px solid #d5d5d5;bottom:0;display:flex;height:40px;justify-content:space-between;padding:0 12px;position:absolute;width:100%}.classification-block .select-type .select-type-footer .selected-num{color:rgba(0,0,0,.6)}.classification-block .select-type .select-type-footer .selected-item-del{color:#2474ff;cursor:pointer}.classification-block .item-count span{color:#db0a0a}
|
1
|
+
@font-face{font-family:classification-iconfont;src:url(classification-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:classification-iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-name{align-items:center;display:flex}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-input{margin-bottom:10px;margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;display:flex;justify-content:center;margin-bottom:10px;margin-right:10px;max-width:120px;padding:0 10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;display:flex;justify-content:center;line-height:1;width:18px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding:12px 0 0}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .filter-expression{display:flex;flex-direction:column}.classification-modal-block .n-card__content .class-filter-content .filter-expression .textarea{margin-top:6px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.classification-block .tree-type{border:1px solid #d5d5d5;border-radius:4px;height:100%;line-height:32px;margin-top:0;padding-bottom:80px;width:150px}.classification-block .tree-type .header{border-bottom:1px solid #e6eaef;display:flex;font-size:14px;justify-content:space-between;padding:0 10px}.classification-block .tree-type .header .header-1{align-items:center;cursor:pointer;display:flex}.classification-block .tree-type .tree{height:calc(100% - 32px);line-height:32px;margin:0;overflow:auto;padding-left:0}.classification-block .tree-type .tree::-webkit-scrollbar{width:5px}.classification-block .tree-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer}.classification-block .tree-type .tree .tree-item.tree-header{box-sizing:border-box;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .tree-type .tree .tree-item .header-item{box-sizing:border-box;line-height:1.4}.classification-block .tree-type .tree .tree-item .header-item.selected,.classification-block .tree-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children{align-items:center;display:flex;height:32px;padding-left:23px;padding-right:10px}.classification-block .tree-type .tree .tree-item .children .child-item{align-items:center;border-bottom:1px solid transparent;color:#7c7c7c;display:flex;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .tree-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-content{align-items:center;display:flex}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name{display:flex;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name .number{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .digital-span{flex:1;margin-left:5px;text-align:left}.classification-block .tree-type .tree .tree-item:last-child{border-bottom:none}.classification-block .tree-type .tree-type-footer{border-top:1px solid #d5d5d5;bottom:0;height:80px;line-height:20px;padding-left:16px;position:absolute;width:100%}.classification-block .tree-type .tree-type-footer .selected-num{margin:10px}.classification-block .tree-type .tree-type-footer .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;justify-content:center;margin-left:0}.classification-block .tile-type{border:1px solid #d5d5d5;border-radius:4px;margin-bottom:8px;padding:0 17px}.classification-block .tile-type .header{align-items:center;border-bottom:1px solid #d5d5d5;display:inline-flex;justify-content:space-between;line-height:44px;width:100%}.classification-block .tile-type .header .all-data{border-bottom:1px solid transparent;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:500;line-height:1.4;margin-right:auto}.classification-block .tile-type .header .all-data:hover{color:#2d7aff}.classification-block .tile-type .header .all-data:active{border-color:transparent;color:#000}.classification-block .tile-type .header .selected{color:#2d7aff}.classification-block .tile-type .header .right-setting{display:flex}.classification-block .tile-type .header .right-setting .setting-1{align-items:center;cursor:pointer;display:flex}.classification-block .tile-type .header .right-setting .setting-1 .n-icon{margin-right:6px}.classification-block .tile-type .header .right-setting .upack-up-btn{color:#2d7aff}.classification-block .tile-type .tile{border-bottom:1px solid #d5d5d5;margin:0;padding:9px 0}.classification-block .tile-type .tile .tile-item{cursor:pointer;display:flex;line-height:38px}.classification-block .tile-type .tile .tile-item .parent{box-sizing:border-box;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:600;max-width:135px;padding-right:16px;width:135px}.classification-block .tile-type .tile .tile-item .children{flex:1}.classification-block .tile-type .tile .tile-item .children .child-item{border-bottom:1px solid transparent;border-radius:4px;color:#7c7c7c;display:inline-block;font-size:14px;line-height:1.5;margin:0 5px;padding:1px 6px}.classification-block .tile-type .tile .tile-item .children .child-item.selected,.classification-block .tile-type .tile .tile-item .children .child-item:hover{background-color:rgba(45,122,255,.1);color:#2d7aff}.classification-block .tile-type .tile .tile-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tile-type .tile .tile-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tile-type .tile .tile-item .child-item.selected{color:#2d7aff}.classification-block .tile-type .selected-list{align-items:center;display:flex;padding:12px 6px}.classification-block .tile-type .selected-list .selected-num{font-size:14px;line-height:20px;margin-right:8px}.classification-block .tile-type .selected-list .selected-item{align-items:center;background-color:rgba(45,122,255,.1);border-radius:4px;color:#2d7aff;cursor:pointer;display:flex;margin-left:8px;padding:1px 8px}.classification-block .tile-type .selected-list .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;font-size:14px;line-height:20px;margin-left:22px}.classification-block .select-type{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px;position:relative;width:100px}.classification-block .select-type .title{align-items:center;border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;color:#969696;cursor:pointer;display:flex;font-size:12px;height:100%;justify-content:space-between;padding:0 8px;width:100%}.classification-block .select-type .title>.name{color:#212121;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .main-wrapper{background-color:#fff;border:1px solid #d5d5d5;border-radius:4px;min-width:270px;position:absolute;top:39px;width:100%;z-index:3000}.classification-block .select-type .main-wrapper::-webkit-scrollbar{width:5px}.classification-block .select-type .tree{margin:0;max-height:300px;overflow:auto;padding:32px 0}.classification-block .select-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer;line-height:32px}.classification-block .select-type .tree .tree-item.tree-header{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;height:40px;padding:0 10px;position:absolute;top:0;width:100%;z-index:1}.classification-block .select-type .tree .tree-item .tree-footer{align-items:center;color:rgba(0,0,0,.6);display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon{align-items:center;cursor:pointer;display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon .n-icon{margin-right:6px}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon:first-child{margin-right:16px}.classification-block .select-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .select-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .select-type .tree .tree-item .header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6);flex:1}.classification-block .select-type .tree .tree-item .header-item.selected,.classification-block .select-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children{align-items:center;display:flex;height:32px;line-height:32px;padding-left:23px;padding-right:10px}.classification-block .select-type .tree .tree-item .children .child-item{border-bottom:1px solid transparent;color:#7c7c7c;display:inline-block;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item .child-item-name{display:flex;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item .child-item-name .number{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item.child-header{padding:0 10px}.classification-block .select-type .tree .tree-item .children .child-item.header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6)}.classification-block .select-type .tree .tree-item .children .child-item.header-item.selected,.classification-block .select-type .tree .tree-item .children .child-item.header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .select-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .select-type .tree .tree-item:last-child{border-bottom:0}.classification-block .select-type .select-type-footer{align-items:center;background-color:#fff;border-top:1px solid #d5d5d5;bottom:0;display:flex;height:40px;justify-content:space-between;padding:0 12px;position:absolute;width:100%}.classification-block .select-type .select-type-footer .selected-num{color:rgba(0,0,0,.6)}.classification-block .select-type .select-type-footer .selected-item-del{color:#2474ff;cursor:pointer}.classification-block .item-count span{color:#db0a0a}
|
@@ -1 +1 @@
|
|
1
|
-
import
|
1
|
+
import e from"../../../../shared/assets/img/defaultCover/1location.png.js";import o from"../../../../shared/assets/img/defaultCover/2notfound.png.js";import t from"../../../../shared/assets/img/defaultCover/3loading.png.js";import n from"../../../../shared/assets/img/defaultCover/4no_permission.png.js";import i from"../../../../shared/assets/img/defaultCover/5no_data.png.js";import a from"../../../../shared/assets/img/defaultCover/6no_network.png.js";import l from"../../../../shared/assets/img/defaultCover/7no_doctor.png.js";import d from"../../../../shared/assets/img/defaultCover/8system_error.png.js";import g from"../../../../shared/assets/img/defaultCover/9system_upgrade.png.js";import s from"../../../../shared/assets/img/defaultCover/10review_successful.png.js";import r from"../../../../shared/assets/img/defaultCover/11review_fail.png.js";import w from"../../../../shared/assets/img/defaultCover/12no_setting.png.js";import m from"../../../../shared/assets/img/defaultCover/13no_menu_setting.png.js";import u from"../../../../shared/assets/img/defaultCover/14no_call_setting.png.js";import C from"../../../../shared/assets/img/defaultCover/15no_use_tag.png.js";import c from"../../../../shared/assets/img/defaultCover/16no_table_data.png.js";var E,N,O,v,f,p,T,L,S,A,I,R,y,B,_,h,j,D;const G={LOCATION:"1",NOTFOUND:"2",LOADING:"3",NOPERMISSION:"4",NODATA:"5",NONETWORK:"6",NODOCTOR:"7",SYSTEMERROR:"8",SYSTEMUPGRADE:"9",REVIEWSUCCESSFUL:"10",REVIEWFAIL:"11",NOSETTING:"12",NOMENUSETTING:"13",NOCALLSETTING:"14",NOUSETAG:"15",NOTABLEDATA:"16",REFRESHNOTICE:"17"},U={[G.LOCATION]:{title:(null==(E=window.getLanguageByCode)?void 0:E.call(window,"10010.1.440"))||"位置访问失败",content:"",img:e},[G.NOTFOUND]:{title:(null==(N=window.getLanguageByCode)?void 0:N.call(window,"10010.1.441"))||"找不到页面",content:"",img:o},[G.LOADING]:{title:"正在拼命加载中...",content:(null==(O=window.getLanguageByCode)?void 0:O.call(window,"10010.1.443"))||"请稍后",img:t},[G.NOPERMISSION]:{title:(null==(v=window.getLanguageByCode)?void 0:v.call(window,"10010.1.444"))||"你没有访问权限",content:"",img:n},[G.NODATA]:{title:(null==(f=window.getLanguageByCode)?void 0:f.call(window,"10010.1.445"))||"暂无数据",content:"",img:i},[G.NONETWORK]:{title:(null==(p=window.getLanguageByCode)?void 0:p.call(window,"10010.1.446"))||"请检查网络连接情况",content:"",img:a},[G.NODOCTOR]:{title:(null==(T=window.getLanguageByCode)?void 0:T.call(window,"10010.1.447"))||"暂无医生排班",content:"",img:l},[G.SYSTEMERROR]:{title:(null==(L=window.getLanguageByCode)?void 0:L.call(window,"10010.1.448"))||"系统错误",content:(null==(S=window.getLanguageByCode)?void 0:S.call(window,"10010.1.449"))||"请稍后再试",img:d},[G.SYSTEMUPGRADE]:{title:"系统正在升级中...",content:"",img:g},[G.REVIEWSUCCESSFUL]:{title:(null==(A=window.getLanguageByCode)?void 0:A.call(window,"10010.1.451"))||"审核成功",content:"",img:s},[G.REVIEWFAIL]:{title:(null==(I=window.getLanguageByCode)?void 0:I.call(window,"10010.1.452"))||"审核失败",content:"",img:r},[G.NOSETTING]:{title:(null==(R=window.getLanguageByCode)?void 0:R.call(window,"10010.1.453"))||"视图未配置",content:"",img:w},[G.NOMENUSETTING]:{title:"你还没有进行菜单设置哟~",content:(null==(y=window.getLanguageByCode)?void 0:y.call(window,"10010.1.455"))||"设置后可自定义调整菜单的顺序/结构,不设置使用系统默认菜单",img:m},[G.NOCALLSETTING]:{title:(null==(B=window.getLanguageByCode)?void 0:B.call(window,"10010.1.456"))||"呼叫中心未配置",content:"",img:u},[G.NOUSETAG]:{title:(null==(_=window.getLanguageByCode)?void 0:_.call(window,"10010.1.516"))||"无可选标签",content:"",img:C},[G.NOTABLEDATA]:{title:(null==(h=window.getLanguageByCode)?void 0:h.call(window,"10010.1.445"))||"暂无数据",content:"",img:c},[G.REFRESHNOTICE]:{title:(null==(j=window.getLanguageByCode)?void 0:j.call(window,"10010.1.458"))||"更新提示",content:(null==(D=window.getLanguageByCode)?void 0:D.call(window,"10010.1.459"))||"系统有新内容更新,请点击按钮重载页面,以确保系统功能正常",img:t}};export{G as defaultPageTypeConfig,U as descriptionConfig};
|
@@ -1 +1 @@
|
|
1
|
-
import{
|
1
|
+
import{createElementVNode as t,defineComponent as e,computed as l,openBlock as i,createElementBlock as n,createCommentVNode as s,renderSlot as o,unref as a,Fragment as c,createTextVNode as r,toDisplayString as p,createVNode as g}from"vue";import{descriptionConfig as d}from"./constants/index.js";import{NIcon as m}from"naive-ui";import{Refresh as f}from"@vicons/ionicons5";var u;const y={class:"default-page-getter-block"},v={key:0,class:"wrapper"},k=["src","alt"],x=["src","alt"],b={class:"page-description"},w={class:"title"},j={key:0,class:"reload-page"},h=t("span",{style:{margin:"0 6px"}},"|",-1),O=t("span",null,(null==(u=window.getLanguageByCode)?void 0:u.call(window,"10010.1.460"))||"重载页面",-1),$={class:"content"};var C=e({__name:"index",props:{type:{type:String,default:"1"},config:{type:Object,default:()=>({title:"",content:""})}},emits:["reloadPage"],setup(e,{emit:u}){const C=e,P=l((()=>{let t=d[C.type];return C.config&&Object.keys(C.config).length>0&&Object.keys(C.config).forEach((e=>{const l=C.config[e];l&&(t[e]=l)})),t}));function _(){u("reloadPage")}return(l,d)=>(i(),n("div",y,[s(" 默认插槽,自定义缺省页 "),o(l.$slots,"default",{},(()=>[e.type?(i(),n("div",v,[s(" 针对小空间和表格的情况 "),"16"==e.type?(i(),n("img",{key:0,class:"img-table",src:a(P).img,alt:a(P).title},null,8,k)):(i(),n(c,{key:1},[s(" 普通缺省情况 "),t("img",{class:"img-default",src:a(P).img,alt:a(P).title},null,8,x)],2112)),t("div",b,[t("div",w,[s(" 标题插槽 "),o(l.$slots,"title",{},(()=>[r(p(a(P).title)+" ",1),"17"==e.type?(i(),n("div",j,[h,t("span",{class:"reload-text",onClick:_},[g(a(m),{component:a(f),size:"16",style:{"margin-right":"3px"}},null,8,["component"]),O])])):s("v-if",!0)]))]),t("div",$,[s(" 内容描述插槽 "),o(l.$slots,"content",{},(()=>[r(p(a(P).content),1)]))])])])):s("v-if",!0)]))]))}});export{C as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{
|
1
|
+
import{createElementVNode as e,defineComponent as l,ref as a,watch as t,openBlock as i,createBlock as n,unref as o,withCtx as d,createVNode as r,createTextVNode as u}from"vue";import{NModal as s,NCard as c,NButton as v,NInput as g}from"naive-ui";var p;const h={class:"flex_right"},w={class:"barch-container"},f=e("div",null,(null==(p=window.getLanguageByCode)?void 0:p.call(window,"10010.1.562"))||"每行一个,输入格式为:选项值,选项文本",-1);var x=l({__name:"FormBatchOptionsModal",props:{visible:{type:Boolean,default:!1},options:{type:Array,default:()=>[]}},emits:["handleSaveBatch","triggerBatch"],setup(l,{emit:p}){var x;const m=l,y=(null==(x=window.getLanguageByCode)?void 0:x.call(window,"10010.1.563"))||"1,男\n2,女",b=a("");function B(){let e=b.value.split(/[\n]/).filter((e=>!!e)).map(((e,l)=>{let a=[];return a=e.includes(",")?e.split(","):e.split(","),{value:a[0],text:a[1]||""}}));p("handleSaveBatch",e),C()}function C(){p("triggerBatch",!1)}return t((()=>m.visible),(e=>{e&&function(){let e=m.options;if(!e.length)return;let l=e.map((e=>e.value||e.text?`${e.value||""},${e.text||""}`:"")).filter((e=>!!e));l.length&&(b.value=l.join("\n"))}()}),{immediate:!0}),(a,t)=>(i(),n(o(s),{class:"expand-field-modal-block",show:l.visible,maskClosable:!1,width:"860px",bodyStyle:"height: 496px;maxHeight: 496px;",closable:!1,centered:"",onPositiveClick:B,onNegativeClick:C},{default:d((()=>{var l;return[r(o(c),{style:{width:"860px",height:"496px",maxHeight:"496px"},title:(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.538"))||"批量编辑",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":d((()=>[e("div",{class:"svg-wrap"},[e("i",{onClick:C,class:"iconfont-expand-field icon-expand-field-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:d((()=>[e("div",h,[r(o(v),{onClick:C},{default:d((()=>{var e;return[u((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.32"))||"取消")]})),_:1}),r(o(v),{type:"info",onClick:B},{default:d((()=>{var e;return[u((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1})])])),default:d((()=>[e("div",w,[f,r(o(g),{value:b.value,"onUpdate:value":t[0]||(t[0]=e=>b.value=e),placeholder:y,type:"textarea",clearable:"",rows:6},null,8,["value"])])])),_:1})]})),_:1},8,["show"]))}});export{x as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,inject as n,ref as
|
1
|
+
import{defineComponent as e,inject as n,ref as a,openBlock as t,createElementBlock as l,createElementVNode as i,createVNode as o,unref as r,withCtx as u,createBlock as s,Fragment as d,renderList as c,createTextVNode as p,toDisplayString as f,createCommentVNode as v}from"vue";import{NInputGroup as m,NInput as g,NTooltip as h,NTag as y,NButton as k}from"naive-ui";import{InjectionExpandFieldApiConfig as w}from"../constants/index.js";import I from"../hooks/useAsyncData.js";import C from"./PersonModal.vue.js";import{isJSON as b}from"../utils/tool.js";const _={class:"people-wrap"},P={key:1,class:"inner-content"},j={class:"tagSpanClass"},x={key:0,class:"tagClearAll"};var $=e({__name:"FormItemPerson",props:{defaultValue:{type:[Array,String]},orgId:{type:String,default:""}},emits:["checkPerson"],setup(e,{emit:$}){const A=e,{findAllDeptEmpByOrg:D}=I(),L=n(w),S=a([]),T=a([]),B=a([]),M=a(),V=a(null),z=a(!1);function E(e){$("checkPerson",e)}function O(){z.value=!z.value}function F(){J([])}function J(e){S.value=e,T.value=e.map((e=>e.id)),$("checkPerson",e)}async function N(){await async function(){const{success:e,data:n}=await D({orgId:A.orgId},L);if(!e||!(null==n?void 0:n.length))return;function a(e){const n=[];return e.forEach((e=>{var t;const l={title:e.name,id:e.id,name:e.name,key:e.id,type:e.type,parentId:e.parentId};(null==(t=e.children)?void 0:t.length)&&(l.children=a(e.children)),n.push(l)})),n}B.value=a(n)}()}return async function(){await N(),function(){let e=A.defaultValue;if(e&&b(e)&&(e=JSON.parse(e)),"string"==typeof e&&e.startsWith("${"))return M.value=e,$("checkPerson",e),[];e&&e.length&&J(e)}()}(),(n,a)=>(t(),l("div",null,[i("div",_,[o(r(m),null,{default:u((()=>{var e;return[S.value.length?(t(),l("div",P,[o(r(h),{trigger:"hover"},{trigger:u((()=>[i("span",j,[(t(!0),l(d,null,c(S.value,(e=>(t(),s(r(y),{key:e.key,closable:!1,"disable-transitions":!1},{default:u((()=>[p(f(e.tempTitle?`${e.name}(${e.tempTitle})`:e.name),1)])),_:2},1024)))),128))])])),default:u((()=>[p(" "+f(S.value.map((e=>e.tempTitle?`${e.name}(${e.tempTitle})`:e.name)).join(" ")),1)])),_:1}),S.value.length?(t(),l("span",x,[i("i",{onClick:F,class:"iconfont-expand-field icon-expand-field-menzhenyishengzhanxitongtubiaoguanbi"})])):v("v-if",!0)])):(t(),s(r(g),{key:0,value:M.value,"onUpdate:value":[a[0]||(a[0]=e=>M.value=e),E],placeholder:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.383"))||"请输入"},null,8,["value"])),o(r(k),{type:"primary",onClick:O},{default:u((()=>{var e;return[p((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.543"))||"选择")]})),_:1})]})),_:1})]),o(C,{ref_key:"personModalRef",ref:V,visible:z.value,orgId:e.orgId,defaultList:T.value,treeData:B.value,onCheck:J,onChangeModalVisible:O},null,8,["visible","orgId","defaultList","treeData"])]))}});export{$ as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as a,openBlock as o,createBlock as t,unref as i,withCtx as n,createVNode as l,createElementVNode as d,createTextVNode as r}from"vue";import{NModal as s,NCard as u,NButton as
|
1
|
+
import{defineComponent as e,ref as a,openBlock as o,createBlock as t,unref as i,withCtx as n,createVNode as l,createElementVNode as d,createTextVNode as r}from"vue";import{NModal as s,NCard as u,NButton as c}from"naive-ui";import p from"../../../select-person/index.js";const _={class:"flex_right"};var f=e({__name:"PersonModal",props:{visible:{type:Boolean,default:!1},defaultList:{type:Array,default:()=>[]},treeData:{type:Array,default:()=>[]}},emits:["check","changeModalVisible"],setup(e,{emit:f}){const m=a({parent_id_obj:"id",parent_id_obj_key:"id",parent_name_obj:"name",parent_name_obj_key:"name",user_count_obj:"count"}),g={user_id_obj:"id",user_id_obj_key:"id",user_name_obj:"name",user_name_obj_key:"name"},h=a([]),b=a([]);function v(){f("check",b.value),h.value=[],w()}function w(){f("changeModalVisible")}function y(e){const a=e.map((e=>e.originItem));a.forEach((e=>{e.parentNode&&delete e.parentNode})),b.value=a}return(a,f)=>(o(),t(i(s),{class:"expand-field-modal-block expand-person-modal",show:e.visible,maskClosable:!1,width:"700px",bodyStyle:"height: 556px;maxHeight: 556px;",closable:!1,centered:"",onPositiveClick:v,onNegativeClick:w},{default:n((()=>{var a;return[l(i(u),{style:{width:"700px",height:"556px",maxHeight:"556px"},title:(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.538"))||"批量编辑",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":n((()=>[d("div",{class:"svg-wrap"},[d("i",{onClick:w,class:"iconfont-expand-field icon-expand-field-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:n((()=>[d("div",_,[l(i(c),{onClick:w},{default:n((()=>{var e;return[r((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.32"))||"取消")]})),_:1}),l(i(c),{type:"info",onClick:v},{default:n((()=>{var e;return[r((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1})])])),default:n((()=>[l(i(p),{style:{padding:"0"},ref:"personRef",wordbook:m.value,wordbookChild:g,data:e.treeData,defaultList:e.defaultList,onCheckWithLevel:y},null,8,["wordbook","data","defaultList"])])),_:1})]})),_:1},8,["show"]))}});export{f as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as l,inject as a,computed as t,watch as u,openBlock as n,createBlock as i,unref as o,normalizeClass as v,withCtx as d,createVNode as r,normalizeStyle as s,createElementVNode as p,createTextVNode as f,createCommentVNode as m,createElementBlock as c,Fragment as y,renderList as h,withDirectives as _,withKeys as g,withModifiers as b,vShow as x,toDisplayString as k}from"vue";import{useMessage as M,NModal as w,NCard as H,NButton as C,NForm as U,NFormItem as S,NInput as j,NTooltip as O,NSelect as I,NGrid as z,NGridItem as T,NIcon as N,NInputNumber as Y,NPopover as $,NDatePicker as L,NTimePicker as V,NSwitch as B}from"naive-ui";import{isMulti as D,isShowOptions as F,isNumber as P,isDate as q,isCandidate as A,isTextarea as E}from"../utils/index.js";import J from"moment";import{InjectionExpandFieldApiConfig as K}from"../constants/index.js";import R from"../hooks/useAsyncData.js";import{HtmlTypeList as W}from"../utils/constant.js";import{isJSON as X,isValidDate as G}from"../utils/tool.js";import Q from"./FormBatchOptionsModal.vue.js";import Z from"./FormItemPerson.vue.js";const ee={class:"svg-wrap"},le={class:"flex_right"},ae={class:"options-title"},te=p("span",null,"字段键名",-1),ue=p("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),ne={class:"options-title"},ie=p("span",null,"字段问号提示",-1),oe=p("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),ve={class:"options-title"},de=p("span",null,"选项值",-1),re=p("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[p("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),p("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),p("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),p("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),se={class:"options-title"},pe=p("span",null,"默认值",-1),fe=p("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),me={style:{display:"flex","align-items":"center"}},ce=p("span",null,"选择",-1),ye={style:{width:"100%"}},he={key:0,class:"validate_tip"};var _e=e({__name:"form",props:{visible:{type:Boolean,default:!1},formOntype:{type:String,default:"add"},formItemData:{type:Object,default:()=>({})},id:{type:String,default:""},orgId:{type:String,default:""},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]}},emits:["cancelModal"],setup(e,{emit:_e}){const ge=e,be=M(),xe="请输入默认值",ke={name:[{required:!0,message:"请输入字段标题",trigger:["input","blur"]}],html_type:[{required:!0,message:"请选择字段类型",trigger:["input","blur"]}]},Me=[{value:"yyyy-MM-dd HH:mm:ss",label:"年-月-日 时:分:秒"},{value:"yyyy-MM-dd HH:mm",label:"年-月-日 时:分"},{value:"yyyy-MM-dd",label:"年-月-日"},{value:"yyyy-MM",label:"年-月"},{value:"MM-dd HH:mm",label:"月-日 时:分"},{value:"MM-dd",label:"月-日"},{value:"HH:mm:ss",label:"时:分:秒"},{value:"HH:mm",label:"时:分"}],we=[{value:"12",label:"整行"},{value:"6",label:"半行"},{value:"4",label:"1/3行"},{value:"8",label:"2/3行"},{value:"3",label:"1/4行"},{value:"9",label:"3/4行"},{value:"2",label:"1/6行"},{value:"10",label:"5/6行"},{value:"1.5",label:"1/8行"},{value:"10.5",label:"7/8行"}],He=l(!1),Ce=l("860px");let Ue=l({maxHeight:"496px",height:"496px"});const{saveOrUpdateExtendField:Se}=R(),je=a(K),Oe=l(null),Ie=l({name:void 0,remark:void 0,is_edit:"1",is_null:"1",is_show:"1",key:"",val_key:void 0,validate:{},html_type:"INPUT",name_i18n:void 0,elem_width:"12",default_val:void 0,label_type:void 0,isMultiSelect:"0",decimal_length:void 0,date_format:""}),ze=l([{text:void 0,value:void 0}]),Te=l({format:"yyyy-MM-dd HH:mm:ss",dateType:"date",mode:"date",value:null,showTime:!0,open:!1,componentType:"datetime"}),Ne=l({obj_type:"",vali_obj:"",event_obj:"",max_length:"",min_length:"",min_value:"",max_value:""}),Ye=l({value_key:"",levelSetting:[],search_key:[],level_num:void 0,render_key:[],name:"",level_key:"",id:"",type:"",primary_key:"",sqlExpression:"",conObj:"",add_btn:"",setting:{cascading:[]}}),$e=l(!1),Le=l(!1),Ve=l(void 0),Be=l(!1),De=l(!1);l(!1);const Fe=l(!1),Pe=l(""),qe=t((()=>"edit"===ge.formOntype)),Ae=t((()=>Ie.value.html_type||""));t((()=>"TEXTAREA"===Ae.value?1e3:255));const Ee=t((()=>ze.value.filter((e=>e.value&&e.text)))),Je=t((()=>D(Ae.value))),Ke=t((()=>"date"===Te.value.dateType));function Re(e){Fe.value=e}function We(e){let l=e;"string"!=typeof e&&(l=JSON.stringify(e)),Ie.value.default_val=l}function Xe(e){Te.value.value=null,Ie.value.default_val=void 0,nl(e)}function Ge(){He.value=!He.value;let e=document.body.clientHeight;"860px"===Ce.value?(Ce.value="100%",Ue.value.maxHeight=`${e}px`,Ue.value.height=`${e}px`):(Ce.value="860px",Ue.value.maxHeight="496px",Ue.value.height="")}function Qe(e){return["HH:mm:ss","HH:mm"].includes(e)}function Ze(e,l){switch(e){case"isNull":$e.value=l,Ie.value.is_null=l?"0":"1";break;case"isMultiSelect":Le.value=l,Ie.value.isMultiSelect=l?"1":"0"}}function el(){if("add"===ge.formOntype)return;let e=Object.assign({},ge.formItemData),l=e.setting;l&&X(l)&&(l=JSON.parse(l),delete e.setting,Object.assign(e,{...l})),e.key=e.code,delete e.code,q(e.html_type)&&function(e){nl(e.date_format);let l=e.default_val;l&&!l.startsWith("${")&&(Qe(e.date_format)&&(l=`${J().format("YYYY-MM-dd")} ${l}`),G(new Date(l))&&(Te.value.value=J(l)))}(e),D(e.html_type)&&(e.default_val=function(e){let l=e.default_val;return l?l.split(",").filter(Boolean):[]}(e)),$e.value="0"==e.is_null,Le.value="1"==e.isMultiSelect,Ne.value=Object.assign(Ne.value,e.validate||{}),Ye.value=Object.assign(Ye.value,e.wordbook||{}),Ie.value=Object.assign(Ie.value,e||{}),F(e.html_type)&&function(e){let l=(null==e?void 0:e.optionValue)||[];l.length||l.push({text:void 0,value:void 0}),ze.value=[...l],delete e.optionValue}(e)}function ll(e){Ie.value.html_type=e,ze.value=[{text:void 0,value:void 0}];let l=function(){if(D(Ae.value))return[]}();Ie.value.default_val=l,q(e)?Ie.value.date_format="yyyy-MM-dd HH:mm:ss":Ie.value.date_format=""}function al(){ze.value.push({value:"",text:""})}function tl(e){let l=e;(e<0||0===e)&&(l=0),e>5&&(l=5),Ve.value=0===l?l:l||void 0}function ul(e){ze.value=e}function nl(e){let l=e||"yyyy-MM-dd HH:mm:ss",a=Qe(l)?"time":"date",t="yyyy-MM"===l?"month":"date";let u=function(e){return["yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","MM-dd HH:mm"].includes(e)}(l),n="";["yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","MM-dd HH:mm"].includes(e)&&(n="datetime"),["yyyy-MM-dd","MM-dd"].includes(e)&&(n="date"),Object.assign(Te.value,{format:l,dateType:a,mode:t,showTime:u,componentType:n})}function il(e,l){if(e)return l&&(l.includes("yyyy")&&(l=l.replace("yyyy","YYYY")),l.includes("dd")&&(l=l.replace("dd","DD"))),J(e).format(l)}function ol(){Te.value.open=!Te.value.open}function vl(e){let l=il(e,Te.value.format);Ie.value.default_val=l}function dl(e){let l=il(e,Te.value.format);Ie.value.default_val=l,Te.value.format.includes("HH:mm")||ol()}function rl(e){let l=il(e,Te.value.format);Ie.value.default_val=l}function sl(){_e("cancelModal"),Ce.value="860px",Ue.value={height:"496px",maxHeight:"496px"},He.value=!1,Ie.value={name:void 0,remark:void 0,is_edit:"1",is_null:"1",is_show:"1",key:"",val_key:void 0,validate:{},html_type:"INPUT",name_i18n:void 0,elem_width:"12",default_val:void 0,label_type:void 0,isMultiSelect:"0",decimal_length:void 0,date_format:""}}function pl(){var e;null==(e=Oe.value)||e.validate((async e=>{if(e)return;let l=Object.assign({},Ie.value);if(l.validate={...Ne.value},l.extendId=ge.id,F(Ae.value)){let e=function(){let e={validate:!1,message:"请完善选项配置"};if(!ze.value||!ze.value.length)return e;let l,a,t,u=0,n=ze.value.length,i=!1;for(;u<n;u++){if(l=ze.value[u],a=l.value?l.value.trim():l.value,t=l.text?l.text.trim():l.text,!a||!t){i=!0;break}l.value=a,l.text=t}return[...new Set(ze.value.map((e=>e.value)))].length!==ze.value.length?(e.message="选项值不能重复",e):(!i&&(e.validate=!0),e)}();if(!e.validate)return Be.value=!0,void be.warning(e.message);Be.value=!1,l.option=[...ze.value]}if(P(Ae.value)?l.default_val=function(e){let l=e.default_val;if(void 0===Ve.value)return l;if(!l)return l;let a=String(l).split(".")[1];return a&&a.length!==Ve.value?Number(l.toFixed(Ve.value)):l}(l):D(Ae.value)&&(l.default_val=l.default_val.join(",")),!A(Ae.value)||function(e){let{default_val:l}=e;Pe.value="",l&&X(l)&&(l=JSON.parse(l));let a=function(e,l){if(!e)return;if("string"!=typeof e)return;if(!(e=e.trim()))return!0;if(!e.startsWith("${"))return fl(l,"请输入有效系统变量"),"error";let a=/\${sys.(.*?)\}/g.exec(e);if(!a||!a[1])return fl(l,"请输入有效系统变量"),"error";return!0}(l,e);if(a)return"error"!==a;if(console.log("saveOjb.isMultiSelect>>>",e.isMultiSelect),console.log("default_val?.length>>>",null==l?void 0:l.length),"0"===e.isMultiSelect&&(null==l?void 0:l.length)>1)return console.log("进入到判断里面了>>>>>"),fl(e,"选人组件为单选"),!1;return!0}(l)){for(let e in l){let a=l[e];"string"==typeof a&&(l[e]=null==a?void 0:a.trim())}console.log("saveOjb>>>",l),await async function(e={}){De.value=!0;try{const l=await Se(e,je);if(De.value=!1,"SUCCESS"!==(null==l?void 0:l.result))return void be.error((null==l?void 0:l.resultMsg)||"保存失败");sl()}catch(e){De.value=!1}}(l)}}))}function fl(e,l){Pe.value=l}return u((()=>ge.visible),(e=>{e&&el()})),(l,a)=>(n(),i(o(w),{class:v(["expand-field-modal-block",{"modal-screen":He.value}]),show:e.visible,maskClosable:!1,width:Ce.value,bodyStyle:o(Ue),closable:!1,centered:"",onPositiveClick:pl,onNegativeClick:sl},{default:d((()=>[r(o(H),{style:s({width:Ce.value,...o(Ue)}),title:"add"===ge.formOntype?"新增拓展字段":"编辑拓展字段",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":d((()=>[p("div",ee,[p("i",{onClick:Ge,class:v(["iconfont-expand-field",He.value?"icon-expand-field-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-expand-field-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),p("i",{onClick:sl,class:"iconfont-expand-field icon-expand-field-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:d((()=>[p("div",le,[r(o(C),{onClick:sl},{default:d((()=>[f("取消")])),_:1}),r(o(C),{type:"info",onClick:pl},{default:d((()=>[f("保存")])),_:1})])])),default:d((()=>[r(o(U),{ref_key:"formRef",ref:Oe,model:Ie.value,rules:ke},{default:d((()=>[r(o(S),{path:"name",label:"字段标题","require-mark-placement":"left"},{default:d((()=>[r(o(j),{value:Ie.value.name,"onUpdate:value":a[0]||(a[0]=e=>Ie.value.name=e),maxlength:100,clearable:"",placeholder:"请输入"},null,8,["value"])])),_:1}),r(o(S),{path:"key"},{label:d((()=>[p("div",ae,[te,r(o(O),{duration:0},{trigger:d((()=>[ue])),default:d((()=>[f(" 数据库字段键名,不填写时由系统生成,填写则以填写为准 ")])),_:1})])])),default:d((()=>[r(o(j),{value:Ie.value.key,"onUpdate:value":a[1]||(a[1]=e=>Ie.value.key=e),maxlength:32,disabled:o(qe),clearable:"",placeholder:"数据库字段键名,不填写时由系统生成,填写则以填写为准"},null,8,["value","disabled"])])),_:1}),r(o(S),{path:"html_type",label:"字段类型","require-mark-placement":"left"},{default:d((()=>[r(o(I),{value:Ie.value.html_type,"onUpdate:value":[a[2]||(a[2]=e=>Ie.value.html_type=e),ll],placeholder:"请选择字段类型",clearable:"",filterable:"",options:o(W)},null,8,["value","options"])])),_:1}),r(o(S),{path:"remark",label:"字段问号提示"},{label:d((()=>[p("div",ne,[ie,r(o(O),{duration:0},{trigger:d((()=>[oe])),default:d((()=>[f(" 设置后该字段旁会有问号图标,鼠标悬浮展示“问号提示”内容,常用于告诉用户该字段的含义 ")])),_:1})])])),default:d((()=>[r(o(j),{value:Ie.value.remark,"onUpdate:value":a[3]||(a[3]=e=>Ie.value.remark=e),placeholder:"请输入",type:"textarea",clearable:"",maxlength:255,rows:3},null,8,["value"])])),_:1}),m(" 选项值>>>>>类型对应关系 "),o(F)(o(Ae))?(n(),i(o(S),{key:0},{label:d((()=>[p("div",ve,[de,p("span",{class:"batch-span",onClick:al},"添加选项"),p("span",{class:"batch-span",onClick:a[4]||(a[4]=()=>Re(!0))},"批量编辑")])])),default:d((()=>[p("div",{class:v(["options-item",{"options-item-err":Be.value}])},[(n(!0),c(y,null,h(ze.value,((e,l)=>(n(),i(o(z),{class:"mgb-10",key:l,cols:24,"x-gap":8,"y-gap":8},{default:d((()=>[r(o(T),{span:11},{default:d((()=>[r(o(j),{value:e.value,"onUpdate:value":l=>e.value=l,maxLength:100,allowClear:"",placeholder:"选项值"},null,8,["value","onUpdate:value"])])),_:2},1024),r(o(T),{span:11},{default:d((()=>[r(o(j),{value:e.text,"onUpdate:value":l=>e.text=l,maxLength:100,allowClear:"",placeholder:"选项文本"},null,8,["value","onUpdate:value"])])),_:2},1024),r(o(T),{span:2,class:"flex-center"},{default:d((()=>[ze.value.length>1?(n(),i(o(N),{key:0,onClick:a=>function(e,l){ze.value.splice(l,1);let a=Ie.value.default_val;if(D(Ae.value)){if(!a||!a.length)return;let l=a.findIndex((l=>l===e.value));l||a.splice(l,1)}else{if(!a)return;a===e.value&&(a=void 0)}Ie.value.default_val=a}(e,l)},{default:d((()=>[re])),_:2},1032,["onClick"])):m("v-if",!0)])),_:2},1024)])),_:2},1024)))),128))],2)])),_:1})):m("v-if",!0),o(P)(o(Ae))?(n(),i(o(S),{key:1,path:"decimal_length",label:"小数位"},{default:d((()=>[r(o(Y),{style:{width:"100%"},min:0,max:5,placeholder:"请输入",precision:0,clearable:"",value:Ie.value.decimal_length,"onUpdate:value":[a[5]||(a[5]=e=>Ie.value.decimal_length=e),tl]},null,8,["value"])])),_:1})):m("v-if",!0),o(q)(o(Ae))?(n(),i(o(S),{key:2,path:"date_format",label:"日期格式"},{default:d((()=>[r(o(I),{style:{width:"100%"},value:Ie.value.date_format,"onUpdate:value":[a[6]||(a[6]=e=>Ie.value.date_format=e),Xe],placeholder:"请选择",options:Me},null,8,["value"])])),_:1})):m("v-if",!0),m(" 默认值>>>>>类型对应关系 "),r(o(S),{path:"default_val",label:"默认值"},{label:d((()=>[p("div",se,[pe,o(A)(o(Ae))?(n(),i(o(O),{key:0,duration:0},{trigger:d((()=>[fe])),default:d((()=>[f(" 支持输入系统变量当前操作人${sys.userId},也支持选择一个人 ")])),_:1})):m("v-if",!0)])])),default:d((()=>[o(E)(o(Ae))?(n(),i(o(j),{key:0,value:Ie.value.default_val,"onUpdate:value":a[7]||(a[7]=e=>Ie.value.default_val=e),placeholder:xe,type:"textarea",clearable:"",maxlength:1e3,rows:3},null,8,["value"])):o(P)(o(Ae))?(n(),c(y,{key:1},[m(" 数字框 "),r(o(Y),{style:{width:"100%"},clearable:"",placeholder:xe,precision:Ve.value,value:Ie.value.default_val,"onUpdate:value":a[8]||(a[8]=e=>Ie.value.default_val=e)},null,8,["precision","value"])],2112)):o(F)(o(Ae))?(n(),c(y,{key:2},[m(" 下拉框、横向单选、纵向单选、横向多选、纵向多选、下拉多选框 "),r(o(I),{style:{width:"100%"},multiple:o(Je),clearable:"",value:Ie.value.default_val,"onUpdate:value":a[9]||(a[9]=e=>Ie.value.default_val=e),"label-field":"text",placeholder:xe,options:o(Ee)},null,8,["multiple","value","options"])],2112)):o(q)(o(Ae))?(n(),c(y,{key:3},[m(" 日期 "),p("div",me,[r(o(j),{clearable:"",maxLength:255,value:Ie.value.default_val,"onUpdate:value":a[10]||(a[10]=e=>Ie.value.default_val=e),placeholder:xe},null,8,["value"]),o(Ke)?(n(),c(y,{key:0},["month"===Te.value.mode?(n(),i(o($),{key:0,trigger:"click",show:Te.value.open},{trigger:d((()=>[r(o(C),{type:"info",onClick:ol},{default:d((()=>[f("选择")])),_:1})])),default:d((()=>[r(o(L),{panel:"",value:Te.value.value,"onUpdate:value":[a[11]||(a[11]=e=>Te.value.value=e),vl],type:"month","input-readonly":"",clearable:"",onConfirm:ol},null,8,["value"])])),_:1},8,["show"])):(n(),i(o($),{key:1,trigger:"click",show:Te.value.open},{trigger:d((()=>[r(o(C),{type:"info",onClick:ol},{default:d((()=>[f("选择")])),_:1})])),default:d((()=>[r(o(L),{panel:"",value:Te.value.value,"onUpdate:value":[a[12]||(a[12]=e=>Te.value.value=e),dl],format:Te.value.format,type:Te.value.componentType,"input-readonly":"",clearable:"",onConfirm:ol},null,8,["value","format","type"])])),_:1},8,["show"]))],64)):(n(),c(y,{key:1},[m(' <n-input\r\n allowClear\r\n :maxLength="255"\r\n v-model:value="dateInfo.value"\r\n @keydown.enter.prevent\r\n :placeholder="defaultPlaceholder"\r\n /> '),r(o(C),{type:"info",class:"date-time-button"},{default:d((()=>[ce,r(o(V),{value:Te.value.value,"onUpdate:value":[a[13]||(a[13]=e=>Te.value.value=e),rl],format:Te.value.format,"input-readonly":"",clearable:""},null,8,["value","format"])])),_:1}),m(' <n-popover trigger="click">\r\n <template #trigger>\r\n <n-button type="info">选择</n-button>\r\n </template>\r\n <n-time-picker\r\n panel\r\n v-model:value="dateInfo.value"\r\n :format="dateInfo.format"\r\n input-readonly\r\n clearable\r\n @update:value="timeChange"\r\n >\r\n <template v-slot:icon>111</template>\r\n\r\n </n-time-picker>\r\n </n-popover> ')],64))])],2112)):o(A)(o(Ae))?(n(),c(y,{key:4},[m(" 选人组件(增加一个选人组件) "),p("div",ye,[_(r(o(j),{allowClear:"",maxLength:255,value:Ie.value.default_val,"onUpdate:value":a[14]||(a[14]=e=>Ie.value.default_val=e),onKeydown:a[15]||(a[15]=g(b((()=>{}),["prevent"]),["enter"])),placeholder:xe},null,8,["value"]),[[x,!1]]),m(' 点击弹出选人组件弹窗 :mainForm="this" '),r(Z,{orgId:e.orgId,defaultValue:Ie.value.default_val,onCheckPerson:We},null,8,["orgId","defaultValue"]),Pe.value?(n(),c("span",he,k(Pe.value),1)):m("v-if",!0),m(' <n-button type="info">选择</n-button> ')])],2112)):(n(),c(y,{key:5},[m(" 其他 "),r(o(j),{value:Ie.value.default_val,"onUpdate:value":a[16]||(a[16]=e=>Ie.value.default_val=e),onKeydown:a[17]||(a[17]=g(b((()=>{}),["prevent"]),["enter"])),placeholder:"请输入默认值"},null,8,["value"])],2112))])),_:1}),r(o(S),{path:"elem_width",label:"宽度"},{default:d((()=>[r(o(I),{value:Ie.value.elem_width,"onUpdate:value":a[18]||(a[18]=e=>Ie.value.elem_width=e),placeholder:"请选择宽度",options:we},null,8,["value"])])),_:1}),r(o(S),{path:"isNull",label:"是否必填","label-placement":"left"},{default:d((()=>[r(o(B),{value:$e.value,"onUpdate:value":[a[19]||(a[19]=e=>$e.value=e),a[20]||(a[20]=e=>Ze("isNull",e))]},null,8,["value"])])),_:1}),o(A)(o(Ae))?(n(),i(o(S),{key:3,"label-placement":"left",path:"isMultiSelect",label:"是否多选"},{default:d((()=>[r(o(B),{value:Le.value,"onUpdate:value":a[21]||(a[21]=e=>Ze("isMultiSelect",e))},null,8,["value"])])),_:1})):m("v-if",!0)])),_:1},8,["model"]),r(Q,{visible:Fe.value,options:ze.value,onHandleSaveBatch:ul,onTriggerBatch:Re},null,8,["visible","options"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}});export{_e as default};
|
1
|
+
import{createElementVNode as e,defineComponent as l,ref as a,inject as n,computed as t,watch as o,openBlock as u,createBlock as i,unref as d,normalizeClass as v,withCtx as r,createVNode as g,normalizeStyle as w,createTextVNode as c,createCommentVNode as s,createElementBlock as y,Fragment as p,renderList as f,withDirectives as m,withKeys as h,withModifiers as _,vShow as b,toDisplayString as C}from"vue";import{useMessage as x,NModal as L,NCard as B,NButton as k,NForm as M,NFormItem as H,NInput as U,NTooltip as S,NSelect as j,NGrid as O,NGridItem as I,NIcon as z,NInputNumber as T,NPopover as N,NDatePicker as Y,NTimePicker as $,NSwitch as V}from"naive-ui";import{isMulti as D,isShowOptions as F,isNumber as P,isDate as q,isCandidate as A,isTextarea as E}from"../utils/index.js";import J from"moment";import{InjectionExpandFieldApiConfig as K}from"../constants/index.js";import R from"../hooks/useAsyncData.js";import{HtmlTypeList as W}from"../utils/constant.js";import{isJSON as X,isValidDate as G}from"../utils/tool.js";import Q from"./FormBatchOptionsModal.vue.js";import Z from"./FormItemPerson.vue.js";var ee,le,ae,ne,te;const oe={class:"svg-wrap"},ue={class:"flex_right"},ie={class:"options-title"},de=e("span",null,(null==(ee=window.getLanguageByCode)?void 0:ee.call(window,"10010.1.530"))||"字段键名",-1),ve=e("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),re={class:"options-title"},ge=e("span",null,(null==(le=window.getLanguageByCode)?void 0:le.call(window,"10010.1.534"))||"字段问号提示",-1),we=e("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),ce={class:"options-title"},se=e("span",null,(null==(ae=window.getLanguageByCode)?void 0:ae.call(window,"10010.1.536"))||"选项值",-1),ye=e("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[e("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),e("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),e("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),e("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),pe={class:"options-title"},fe=e("span",null,(null==(ne=window.getLanguageByCode)?void 0:ne.call(window,"10010.1.12"))||"默认值",-1),me=e("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),he={style:{display:"flex","align-items":"center"}},_e=e("span",null,(null==(te=window.getLanguageByCode)?void 0:te.call(window,"10010.1.543"))||"选择",-1),be={style:{width:"100%"}},Ce={key:0,class:"validate_tip"};var xe=l({__name:"form",props:{visible:{type:Boolean,default:!1},formOntype:{type:String,default:"add"},formItemData:{type:Object,default:()=>({})},id:{type:String,default:""},orgId:{type:String,default:""},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]}},emits:["cancelModal"],setup(l,{emit:ee}){var le,ae,ne,te,xe,Le,Be,ke,Me,He,Ue,Se,je,Oe,Ie,ze,Te,Ne,Ye,$e,Ve;const De=l,Fe=x(),Pe=(null==(le=window.getLanguageByCode)?void 0:le.call(window,"10010.1.544"))||"请输入默认值",qe={name:[{required:!0,message:(null==(ae=window.getLanguageByCode)?void 0:ae.call(window,"10010.1.547"))||"请输入字段标题",trigger:["input","blur"]}],html_type:[{required:!0,message:(null==(ne=window.getLanguageByCode)?void 0:ne.call(window,"10010.1.533"))||"请选择字段类型",trigger:["input","blur"]}]},Ae=[{value:"yyyy-MM-dd HH:mm:ss",label:(null==(te=window.getLanguageByCode)?void 0:te.call(window,"10010.1.548"))||"年-月-日 时:分:秒"},{value:"yyyy-MM-dd HH:mm",label:(null==(xe=window.getLanguageByCode)?void 0:xe.call(window,"10010.1.549"))||"年-月-日 时:分"},{value:"yyyy-MM-dd",label:(null==(Le=window.getLanguageByCode)?void 0:Le.call(window,"10010.1.550"))||"年-月-日"},{value:"yyyy-MM",label:(null==(Be=window.getLanguageByCode)?void 0:Be.call(window,"10010.1.551"))||"年-月"},{value:"MM-dd HH:mm",label:(null==(ke=window.getLanguageByCode)?void 0:ke.call(window,"10010.1.552"))||"月-日 时:分"},{value:"MM-dd",label:(null==(Me=window.getLanguageByCode)?void 0:Me.call(window,"10010.1.553"))||"月-日"},{value:"HH:mm:ss",label:(null==(He=window.getLanguageByCode)?void 0:He.call(window,"10010.1.554"))||"时:分:秒"},{value:"HH:mm",label:(null==(Ue=window.getLanguageByCode)?void 0:Ue.call(window,"10010.1.555"))||"时:分"}],Ee=[{value:"12",label:(null==(Se=window.getLanguageByCode)?void 0:Se.call(window,"10010.1.29"))||"整行"},{value:"6",label:(null==(je=window.getLanguageByCode)?void 0:je.call(window,"10010.1.30"))||"半行"},{value:"4",label:"1/3"+((null==(Oe=window.getLanguageByCode)?void 0:Oe.call(window,"10010.1.556"))||"行")},{value:"8",label:"2/3"+((null==(Ie=window.getLanguageByCode)?void 0:Ie.call(window,"10010.1.556"))||"行")},{value:"3",label:"1/4"+((null==(ze=window.getLanguageByCode)?void 0:ze.call(window,"10010.1.556"))||"行")},{value:"9",label:"3/4"+((null==(Te=window.getLanguageByCode)?void 0:Te.call(window,"10010.1.556"))||"行")},{value:"2",label:"1/6"+((null==(Ne=window.getLanguageByCode)?void 0:Ne.call(window,"10010.1.556"))||"行")},{value:"10",label:"5/6"+((null==(Ye=window.getLanguageByCode)?void 0:Ye.call(window,"10010.1.556"))||"行")},{value:"1.5",label:"1/8"+((null==($e=window.getLanguageByCode)?void 0:$e.call(window,"10010.1.556"))||"行")},{value:"10.5",label:"7/8"+((null==(Ve=window.getLanguageByCode)?void 0:Ve.call(window,"10010.1.556"))||"行")}],Je=a(!1),Ke=a("860px");let Re=a({maxHeight:"496px",height:"496px"});const{saveOrUpdateExtendField:We}=R(),Xe=n(K),Ge=a(null),Qe=a({name:void 0,remark:void 0,is_edit:"1",is_null:"1",is_show:"1",key:"",val_key:void 0,validate:{},html_type:"INPUT",name_i18n:void 0,elem_width:"12",default_val:void 0,label_type:void 0,isMultiSelect:"0",decimal_length:void 0,date_format:""}),Ze=a([{text:void 0,value:void 0}]),el=a({format:"yyyy-MM-dd HH:mm:ss",dateType:"date",mode:"date",value:null,showTime:!0,open:!1,componentType:"datetime"}),ll=a({obj_type:"",vali_obj:"",event_obj:"",max_length:"",min_length:"",min_value:"",max_value:""}),al=a({value_key:"",levelSetting:[],search_key:[],level_num:void 0,render_key:[],name:"",level_key:"",id:"",type:"",primary_key:"",sqlExpression:"",conObj:"",add_btn:"",setting:{cascading:[]}}),nl=a(!1),tl=a(!1),ol=a(void 0),ul=a(!1),il=a(!1);a(!1);const dl=a(!1),vl=a(""),rl=t((()=>"edit"===De.formOntype)),gl=t((()=>Qe.value.html_type||""));t((()=>"TEXTAREA"===gl.value?1e3:255));const wl=t((()=>Ze.value.filter((e=>e.value&&e.text)))),cl=t((()=>D(gl.value))),sl=t((()=>"date"===el.value.dateType));function yl(e){dl.value=e}function pl(e){let l=e;"string"!=typeof e&&(l=JSON.stringify(e)),Qe.value.default_val=l}function fl(e){el.value.value=null,Qe.value.default_val=void 0,kl(e)}function ml(){Je.value=!Je.value;let e=document.body.clientHeight;"860px"===Ke.value?(Ke.value="100%",Re.value.maxHeight=`${e}px`,Re.value.height=`${e}px`):(Ke.value="860px",Re.value.maxHeight="496px",Re.value.height="")}function hl(e){return["HH:mm:ss","HH:mm"].includes(e)}function _l(e,l){switch(e){case"isNull":nl.value=l,Qe.value.is_null=l?"0":"1";break;case"isMultiSelect":tl.value=l,Qe.value.isMultiSelect=l?"1":"0"}}function bl(){if("add"===De.formOntype)return;let e=Object.assign({},De.formItemData),l=e.setting;l&&X(l)&&(l=JSON.parse(l),delete e.setting,Object.assign(e,{...l})),e.key=e.code,delete e.code,q(e.html_type)&&function(e){kl(e.date_format);let l=e.default_val;l&&!l.startsWith("${")&&(hl(e.date_format)&&(l=`${J().format("YYYY-MM-dd")} ${l}`),G(new Date(l))&&(el.value.value=J(l)))}(e),D(e.html_type)&&(e.default_val=function(e){let l=e.default_val;return l?l.split(",").filter(Boolean):[]}(e)),nl.value="0"==e.is_null,tl.value="1"==e.isMultiSelect,ll.value=Object.assign(ll.value,e.validate||{}),al.value=Object.assign(al.value,e.wordbook||{}),Qe.value=Object.assign(Qe.value,e||{}),F(e.html_type)&&function(e){let l=(null==e?void 0:e.optionValue)||[];l.length||l.push({text:void 0,value:void 0}),Ze.value=[...l],delete e.optionValue}(e)}function Cl(e){Qe.value.html_type=e,Ze.value=[{text:void 0,value:void 0}];let l=function(){if(D(gl.value))return[]}();Qe.value.default_val=l,q(e)?Qe.value.date_format="yyyy-MM-dd HH:mm:ss":Qe.value.date_format=""}function xl(){Ze.value.push({value:"",text:""})}function Ll(e){let l=e;(e<0||0===e)&&(l=0),e>5&&(l=5),ol.value=0===l?l:l||void 0}function Bl(e){Ze.value=e}function kl(e){let l=e||"yyyy-MM-dd HH:mm:ss",a=hl(l)?"time":"date",n="yyyy-MM"===l?"month":"date";let t=function(e){return["yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","MM-dd HH:mm"].includes(e)}(l),o="";["yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","MM-dd HH:mm"].includes(e)&&(o="datetime"),["yyyy-MM-dd","MM-dd"].includes(e)&&(o="date"),Object.assign(el.value,{format:l,dateType:a,mode:n,showTime:t,componentType:o})}function Ml(e,l){if(e)return l&&(l.includes("yyyy")&&(l=l.replace("yyyy","YYYY")),l.includes("dd")&&(l=l.replace("dd","DD"))),J(e).format(l)}function Hl(){el.value.open=!el.value.open}function Ul(e){let l=Ml(e,el.value.format);Qe.value.default_val=l}function Sl(e){let l=Ml(e,el.value.format);Qe.value.default_val=l,el.value.format.includes("HH:mm")||Hl()}function jl(e){let l=Ml(e,el.value.format);Qe.value.default_val=l}function Ol(){ee("cancelModal"),Ke.value="860px",Re.value={height:"496px",maxHeight:"496px"},Je.value=!1,Qe.value={name:void 0,remark:void 0,is_edit:"1",is_null:"1",is_show:"1",key:"",val_key:void 0,validate:{},html_type:"INPUT",name_i18n:void 0,elem_width:"12",default_val:void 0,label_type:void 0,isMultiSelect:"0",decimal_length:void 0,date_format:""}}function Il(){var e;null==(e=Ge.value)||e.validate((async e=>{if(e)return;let l=Object.assign({},Qe.value);if(l.validate={...ll.value},l.extendId=De.id,F(gl.value)){let e=function(){var e,l;let a={validate:!1,message:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.557"))||"请完善选项配置"};if(!Ze.value||!Ze.value.length)return a;let n,t,o,u=0,i=Ze.value.length,d=!1;for(;u<i;u++){if(n=Ze.value[u],t=n.value?n.value.trim():n.value,o=n.text?n.text.trim():n.text,!t||!o){d=!0;break}n.value=t,n.text=o}return[...new Set(Ze.value.map((e=>e.value)))].length!==Ze.value.length?(a.message=(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.558"))||"选项值不能重复",a):(!d&&(a.validate=!0),a)}();if(!e.validate)return ul.value=!0,void Fe.warning(e.message);ul.value=!1,l.option=[...Ze.value]}if(P(gl.value)?l.default_val=function(e){let l=e.default_val;if(void 0===ol.value)return l;if(!l)return l;let a=String(l).split(".")[1];return a&&a.length!==ol.value?Number(l.toFixed(ol.value)):l}(l):D(gl.value)&&(l.default_val=l.default_val.join(",")),!A(gl.value)||function(e){var l;let{default_val:a}=e;vl.value="",a&&X(a)&&(a=JSON.parse(a));let n=function(e,l){var a,n;if(!e)return;if("string"!=typeof e)return;if(!(e=e.trim()))return!0;if(!e.startsWith("${"))return zl(l,(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.559"))||"请输入有效系统变量"),"error";let t=/\${sys.(.*?)\}/g.exec(e);if(!t||!t[1])return zl(l,(null==(n=window.getLanguageByCode)?void 0:n.call(window,"10010.1.559"))||"请输入有效系统变量"),"error";return!0}(a,e);if(n)return"error"!==n;if(console.log("saveOjb.isMultiSelect>>>",e.isMultiSelect),console.log("default_val?.length>>>",null==a?void 0:a.length),"0"===e.isMultiSelect&&(null==a?void 0:a.length)>1)return console.log("进入到判断里面了>>>>>"),zl(e,(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.560"))||"选人组件为单选"),!1;return!0}(l)){for(let e in l){let a=l[e];"string"==typeof a&&(l[e]=null==a?void 0:a.trim())}console.log("saveOjb>>>",l),await async function(e={}){var l;il.value=!0;try{const a=await We(e,Xe);if(il.value=!1,"SUCCESS"!==(null==a?void 0:a.result))return void Fe.error((null==a?void 0:a.resultMsg)||(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.561"))||"保存失败");Ol()}catch(e){il.value=!1}}(l)}}))}function zl(e,l){vl.value=l}return o((()=>De.visible),(e=>{e&&bl()})),(a,n)=>(u(),i(d(L),{class:v(["expand-field-modal-block",{"modal-screen":Je.value}]),show:l.visible,maskClosable:!1,width:Ke.value,bodyStyle:d(Re),closable:!1,centered:"",onPositiveClick:Il,onNegativeClick:Ol},{default:r((()=>[g(d(B),{style:w({width:Ke.value,...d(Re)}),title:"add"===De.formOntype?"新增拓展字段":"编辑拓展字段",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":r((()=>[e("div",oe,[e("i",{onClick:ml,class:v(["iconfont-expand-field",Je.value?"icon-expand-field-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-expand-field-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),e("i",{onClick:Ol,class:"iconfont-expand-field icon-expand-field-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:r((()=>[e("div",ue,[g(d(k),{onClick:Ol},{default:r((()=>{var e;return[c((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.32"))||"取消")]})),_:1}),g(d(k),{type:"info",onClick:Il},{default:r((()=>{var e;return[c((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1})])])),default:r((()=>[g(d(M),{ref_key:"formRef",ref:Ge,model:Qe.value,rules:qe},{default:r((()=>{var a,t,o,w,x,L,B,M,J;return[g(d(H),{path:"name",label:(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.529"))||"字段标题","require-mark-placement":"left"},{default:r((()=>{var e;return[g(d(U),{value:Qe.value.name,"onUpdate:value":n[0]||(n[0]=e=>Qe.value.name=e),maxlength:100,clearable:"",placeholder:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.383"))||"请输入"},null,8,["value"])]})),_:1}),g(d(H),{path:"key"},{label:r((()=>[e("div",ie,[de,g(d(S),{duration:0},{trigger:r((()=>[ve])),default:r((()=>{var e;return[c((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.531"))||"数据库字段键名,不填写时由系统生成,填写则以填写为准")]})),_:1})])])),default:r((()=>{var e;return[g(d(U),{value:Qe.value.key,"onUpdate:value":n[1]||(n[1]=e=>Qe.value.key=e),maxlength:32,disabled:d(rl),clearable:"",placeholder:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.531"))||"数据库字段键名,不填写时由系统生成,填写则以填写为准"},null,8,["value","disabled"])]})),_:1}),g(d(H),{path:"html_type",label:(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.532"))||"字段类型","require-mark-placement":"left"},{default:r((()=>{var e;return[g(d(j),{value:Qe.value.html_type,"onUpdate:value":[n[2]||(n[2]=e=>Qe.value.html_type=e),Cl],placeholder:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.533"))||"请选择字段类型",clearable:"",filterable:"",options:d(W)},null,8,["value","options"])]})),_:1}),g(d(H),{path:"remark",label:(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.534"))||"字段问号提示"},{label:r((()=>[e("div",re,[ge,g(d(S),{duration:0},{trigger:r((()=>[we])),default:r((()=>{var e;return[c((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.535"))||"设置后该字段旁会有问号图标,鼠标悬浮展示“问号提示”内容,常用于告诉用户该字段的含义")]})),_:1})])])),default:r((()=>{var e;return[g(d(U),{value:Qe.value.remark,"onUpdate:value":n[3]||(n[3]=e=>Qe.value.remark=e),placeholder:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.383"))||"请输入",type:"textarea",clearable:"",maxlength:255,rows:3},null,8,["value"])]})),_:1}),s(" 选项值>>>>>类型对应关系 "),d(F)(d(gl))?(u(),i(d(H),{key:0},{label:r((()=>{var l,a;return[e("div",ce,[se,e("span",{class:"batch-span",onClick:xl},(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.537"))||"添加选项"),e("span",{class:"batch-span",onClick:n[4]||(n[4]=()=>yl(!0))},(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.538"))||"批量编辑")])]})),default:r((()=>[e("div",{class:v(["options-item",{"options-item-err":ul.value}])},[(u(!0),y(p,null,f(Ze.value,((e,l)=>(u(),i(d(O),{class:"mgb-10",key:l,cols:24,"x-gap":8,"y-gap":8},{default:r((()=>[g(d(I),{span:11},{default:r((()=>{var l;return[g(d(U),{value:e.value,"onUpdate:value":l=>e.value=l,maxLength:100,allowClear:"",placeholder:(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.536"))||"选项值"},null,8,["value","onUpdate:value"])]})),_:2},1024),g(d(I),{span:11},{default:r((()=>{var l;return[g(d(U),{value:e.text,"onUpdate:value":l=>e.text=l,maxLength:100,allowClear:"",placeholder:(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.539"))||"选项文本"},null,8,["value","onUpdate:value"])]})),_:2},1024),g(d(I),{span:2,class:"flex-center"},{default:r((()=>[Ze.value.length>1?(u(),i(d(z),{key:0,onClick:a=>function(e,l){Ze.value.splice(l,1);let a=Qe.value.default_val;if(D(gl.value)){if(!a||!a.length)return;let l=a.findIndex((l=>l===e.value));l||a.splice(l,1)}else{if(!a)return;a===e.value&&(a=void 0)}Qe.value.default_val=a}(e,l)},{default:r((()=>[ye])),_:2},1032,["onClick"])):s("v-if",!0)])),_:2},1024)])),_:2},1024)))),128))],2)])),_:1})):s("v-if",!0),d(P)(d(gl))?(u(),i(d(H),{key:1,path:"decimal_length",label:(null==(w=window.getLanguageByCode)?void 0:w.call(window,"10010.1.540"))||"小数位"},{default:r((()=>{var e;return[g(d(T),{style:{width:"100%"},min:0,max:5,placeholder:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.383"))||"请输入",precision:0,clearable:"",value:Qe.value.decimal_length,"onUpdate:value":[n[5]||(n[5]=e=>Qe.value.decimal_length=e),Ll]},null,8,["value"])]})),_:1})):s("v-if",!0),d(q)(d(gl))?(u(),i(d(H),{key:2,path:"date_format",label:(null==(x=window.getLanguageByCode)?void 0:x.call(window,"10010.1.541"))||"日期格式"},{default:r((()=>{var e;return[g(d(j),{style:{width:"100%"},value:Qe.value.date_format,"onUpdate:value":[n[6]||(n[6]=e=>Qe.value.date_format=e),fl],placeholder:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.147"))||"请选择",options:Ae},null,8,["value"])]})),_:1})):s("v-if",!0),s(" 默认值>>>>>类型对应关系 "),g(d(H),{path:"default_val",label:(null==(L=window.getLanguageByCode)?void 0:L.call(window,"10010.1.12"))||"默认值"},{label:r((()=>[e("div",pe,[fe,d(A)(d(gl))?(u(),i(d(S),{key:0,duration:0},{trigger:r((()=>[me])),default:r((()=>{var e;return[c((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.542"))||"支持输入系统变量当前操作人${sys.userId},也支持选择一个人")]})),_:1})):s("v-if",!0)])])),default:r((()=>{var a,t,o;return[d(E)(d(gl))?(u(),i(d(U),{key:0,value:Qe.value.default_val,"onUpdate:value":n[7]||(n[7]=e=>Qe.value.default_val=e),placeholder:Pe,type:"textarea",clearable:"",maxlength:1e3,rows:3},null,8,["value"])):d(P)(d(gl))?(u(),y(p,{key:1},[s((null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.292"))||"数字框"),g(d(T),{style:{width:"100%"},clearable:"",placeholder:Pe,precision:ol.value,value:Qe.value.default_val,"onUpdate:value":n[8]||(n[8]=e=>Qe.value.default_val=e)},null,8,["precision","value"])],2112)):d(F)(d(gl))?(u(),y(p,{key:2},[s(" 下拉框、横向单选、纵向单选、横向多选、纵向多选、下拉多选框 "),g(d(j),{style:{width:"100%"},multiple:d(cl),clearable:"",value:Qe.value.default_val,"onUpdate:value":n[9]||(n[9]=e=>Qe.value.default_val=e),"label-field":"text",placeholder:Pe,options:d(wl)},null,8,["multiple","value","options"])],2112)):d(q)(d(gl))?(u(),y(p,{key:3},[s((null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.74"))||"日期"),e("div",he,[g(d(U),{clearable:"",maxLength:255,value:Qe.value.default_val,"onUpdate:value":n[10]||(n[10]=e=>Qe.value.default_val=e),placeholder:Pe},null,8,["value"]),d(sl)?(u(),y(p,{key:0},["month"===el.value.mode?(u(),i(d(N),{key:0,trigger:"click",show:el.value.open},{trigger:r((()=>[g(d(k),{type:"info",onClick:Hl},{default:r((()=>{var e;return[c((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.543"))||"选择")]})),_:1})])),default:r((()=>[g(d(Y),{panel:"",value:el.value.value,"onUpdate:value":[n[11]||(n[11]=e=>el.value.value=e),Ul],type:"month","input-readonly":"",clearable:"",onConfirm:Hl},null,8,["value"])])),_:1},8,["show"])):(u(),i(d(N),{key:1,trigger:"click",show:el.value.open},{trigger:r((()=>[g(d(k),{type:"info",onClick:Hl},{default:r((()=>{var e;return[c((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.543"))||"选择")]})),_:1})])),default:r((()=>[g(d(Y),{panel:"",value:el.value.value,"onUpdate:value":[n[12]||(n[12]=e=>el.value.value=e),Sl],format:el.value.format,type:el.value.componentType,"input-readonly":"",clearable:"",onConfirm:Hl},null,8,["value","format","type"])])),_:1},8,["show"]))],64)):(u(),y(p,{key:1},[s(' <n-input\r\n allowClear\r\n :maxLength="255"\r\n v-model:value="dateInfo.value"\r\n @keydown.enter.prevent\r\n :placeholder="defaultPlaceholder"\r\n /> '),g(d(k),{type:"info",class:"date-time-button"},{default:r((()=>[_e,g(d($),{value:el.value.value,"onUpdate:value":[n[13]||(n[13]=e=>el.value.value=e),jl],format:el.value.format,"input-readonly":"",clearable:""},null,8,["value","format"])])),_:1}),s(' <n-popover trigger="click">\r\n <template #trigger>\r\n <n-button type="info">选择</n-button>\r\n </template>\r\n <n-time-picker\r\n panel\r\n v-model:value="dateInfo.value"\r\n :format="dateInfo.format"\r\n input-readonly\r\n clearable\r\n @update:value="timeChange"\r\n >\r\n <template v-slot:icon>111</template>\r\n\r\n </n-time-picker>\r\n </n-popover> ')],64))])],2112)):d(A)(d(gl))?(u(),y(p,{key:4},[s(" 选人组件(增加一个选人组件) "),e("div",be,[m(g(d(U),{allowClear:"",maxLength:255,value:Qe.value.default_val,"onUpdate:value":n[14]||(n[14]=e=>Qe.value.default_val=e),onKeydown:n[15]||(n[15]=h(_((()=>{}),["prevent"]),["enter"])),placeholder:Pe},null,8,["value"]),[[b,!1]]),s(' 点击弹出选人组件弹窗 :mainForm="this" '),g(Z,{orgId:l.orgId,defaultValue:Qe.value.default_val,onCheckPerson:pl},null,8,["orgId","defaultValue"]),vl.value?(u(),y("span",Ce,C(vl.value),1)):s("v-if",!0),s(' <n-button type="info">选择</n-button> ')])],2112)):(u(),y(p,{key:5},[s(" 其他 "),g(d(U),{value:Qe.value.default_val,"onUpdate:value":n[16]||(n[16]=e=>Qe.value.default_val=e),onKeydown:n[17]||(n[17]=h(_((()=>{}),["prevent"]),["enter"])),placeholder:(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.544"))||"请输入默认值"},null,8,["value"])],2112))]})),_:1}),g(d(H),{path:"elem_width",label:(null==(B=window.getLanguageByCode)?void 0:B.call(window,"10010.1.13"))||"宽度"},{default:r((()=>{var e;return[g(d(j),{value:Qe.value.elem_width,"onUpdate:value":n[18]||(n[18]=e=>Qe.value.elem_width=e),placeholder:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.545"))||"请选择宽度",options:Ee},null,8,["value"])]})),_:1}),g(d(H),{path:"isNull",label:(null==(M=window.getLanguageByCode)?void 0:M.call(window,"10010.1.16"))||"是否必填","label-placement":"left"},{default:r((()=>[g(d(V),{value:nl.value,"onUpdate:value":[n[19]||(n[19]=e=>nl.value=e),n[20]||(n[20]=e=>_l("isNull",e))]},null,8,["value"])])),_:1}),d(A)(d(gl))?(u(),i(d(H),{key:3,"label-placement":"left",path:"isMultiSelect",label:(null==(J=window.getLanguageByCode)?void 0:J.call(window,"10010.1.546"))||"是否多选"},{default:r((()=>[g(d(V),{value:tl.value,"onUpdate:value":n[21]||(n[21]=e=>_l("isMultiSelect",e))},null,8,["value"])])),_:1})):s("v-if",!0)]})),_:1},8,["model"]),g(Q,{visible:dl.value,options:Ze.value,onHandleSaveBatch:Bl,onTriggerBatch:yl},null,8,["visible","options"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}});export{xe as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as t,provide as e,ref as l,openBlock as a,createElementBlock as
|
1
|
+
import{defineComponent as t,provide as e,ref as l,openBlock as a,createElementBlock as n,createElementVNode as o,createVNode as i,unref as d,withCtx as s,Fragment as u,renderList as r,createTextVNode as c,toDisplayString as m,createBlock as p,withModifiers as v}from"vue";import{useMessage as w,NGrid as g,NGridItem as f,NTooltip as y,NIcon as C,NPopconfirm as h,NButton as _}from"naive-ui";import{Brush as k}from"@vicons/ionicons5";import x from"./components/form.vue.js";import B from"./hooks/useAsyncData.js";import{InjectionExpandFieldApiConfig as D}from"./constants/index.js";const L={class:"tableset-expand-field"},b={class:"list"},M={class:"table-modal-list"},N={class:"list-content"},I=o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[o("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),o("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),o("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),o("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),z={class:"footer"};var A=t({__name:"index",props:{id:{type:String,default:""},expandFieldApiConfig:{type:Object},tableData:{type:Array,default:()=>[]},orgId:{type:String,default:""}},emits:["closeModal"],setup(t,{emit:A}){var S,j,F,O,V,E;const P=t,U=w(),{deleteExtendFieldById:q}=B();e(D,P.expandFieldApiConfig);const G=[{title:(null==(S=window.getLanguageByCode)?void 0:S.call(window,"10010.1.529"))||"字段标题",columnName:"name",span:3},{title:(null==(j=window.getLanguageByCode)?void 0:j.call(window,"10010.1.530"))||"字段键名",columnName:"code",span:3},{title:(null==(F=window.getLanguageByCode)?void 0:F.call(window,"10010.1.532"))||"字段类型",columnName:"html_type",span:3},{title:(null==(O=window.getLanguageByCode)?void 0:O.call(window,"10010.1.15"))||"问号提示",columnName:"remark",span:4},{title:(null==(V=window.getLanguageByCode)?void 0:V.call(window,"10010.1.236"))||"创建时间",columnName:"createdDate",span:4},{title:"修改时间",columnName:"updatedDate",span:4},{title:(null==(E=window.getLanguageByCode)?void 0:E.call(window,"10010.1.241"))||"操作",columnName:"operator",span:3}],H=l(!1),J=l("add"),K=l({});function Q(){A("closeModal")}function R(){H.value=!0,J.value="add",K.value={}}function T(){H.value=!1}return(e,l)=>(a(),n("div",L,[o("div",b,[o("div",M,[i(d(g),{cols:24,class:"list-title"},{default:s((()=>[(a(),n(u,null,r(G,(t=>i(d(f),{span:t.span,class:"list-title-item",key:t.columnName},{default:s((()=>[c(m(t.title),1)])),_:2},1032,["span"]))),64))])),_:1}),o("div",N,[(a(!0),n(u,null,r(t.tableData,((t,e)=>(a(),p(d(g),{key:e,class:"list-content-block"},{default:s((()=>[i(d(f),{span:3,title:t.name,class:"list-content-item"},{default:s((()=>[c(m(t.name),1)])),_:2},1032,["title"]),i(d(f),{span:3,title:t.code,class:"list-content-item"},{default:s((()=>[c(m(t.code),1)])),_:2},1032,["title"]),i(d(f),{span:3,title:t.html_type,class:"list-content-item"},{default:s((()=>[c(m(t.html_type),1)])),_:2},1032,["title"]),i(d(f),{span:4,title:t.remark,class:"list-content-item"},{default:s((()=>[c(m(t.remark),1)])),_:2},1032,["title"]),i(d(f),{span:4,title:t.createdDate,class:"list-content-item"},{default:s((()=>[c(m(t.createdDate),1)])),_:2},1032,["title"]),i(d(f),{span:4,title:t.updatedDate,class:"list-content-item"},{default:s((()=>[c(m(t.updatedDate),1)])),_:2},1032,["title"]),i(d(f),{span:3,class:"list-content-item"},{default:s((()=>[i(d(y),{duration:0},{trigger:s((()=>[i(d(C),{component:d(k),onClick:v((e=>{return l=t,H.value=!0,J.value="edit",void(K.value={...l});var l}),["prevent","stop"])},null,8,["component","onClick"])])),default:s((()=>{var t;return[c((null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.284"))||"编辑")]})),_:2},1024),i(d(y),{duration:0},{trigger:s((()=>[i(d(h),{onPositiveClick:e=>async function(t){var e,l;try{const a=await q(t,P.expandFieldApiConfig);if("SUCCESS"!==(null==a?void 0:a.result))return void U.error((null==a?void 0:a.resultMsg)||(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.521"))||"删除失败");U.success((null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.411"))||"删除成功")}catch(t){U.error(t)}}(t)},{trigger:s((()=>[i(d(C),null,{default:s((()=>[I])),_:1})])),default:s((()=>[c(" 确认要删除-"+m(t.name)+"吗? ",1)])),_:2},1032,["onPositiveClick"])])),default:s((()=>{var t;return[c((null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.215"))||"删除")]})),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])]),o("div",z,[i(d(_),{onClick:Q},{default:s((()=>{var t;return[c((null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.32"))||"取消")]})),_:1}),i(d(_),{type:"info",onClick:R},{default:s((()=>[c("增加字段")])),_:1})])]),i(x,{visible:H.value,formItemData:K.value,formOntype:J.value,id:t.id,orgId:t.orgId,onCancelModal:T},null,8,["visible","formItemData","formOntype","id","orgId"])]))}});export{A as default};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
var l,a,e,o,n,d,w,C,g,i,u;const E={INPUT:"INPUT",TEXTAREA:"TEXTAREA",DIGITAL:"DIGITAL",DATE:"DATE",RADIO:"RADIO",RADIO_BLOCK:"RADIO_BLOCK",CHECKBOX:"CHECKBOX",CHECKBOX_BLOCK:"CHECKBOX_BLOCK",SELECT:"SELECT",MULTI_SELECT:"MULTI_SELECT",CANDIDATE_COMPONENTS:"CANDIDATE_COMPONENTS"},T=[{value:E.INPUT,label:(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.293"))||"文本框"},{value:E.TEXTAREA,label:(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.564"))||"文本域"},{value:E.DIGITAL,label:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.292"))||"数字框"},{value:E.DATE,label:(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.74"))||"日期"},{value:E.RADIO,label:(null==(n=window.getLanguageByCode)?void 0:n.call(window,"10010.1.565"))||"横向单选"},{value:E.RADIO_BLOCK,label:(null==(d=window.getLanguageByCode)?void 0:d.call(window,"10010.1.566"))||"纵向单选"},{value:E.CHECKBOX,label:(null==(w=window.getLanguageByCode)?void 0:w.call(window,"10010.1.567"))||"横向多选"},{value:E.CHECKBOX_BLOCK,label:(null==(C=window.getLanguageByCode)?void 0:C.call(window,"10010.1.568"))||"纵向多选"},{value:E.SELECT,label:(null==(g=window.getLanguageByCode)?void 0:g.call(window,"10010.1.294"))||"下拉框"},{value:E.MULTI_SELECT,label:(null==(i=window.getLanguageByCode)?void 0:i.call(window,"10010.1.569"))||"下拉多选框"},{value:E.CANDIDATE_COMPONENTS,label:(null==(u=window.getLanguageByCode)?void 0:u.call(window,"10010.1.570"))||"选人组件"}];export{E as HtmlType,T as HtmlTypeList};
|
@@ -50,12 +50,14 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
50
50
|
onSelect?: ((...args: any[]) => any) | undefined;
|
51
51
|
onChange?: ((...args: any[]) => any) | undefined;
|
52
52
|
onRemove?: ((...args: any[]) => any) | undefined;
|
53
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
53
54
|
onAdd?: ((...args: any[]) => any) | undefined;
|
55
|
+
"onRight-click"?: ((...args: any[]) => any) | undefined;
|
54
56
|
"onAdd:prevent"?: ((...args: any[]) => any) | undefined;
|
55
57
|
"onClick:grid"?: ((...args: any[]) => any) | undefined;
|
56
|
-
|
58
|
+
"onEvent-click"?: ((...args: any[]) => any) | undefined;
|
57
59
|
}>>;
|
58
|
-
emits: (event: "remove" | "change" | "add" | "select" | "add:prevent" | "click:grid" | "
|
60
|
+
emits: (event: "remove" | "edit" | "change" | "add" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click", ...args: any[]) => void;
|
59
61
|
canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
|
60
62
|
canvas: import("vue").Ref<any>;
|
61
63
|
pointTipProps: {
|
@@ -68,6 +70,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
68
70
|
movable: boolean;
|
69
71
|
sourceData: import("../../shared/types").AnyObject[];
|
70
72
|
isTarget: boolean;
|
73
|
+
marginTop?: number | undefined;
|
71
74
|
};
|
72
75
|
pointMenuProps: {
|
73
76
|
show: boolean;
|
@@ -93,6 +96,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
93
96
|
useRectRuler: any;
|
94
97
|
updatePolyline: any;
|
95
98
|
getGridInfo: any;
|
99
|
+
redrawLinePoints: any;
|
96
100
|
init: () => import("../../shared/types").AnyObject;
|
97
101
|
PopupTip: import("vue").DefineComponent<{
|
98
102
|
show: {
|
@@ -128,6 +132,10 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
128
132
|
isTarget: {
|
129
133
|
type: BooleanConstructor;
|
130
134
|
};
|
135
|
+
marginTop: {
|
136
|
+
type: NumberConstructor;
|
137
|
+
default: number;
|
138
|
+
};
|
131
139
|
}, {
|
132
140
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
133
141
|
show: {
|
@@ -163,6 +171,10 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
163
171
|
isTarget: {
|
164
172
|
type: BooleanConstructor;
|
165
173
|
};
|
174
|
+
marginTop: {
|
175
|
+
type: NumberConstructor;
|
176
|
+
default: number;
|
177
|
+
};
|
166
178
|
}>> & {}>>;
|
167
179
|
pointStyle: import("vue").ComputedRef<{
|
168
180
|
top: string;
|
@@ -208,8 +220,13 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
208
220
|
isTarget: {
|
209
221
|
type: BooleanConstructor;
|
210
222
|
};
|
223
|
+
marginTop: {
|
224
|
+
type: NumberConstructor;
|
225
|
+
default: number;
|
226
|
+
};
|
211
227
|
}>>, {
|
212
228
|
list: string[];
|
229
|
+
marginTop: number;
|
213
230
|
show: boolean;
|
214
231
|
movable: boolean;
|
215
232
|
isTarget: boolean;
|
@@ -257,7 +274,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
257
274
|
list: unknown[];
|
258
275
|
show: boolean;
|
259
276
|
}>;
|
260
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("remove" | "change" | "add" | "select" | "add:prevent" | "click:grid" | "
|
277
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("remove" | "edit" | "change" | "add" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click")[], "remove" | "edit" | "change" | "add" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
261
278
|
type: {
|
262
279
|
type: import("vue").PropType<import("./src/interface").IType>;
|
263
280
|
default: string;
|
@@ -284,10 +301,12 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
284
301
|
onSelect?: ((...args: any[]) => any) | undefined;
|
285
302
|
onChange?: ((...args: any[]) => any) | undefined;
|
286
303
|
onRemove?: ((...args: any[]) => any) | undefined;
|
304
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
287
305
|
onAdd?: ((...args: any[]) => any) | undefined;
|
306
|
+
"onRight-click"?: ((...args: any[]) => any) | undefined;
|
288
307
|
"onAdd:prevent"?: ((...args: any[]) => any) | undefined;
|
289
308
|
"onClick:grid"?: ((...args: any[]) => any) | undefined;
|
290
|
-
|
309
|
+
"onEvent-click"?: ((...args: any[]) => any) | undefined;
|
291
310
|
}, {
|
292
311
|
type: import("./src/interface").IType;
|
293
312
|
}>>;
|
@@ -44,12 +44,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
44
44
|
onSelect?: ((...args: any[]) => any) | undefined;
|
45
45
|
onChange?: ((...args: any[]) => any) | undefined;
|
46
46
|
onRemove?: ((...args: any[]) => any) | undefined;
|
47
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
47
48
|
onAdd?: ((...args: any[]) => any) | undefined;
|
49
|
+
"onRight-click"?: ((...args: any[]) => any) | undefined;
|
48
50
|
"onAdd:prevent"?: ((...args: any[]) => any) | undefined;
|
49
51
|
"onClick:grid"?: ((...args: any[]) => any) | undefined;
|
50
|
-
|
52
|
+
"onEvent-click"?: ((...args: any[]) => any) | undefined;
|
51
53
|
}>>;
|
52
|
-
emits: (event: "remove" | "change" | "add" | "select" | "add:prevent" | "click:grid" | "
|
54
|
+
emits: (event: "remove" | "edit" | "change" | "add" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click", ...args: any[]) => void;
|
53
55
|
canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
|
54
56
|
canvas: import("vue").Ref<any>;
|
55
57
|
pointTipProps: {
|
@@ -62,6 +64,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
62
64
|
movable: boolean;
|
63
65
|
sourceData: AnyObject[];
|
64
66
|
isTarget: boolean;
|
67
|
+
marginTop?: number | undefined;
|
65
68
|
};
|
66
69
|
pointMenuProps: {
|
67
70
|
show: boolean;
|
@@ -87,6 +90,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
87
90
|
useRectRuler: any;
|
88
91
|
updatePolyline: any;
|
89
92
|
getGridInfo: any;
|
93
|
+
redrawLinePoints: any;
|
90
94
|
init: () => AnyObject;
|
91
95
|
PopupTip: import("vue").DefineComponent<{
|
92
96
|
show: {
|
@@ -122,6 +126,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
122
126
|
isTarget: {
|
123
127
|
type: BooleanConstructor;
|
124
128
|
};
|
129
|
+
marginTop: {
|
130
|
+
type: NumberConstructor;
|
131
|
+
default: number;
|
132
|
+
};
|
125
133
|
}, {
|
126
134
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
127
135
|
show: {
|
@@ -157,6 +165,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
157
165
|
isTarget: {
|
158
166
|
type: BooleanConstructor;
|
159
167
|
};
|
168
|
+
marginTop: {
|
169
|
+
type: NumberConstructor;
|
170
|
+
default: number;
|
171
|
+
};
|
160
172
|
}>> & {}>>;
|
161
173
|
pointStyle: import("vue").ComputedRef<{
|
162
174
|
top: string;
|
@@ -202,8 +214,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
202
214
|
isTarget: {
|
203
215
|
type: BooleanConstructor;
|
204
216
|
};
|
217
|
+
marginTop: {
|
218
|
+
type: NumberConstructor;
|
219
|
+
default: number;
|
220
|
+
};
|
205
221
|
}>>, {
|
206
222
|
list: string[];
|
223
|
+
marginTop: number;
|
207
224
|
show: boolean;
|
208
225
|
movable: boolean;
|
209
226
|
isTarget: boolean;
|
@@ -251,7 +268,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
251
268
|
list: unknown[];
|
252
269
|
show: boolean;
|
253
270
|
}>;
|
254
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("remove" | "change" | "add" | "select" | "add:prevent" | "click:grid" | "
|
271
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("remove" | "edit" | "change" | "add" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click")[], "remove" | "edit" | "change" | "add" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
255
272
|
type: {
|
256
273
|
type: PropType<IType>;
|
257
274
|
default: string;
|
@@ -274,10 +291,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
274
291
|
onSelect?: ((...args: any[]) => any) | undefined;
|
275
292
|
onChange?: ((...args: any[]) => any) | undefined;
|
276
293
|
onRemove?: ((...args: any[]) => any) | undefined;
|
294
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
277
295
|
onAdd?: ((...args: any[]) => any) | undefined;
|
296
|
+
"onRight-click"?: ((...args: any[]) => any) | undefined;
|
278
297
|
"onAdd:prevent"?: ((...args: any[]) => any) | undefined;
|
279
298
|
"onClick:grid"?: ((...args: any[]) => any) | undefined;
|
280
|
-
|
299
|
+
"onEvent-click"?: ((...args: any[]) => any) | undefined;
|
281
300
|
}, {
|
282
301
|
type: IType;
|
283
302
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as r,reactive as t,computed as o,onMounted as s,onBeforeUnmount as a,openBlock as i,createElementBlock as
|
1
|
+
import{defineComponent as e,ref as r,reactive as t,computed as o,onMounted as s,onBeforeUnmount as a,openBlock as i,createElementBlock as n,normalizeStyle as u,unref as l,createElementVNode as p,Fragment as c,createVNode as h,mergeProps as d,createCommentVNode as m}from"vue";import{fabric as f}from"../../../shared/utils/fabricjs/index.js";import v from"./components/PopupTip.vue.js";import w from"./components/PopupMenu.js";import"./hooks/useDraw.js";import"date-fns";import"lodash-es";import"./hooks/useEvent.js";import"./hooks/useCommon.js";import{useBirthProcessChart as g}from"./hooks/birthProcess/useBirthProcessChart.js";import{useTemperatureChart as k}from"./hooks/temperature/useTemperatureChart.js";import{useSurgicalAnesthesiaChart as C}from"./hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js";import{useElectrocardiogramChart as R}from"./hooks/electrocardiogram/useElectrocardiogramChart.js";import{useNewBirthProcessChart as P}from"./hooks/newBirthProcess/useNewBirthProcessChart.js";var j=e({__name:"FabricChart",props:{type:{type:String,default:"temperature"},data:{type:Object,required:!0},popupTipRender:{type:Function},addRenderItem:{type:Function}},emits:["change","add","remove","edit","right-click","select","add:prevent","click:grid","event-click"],setup(e,{expose:j,emit:y}){const b=e,x=r(null),I=r(),T=t({show:!1,point:{x:0,y:0},list:[],movable:!1,sourceData:[],isTarget:!1}),M=t({show:!1,point:{x:0,y:0},list:[],target:null}),B=o((()=>{var e;return null==(e=I.value)?void 0:e.wrapperEl})),A=o((()=>({width:`${b.data.width||800}px`,height:`${b.data.height||500}px`}))),{propItems:E,redrawPoints:F,select:S,clickMenu:_,useMeasureRuler:D,useCaliper:G,useCaliperRuler:L,useRectRuler:$,updatePolyline:q,getGridInfo:H,redrawLinePoints:N}=function(){const e=[I,b,y,x,T,M];switch(b.type){case"birthProcess":return g(...e);case"surgicalAnesthesia":return C(...e,!!b.popupTipRender);case"electrocardiogram":return R(...e);case"newBirthProcess":return P(...e);default:return k(...e)}}();return s((()=>{I.value=new f.Canvas(x.value,{width:E.canvasWidth,height:E.canvasHeight,backgroundColor:"#fff",selection:!1,stopContextMenu:!0,fireRightClick:!0,allowTouchScrolling:!0})})),a((()=>{var e,r,t,o;null==(r=null==(e=I.value)?void 0:e.off)||r.call(e),null==(o=null==(t=I.value)?void 0:t.clear)||o.call(t)})),j({redrawPoints:F,redrawLinePoints:N,select:S,canvas:I,useMeasureRuler:D,useCaliper:G,useCaliperRuler:L,useRectRuler:$,updatePolyline:q,getGridInfo:H}),(r,t)=>(i(),n("div",{class:"c-fabric-chart",style:u(l(A))},[p("canvas",{ref_key:"canvasRef",ref:x},null,512),l(B)?(i(),n(c,{key:0},[h(v,d({popupTipRender:e.popupTipRender,...T},{propItems:l(E)}),null,16,["propItems"]),h(l(w),d({propItems:l(E)},M,{show:M.show,"onUpdate:show":t[0]||(t[0]=e=>M.show=e),onClickMenu:l(_)}),null,16,["propItems","show","onClickMenu"])],64)):m("v-if",!0)],4))}});export{j as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as t,watch as l,withDirectives as o,createVNode as a,vShow as
|
1
|
+
import{defineComponent as e,ref as t,watch as l,withDirectives as o,createVNode as a,vShow as n}from"vue";import{NSpace as u,NInputNumber as r}from"naive-ui";import i from"./useStyle.js";import{useEventListener as s,onClickOutside as p}from"@vueuse/core";var c=e({name:"PopupMenu",inheritAttrs:!1,props:{show:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},point:{type:Object},propItems:{type:Object},target:{type:Object}},emits:["update:show","clickMenu"],setup(e,{attrs:c,slots:d,emit:f}){const w=t(null);s(w,"contextmenu",(e=>(e.preventDefault(),!1))),p(w,(e=>{f("update:show",!1)})),e.propItems;const m=i(e);function v(e){var t,l;if("string"==typeof e&&(e.startsWith((null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.279"))||"新增")||e.startsWith((null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.215"))||"删除")))return!0}function y(e){return"string"==typeof e?e:"boolean"==typeof e.value?e.label:e.renderItem?e.renderItem():a(u,{inline:!0,align:"center"},{default:()=>{var t;return[a("span",null,[e.label]),a(r,{style:"width: 110px",size:"small",value:e.value,"onUpdate:value":t=>e.value=t,clearable:!0,placeholder:(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.207"))||"请输入数值",showButton:!1,onFocus:()=>f("update:show",!0)},null)]}})}return l((()=>e.show),(t=>{t&&e.list.forEach((e=>{"object"==typeof e&&Reflect.has(e,"value")&&"boolean"!=typeof e.value&&(e.value=void 0)}))})),()=>o(a("ul",{ref:w,class:"c-fabric-chart-popup c-fabric-chart-popup__menu",style:m.value},[e.list.map((t=>e.show?a("li",{class:{"no-click":v(t)},onClick:l=>function(t,l){v(l)||""===(null==t?void 0:t.target.className)&&(f("update:show",!1),f("clickMenu",{item:l,target:e.target}))}(l,t),key:t.type||t},[y(t)]):null))]),[[n,e.show]])}});export{c as default};
|