@riil-frontend/component-topology 11.0.29 → 11.0.30
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/build/1.js +2 -2
- package/build/2.js +1 -1
- package/build/index.css +4 -2
- package/build/index.js +50 -35
- package/es/common/components/ColorPicker/ColorPicker.js +18 -9
- package/es/common/components/ResourceTable/ResourceTable.js +9 -6
- package/es/common/plugins/useSelectionPlugin.js +23 -14
- package/es/components/BatchAttrMetric/constant.js +2 -2
- package/es/components/BatchAttrMetric/index.js +17 -10
- package/es/components/BatchAttrMetric/setting.js +52 -30
- package/es/components/BatchAttrMetric/utils.js +4 -2
- package/es/components/BooleanRadio.js +7 -5
- package/es/components/ColorPanel/components/ColorBlock/index.js +4 -3
- package/es/components/ColorPanel/components/FontColorRange/index.js +13 -9
- package/es/components/ColorPanel/index.js +40 -18
- package/es/components/Drawer/Drawer.js +18 -14
- package/es/components/FormTable/index.js +18 -13
- package/es/components/FullheightTab/FullheightTab.js +2 -0
- package/es/components/LayoutDirectionSelect/LayoutDirectionSelect.js +3 -6
- package/es/components/LayoutSelect/LayoutSelect.js +3 -6
- package/es/components/ModelAttrSelectDrawer/components/ModelAttrSelectDrawer.js +4 -4
- package/es/components/ModelAttrSelectDrawer/components/MultipleTypeAttributeSelectDrawer.js +20 -15
- package/es/components/MultiResourceDrawer/Content.js +22 -12
- package/es/components/MultiResourceDrawer/Dynamic.js +4 -2
- package/es/components/MultiResourceDrawer/ResourceCard/index.js +6 -4
- package/es/components/MultiResourceDrawer/ResourceSelect.js +4 -2
- package/es/components/MultiResourceDrawer/Static.js +4 -2
- package/es/components/MultiResourceDrawer/index.js +16 -8
- package/es/components/ResourceList/ResourceSelect.js +44 -27
- package/es/components/ResourceList/ResourceSelectConnect.js +7 -3
- package/es/components/ResourceSelect/ResourceSelectDrawer.js +11 -7
- package/es/components/ResourceSelectDrawer/ResourceSelectDrawer.js +27 -14
- package/es/components/ResourceSelectDrawer/ResourceSelectList.js +8 -4
- package/es/components/SingleResourceDrawer/SelectDrawer.js +15 -6
- package/es/components/SingleResourceDrawer/SingleResourceDrawer.js +14 -7
- package/es/components/TagImageSelect/index.js +11 -8
- package/es/components/TagSelect/index.js +12 -8
- package/es/components/TemplateButton/Icon.js +7 -5
- package/es/components/TemplateButton/index.js +9 -6
- package/es/components/VerticalIconTab/VerticalIconTab.js +11 -7
- package/es/components/collapse/Collapse.js +8 -4
- package/es/components/collapse/Panel.js +17 -7
- package/es/constants/ResourceInfoDisplay.js +6 -6
- package/es/constants/ResourceTypeLimit.js +11 -20
- package/es/contextmenu/createMenuCommands.js +8 -7
- package/es/core/common/contextmenu/mergeContextmenu.js +2 -2
- package/es/core/common/hooks/ht/useDataModelDataPropertyChange.js +2 -0
- package/es/core/common/hooks/useHtElement.js +2 -1
- package/es/core/common/hooks/useHtElements.js +6 -5
- package/es/core/common/icons/icon.js +18 -17
- package/es/core/common/icons/useIcons.js +4 -1
- package/es/core/components/AlarmListPanel/components/AlarmListItem.js +13 -4
- package/es/core/components/AlarmListPanel/hooks/useAlarmList.js +7 -2
- package/es/core/components/AlarmListPanel/index.js +4 -2
- package/es/core/components/DisplaySettingDrawer/DisplaySetting.js +17 -11
- package/es/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +23 -13
- package/es/core/components/DisplaySettingDrawer/EdgeFlow.js +3 -1
- package/es/core/components/DisplaySettingDrawer/EdgeFlowDirection.js +3 -1
- package/es/core/components/DisplaySettingDrawer/LineExpandAllRadioGroup.js +25 -14
- package/es/core/components/DisplaySettingDrawer/LinkTag.js +3 -3
- package/es/core/components/DisplaySettingDrawer/NodeTag.js +1 -1
- package/es/core/components/DisplaySettingDrawer/NodeTip.js +1 -1
- package/es/core/components/DisplaySettingDrawer/ResourceDisplay/BasicConfig.js +32 -25
- package/es/core/components/DisplaySettingDrawer/ResourceDisplay/CommonCheckboxGroup.js +7 -3
- package/es/core/components/DisplaySettingDrawer/components/NodeAttrSettingDrawer.js +9 -6
- package/es/core/components/DisplaySettingDrawer/demo/Demo.js +3 -4
- package/es/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +33 -10
- package/es/core/components/DisplaySettingDrawer/tagtip/CustomSettingDrawer/CustomSetting.js +5 -3
- package/es/core/components/DisplaySettingDrawer/tagtip/CustomSettingDrawer/CustomSettingDrawer.js +2 -0
- package/es/core/components/ResourceViewAttributeSetting/Setting.js +12 -7
- package/es/core/components/ResourceViewAttributeSetting/nodeCiTypeAttrUtil.js +25 -7
- package/es/core/components/TopoView/GraphViewPanel.js +15 -10
- package/es/core/components/TopoView/topoView.js +62 -38
- package/es/core/components/titlebar/TitleBar.js +12 -4
- package/es/core/components/titlebar/widgets/TitleWidget.js +4 -2
- package/es/core/createTopoApp.js +1 -1
- package/es/core/editor/components/BackgroundView/UploadDialog/index.js +53 -21
- package/es/core/editor/components/BackgroundView/index.js +65 -24
- package/es/core/editor/components/BottomFloatTool/HelpIcon.js +15 -8
- package/es/core/editor/components/CustomIconPlugin/CustomIconPlugin.js +2 -5
- package/es/core/editor/components/CustomIconPlugin/RenameDialog.js +19 -7
- package/es/core/editor/components/CustomIconPlugin/UploadIconDialog.js +67 -24
- package/es/core/editor/components/CustomIconPlugin/UploadIconDialogWrapper.js +5 -3
- package/es/core/editor/components/CustomIconPlugin/utils/svgToShape.js +8 -3
- package/es/core/editor/components/EditorPlugin.js +8 -4
- package/es/core/editor/components/GroupAddResourceDrawerPlugin/GroupAddResourceDrawer.js +12 -6
- package/es/core/editor/components/GroupAddResourceDrawerPlugin/index.js +6 -6
- package/es/core/editor/components/Sidebar/Sidebar.js +17 -8
- package/es/core/editor/components/Sidebar/views/CanvasPanel/CanvasPanel.js +7 -5
- package/es/core/editor/components/Sidebar/views/CanvasPanel/hooks/useCanvasThemeConfig.js +30 -14
- package/es/core/editor/components/Sidebar/views/ComponentPanel.js +7 -7
- package/es/core/editor/components/Sidebar/views/ImagePanel/CiTypeImagePanel.js +2 -2
- package/es/core/editor/components/Sidebar/views/ImagePanel/CustomImagePanel.js +2 -2
- package/es/core/editor/components/Sidebar/views/ImagePanel/HtCustomImagePanel.js +10 -7
- package/es/core/editor/components/Sidebar/views/ImagePanel/HtImagePalette.js +10 -7
- package/es/core/editor/components/Sidebar/views/ImagePanel/ImagePalette.js +7 -7
- package/es/core/editor/components/Sidebar/views/ImagePanel/ImagePanel.js +12 -4
- package/es/core/editor/components/Sidebar/views/LinkPanel.js +8 -7
- package/es/core/editor/components/Toolbar/EditorToolbar.js +7 -2
- package/es/core/editor/components/Toolbar/Toolbar.js +2 -0
- package/es/core/editor/components/Toolbar/buttons.js +15 -30
- package/es/core/editor/components/Toolbar/components/Tooltip.js +3 -2
- package/es/core/editor/components/Toolbar/widgets/AddResourceButton.js +11 -8
- package/es/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundButton.js +13 -7
- package/es/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundSetting.js +42 -19
- package/es/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundUtil.js +29 -9
- package/es/core/editor/components/Toolbar/widgets/CanvasMoveWidget.js +7 -3
- package/es/core/editor/components/Toolbar/widgets/CanvasSelectWidget.js +7 -3
- package/es/core/editor/components/Toolbar/widgets/Divider.js +2 -0
- package/es/core/editor/components/Toolbar/widgets/EdgeColorButton/Content.js +8 -6
- package/es/core/editor/components/Toolbar/widgets/EdgeColorButton/EdgeColorButton.js +27 -13
- package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.js +17 -10
- package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/LineType.js +6 -5
- package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/constants.js +3 -2
- package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/index.js +27 -14
- package/es/core/editor/components/Toolbar/widgets/FontColorButton.js +44 -24
- package/es/core/editor/components/Toolbar/widgets/FontFamilyWidget.js +7 -4
- package/es/core/editor/components/Toolbar/widgets/FontSizeWidget.js +10 -8
- package/es/core/editor/components/Toolbar/widgets/FontStyleButton.js +27 -16
- package/es/core/editor/components/Toolbar/widgets/HistoryRedoButton.js +6 -2
- package/es/core/editor/components/Toolbar/widgets/HistoryUndoButton.js +8 -4
- package/es/core/editor/components/Toolbar/widgets/IconSelect/IconSelect.js +23 -9
- package/es/core/editor/components/Toolbar/widgets/IconSelect/index.js +23 -9
- package/es/core/editor/components/Toolbar/widgets/IconSelect/index.module.scss +1 -1
- package/es/core/editor/components/Toolbar/widgets/IconSelect/popUpContent.js +6 -2
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutSettings.js +14 -10
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagImageSelect/index.js +12 -9
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagSelect/index.js +16 -12
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/Icon.js +7 -5
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/index.js +9 -6
- package/es/core/editor/components/Toolbar/widgets/Layout/index.js +46 -27
- package/es/core/editor/components/Toolbar/widgets/NodeAlignWidget.js +33 -20
- package/es/core/editor/components/Toolbar/widgets/NodeImageButton/BoxBackgroundSetting.js +4 -2
- package/es/core/editor/components/Toolbar/widgets/NodeImageButton/NodeImageButton.js +18 -12
- package/es/core/editor/components/Toolbar/widgets/NodeSizeButton/BoxBackgroundSetting.js +2 -0
- package/es/core/editor/components/Toolbar/widgets/NodeSizeButton/NodeSizeButton.js +25 -16
- package/es/core/editor/components/Toolbar/widgets/SearchWidget.js +5 -1
- package/es/core/editor/components/Toolbar/widgets/WidgetBox.js +11 -6
- package/es/core/editor/components/Toolbar/widgets/components/ArrowButton.js +4 -2
- package/es/core/editor/components/Toolbar/widgets/components/ArrowPopup.js +4 -2
- package/es/core/editor/components/Toolbar/widgets/components/ButtonBox.js +9 -5
- package/es/core/editor/components/Toolbar/widgets/components/DropdownButton.js +18 -9
- package/es/core/editor/components/Toolbar/widgets/components/DropdownMenu.js +10 -5
- package/es/core/editor/components/Toolbar/widgets/components/MenuSelect.js +4 -2
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/ElementTextStyleSetting.js +11 -5
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/colorUtil.js +9 -4
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/box.js +6 -3
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/edgeTag.js +15 -6
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/groupTitle.js +10 -5
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/layerTitle.js +13 -6
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/nodeTag.js +17 -7
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/text.js +6 -2
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/textStyleUtil.js +22 -6
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/GlobalTagStyleSetting/GlobalTagStyleSetting.js +7 -3
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/GlobalTagStyleSetting/globalTag.js +32 -13
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/textStyleSettingRouter.js +2 -0
- package/es/core/editor/components/plugins/AddElementThemePlugin.js +2 -0
- package/es/core/editor/components/plugins/CorePlugin.js +5 -3
- package/es/core/editor/components/plugins/SaveLoading.js +4 -2
- package/es/core/editor/components/settings/CloseablePanel.js +5 -3
- package/es/core/editor/components/settings/PropertyView.js +17 -7
- package/es/core/editor/components/settings/Settings.js +13 -7
- package/es/core/editor/components/settings/common/AddResourceButton.js +2 -0
- package/es/core/editor/components/settings/common/AlignSetting/AlignTypeList.js +14 -11
- package/es/core/editor/components/settings/common/AlignSetting/index.js +11 -5
- package/es/core/editor/components/settings/common/GroupNodeList/ResourceList.js +10 -2
- package/es/core/editor/components/settings/common/LayoutSettings.js +15 -12
- package/es/core/editor/components/settings/common/LineType/index.js +2 -0
- package/es/core/editor/components/settings/common/NameInput.js +3 -1
- package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +28 -9
- package/es/core/editor/components/settings/common/SizeInput/NodeSizeInput.js +20 -12
- package/es/core/editor/components/settings/common/SizeInput/NodeSizeNumberPicker.js +21 -10
- package/es/core/editor/components/settings/common/tab/TabView.js +2 -0
- package/es/core/editor/components/settings/common/text/FontStyleCheckbox.js +5 -1
- package/es/core/editor/components/settings/common/text/TextStyle.js +7 -2
- package/es/core/editor/components/settings/common/text/fontStyleUtil.js +6 -2
- package/es/core/editor/components/settings/core/PropertyViewManager.js +19 -0
- package/es/core/editor/components/settings/core/edgePropertyViewAdapter.js +2 -0
- package/es/core/editor/components/settings/core/getPropertyViewType.js +4 -0
- package/es/core/editor/components/settings/core/updateElementProperty.js +1 -0
- package/es/core/editor/components/settings/propertyViews/PropertyViewFactory.js +1 -0
- package/es/core/editor/components/settings/propertyViews/box/BoxPropertyView.js +9 -3
- package/es/core/editor/components/settings/propertyViews/box/BoxPropertyViewV1.js +8 -2
- package/es/core/editor/components/settings/propertyViews/box/NameInput.js +11 -3
- package/es/core/editor/components/settings/propertyViews/edge/CommonEdgePropertyView.js +13 -5
- package/es/core/editor/components/settings/propertyViews/edge/EdgeGroupPropertyView.js +2 -0
- package/es/core/editor/components/settings/propertyViews/edge/EdgePropertyView.js +10 -4
- package/es/core/editor/components/settings/propertyViews/edge/edgeGroup/EdgeGroupSetting.js +9 -3
- package/es/core/editor/components/settings/propertyViews/group/DataTab/GroupAddResourceButton.js +4 -2
- package/es/core/editor/components/settings/propertyViews/group/DataTab/GroupNodeList.js +8 -7
- package/es/core/editor/components/settings/propertyViews/group/DataTab/GroupRelateData/GroupRelateData.js +10 -4
- package/es/core/editor/components/settings/propertyViews/group/DataTab/RelateData.js +4 -4
- package/es/core/editor/components/settings/propertyViews/group/DataTab/hoooks/useGroupRelateResource.js +12 -11
- package/es/core/editor/components/settings/propertyViews/group/GroupPropertyView.js +3 -3
- package/es/core/editor/components/settings/propertyViews/group/GroupPropertyViewV1.js +3 -3
- package/es/core/editor/components/settings/propertyViews/group/SettingTab/GroupBasicSetting.js +11 -7
- package/es/core/editor/components/settings/propertyViews/group/SettingTab/GroupExpandSetting.js +19 -17
- package/es/core/editor/components/settings/propertyViews/group/SettingTab/GroupExpandStatus.js +5 -3
- package/es/core/editor/components/settings/propertyViews/group/SettingTab/GroupIconSelect.js +4 -2
- package/es/core/editor/components/settings/propertyViews/group/SettingTab/Setting.js +15 -6
- package/es/core/editor/components/settings/propertyViews/group/cluster/ClusterGroupRelateData.js +6 -4
- package/es/core/editor/components/settings/propertyViews/index.js +2 -0
- package/es/core/editor/components/settings/propertyViews/layer/BasicSetting.js +7 -3
- package/es/core/editor/components/settings/propertyViews/layer/DataTab/DefaultLayerAddResourceDrawer.js +13 -7
- package/es/core/editor/components/settings/propertyViews/layer/DataTab/LayerAddResourceButton.js +6 -4
- package/es/core/editor/components/settings/propertyViews/layer/DataTab/LayerAddResourceDrawer.js +4 -2
- package/es/core/editor/components/settings/propertyViews/layer/DataTab/NodeList.js +2 -2
- package/es/core/editor/components/settings/propertyViews/layer/DataTab/RelateData.js +6 -4
- package/es/core/editor/components/settings/propertyViews/layer/LayerPropertyView.js +6 -6
- package/es/core/editor/components/settings/propertyViews/layer/LayerPropertyViewV1.js +6 -6
- package/es/core/editor/components/settings/propertyViews/layer/SettingTab/Setting.js +16 -9
- package/es/core/editor/components/settings/propertyViews/layer/SettingTab/Setting_bak.js +18 -16
- package/es/core/editor/components/settings/propertyViews/multipleElements/BatchSetNodeIcon.js +2 -2
- package/es/core/editor/components/settings/propertyViews/multipleElements/BatchSetNodeSize/BatchSetNodeSize.js +35 -13
- package/es/core/editor/components/settings/propertyViews/multipleElements/MultipleElementLineType.js +2 -0
- package/es/core/editor/components/settings/propertyViews/multipleElements/MultipleElementPropertyView.js +11 -7
- package/es/core/editor/components/settings/propertyViews/node/NodeIconSelect.js +6 -4
- package/es/core/editor/components/settings/propertyViews/node/NodeIconSelectTest.js +2 -2
- package/es/core/editor/components/settings/propertyViews/node/NodePropertyView.js +9 -7
- package/es/core/editor/components/settings/propertyViews/node/NodePropertyViewV1.js +12 -7
- package/es/core/editor/components/settings/propertyViews/node/Setting/BasicSetting.js +11 -6
- package/es/core/editor/components/settings/propertyViews/node/Setting/NameInput.js +11 -3
- package/es/core/editor/components/settings/propertyViews/node/Setting/Setting.js +14 -6
- package/es/core/editor/components/settings/propertyViews/node/data/BindIpInput.js +23 -18
- package/es/core/editor/components/settings/propertyViews/node/data/BindResourceDrawer.js +17 -8
- package/es/core/editor/components/settings/propertyViews/node/data/Data.js +29 -19
- package/es/core/editor/components/settings/propertyViews/node/data/NodeRelateResourceButton.js +10 -7
- package/es/core/editor/components/settings/propertyViews/node/data/PlatformDisplay.js +5 -1
- package/es/core/editor/components/settings/propertyViews/text/TextPropertyView.js +17 -5
- package/es/core/editor/components/settings/propertyViews/view/BackgroundSize.js +10 -5
- package/es/core/editor/components/settings/propertyViews/view/BatchSetNodeSize.js +3 -5
- package/es/core/editor/components/settings/propertyViews/view/GlobalEdgeToggle.js +11 -5
- package/es/core/editor/components/settings/propertyViews/view/GlobalLayout.js +7 -6
- package/es/core/editor/components/settings/propertyViews/view/GlobalNodeLabelStyle.js +7 -2
- package/es/core/editor/components/settings/propertyViews/view/ViewLineTypeSetting.js +3 -0
- package/es/core/editor/components/settings/propertyViews/view/ViewPropertyView.js +3 -3
- package/es/core/editor/components/settings/propertyViews/view/ViewPropertyViewV2.js +3 -3
- package/es/core/editor/components/settings/propertyViews/view/hooks/useBackgroundConfig.js +4 -3
- package/es/core/editor/components/settings/propertyViews/view/hooks/useBackgroundSizeConfig.js +12 -4
- package/es/core/editor/components/settings/useSettingRuntimeState.js +6 -2
- package/es/core/editor/components/titlebar/TopoEditorTitleBar.js +26 -12
- package/es/core/editor/components/titlebar/widgets/DebugTools.js +4 -1
- package/es/core/editor/config/themes.js +7 -8
- package/es/core/editor/contextmenu/buildContextmenu.js +1 -2
- package/es/core/editor/hooks/useKeyboardShortcut.js +10 -7
- package/es/core/editor/hooks/useLayerAddResource.js +6 -4
- package/es/core/editor/hooks/useNewElementTheme.js +14 -7
- package/es/core/editor/hooks/useUpdateHtTopoDefaultTagStyle.js +3 -2
- package/es/core/editor/store/background.js +8 -4
- package/es/core/editor/store/historyManager.js +1 -0
- package/es/core/editor/store/topoEdit.js +4 -3
- package/es/core/editor/utils/edgeTypeStyleUtil.js +15 -9
- package/es/core/editor/utils/themeUtil.js +3 -0
- package/es/core/event/topoEventListener.js +2 -0
- package/es/core/hooks/ht/useHtDataPropertyChangeListener.js +7 -3
- package/es/core/hooks/useAlarm.js +24 -12
- package/es/core/hooks/useCanvasTheme.js +10 -9
- package/es/core/hooks/useCanvasThemeConfig.js +4 -2
- package/es/core/hooks/useCiAttributeChange.js +10 -3
- package/es/core/hooks/useEventData.js +4 -2
- package/es/core/hooks/useGraphAlarmDisplay.js +27 -11
- package/es/core/hooks/useGroupAddResource.js +5 -2
- package/es/core/hooks/useManageStatus.js +1 -1
- package/es/core/hooks/usePolling.js +61 -33
- package/es/core/hooks/useResourceConfig.js +57 -22
- package/es/core/hooks/useRouterAdapter.js +4 -2
- package/es/core/hooks/useSelection.js +4 -1
- package/es/core/hooks/useTopoEdit.js +261 -112
- package/es/core/hooks/useTopoEventListener.js +1 -1
- package/es/core/hooks/useTopoFullscreen.js +8 -7
- package/es/core/models/Alarm.js +139 -50
- package/es/core/models/AttributeMetricDisplay.js +166 -89
- package/es/core/models/DataModel.js +37 -4
- package/es/core/models/EdgeGroup.js +7 -2
- package/es/core/models/GraphDataModel.js +7 -0
- package/es/core/models/HistoryManager.js +52 -21
- package/es/core/models/PluginManager.js +9 -0
- package/es/core/models/SelectionModel.js +36 -11
- package/es/core/models/TopoApp.js +178 -74
- package/es/core/models/TopoGraphView.js +30 -8
- package/es/core/models/TopoViewer.js +5 -1
- package/es/core/models/attributeFormatter/formatter/ciTypeAttrTransform.js +3 -2
- package/es/core/models/attributeFormatter/formatter/commonTransform.js +8 -6
- package/es/core/models/attributeFormatter/formatter/graphTransform.js +5 -2
- package/es/core/models/attributeFormatter/index.js +8 -1
- package/es/core/models/cache/CiCache.js +17 -4
- package/es/core/models/cache/CiTypeCache.js +35 -8
- package/es/core/models/cache/DictCache.js +19 -4
- package/es/core/models/common/ContextMenu.js +9 -0
- package/es/core/models/graph/Background.js +16 -3
- package/es/core/models/plugins/index.js +1 -3
- package/es/core/models/plugins/resourceWebControllUrl.js +39 -9
- package/es/core/models/tagstips/ElementTagTipConfig.js +55 -16
- package/es/core/models/tagstips/utils.js +4 -4
- package/es/core/models/topoData.js +24 -8
- package/es/core/models/topoFactory.js +6 -0
- package/es/core/models/utils/linkUtils.js +35 -24
- package/es/core/models/utils/nodeNameVisibleUtil.js +25 -16
- package/es/core/services/alarm.js +5 -3
- package/es/core/services/background.js +24 -9
- package/es/core/services/cmdb/metric.js +5 -3
- package/es/core/services/cmdb.js +6 -3
- package/es/core/services/index.js +18 -7
- package/es/core/services/overview.js +58 -25
- package/es/core/services/topo/basic.js +5 -3
- package/es/core/services/topo/tagtip.js +6 -3
- package/es/core/store/coreModels.js +2 -4
- package/es/core/store/createStore.js +3 -0
- package/es/core/store/models/ciModel.js +16 -5
- package/es/core/store/models/customIcon.js +55 -19
- package/es/core/store/models/displayConfig.js +11 -5
- package/es/core/store/models/selection.js +5 -4
- package/es/core/store/models/topoAlarm.js +42 -10
- package/es/core/store/models/topoBaseInfoOverview.js +5 -4
- package/es/core/store/models/topoBizMod.js +14 -5
- package/es/core/store/models/topoConfig.js +85 -39
- package/es/core/store/models/topoGraphView.js +7 -5
- package/es/core/store/models/topoMod.js +111 -38
- package/es/core/store/models/viewer/lock.js +1 -0
- package/es/core/store/models/viewer/resourceDetail.js +5 -2
- package/es/core/store/models/viewer/resourceWebControllUrlSetting.js +1 -0
- package/es/core/test/Test.js +13 -10
- package/es/core/upgrade/v140UpgradeSerializeNodeImageSize.js +5 -0
- package/es/core/utils/backgroundUtil.js +7 -5
- package/es/core/utils/edgeUtil.js +11 -4
- package/es/core/utils/graphLinkUtil.js +8 -5
- package/es/core/utils/imageUtil.js +9 -3
- package/es/core/utils/metricUtil.js +1 -1
- package/es/core/utils/resourceUtil.js +3 -3
- package/es/core/utils/saveSerialize.js +6 -3
- package/es/core/utils/showGraphManageStatusUtil.js +18 -14
- package/es/core/utils/showMessage.js +2 -0
- package/es/core/viewer/components/plugins/ElementDetailDrawer/components/DetailDrawer.js +2 -0
- package/es/core/viewer/components/plugins/ElementDetailDrawer/hooks/useElementDetailManager.js +59 -32
- package/es/core/viewer/components/plugins/ResourceDetail/DefaultDetailContent.js +14 -8
- package/es/core/viewer/components/plugins/ResourceDetail/ResourceDetail.js +11 -6
- package/es/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawer.js +12 -9
- package/es/core/viewer/components/plugins/ResourceDetail/ResourceDetailPlugin.js +7 -2
- package/es/core/viewer/components/plugins/ResourceDetail/components/ClusterMemberTable.js +22 -10
- package/es/core/viewer/components/plugins/ResourceDetail/components/DrawerTitle.js +16 -7
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BaseInfo.js +23 -18
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BaseInfoBlock.js +10 -10
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BlockBox.js +2 -2
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +17 -10
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/NetworkBaseInfo.js +27 -19
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +200 -90
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverviewMetric.js +29 -25
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/SingleResourceStrategyLink.js +6 -6
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/Configurator/index.js +70 -33
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/LinkTopo.js +4 -2
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/LinkTopoCard.js +27 -13
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/constants.js +4 -8
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/hooks/useMetricPolling.js +18 -14
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +62 -23
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useAlarmAndRiskData.js +37 -24
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useMetricModels.js +43 -22
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/useCiAttrAndMetricData.js +4 -2
- package/es/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleContainer.js +4 -1
- package/es/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/WebConsoleForm.js +15 -8
- package/es/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +24 -10
- package/es/core/viewer/components/plugins/ResourceDetail/getCiDisplayMetricModels.js +12 -5
- package/es/core/viewer/components/plugins/ResourceDetail/hooks/useUserId.js +16 -7
- package/es/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +18 -6
- package/es/core/viewer/components/plugins/ViewerPlugin.js +1 -1
- package/es/core/viewer/components/titlebar/BasicTools.js +3 -3
- package/es/core/viewer/components/titlebar/TopoViewerTitleBar.js +4 -4
- package/es/core/viewer/components/titlebar/widgets/AlarmButton.js +6 -2
- package/es/core/viewer/components/titlebar/widgets/AlarmListShowButton.js +16 -14
- package/es/core/viewer/components/titlebar/widgets/EditButton.js +8 -4
- package/es/core/viewer/components/titlebar/widgets/MoreButtonMenu.js +1 -1
- package/es/core/viewer/components/titlebar/widgets/NodesDragSwitch.js +18 -14
- package/es/core/viewer/components/titlebar/widgets/NodesDragSwitchWrapper.js +5 -1
- package/es/core/viewer/components/titlebar/widgets/SearchWidget.js +17 -9
- package/es/core/viewer/components/titlebar/widgets/SettingButton.js +10 -7
- package/es/core/viewer/components/titlebar/widgets/SettingButtonWidget.js +5 -5
- package/es/core/viewer/contextmenu/buildLinkContextmenu.js +1 -2
- package/es/core/viewer/contextmenu/buildNodeContextmenu.js +2 -8
- package/es/createTopo.js +1 -2
- package/es/mock/mock.js +4 -6
- package/es/networkTopo/components/Link/form.js +41 -25
- package/es/networkTopo/components/Link/hook.js +86 -48
- package/es/networkTopo/components/Link/index.js +63 -33
- package/es/networkTopo/components/Link/setting.js +65 -45
- package/es/networkTopo/components/TopoView.js +20 -14
- package/es/networkTopo/getTopoData.js +37 -21
- package/es/networkTopo/hooks/useEdgeExpand.js +3 -2
- package/es/networkTopo/hooks/useGroupResources.js +4 -2
- package/es/networkTopo/hooks/useLinkDynamicStyle.js +4 -2
- package/es/networkTopo/hooks/viewer/useEdgeFlow.js +7 -6
- package/es/networkTopo/hooks/viewer/useRelateTopo.js +23 -8
- package/es/networkTopo/models/EdgeGroupTagTipBuilder.js +10 -2
- package/es/networkTopo/models/ExtElementTagTipBuilder.js +5 -0
- package/es/networkTopo/models/IpNodeTagsTipsBuilder.js +11 -2
- package/es/networkTopo/models/LinkDynamicStyleExecutor.js +49 -28
- package/es/networkTopo/models/LinkTagsTipsBuilder.js +51 -41
- package/es/networkTopo/models/TopoCenter.js +26 -8
- package/es/networkTopo/services/alert.js +10 -5
- package/es/networkTopo/services/authorization.js +25 -11
- package/es/networkTopo/services/cmdb.js +165 -80
- package/es/networkTopo/services/funcAuth.js +5 -3
- package/es/networkTopo/services/link.js +34 -11
- package/es/networkTopo/services/mdc.js +17 -10
- package/es/networkTopo/services/metric.js +12 -6
- package/es/networkTopo/services/model.js +223 -92
- package/es/networkTopo/services/risk.js +5 -3
- package/es/networkTopo/services/topo/auth.js +13 -7
- package/es/networkTopo/services/topo/basic.js +137 -57
- package/es/networkTopo/services/topo/blacklist.js +11 -5
- package/es/networkTopo/services/topo/ciInfo.js +13 -5
- package/es/networkTopo/services/topo/icon.js +24 -11
- package/es/networkTopo/services/topo/networkLink.js +11 -5
- package/es/networkTopo/services/topo/relation.js +5 -3
- package/es/networkTopo/services/topo/resourceWebUrl.js +17 -7
- package/es/networkTopo/store/functionAuth.js +16 -7
- package/es/networkTopo/store/topoCenter.js +53 -18
- package/es/networkTopo/store/topoLinkMod.js +4 -3
- package/es/networkTopo/store/topoTreeMod.js +71 -19
- package/es/networkTopo/utils/SortResourcesUtil.js +3 -1
- package/es/networkTopo/utils/__tests__/resourcePermissionUtil.test.js +7 -4
- package/es/networkTopo/utils/edgeGroupTagUtil.js +15 -8
- package/es/networkTopo/utils/exitLinkUtil.js +54 -38
- package/es/networkTopo/utils/exportData.js +16 -10
- package/es/networkTopo/utils/linPermissionUtil.js +2 -4
- package/es/networkTopo/utils/resourcePermissionUtil.js +6 -4
- package/es/networkTopo/utils/storage.js +3 -2
- package/es/networkTopo/viewer/components/TopologyViewer.js +4 -3
- package/es/networkTopo/viewer/index.js +1 -2
- package/es/utils/ResourceConfigUtil.js +23 -18
- package/es/utils/SpecialCharacterValidateUtil.js +1 -0
- package/es/utils/ciType.js +5 -1
- package/es/utils/clusterUtil.js +20 -15
- package/es/utils/format.js +26 -12
- package/es/utils/htElementUtils.js +51 -25
- package/es/utils/template.js +7 -6
- package/es/utils/topoData.js +64 -52
- package/es/utils/topoMocks.js +4 -3
- package/es/utils/tree.js +33 -14
- package/es/utils/treeUtil.js +1 -0
- package/lib/common/components/ColorPicker/ColorPicker.js +30 -9
- package/lib/common/components/ColorPicker/index.js +3 -0
- package/lib/common/components/ResourceTable/ResourceTable.js +18 -6
- package/lib/common/plugins/useSelectionPlugin.js +24 -13
- package/lib/components/BatchAttrMetric/SelectTable.js +3 -0
- package/lib/components/BatchAttrMetric/constant.js +2 -2
- package/lib/components/BatchAttrMetric/index.js +27 -9
- package/lib/components/BatchAttrMetric/setting.js +72 -30
- package/lib/components/BatchAttrMetric/utils.js +9 -1
- package/lib/components/BooleanRadio.js +15 -5
- package/lib/components/ColorPanel/components/ColorBlock/index.js +8 -2
- package/lib/components/ColorPanel/components/FontColorRange/index.js +19 -9
- package/lib/components/ColorPanel/index.js +50 -17
- package/lib/components/Drawer/Drawer.js +25 -14
- package/lib/components/Drawer/index.js +3 -0
- package/lib/components/FormTable/index.js +32 -13
- package/lib/components/FullheightTab/FullheightTab.js +7 -0
- package/lib/components/FullheightTab/index.js +3 -0
- package/lib/components/LayoutDirectionSelect/Item.js +9 -0
- package/lib/components/LayoutDirectionSelect/LayoutDirectionSelect.js +13 -5
- package/lib/components/LayoutDirectionSelect/index.js +3 -0
- package/lib/components/LayoutSelect/LayoutSelect.js +12 -5
- package/lib/components/LayoutSelect/index.js +3 -0
- package/lib/components/Link.js +7 -0
- package/lib/components/ModelAttrSelectDrawer/components/ModelAttrSelectDrawer.js +11 -4
- package/lib/components/ModelAttrSelectDrawer/components/MultipleTypeAttributeSelectDrawer.js +27 -15
- package/lib/components/ModelAttrSelectDrawer/index.js +3 -0
- package/lib/components/MultiResourceDrawer/Content.js +31 -11
- package/lib/components/MultiResourceDrawer/Dynamic.js +10 -2
- package/lib/components/MultiResourceDrawer/ResourceCard/index.js +11 -4
- package/lib/components/MultiResourceDrawer/ResourceSelect.js +10 -2
- package/lib/components/MultiResourceDrawer/Static.js +10 -2
- package/lib/components/MultiResourceDrawer/index.js +23 -8
- package/lib/components/NetworkTopoResourceSelectDrawer/NetworkTopoResourceSelectDrawer.js +6 -0
- package/lib/components/NetworkTopoResourceSelectDrawer/index.js +3 -0
- package/lib/components/ResourceList/ResourceSelect.js +64 -27
- package/lib/components/ResourceList/ResourceSelectConnect.js +17 -3
- package/lib/components/ResourceList/index.js +3 -0
- package/lib/components/ResourceSelect/ResourceSelectDrawer.js +21 -6
- package/lib/components/ResourceSelectDrawer/ResourceSelectDrawer.js +39 -13
- package/lib/components/ResourceSelectDrawer/ResourceSelectList.js +15 -4
- package/lib/components/ResourceSelectDrawer/index.js +3 -0
- package/lib/components/SingleResourceDrawer/SelectDrawer.js +23 -6
- package/lib/components/SingleResourceDrawer/SingleResourceDrawer.js +22 -6
- package/lib/components/SingleResourceDrawer/index.js +3 -0
- package/lib/components/TagImageSelect/index.js +18 -8
- package/lib/components/TagSelect/index.js +22 -8
- package/lib/components/TemplateButton/Icon.js +10 -5
- package/lib/components/TemplateButton/assets/index.js +5 -0
- package/lib/components/TemplateButton/index.js +16 -6
- package/lib/components/VerticalIconTab/VerticalIconTab.js +23 -6
- package/lib/components/VerticalIconTab/index.js +3 -0
- package/lib/components/collapse/Collapse.js +16 -4
- package/lib/components/collapse/Panel.js +33 -7
- package/lib/components/collapse/index.js +3 -0
- package/lib/constants/ResourceInfoDisplay.js +6 -6
- package/lib/constants/ResourceTypeLimit.js +20 -20
- package/lib/contextmenu/createMenuCommands.js +11 -6
- package/lib/core/common/contextmenu/mergeContextmenu.js +6 -2
- package/lib/core/common/hooks/ht/useDataModelDataPropertyChange.js +5 -0
- package/lib/core/common/hooks/useHtElement.js +4 -1
- package/lib/core/common/hooks/useHtElements.js +8 -5
- package/lib/core/common/icons/icon.js +36 -16
- package/lib/core/common/icons/useIcons.js +10 -1
- package/lib/core/components/AlarmListPanel/components/AlarmListItem.js +22 -4
- package/lib/core/components/AlarmListPanel/constants/uicbb.js +1 -0
- package/lib/core/components/AlarmListPanel/hooks/useAlarmList.js +9 -2
- package/lib/core/components/AlarmListPanel/index.js +18 -2
- package/lib/core/components/DisplaySettingDrawer/DisplaySetting.js +34 -10
- package/lib/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +38 -13
- package/lib/core/components/DisplaySettingDrawer/EdgeFlow.js +8 -1
- package/lib/core/components/DisplaySettingDrawer/EdgeFlowDirection.js +8 -1
- package/lib/core/components/DisplaySettingDrawer/LineExpandAllRadioGroup.js +38 -14
- package/lib/core/components/DisplaySettingDrawer/LinkTag.js +10 -1
- package/lib/core/components/DisplaySettingDrawer/NodeTag.js +10 -1
- package/lib/core/components/DisplaySettingDrawer/NodeTip.js +10 -1
- package/lib/core/components/DisplaySettingDrawer/ResourceDisplay/BasicConfig.js +46 -24
- package/lib/core/components/DisplaySettingDrawer/ResourceDisplay/CommonCheckboxGroup.js +14 -3
- package/lib/core/components/DisplaySettingDrawer/components/NodeAttrSettingDrawer.js +21 -5
- package/lib/core/components/DisplaySettingDrawer/demo/Demo.js +6 -4
- package/lib/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +39 -10
- package/lib/core/components/DisplaySettingDrawer/index.js +3 -0
- package/lib/core/components/DisplaySettingDrawer/tagtip/CustomSettingDrawer/CustomSetting.js +11 -3
- package/lib/core/components/DisplaySettingDrawer/tagtip/CustomSettingDrawer/CustomSettingDrawer.js +5 -0
- package/lib/core/components/ResourceViewAttributeSetting/Setting.js +22 -6
- package/lib/core/components/ResourceViewAttributeSetting/nodeCiTypeAttrUtil.js +27 -6
- package/lib/core/components/TopoAppProvider.js +5 -0
- package/lib/core/components/TopoView/GraphViewPanel.js +24 -10
- package/lib/core/components/TopoView/index.js +3 -0
- package/lib/core/components/TopoView/topoView.js +97 -35
- package/lib/core/components/buildProvider.js +5 -0
- package/lib/core/components/titlebar/TitleBar.js +21 -4
- package/lib/core/components/titlebar/index.js +17 -0
- package/lib/core/components/titlebar/widgets/TitleWidget.js +9 -2
- package/lib/core/createTopoApp.js +5 -0
- package/lib/core/editor/components/BackgroundView/UploadDialog/index.js +69 -21
- package/lib/core/editor/components/BackgroundView/index.js +87 -24
- package/lib/core/editor/components/BottomFloatTool/HelpIcon.js +25 -8
- package/lib/core/editor/components/CustomIconPlugin/CustomIconPlugin.js +10 -5
- package/lib/core/editor/components/CustomIconPlugin/RenameDialog.js +35 -7
- package/lib/core/editor/components/CustomIconPlugin/UploadIconDialog.js +87 -24
- package/lib/core/editor/components/CustomIconPlugin/UploadIconDialogWrapper.js +11 -3
- package/lib/core/editor/components/CustomIconPlugin/index.js +3 -0
- package/lib/core/editor/components/CustomIconPlugin/utils/svgToShape.js +13 -3
- package/lib/core/editor/components/EditorPlugin.js +23 -4
- package/lib/core/editor/components/GroupAddResourceDrawerPlugin/GroupAddResourceDrawer.js +19 -6
- package/lib/core/editor/components/GroupAddResourceDrawerPlugin/index.js +11 -5
- package/lib/core/editor/components/Sidebar/Sidebar.js +26 -8
- package/lib/core/editor/components/Sidebar/panes.js +7 -0
- package/lib/core/editor/components/Sidebar/views/BackgroundPanel/BackgroundPanel.js +4 -0
- package/lib/core/editor/components/Sidebar/views/BackgroundPanel/index.js +3 -0
- package/lib/core/editor/components/Sidebar/views/CanvasPanel/CanvasPanel.js +15 -5
- package/lib/core/editor/components/Sidebar/views/CanvasPanel/hooks/useCanvasThemeConfig.js +38 -14
- package/lib/core/editor/components/Sidebar/views/CanvasPanel/index.js +3 -0
- package/lib/core/editor/components/Sidebar/views/ComponentPanel.js +12 -6
- package/lib/core/editor/components/Sidebar/views/ImagePanel/CiTypeImagePanel.js +8 -1
- package/lib/core/editor/components/Sidebar/views/ImagePanel/CustomImagePanel.js +9 -1
- package/lib/core/editor/components/Sidebar/views/ImagePanel/HtCustomImagePanel.js +17 -6
- package/lib/core/editor/components/Sidebar/views/ImagePanel/HtImagePalette.js +17 -6
- package/lib/core/editor/components/Sidebar/views/ImagePanel/ImagePalette.js +12 -6
- package/lib/core/editor/components/Sidebar/views/ImagePanel/ImagePanel.js +29 -4
- package/lib/core/editor/components/Sidebar/views/ImagePanel/index.js +3 -0
- package/lib/core/editor/components/Sidebar/views/LinkPanel.js +13 -6
- package/lib/core/editor/components/Toolbar/EditorToolbar.js +17 -2
- package/lib/core/editor/components/Toolbar/Toolbar.js +5 -0
- package/lib/core/editor/components/Toolbar/buttons.js +35 -30
- package/lib/core/editor/components/Toolbar/components/Tooltip.js +8 -2
- package/lib/core/editor/components/Toolbar/widgets/AddResourceButton.js +21 -8
- package/lib/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundButton.js +21 -7
- package/lib/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundSetting.js +52 -19
- package/lib/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundUtil.js +37 -9
- package/lib/core/editor/components/Toolbar/widgets/BoxBackgroundButton/index.js +3 -0
- package/lib/core/editor/components/Toolbar/widgets/CanvasMoveWidget.js +13 -3
- package/lib/core/editor/components/Toolbar/widgets/CanvasSelectWidget.js +11 -3
- package/lib/core/editor/components/Toolbar/widgets/Divider.js +5 -0
- package/lib/core/editor/components/Toolbar/widgets/EdgeColorButton/Content.js +12 -6
- package/lib/core/editor/components/Toolbar/widgets/EdgeColorButton/EdgeColorButton.js +36 -12
- package/lib/core/editor/components/Toolbar/widgets/EdgeColorButton/index.js +3 -0
- package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.js +28 -10
- package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/LineType.js +16 -4
- package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/constants.js +3 -2
- package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/index.js +37 -13
- package/lib/core/editor/components/Toolbar/widgets/FontColorButton.js +57 -24
- package/lib/core/editor/components/Toolbar/widgets/FontFamilyWidget.js +15 -4
- package/lib/core/editor/components/Toolbar/widgets/FontSizeWidget.js +18 -8
- package/lib/core/editor/components/Toolbar/widgets/FontStyleButton.js +39 -16
- package/lib/core/editor/components/Toolbar/widgets/HistoryRedoButton.js +10 -2
- package/lib/core/editor/components/Toolbar/widgets/HistoryUndoButton.js +10 -3
- package/lib/core/editor/components/Toolbar/widgets/IconSelect/IconSelect.js +32 -9
- package/lib/core/editor/components/Toolbar/widgets/IconSelect/index.js +31 -9
- package/lib/core/editor/components/Toolbar/widgets/IconSelect/index.module.scss +1 -1
- package/lib/core/editor/components/Toolbar/widgets/IconSelect/popUpContent.js +12 -2
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutSettings.js +23 -10
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagImageSelect/index.js +19 -9
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagSelect/index.js +26 -13
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/Icon.js +10 -5
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/index.js +6 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/index.js +16 -6
- package/lib/core/editor/components/Toolbar/widgets/Layout/index.js +55 -28
- package/lib/core/editor/components/Toolbar/widgets/NodeAlignWidget.js +44 -20
- package/lib/core/editor/components/Toolbar/widgets/NodeImageButton/BoxBackgroundSetting.js +10 -2
- package/lib/core/editor/components/Toolbar/widgets/NodeImageButton/NodeImageButton.js +26 -12
- package/lib/core/editor/components/Toolbar/widgets/NodeImageButton/index.js +3 -0
- package/lib/core/editor/components/Toolbar/widgets/NodeSizeButton/BoxBackgroundSetting.js +4 -0
- package/lib/core/editor/components/Toolbar/widgets/NodeSizeButton/NodeSizeButton.js +33 -13
- package/lib/core/editor/components/Toolbar/widgets/NodeSizeButton/index.js +3 -0
- package/lib/core/editor/components/Toolbar/widgets/SearchWidget.js +12 -1
- package/lib/core/editor/components/Toolbar/widgets/WidgetBox.js +20 -6
- package/lib/core/editor/components/Toolbar/widgets/components/ArrowButton.js +11 -2
- package/lib/core/editor/components/Toolbar/widgets/components/ArrowPopup.js +11 -1
- package/lib/core/editor/components/Toolbar/widgets/components/ButtonBox.js +17 -5
- package/lib/core/editor/components/Toolbar/widgets/components/DropdownButton.js +27 -9
- package/lib/core/editor/components/Toolbar/widgets/components/DropdownMenu.js +16 -5
- package/lib/core/editor/components/Toolbar/widgets/components/MenuSelect.js +8 -2
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/ElementTextStyleSetting.js +17 -5
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/colorUtil.js +14 -2
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/box.js +14 -3
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/edgeTag.js +24 -6
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/groupTitle.js +24 -5
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/index.js +8 -0
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/layerTitle.js +21 -6
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/nodeTag.js +26 -7
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/text.js +14 -2
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/textStyleUtil.js +30 -6
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/GlobalTagStyleSetting/GlobalTagStyleSetting.js +14 -3
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/GlobalTagStyleSetting/globalTag.js +36 -13
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/textStyleSettingRouter.js +7 -0
- package/lib/core/editor/components/plugins/AddElementThemePlugin.js +5 -0
- package/lib/core/editor/components/plugins/CorePlugin.js +9 -3
- package/lib/core/editor/components/plugins/SaveLoading.js +11 -2
- package/lib/core/editor/components/settings/CloseablePanel.js +12 -3
- package/lib/core/editor/components/settings/PropertyView.js +27 -7
- package/lib/core/editor/components/settings/Settings.js +20 -7
- package/lib/core/editor/components/settings/common/AddResourceButton.js +7 -0
- package/lib/core/editor/components/settings/common/AlignSetting/AlignTypeList.js +25 -11
- package/lib/core/editor/components/settings/common/AlignSetting/index.js +18 -5
- package/lib/core/editor/components/settings/common/GroupNodeList/ResourceList.js +18 -2
- package/lib/core/editor/components/settings/common/LayoutSettings.js +24 -12
- package/lib/core/editor/components/settings/common/LineType/index.js +7 -0
- package/lib/core/editor/components/settings/common/NameInput.js +11 -1
- package/lib/core/editor/components/settings/common/NodeAlignType.js +8 -0
- package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +42 -9
- package/lib/core/editor/components/settings/common/SizeInput/NodeSizeInput.js +32 -12
- package/lib/core/editor/components/settings/common/SizeInput/NodeSizeNumberPicker.js +29 -10
- package/lib/core/editor/components/settings/common/SizeInput/index.js +3 -0
- package/lib/core/editor/components/settings/common/tab/TabView.js +6 -0
- package/lib/core/editor/components/settings/common/text/FontStyleCheckbox.js +18 -1
- package/lib/core/editor/components/settings/common/text/TextStyle.js +19 -2
- package/lib/core/editor/components/settings/common/text/fontStyleUtil.js +8 -2
- package/lib/core/editor/components/settings/core/PropertyViewManager.js +23 -0
- package/lib/core/editor/components/settings/core/edgePropertyViewAdapter.js +5 -0
- package/lib/core/editor/components/settings/core/getPropertyViewType.js +5 -0
- package/lib/core/editor/components/settings/core/updateElementProperty.js +3 -0
- package/lib/core/editor/components/settings/propertyViews/PropertyViewFactory.js +2 -0
- package/lib/core/editor/components/settings/propertyViews/box/BoxPropertyView.js +20 -3
- package/lib/core/editor/components/settings/propertyViews/box/BoxPropertyViewV1.js +19 -2
- package/lib/core/editor/components/settings/propertyViews/box/NameInput.js +19 -3
- package/lib/core/editor/components/settings/propertyViews/edge/CommonEdgePropertyView.js +29 -5
- package/lib/core/editor/components/settings/propertyViews/edge/EdgeGroupPropertyView.js +7 -0
- package/lib/core/editor/components/settings/propertyViews/edge/EdgePropertyView.js +16 -4
- package/lib/core/editor/components/settings/propertyViews/edge/edgeGroup/EdgeGroupSetting.js +19 -3
- package/lib/core/editor/components/settings/propertyViews/group/DataTab/GroupAddResourceButton.js +9 -2
- package/lib/core/editor/components/settings/propertyViews/group/DataTab/GroupNodeList.js +14 -7
- package/lib/core/editor/components/settings/propertyViews/group/DataTab/GroupRelateData/GroupRelateData.js +20 -4
- package/lib/core/editor/components/settings/propertyViews/group/DataTab/RelateData.js +10 -4
- package/lib/core/editor/components/settings/propertyViews/group/DataTab/hoooks/useGroupRelateResource.js +17 -11
- package/lib/core/editor/components/settings/propertyViews/group/GroupPropertyView.js +11 -3
- package/lib/core/editor/components/settings/propertyViews/group/GroupPropertyViewV1.js +13 -3
- package/lib/core/editor/components/settings/propertyViews/group/SettingTab/GroupBasicSetting.js +27 -7
- package/lib/core/editor/components/settings/propertyViews/group/SettingTab/GroupExpandSetting.js +29 -15
- package/lib/core/editor/components/settings/propertyViews/group/SettingTab/GroupExpandStatus.js +10 -3
- package/lib/core/editor/components/settings/propertyViews/group/SettingTab/GroupIconSelect.js +11 -2
- package/lib/core/editor/components/settings/propertyViews/group/SettingTab/Setting.js +31 -6
- package/lib/core/editor/components/settings/propertyViews/group/cluster/ClusterGroupRelateData.js +19 -4
- package/lib/core/editor/components/settings/propertyViews/group/hooks/useGroup.js +4 -0
- package/lib/core/editor/components/settings/propertyViews/index.js +10 -0
- package/lib/core/editor/components/settings/propertyViews/layer/BasicSetting.js +18 -3
- package/lib/core/editor/components/settings/propertyViews/layer/DataTab/DefaultLayerAddResourceDrawer.js +20 -7
- package/lib/core/editor/components/settings/propertyViews/layer/DataTab/LayerAddResourceButton.js +13 -4
- package/lib/core/editor/components/settings/propertyViews/layer/DataTab/LayerAddResourceDrawer.js +8 -2
- package/lib/core/editor/components/settings/propertyViews/layer/DataTab/NodeList.js +9 -1
- package/lib/core/editor/components/settings/propertyViews/layer/DataTab/RelateData.js +14 -4
- package/lib/core/editor/components/settings/propertyViews/layer/LayerPropertyView.js +13 -6
- package/lib/core/editor/components/settings/propertyViews/layer/LayerPropertyViewV1.js +14 -6
- package/lib/core/editor/components/settings/propertyViews/layer/SettingTab/Setting.js +31 -7
- package/lib/core/editor/components/settings/propertyViews/layer/SettingTab/Setting_bak.js +35 -16
- package/lib/core/editor/components/settings/propertyViews/multipleElements/BatchSetNodeIcon.js +7 -2
- package/lib/core/editor/components/settings/propertyViews/multipleElements/BatchSetNodeSize/BatchSetNodeSize.js +44 -13
- package/lib/core/editor/components/settings/propertyViews/multipleElements/MultipleElementLineType.js +7 -0
- package/lib/core/editor/components/settings/propertyViews/multipleElements/MultipleElementPropertyView.js +25 -7
- package/lib/core/editor/components/settings/propertyViews/node/NodeIconSelect.js +11 -3
- package/lib/core/editor/components/settings/propertyViews/node/NodeIconSelectTest.js +9 -2
- package/lib/core/editor/components/settings/propertyViews/node/NodePropertyView.js +17 -8
- package/lib/core/editor/components/settings/propertyViews/node/NodePropertyViewV1.js +22 -7
- package/lib/core/editor/components/settings/propertyViews/node/Setting/BasicSetting.js +19 -6
- package/lib/core/editor/components/settings/propertyViews/node/Setting/NameInput.js +19 -3
- package/lib/core/editor/components/settings/propertyViews/node/Setting/Setting.js +26 -6
- package/lib/core/editor/components/settings/propertyViews/node/Setting/index.js +3 -0
- package/lib/core/editor/components/settings/propertyViews/node/TopoTreeSelect.js +8 -0
- package/lib/core/editor/components/settings/propertyViews/node/data/BindIpInput.js +32 -18
- package/lib/core/editor/components/settings/propertyViews/node/data/BindResourceDrawer.js +25 -7
- package/lib/core/editor/components/settings/propertyViews/node/data/Data.js +47 -19
- package/lib/core/editor/components/settings/propertyViews/node/data/NodeRelateResourceButton.js +19 -6
- package/lib/core/editor/components/settings/propertyViews/node/data/PlatformDisplay.js +7 -1
- package/lib/core/editor/components/settings/propertyViews/text/TextPropertyView.js +29 -5
- package/lib/core/editor/components/settings/propertyViews/view/BackgroundSize.js +18 -5
- package/lib/core/editor/components/settings/propertyViews/view/BatchSetNodeSize.js +9 -3
- package/lib/core/editor/components/settings/propertyViews/view/GlobalEdgeToggle.js +15 -4
- package/lib/core/editor/components/settings/propertyViews/view/GlobalLayout.js +12 -5
- package/lib/core/editor/components/settings/propertyViews/view/GlobalNodeLabelStyle.js +17 -2
- package/lib/core/editor/components/settings/propertyViews/view/ViewLineTypeSetting.js +8 -0
- package/lib/core/editor/components/settings/propertyViews/view/ViewPropertyView.js +19 -3
- package/lib/core/editor/components/settings/propertyViews/view/ViewPropertyViewV2.js +11 -3
- package/lib/core/editor/components/settings/propertyViews/view/hooks/useBackgroundConfig.js +6 -3
- package/lib/core/editor/components/settings/propertyViews/view/hooks/useBackgroundSizeConfig.js +19 -4
- package/lib/core/editor/components/settings/useSettingRuntimeState.js +10 -2
- package/lib/core/editor/components/titlebar/TopoEditorTitleBar.js +42 -12
- package/lib/core/editor/components/titlebar/widgets/DebugTools.js +8 -1
- package/lib/core/editor/components/titlebar/widgets/SaveButton.js +5 -0
- package/lib/core/editor/config/themes.js +10 -8
- package/lib/core/editor/contextmenu/buildContextmenu.js +2 -2
- package/lib/core/editor/hooks/useKeyboardShortcut.js +14 -7
- package/lib/core/editor/hooks/useLayerAddResource.js +8 -4
- package/lib/core/editor/hooks/useNewElementTheme.js +20 -7
- package/lib/core/editor/hooks/useUpdateHtTopoDefaultTagStyle.js +6 -1
- package/lib/core/editor/store/background.js +16 -6
- package/lib/core/editor/store/historyManager.js +6 -1
- package/lib/core/editor/store/topoEdit.js +13 -5
- package/lib/core/editor/utils/edgeTypeStyleUtil.js +22 -9
- package/lib/core/editor/utils/themeUtil.js +6 -0
- package/lib/core/event/topoEventListener.js +3 -0
- package/lib/core/hooks/ht/useHtDataPropertyChangeListener.js +11 -3
- package/lib/core/hooks/useAlarm.js +33 -11
- package/lib/core/hooks/useCanvasTheme.js +16 -9
- package/lib/core/hooks/useCanvasThemeConfig.js +8 -2
- package/lib/core/hooks/useCiAttributeChange.js +14 -3
- package/lib/core/hooks/useEventData.js +7 -2
- package/lib/core/hooks/useGraphAlarmDisplay.js +34 -11
- package/lib/core/hooks/useGroupAddResource.js +7 -2
- package/lib/core/hooks/useManageStatus.js +6 -1
- package/lib/core/hooks/usePolling.js +74 -32
- package/lib/core/hooks/useResourceConfig.js +66 -22
- package/lib/core/hooks/useRouterAdapter.js +6 -1
- package/lib/core/hooks/useSelection.js +5 -1
- package/lib/core/hooks/useTopoEdit.js +301 -112
- package/lib/core/hooks/useTopoEventListener.js +4 -1
- package/lib/core/hooks/useTopoFullscreen.js +12 -7
- package/lib/core/index.js +2 -0
- package/lib/core/models/Alarm.js +159 -49
- package/lib/core/models/AttributeMetricDisplay.js +173 -89
- package/lib/core/models/DataModel.js +39 -4
- package/lib/core/models/EdgeGroup.js +8 -2
- package/lib/core/models/GraphDataModel.js +8 -0
- package/lib/core/models/HistoryManager.js +64 -21
- package/lib/core/models/PluginManager.js +11 -0
- package/lib/core/models/SelectionModel.js +44 -11
- package/lib/core/models/TopoApp.js +204 -72
- package/lib/core/models/TopoGraphView.js +35 -7
- package/lib/core/models/TopoViewer.js +7 -0
- package/lib/core/models/attributeFormatter/formatter/attributeTransform.js +3 -0
- package/lib/core/models/attributeFormatter/formatter/ciTypeAttrTransform.js +4 -2
- package/lib/core/models/attributeFormatter/formatter/commonTransform.js +10 -6
- package/lib/core/models/attributeFormatter/formatter/graphTransform.js +8 -2
- package/lib/core/models/attributeFormatter/formatter/metricTransform.js +3 -0
- package/lib/core/models/attributeFormatter/index.js +14 -0
- package/lib/core/models/cache/CiCache.js +22 -3
- package/lib/core/models/cache/CiTypeCache.js +43 -7
- package/lib/core/models/cache/DictCache.js +29 -3
- package/lib/core/models/common/ContextMenu.js +10 -0
- package/lib/core/models/graph/Background.js +19 -3
- package/lib/core/models/plugins/index.js +1 -2
- package/lib/core/models/plugins/resourceWebControllUrl.js +47 -9
- package/lib/core/models/tagstips/ElementTagTipConfig.js +64 -15
- package/lib/core/models/tagstips/utils.js +9 -3
- package/lib/core/models/topoData.js +36 -8
- package/lib/core/models/topoFactory.js +6 -0
- package/lib/core/models/utils/getRelationDetailByIds.js +1 -0
- package/lib/core/models/utils/linkUtils.js +48 -19
- package/lib/core/models/utils/nodeNameVisibleUtil.js +30 -15
- package/lib/core/services/alarm.js +14 -3
- package/lib/core/services/background.js +29 -9
- package/lib/core/services/cmdb/metric.js +10 -3
- package/lib/core/services/cmdb.js +12 -3
- package/lib/core/services/index.js +24 -7
- package/lib/core/services/overview.js +63 -23
- package/lib/core/services/topo/basic.js +11 -3
- package/lib/core/services/topo/index.js +6 -0
- package/lib/core/services/topo/tagtip.js +11 -3
- package/lib/core/store/coreModels.js +16 -0
- package/lib/core/store/createStore.js +7 -0
- package/lib/core/store/models/ciModel.js +23 -5
- package/lib/core/store/models/customIcon.js +72 -21
- package/lib/core/store/models/displayConfig.js +21 -7
- package/lib/core/store/models/selection.js +13 -6
- package/lib/core/store/models/topoAlarm.js +52 -12
- package/lib/core/store/models/topoBaseInfoOverview.js +14 -6
- package/lib/core/store/models/topoBizMod.js +22 -5
- package/lib/core/store/models/topoConfig.js +109 -41
- package/lib/core/store/models/topoGraphView.js +16 -7
- package/lib/core/store/models/topoMod.js +131 -36
- package/lib/core/store/models/viewer/lock.js +4 -0
- package/lib/core/store/models/viewer/resourceDetail.js +8 -2
- package/lib/core/store/models/viewer/resourceWebControllUrlSetting.js +5 -0
- package/lib/core/test/Test.js +14 -10
- package/lib/core/upgrade/v140UpgradeSerializeNodeImageSize.js +6 -0
- package/lib/core/utils/backgroundUtil.js +9 -5
- package/lib/core/utils/edgeUtil.js +17 -3
- package/lib/core/utils/graphLinkUtil.js +9 -4
- package/lib/core/utils/imageUtil.js +12 -3
- package/lib/core/utils/linkUtil.js +1 -0
- package/lib/core/utils/manageStatusUtil.js +1 -0
- package/lib/core/utils/metricUtil.js +4 -0
- package/lib/core/utils/resourceUtil.js +4 -2
- package/lib/core/utils/saveSerialize.js +9 -3
- package/lib/core/utils/showGraphManageStatusUtil.js +23 -14
- package/lib/core/utils/showMessage.js +9 -0
- package/lib/core/viewer/components/plugins/ElementDetailDrawer/components/DetailDrawer.js +7 -0
- package/lib/core/viewer/components/plugins/ElementDetailDrawer/hooks/useElementDetailManager.js +64 -32
- package/lib/core/viewer/components/plugins/MetricPollingPlugin.js +4 -0
- package/lib/core/viewer/components/plugins/ResourceDetail/DefaultDetailContent.js +23 -8
- package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetail.js +20 -6
- package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawer.js +21 -9
- package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetailPlugin.js +11 -2
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ClusterMemberTable.js +36 -10
- package/lib/core/viewer/components/plugins/ResourceDetail/components/DrawerTitle.js +24 -7
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BaseInfo.js +24 -15
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BaseInfoBlock.js +17 -10
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BlockBox.js +7 -2
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +29 -10
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/NetworkBaseInfo.js +36 -17
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +229 -88
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverviewMetric.js +40 -25
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/SingleResourceStrategyLink.js +8 -5
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/Configurator/index.js +87 -32
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/LinkTopo.js +12 -2
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/LinkTopoCard.js +38 -13
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/constants.js +4 -8
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/hooks/useMetricPolling.js +31 -12
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +83 -19
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useAlarmAndRiskData.js +44 -23
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useMetricModels.js +49 -21
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/index.js +3 -0
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/useCiAttrAndMetricData.js +5 -2
- package/lib/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleContainer.js +8 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/WebConsoleForm.js +27 -8
- package/lib/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +33 -10
- package/lib/core/viewer/components/plugins/ResourceDetail/getCiDisplayMetricModels.js +17 -5
- package/lib/core/viewer/components/plugins/ResourceDetail/hooks/useUserId.js +23 -7
- package/lib/core/viewer/components/plugins/ResourceDetail/index.js +3 -0
- package/lib/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +33 -6
- package/lib/core/viewer/components/plugins/ViewerPlugin.js +9 -1
- package/lib/core/viewer/components/titlebar/BasicTools.js +12 -3
- package/lib/core/viewer/components/titlebar/TopoViewerTitleBar.js +14 -4
- package/lib/core/viewer/components/titlebar/ViewerTools.js +5 -0
- package/lib/core/viewer/components/titlebar/widgets/AlarmButton.js +11 -2
- package/lib/core/viewer/components/titlebar/widgets/AlarmListShowButton.js +28 -15
- package/lib/core/viewer/components/titlebar/widgets/EditButton.js +14 -3
- package/lib/core/viewer/components/titlebar/widgets/MoreButtonMenu.js +10 -1
- package/lib/core/viewer/components/titlebar/widgets/NodesDragSwitch.js +26 -13
- package/lib/core/viewer/components/titlebar/widgets/NodesDragSwitchWrapper.js +10 -1
- package/lib/core/viewer/components/titlebar/widgets/SearchWidget.js +25 -9
- package/lib/core/viewer/components/titlebar/widgets/SettingButton.js +18 -6
- package/lib/core/viewer/components/titlebar/widgets/SettingButtonWidget.js +9 -4
- package/lib/core/viewer/contextmenu/buildContextmenu.js +5 -0
- package/lib/core/viewer/contextmenu/buildLinkContextmenu.js +2 -2
- package/lib/core/viewer/contextmenu/buildNodeContextmenu.js +3 -8
- package/lib/core/viewer/contextmenu/buildViewContextmenu.js +1 -0
- package/lib/createTopo.js +8 -2
- package/lib/index.js +19 -0
- package/lib/mock/mock.js +4 -5
- package/lib/networkTopo/components/Link/form.js +57 -25
- package/lib/networkTopo/components/Link/hook.js +100 -48
- package/lib/networkTopo/components/Link/index.js +77 -32
- package/lib/networkTopo/components/Link/setting.js +86 -45
- package/lib/networkTopo/components/Topo404.js +9 -0
- package/lib/networkTopo/components/TopoNoPermission.js +9 -0
- package/lib/networkTopo/components/TopoView.js +37 -13
- package/lib/networkTopo/createTopo.js +6 -0
- package/lib/networkTopo/getTopoData.js +43 -16
- package/lib/networkTopo/hooks/useEdgeExpand.js +6 -1
- package/lib/networkTopo/hooks/useGroupResources.js +5 -2
- package/lib/networkTopo/hooks/useLinkDynamicStyle.js +7 -1
- package/lib/networkTopo/hooks/viewer/useEdgeFlow.js +8 -5
- package/lib/networkTopo/hooks/viewer/useRelateTopo.js +31 -7
- package/lib/networkTopo/index.js +7 -0
- package/lib/networkTopo/models/EdgeGroupTagTipBuilder.js +12 -2
- package/lib/networkTopo/models/ExtElementTagTipBuilder.js +8 -0
- package/lib/networkTopo/models/IpNodeTagsTipsBuilder.js +15 -2
- package/lib/networkTopo/models/LinkDynamicStyleExecutor.js +54 -26
- package/lib/networkTopo/models/LinkTagsTipsBuilder.js +55 -40
- package/lib/networkTopo/models/TopoCenter.js +39 -8
- package/lib/networkTopo/services/alert.js +15 -5
- package/lib/networkTopo/services/authorization.js +35 -16
- package/lib/networkTopo/services/cmdb.js +211 -72
- package/lib/networkTopo/services/funcAuth.js +10 -3
- package/lib/networkTopo/services/index.js +7 -0
- package/lib/networkTopo/services/link.js +47 -11
- package/lib/networkTopo/services/mdc.js +26 -9
- package/lib/networkTopo/services/metric.js +20 -6
- package/lib/networkTopo/services/model.js +291 -89
- package/lib/networkTopo/services/risk.js +10 -3
- package/lib/networkTopo/services/topo/auth.js +19 -7
- package/lib/networkTopo/services/topo/basic.js +154 -57
- package/lib/networkTopo/services/topo/blacklist.js +17 -5
- package/lib/networkTopo/services/topo/ciInfo.js +20 -5
- package/lib/networkTopo/services/topo/icon.js +30 -11
- package/lib/networkTopo/services/topo/index.js +15 -0
- package/lib/networkTopo/services/topo/networkLink.js +17 -5
- package/lib/networkTopo/services/topo/relation.js +11 -3
- package/lib/networkTopo/services/topo/resourceWebUrl.js +25 -9
- package/lib/networkTopo/store/functionAuth.js +24 -9
- package/lib/networkTopo/store/index.js +6 -0
- package/lib/networkTopo/store/topoCenter.js +63 -22
- package/lib/networkTopo/store/topoLinkMod.js +12 -5
- package/lib/networkTopo/store/topoTreeMod.js +83 -19
- package/lib/networkTopo/utils/SortResourcesUtil.js +4 -1
- package/lib/networkTopo/utils/__tests__/resourcePermissionUtil.test.js +7 -4
- package/lib/networkTopo/utils/edgeGroupTagUtil.js +19 -7
- package/lib/networkTopo/utils/exitLinkUtil.js +58 -38
- package/lib/networkTopo/utils/exportData.js +25 -10
- package/lib/networkTopo/utils/linPermissionUtil.js +3 -3
- package/lib/networkTopo/utils/linkUtil.js +2 -0
- package/lib/networkTopo/utils/resourcePermissionUtil.js +14 -4
- package/lib/networkTopo/utils/storage.js +5 -3
- package/lib/networkTopo/viewer/components/TitleBar.js +6 -0
- package/lib/networkTopo/viewer/components/TopologyViewer.js +12 -3
- package/lib/networkTopo/viewer/createTopoViewer.js +5 -0
- package/lib/networkTopo/viewer/index.js +9 -0
- package/lib/utils/ResourceConfigUtil.js +31 -17
- package/lib/utils/SpecialCharacterValidateUtil.js +2 -0
- package/lib/utils/ciType.js +7 -1
- package/lib/utils/clusterUtil.js +35 -15
- package/lib/utils/copyUtil.js +2 -0
- package/lib/utils/format.js +38 -12
- package/lib/utils/htElementDataUtil.js +12 -0
- package/lib/utils/htElementUtils.js +87 -26
- package/lib/utils/listToTree.js +3 -0
- package/lib/utils/resourceElementUtil.js +2 -0
- package/lib/utils/template.js +7 -6
- package/lib/utils/topoData.js +97 -51
- package/lib/utils/topoMocks.js +4 -3
- package/lib/utils/topoPermissionUtil.js +1 -0
- package/lib/utils/tree.js +46 -14
- package/lib/utils/treeUtil.js +3 -0
- package/package.json +3 -3
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
4
5
|
exports.__esModule = true;
|
5
6
|
exports.batchChangeManageStatus = batchChangeManageStatus;
|
6
7
|
exports.batchUpdateRelation = exports.batchUpdateAttributes = exports.batchQueryRelationById = exports.batchDeleteRelation = exports.batchDeleteById = exports.batchCreateRelation = void 0;
|
@@ -14,40 +15,49 @@ exports.queryById = exports.getRecord = exports.forceDeleteRelation = exports.fe
|
|
14
15
|
exports.queryCiWithComponents = queryCiWithComponents;
|
15
16
|
exports.queryPageIgnoreRelations = queryPageIgnoreRelations;
|
16
17
|
exports.uploadFile = exports.queryRelationByIds = exports.queryRelationByEndpoint = void 0;
|
18
|
+
|
17
19
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
20
|
+
|
18
21
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
22
|
+
|
23
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
24
|
+
|
19
25
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
26
|
+
|
20
27
|
var _componentTopologyUtils = require("@riil-frontend/component-topology-utils");
|
28
|
+
|
21
29
|
var _excluded = ["checkAuth"],
|
22
|
-
|
23
|
-
|
30
|
+
_excluded2 = ["totalPage", "pageIndex", "data"];
|
31
|
+
|
24
32
|
/**
|
25
33
|
* 根据id获取实例数据
|
26
34
|
* TODO params参数名称可语义化
|
27
35
|
* @param {string} id 实例id
|
28
36
|
*/
|
29
37
|
var queryById = /*#__PURE__*/function () {
|
30
|
-
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
31
|
-
return
|
38
|
+
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(id) {
|
39
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
32
40
|
while (1) switch (_context.prev = _context.next) {
|
33
41
|
case 0:
|
34
42
|
_context.next = 2;
|
35
43
|
return _componentTopologyUtils.request.post('/mdc/v1/api/cmdb/queryCiById', {
|
36
44
|
id: id
|
37
45
|
});
|
46
|
+
|
38
47
|
case 2:
|
39
48
|
return _context.abrupt("return", _context.sent);
|
49
|
+
|
40
50
|
case 3:
|
41
51
|
case "end":
|
42
52
|
return _context.stop();
|
43
53
|
}
|
44
54
|
}, _callee);
|
45
55
|
}));
|
56
|
+
|
46
57
|
return function queryById(_x) {
|
47
58
|
return _ref.apply(this, arguments);
|
48
59
|
};
|
49
60
|
}();
|
50
|
-
|
51
61
|
/**
|
52
62
|
* ci删除
|
53
63
|
* @param {string} id 实例id
|
@@ -57,29 +67,34 @@ var queryById = /*#__PURE__*/function () {
|
|
57
67
|
"data": 0 //0:成功 -1:失败
|
58
68
|
}
|
59
69
|
*/
|
70
|
+
|
71
|
+
|
60
72
|
exports.queryById = queryById;
|
73
|
+
|
61
74
|
var deleteById = /*#__PURE__*/function () {
|
62
|
-
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
63
|
-
return
|
75
|
+
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(id) {
|
76
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
64
77
|
while (1) switch (_context2.prev = _context2.next) {
|
65
78
|
case 0:
|
66
79
|
_context2.next = 2;
|
67
80
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/ci/deleteById', {
|
68
81
|
id: id
|
69
82
|
});
|
83
|
+
|
70
84
|
case 2:
|
71
85
|
return _context2.abrupt("return", _context2.sent);
|
86
|
+
|
72
87
|
case 3:
|
73
88
|
case "end":
|
74
89
|
return _context2.stop();
|
75
90
|
}
|
76
91
|
}, _callee2);
|
77
92
|
}));
|
93
|
+
|
78
94
|
return function deleteById(_x2) {
|
79
95
|
return _ref2.apply(this, arguments);
|
80
96
|
};
|
81
97
|
}();
|
82
|
-
|
83
98
|
/**
|
84
99
|
* ci删除(批量)
|
85
100
|
* @param {array} keys [ "1513569" ,...]
|
@@ -89,16 +104,20 @@ var deleteById = /*#__PURE__*/function () {
|
|
89
104
|
"data": 0 //0:成功 -1:失败
|
90
105
|
}
|
91
106
|
*/
|
107
|
+
|
108
|
+
|
92
109
|
exports.deleteById = deleteById;
|
110
|
+
|
93
111
|
var batchDeleteById = /*#__PURE__*/function () {
|
94
|
-
var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
112
|
+
var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(keys) {
|
95
113
|
var ids;
|
96
|
-
return
|
114
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
97
115
|
while (1) switch (_context3.prev = _context3.next) {
|
98
116
|
case 0:
|
99
117
|
if (keys === void 0) {
|
100
118
|
keys = [];
|
101
119
|
}
|
120
|
+
|
102
121
|
// TODO 替换为map
|
103
122
|
ids = keys.map(function (key) {
|
104
123
|
return {
|
@@ -107,19 +126,21 @@ var batchDeleteById = /*#__PURE__*/function () {
|
|
107
126
|
});
|
108
127
|
_context3.next = 4;
|
109
128
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/ci/batchDeleteById', ids);
|
129
|
+
|
110
130
|
case 4:
|
111
131
|
return _context3.abrupt("return", _context3.sent);
|
132
|
+
|
112
133
|
case 5:
|
113
134
|
case "end":
|
114
135
|
return _context3.stop();
|
115
136
|
}
|
116
137
|
}, _callee3);
|
117
138
|
}));
|
139
|
+
|
118
140
|
return function batchDeleteById(_x3) {
|
119
141
|
return _ref3.apply(this, arguments);
|
120
142
|
};
|
121
143
|
}();
|
122
|
-
|
123
144
|
/**
|
124
145
|
* cmdm 通用查询接口
|
125
146
|
* @param {Object | string } condition 查询条件对象 或 接口原生查询字符串
|
@@ -136,14 +157,19 @@ var batchDeleteById = /*#__PURE__*/function () {
|
|
136
157
|
* @param {Object} authOption 权限参数包装,透传给带权限的commonQuery接口
|
137
158
|
* @param {boolean} authOption.checkAuth 默认为true,是否只查看有权限的资源
|
138
159
|
*/
|
160
|
+
|
161
|
+
|
139
162
|
exports.batchDeleteById = batchDeleteById;
|
163
|
+
|
140
164
|
var fetchCommonQuery = /*#__PURE__*/function () {
|
141
|
-
var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
165
|
+
var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(condition, sortIndex, sortMethod, currentPage, pageSize, sort, authOption) {
|
142
166
|
var newCondition, _ref5, _ref5$checkAuth, checkAuth, otherOption, url, sorts, params, response, _ref6, totalPage, pageIndex, data, result;
|
143
|
-
|
167
|
+
|
168
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
144
169
|
while (1) switch (_context4.prev = _context4.next) {
|
145
170
|
case 0:
|
146
171
|
newCondition = condition;
|
172
|
+
|
147
173
|
if (typeof newCondition !== 'string') {
|
148
174
|
newCondition = Object.keys(newCondition).reduce(function (param, current) {
|
149
175
|
if (current === 'ciType') {
|
@@ -160,9 +186,11 @@ var fetchCommonQuery = /*#__PURE__*/function () {
|
|
160
186
|
}).join(' && ');
|
161
187
|
param.push("alert(" + alert + ")");
|
162
188
|
}
|
189
|
+
|
163
190
|
return param;
|
164
191
|
}, []).join(' && ');
|
165
192
|
}
|
193
|
+
|
166
194
|
_ref5 = authOption || {}, _ref5$checkAuth = _ref5.checkAuth, checkAuth = _ref5$checkAuth === void 0 ? true : _ref5$checkAuth, otherOption = (0, _objectWithoutPropertiesLoose2["default"])(_ref5, _excluded); // const url = checkAuth
|
167
195
|
// ? '/appserver/api/v1/cmdb/ci/commonQuery'
|
168
196
|
// : '/api/v1/cmdb/ci/commonQuery';
|
@@ -178,12 +206,12 @@ var fetchCommonQuery = /*#__PURE__*/function () {
|
|
178
206
|
// APPBIR MVP
|
179
207
|
// ------------------------------------------------
|
180
208
|
// TODO important 带确认权限接口是否可通 ---
|
209
|
+
|
181
210
|
url = checkAuth ? '/mdc/v1/api/cmdb/authority/commonQueryCiData' : '/mdc/v1/api/cmdb/commonQueryCiData';
|
182
211
|
sorts = sort ? sort.split(" ") : [sortIndex, sortMethod];
|
183
212
|
params = {
|
184
213
|
condition: condition.conditions ? newCondition + " && " + condition.conditions : newCondition,
|
185
214
|
// APPBIR MVP 临时去掉排序 等接口OK
|
186
|
-
|
187
215
|
// orders: [{
|
188
216
|
// name: sorts[0],
|
189
217
|
// type: sorts[1]
|
@@ -191,12 +219,15 @@ var fetchCommonQuery = /*#__PURE__*/function () {
|
|
191
219
|
pageIndex: currentPage,
|
192
220
|
pageSize: pageSize
|
193
221
|
};
|
222
|
+
|
194
223
|
if (checkAuth && otherOption) {
|
195
224
|
params = (0, _extends2["default"])({}, params, otherOption);
|
196
|
-
}
|
197
|
-
|
225
|
+
} // 处理 返回结果
|
226
|
+
|
227
|
+
|
198
228
|
_context4.next = 9;
|
199
229
|
return _componentTopologyUtils.request.post(url, params);
|
230
|
+
|
200
231
|
case 9:
|
201
232
|
response = _context4.sent;
|
202
233
|
// TODO ---
|
@@ -206,35 +237,43 @@ var fetchCommonQuery = /*#__PURE__*/function () {
|
|
206
237
|
page: pageIndex,
|
207
238
|
content: data
|
208
239
|
}));
|
240
|
+
|
209
241
|
case 12:
|
210
242
|
case "end":
|
211
243
|
return _context4.stop();
|
212
244
|
}
|
213
245
|
}, _callee4);
|
214
246
|
}));
|
247
|
+
|
215
248
|
return function fetchCommonQuery(_x4, _x5, _x6, _x7, _x8, _x9, _x10) {
|
216
249
|
return _ref4.apply(this, arguments);
|
217
250
|
};
|
218
251
|
}();
|
219
|
-
|
220
252
|
/**
|
221
253
|
* cmdb实例查询接口(不涉及权限)
|
222
254
|
* @param {Object} param
|
223
255
|
* @returns
|
224
256
|
*/
|
257
|
+
|
258
|
+
|
225
259
|
exports.fetchCommonQuery = fetchCommonQuery;
|
260
|
+
|
226
261
|
function commonQuery(_x11) {
|
227
262
|
return _commonQuery.apply(this, arguments);
|
228
263
|
} // 批量属性更新
|
264
|
+
|
265
|
+
|
229
266
|
function _commonQuery() {
|
230
|
-
_commonQuery = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
231
|
-
return
|
267
|
+
_commonQuery = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee18(param) {
|
268
|
+
return _regenerator["default"].wrap(function _callee18$(_context18) {
|
232
269
|
while (1) switch (_context18.prev = _context18.next) {
|
233
270
|
case 0:
|
234
271
|
_context18.next = 2;
|
235
272
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/ci/commonQuery', param);
|
273
|
+
|
236
274
|
case 2:
|
237
275
|
return _context18.abrupt("return", _context18.sent);
|
276
|
+
|
238
277
|
case 3:
|
239
278
|
case "end":
|
240
279
|
return _context18.stop();
|
@@ -243,16 +282,19 @@ function _commonQuery() {
|
|
243
282
|
}));
|
244
283
|
return _commonQuery.apply(this, arguments);
|
245
284
|
}
|
285
|
+
|
246
286
|
var batchUpdateAttributes = /*#__PURE__*/function () {
|
247
|
-
var _ref7 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
287
|
+
var _ref7 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(values, fieldName) {
|
248
288
|
var aa, _aa;
|
249
|
-
|
289
|
+
|
290
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
250
291
|
while (1) switch (_context5.prev = _context5.next) {
|
251
292
|
case 0:
|
252
293
|
if (!fieldName) {
|
253
294
|
_context5.next = 8;
|
254
295
|
break;
|
255
296
|
}
|
297
|
+
|
256
298
|
// 传了要更新的属性名,更新某一个属性
|
257
299
|
aa = {};
|
258
300
|
aa[fieldName] = values[fieldName];
|
@@ -261,17 +303,22 @@ var batchUpdateAttributes = /*#__PURE__*/function () {
|
|
261
303
|
id: values.id,
|
262
304
|
attributes: aa
|
263
305
|
}]);
|
306
|
+
|
264
307
|
case 5:
|
265
308
|
return _context5.abrupt("return", _context5.sent);
|
309
|
+
|
266
310
|
case 8:
|
267
311
|
if (!Array.isArray(values)) {
|
268
312
|
_context5.next = 12;
|
269
313
|
break;
|
270
314
|
}
|
315
|
+
|
271
316
|
_context5.next = 11;
|
272
317
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/ci/batchUpdateAttributes', values);
|
318
|
+
|
273
319
|
case 11:
|
274
320
|
return _context5.abrupt("return", _context5.sent);
|
321
|
+
|
275
322
|
case 12:
|
276
323
|
_aa = values.id;
|
277
324
|
delete values.id;
|
@@ -280,47 +327,56 @@ var batchUpdateAttributes = /*#__PURE__*/function () {
|
|
280
327
|
id: _aa,
|
281
328
|
attributes: values
|
282
329
|
}]);
|
330
|
+
|
283
331
|
case 16:
|
284
332
|
return _context5.abrupt("return", _context5.sent);
|
333
|
+
|
285
334
|
case 17:
|
286
335
|
case "end":
|
287
336
|
return _context5.stop();
|
288
337
|
}
|
289
338
|
}, _callee5);
|
290
339
|
}));
|
340
|
+
|
291
341
|
return function batchUpdateAttributes(_x12, _x13) {
|
292
342
|
return _ref7.apply(this, arguments);
|
293
343
|
};
|
294
|
-
}();
|
344
|
+
}(); // 创建单个ci实例
|
345
|
+
|
295
346
|
|
296
|
-
// 创建单个ci实例
|
297
347
|
exports.batchUpdateAttributes = batchUpdateAttributes;
|
348
|
+
|
298
349
|
var createInstance = /*#__PURE__*/function () {
|
299
|
-
var _ref8 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
300
|
-
return
|
350
|
+
var _ref8 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(values) {
|
351
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
301
352
|
while (1) switch (_context6.prev = _context6.next) {
|
302
353
|
case 0:
|
303
354
|
_context6.next = 2;
|
304
355
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/ci/create', values);
|
356
|
+
|
305
357
|
case 2:
|
306
358
|
return _context6.abrupt("return", _context6.sent);
|
359
|
+
|
307
360
|
case 3:
|
308
361
|
case "end":
|
309
362
|
return _context6.stop();
|
310
363
|
}
|
311
364
|
}, _callee6);
|
312
365
|
}));
|
366
|
+
|
313
367
|
return function createInstance(_x14) {
|
314
368
|
return _ref8.apply(this, arguments);
|
315
369
|
};
|
316
370
|
}();
|
317
|
-
|
318
371
|
/**
|
319
372
|
* 改变监控状态
|
320
373
|
* @param {object} param 查询传参{"id":"xxxx","manageStatus": 3,//已监控:3,加入监控中:2,取消监控中:1,未监控:0}
|
321
374
|
* @returns {object}
|
322
375
|
*/
|
376
|
+
|
377
|
+
|
323
378
|
exports.createInstance = createInstance;
|
379
|
+
|
324
380
|
function changeManageStatus(_x15) {
|
325
381
|
return _changeManageStatus.apply(this, arguments);
|
326
382
|
}
|
@@ -329,15 +385,19 @@ function changeManageStatus(_x15) {
|
|
329
385
|
* @param {Array} param 查询传参[{"id":"xxxx","manageStatus": 3,//已监控:3,加入监控中:2,取消监控中:1,未监控:0}]
|
330
386
|
* @returns {object}
|
331
387
|
*/
|
388
|
+
|
389
|
+
|
332
390
|
function _changeManageStatus() {
|
333
|
-
_changeManageStatus = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
334
|
-
return
|
391
|
+
_changeManageStatus = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee19(param) {
|
392
|
+
return _regenerator["default"].wrap(function _callee19$(_context19) {
|
335
393
|
while (1) switch (_context19.prev = _context19.next) {
|
336
394
|
case 0:
|
337
395
|
_context19.next = 2;
|
338
396
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/ci/changeManageStatus', param);
|
397
|
+
|
339
398
|
case 2:
|
340
399
|
return _context19.abrupt("return", _context19.sent);
|
400
|
+
|
341
401
|
case 3:
|
342
402
|
case "end":
|
343
403
|
return _context19.stop();
|
@@ -346,6 +406,7 @@ function _changeManageStatus() {
|
|
346
406
|
}));
|
347
407
|
return _changeManageStatus.apply(this, arguments);
|
348
408
|
}
|
409
|
+
|
349
410
|
function batchChangeManageStatus(_x16) {
|
350
411
|
return _batchChangeManageStatus.apply(this, arguments);
|
351
412
|
}
|
@@ -358,15 +419,19 @@ function batchChangeManageStatus(_x16) {
|
|
358
419
|
}
|
359
420
|
]
|
360
421
|
*/
|
422
|
+
|
423
|
+
|
361
424
|
function _batchChangeManageStatus() {
|
362
|
-
_batchChangeManageStatus = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
363
|
-
return
|
425
|
+
_batchChangeManageStatus = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee20(param) {
|
426
|
+
return _regenerator["default"].wrap(function _callee20$(_context20) {
|
364
427
|
while (1) switch (_context20.prev = _context20.next) {
|
365
428
|
case 0:
|
366
429
|
_context20.next = 2;
|
367
430
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/ci/batchChangeManageStatus', param);
|
431
|
+
|
368
432
|
case 2:
|
369
433
|
return _context20.abrupt("return", _context20.sent);
|
434
|
+
|
370
435
|
case 3:
|
371
436
|
case "end":
|
372
437
|
return _context20.stop();
|
@@ -375,6 +440,7 @@ function _batchChangeManageStatus() {
|
|
375
440
|
}));
|
376
441
|
return _batchChangeManageStatus.apply(this, arguments);
|
377
442
|
}
|
443
|
+
|
378
444
|
function commonCount(_x17) {
|
379
445
|
return _commonCount.apply(this, arguments);
|
380
446
|
}
|
@@ -383,15 +449,19 @@ function commonCount(_x17) {
|
|
383
449
|
* @param {Array} param 传参['xx']
|
384
450
|
* @returns {object}
|
385
451
|
*/
|
452
|
+
|
453
|
+
|
386
454
|
function _commonCount() {
|
387
|
-
_commonCount = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
388
|
-
return
|
455
|
+
_commonCount = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee21(param) {
|
456
|
+
return _regenerator["default"].wrap(function _callee21$(_context21) {
|
389
457
|
while (1) switch (_context21.prev = _context21.next) {
|
390
458
|
case 0:
|
391
459
|
_context21.next = 2;
|
392
460
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/ci/commonCount', param);
|
461
|
+
|
393
462
|
case 2:
|
394
463
|
return _context21.abrupt("return", _context21.sent);
|
464
|
+
|
395
465
|
case 3:
|
396
466
|
case "end":
|
397
467
|
return _context21.stop();
|
@@ -400,6 +470,7 @@ function _commonCount() {
|
|
400
470
|
}));
|
401
471
|
return _commonCount.apply(this, arguments);
|
402
472
|
}
|
473
|
+
|
403
474
|
function queryCiWithComponents(_x18) {
|
404
475
|
return _queryCiWithComponents.apply(this, arguments);
|
405
476
|
}
|
@@ -411,15 +482,19 @@ function queryCiWithComponents(_x18) {
|
|
411
482
|
* @param {*} condition 检索条件,可为空,每个检索项的语法类似common query接口
|
412
483
|
* @param {*} sort 排序对象
|
413
484
|
*/
|
485
|
+
|
486
|
+
|
414
487
|
function _queryCiWithComponents() {
|
415
|
-
_queryCiWithComponents = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
416
|
-
return
|
488
|
+
_queryCiWithComponents = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee22(mainCiIds) {
|
489
|
+
return _regenerator["default"].wrap(function _callee22$(_context22) {
|
417
490
|
while (1) switch (_context22.prev = _context22.next) {
|
418
491
|
case 0:
|
419
492
|
_context22.next = 2;
|
420
493
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/ci/queryCiWithComponents', mainCiIds);
|
494
|
+
|
421
495
|
case 2:
|
422
496
|
return _context22.abrupt("return", _context22.sent);
|
497
|
+
|
423
498
|
case 3:
|
424
499
|
case "end":
|
425
500
|
return _context22.stop();
|
@@ -428,6 +503,7 @@ function _queryCiWithComponents() {
|
|
428
503
|
}));
|
429
504
|
return _queryCiWithComponents.apply(this, arguments);
|
430
505
|
}
|
506
|
+
|
431
507
|
function queryPageIgnoreRelations(_x19, _x20, _x21, _x22, _x23) {
|
432
508
|
return _queryPageIgnoreRelations.apply(this, arguments);
|
433
509
|
}
|
@@ -435,9 +511,11 @@ function queryPageIgnoreRelations(_x19, _x20, _x21, _x22, _x23) {
|
|
435
511
|
* 忽略的连接关系批量删除
|
436
512
|
* @param {*} ids id集合
|
437
513
|
*/
|
514
|
+
|
515
|
+
|
438
516
|
function _queryPageIgnoreRelations() {
|
439
|
-
_queryPageIgnoreRelations = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
440
|
-
return
|
517
|
+
_queryPageIgnoreRelations = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee23(relationType, currentPage, pageSize, condition, sort) {
|
518
|
+
return _regenerator["default"].wrap(function _callee23$(_context23) {
|
441
519
|
while (1) switch (_context23.prev = _context23.next) {
|
442
520
|
case 0:
|
443
521
|
_context23.next = 2;
|
@@ -450,8 +528,10 @@ function _queryPageIgnoreRelations() {
|
|
450
528
|
} : {}, sort ? {
|
451
529
|
sort: sort
|
452
530
|
} : {}));
|
531
|
+
|
453
532
|
case 2:
|
454
533
|
return _context23.abrupt("return", _context23.sent);
|
534
|
+
|
455
535
|
case 3:
|
456
536
|
case "end":
|
457
537
|
return _context23.stop();
|
@@ -460,12 +540,15 @@ function _queryPageIgnoreRelations() {
|
|
460
540
|
}));
|
461
541
|
return _queryPageIgnoreRelations.apply(this, arguments);
|
462
542
|
}
|
543
|
+
|
463
544
|
function deleteIgnoreRelations(_x24) {
|
464
545
|
return _deleteIgnoreRelations.apply(this, arguments);
|
465
546
|
} // 上传文件
|
547
|
+
|
548
|
+
|
466
549
|
function _deleteIgnoreRelations() {
|
467
|
-
_deleteIgnoreRelations = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
468
|
-
return
|
550
|
+
_deleteIgnoreRelations = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee24(ids) {
|
551
|
+
return _regenerator["default"].wrap(function _callee24$(_context24) {
|
469
552
|
while (1) switch (_context24.prev = _context24.next) {
|
470
553
|
case 0:
|
471
554
|
_context24.next = 2;
|
@@ -474,8 +557,10 @@ function _deleteIgnoreRelations() {
|
|
474
557
|
id: id
|
475
558
|
};
|
476
559
|
}));
|
560
|
+
|
477
561
|
case 2:
|
478
562
|
return _context24.abrupt("return", _context24.sent);
|
563
|
+
|
479
564
|
case 3:
|
480
565
|
case "end":
|
481
566
|
return _context24.stop();
|
@@ -484,20 +569,22 @@ function _deleteIgnoreRelations() {
|
|
484
569
|
}));
|
485
570
|
return _deleteIgnoreRelations.apply(this, arguments);
|
486
571
|
}
|
572
|
+
|
487
573
|
var uploadFile = /*#__PURE__*/function () {
|
488
|
-
var _ref9 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
574
|
+
var _ref9 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(files, userId, modelType) {
|
489
575
|
var formData, names, originFiles, config, result;
|
490
|
-
return
|
576
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
491
577
|
while (1) switch (_context7.prev = _context7.next) {
|
492
578
|
case 0:
|
493
579
|
formData = new FormData(); // 用户id
|
580
|
+
|
494
581
|
formData.append('userId', userId);
|
495
582
|
modelType && formData.append('modelType', modelType);
|
496
583
|
names = [];
|
497
584
|
originFiles = [];
|
498
585
|
files.forEach(function (_ref10) {
|
499
586
|
var name = _ref10.name,
|
500
|
-
|
587
|
+
originFileObj = _ref10.originFileObj;
|
501
588
|
names.push(name);
|
502
589
|
originFiles.push(originFileObj);
|
503
590
|
formData.append('files', originFileObj, name);
|
@@ -509,26 +596,30 @@ var uploadFile = /*#__PURE__*/function () {
|
|
509
596
|
};
|
510
597
|
_context7.next = 9;
|
511
598
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/import', formData, config);
|
599
|
+
|
512
600
|
case 9:
|
513
601
|
result = _context7.sent;
|
514
602
|
return _context7.abrupt("return", result);
|
603
|
+
|
515
604
|
case 11:
|
516
605
|
case "end":
|
517
606
|
return _context7.stop();
|
518
607
|
}
|
519
608
|
}, _callee7);
|
520
609
|
}));
|
610
|
+
|
521
611
|
return function uploadFile(_x25, _x26, _x27) {
|
522
612
|
return _ref9.apply(this, arguments);
|
523
613
|
};
|
524
|
-
}();
|
614
|
+
}(); // 关闭提示
|
615
|
+
|
525
616
|
|
526
|
-
// 关闭提示
|
527
617
|
exports.uploadFile = uploadFile;
|
618
|
+
|
528
619
|
var closeRecord = /*#__PURE__*/function () {
|
529
|
-
var _ref11 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
620
|
+
var _ref11 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(userId, modelType) {
|
530
621
|
var result;
|
531
|
-
return
|
622
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
532
623
|
while (1) switch (_context8.prev = _context8.next) {
|
533
624
|
case 0:
|
534
625
|
_context8.next = 2;
|
@@ -536,25 +627,29 @@ var closeRecord = /*#__PURE__*/function () {
|
|
536
627
|
userId: userId,
|
537
628
|
modelType: modelType
|
538
629
|
});
|
630
|
+
|
539
631
|
case 2:
|
540
632
|
result = _context8.sent;
|
541
633
|
return _context8.abrupt("return", result);
|
634
|
+
|
542
635
|
case 4:
|
543
636
|
case "end":
|
544
637
|
return _context8.stop();
|
545
638
|
}
|
546
639
|
}, _callee8);
|
547
640
|
}));
|
641
|
+
|
548
642
|
return function closeRecord(_x28, _x29) {
|
549
643
|
return _ref11.apply(this, arguments);
|
550
644
|
};
|
551
|
-
}();
|
645
|
+
}(); // 获取提示信息
|
646
|
+
|
552
647
|
|
553
|
-
// 获取提示信息
|
554
648
|
exports.closeRecord = closeRecord;
|
649
|
+
|
555
650
|
var getRecord = /*#__PURE__*/function () {
|
556
|
-
var _ref12 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
557
|
-
return
|
651
|
+
var _ref12 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(userId, modelType) {
|
652
|
+
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
558
653
|
while (1) switch (_context9.prev = _context9.next) {
|
559
654
|
case 0:
|
560
655
|
_context9.next = 2;
|
@@ -562,156 +657,186 @@ var getRecord = /*#__PURE__*/function () {
|
|
562
657
|
userId: userId,
|
563
658
|
modelType: modelType
|
564
659
|
});
|
660
|
+
|
565
661
|
case 2:
|
566
662
|
return _context9.abrupt("return", _context9.sent);
|
663
|
+
|
567
664
|
case 3:
|
568
665
|
case "end":
|
569
666
|
return _context9.stop();
|
570
667
|
}
|
571
668
|
}, _callee9);
|
572
669
|
}));
|
670
|
+
|
573
671
|
return function getRecord(_x30, _x31) {
|
574
672
|
return _ref12.apply(this, arguments);
|
575
673
|
};
|
576
674
|
}();
|
577
|
-
|
578
675
|
/**
|
579
676
|
* 批量创建关系
|
580
677
|
* @param {*} params
|
581
678
|
* @returns
|
582
679
|
*/
|
680
|
+
|
681
|
+
|
583
682
|
exports.getRecord = getRecord;
|
683
|
+
|
584
684
|
var batchCreateRelation = /*#__PURE__*/function () {
|
585
|
-
var _ref13 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
586
|
-
return
|
685
|
+
var _ref13 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10(params) {
|
686
|
+
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
587
687
|
while (1) switch (_context10.prev = _context10.next) {
|
588
688
|
case 0:
|
589
689
|
_context10.next = 2;
|
590
690
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/relation/batchCreate', params);
|
691
|
+
|
591
692
|
case 2:
|
592
693
|
return _context10.abrupt("return", _context10.sent);
|
694
|
+
|
593
695
|
case 3:
|
594
696
|
case "end":
|
595
697
|
return _context10.stop();
|
596
698
|
}
|
597
699
|
}, _callee10);
|
598
700
|
}));
|
701
|
+
|
599
702
|
return function batchCreateRelation(_x32) {
|
600
703
|
return _ref13.apply(this, arguments);
|
601
704
|
};
|
602
705
|
}();
|
706
|
+
|
603
707
|
exports.batchCreateRelation = batchCreateRelation;
|
708
|
+
|
604
709
|
var queryRelationByEndpoint = /*#__PURE__*/function () {
|
605
|
-
var _ref14 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
606
|
-
return
|
710
|
+
var _ref14 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11(id) {
|
711
|
+
return _regenerator["default"].wrap(function _callee11$(_context11) {
|
607
712
|
while (1) switch (_context11.prev = _context11.next) {
|
608
713
|
case 0:
|
609
714
|
_context11.next = 2;
|
610
715
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/relation/queryByEndpoint', {
|
611
716
|
id: id
|
612
717
|
});
|
718
|
+
|
613
719
|
case 2:
|
614
720
|
return _context11.abrupt("return", _context11.sent);
|
721
|
+
|
615
722
|
case 3:
|
616
723
|
case "end":
|
617
724
|
return _context11.stop();
|
618
725
|
}
|
619
726
|
}, _callee11);
|
620
727
|
}));
|
728
|
+
|
621
729
|
return function queryRelationByEndpoint(_x33) {
|
622
730
|
return _ref14.apply(this, arguments);
|
623
731
|
};
|
624
732
|
}();
|
625
|
-
|
626
733
|
/**
|
627
734
|
* 批量更新关系
|
628
735
|
* @param {*} params
|
629
736
|
* @returns
|
630
737
|
*/
|
738
|
+
|
739
|
+
|
631
740
|
exports.queryRelationByEndpoint = queryRelationByEndpoint;
|
741
|
+
|
632
742
|
var batchUpdateRelation = /*#__PURE__*/function () {
|
633
|
-
var _ref15 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
634
|
-
return
|
743
|
+
var _ref15 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee12(params) {
|
744
|
+
return _regenerator["default"].wrap(function _callee12$(_context12) {
|
635
745
|
while (1) switch (_context12.prev = _context12.next) {
|
636
746
|
case 0:
|
637
747
|
_context12.next = 2;
|
638
748
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/relation/batchUpdateAttributes', params);
|
749
|
+
|
639
750
|
case 2:
|
640
751
|
return _context12.abrupt("return", _context12.sent);
|
752
|
+
|
641
753
|
case 3:
|
642
754
|
case "end":
|
643
755
|
return _context12.stop();
|
644
756
|
}
|
645
757
|
}, _callee12);
|
646
758
|
}));
|
759
|
+
|
647
760
|
return function batchUpdateRelation(_x34) {
|
648
761
|
return _ref15.apply(this, arguments);
|
649
762
|
};
|
650
763
|
}();
|
651
|
-
|
652
764
|
/**
|
653
765
|
* 删除关系,添加到忽略
|
654
766
|
* @param {*} id 关系id
|
655
767
|
* @returns
|
656
768
|
*/
|
769
|
+
|
770
|
+
|
657
771
|
exports.batchUpdateRelation = batchUpdateRelation;
|
772
|
+
|
658
773
|
var deleteRelation = /*#__PURE__*/function () {
|
659
|
-
var _ref16 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
660
|
-
return
|
774
|
+
var _ref16 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13(id) {
|
775
|
+
return _regenerator["default"].wrap(function _callee13$(_context13) {
|
661
776
|
while (1) switch (_context13.prev = _context13.next) {
|
662
777
|
case 0:
|
663
778
|
_context13.next = 2;
|
664
779
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/relation/delete', {
|
665
780
|
id: id
|
666
781
|
});
|
782
|
+
|
667
783
|
case 2:
|
668
784
|
return _context13.abrupt("return", _context13.sent);
|
785
|
+
|
669
786
|
case 3:
|
670
787
|
case "end":
|
671
788
|
return _context13.stop();
|
672
789
|
}
|
673
790
|
}, _callee13);
|
674
791
|
}));
|
792
|
+
|
675
793
|
return function deleteRelation(_x35) {
|
676
794
|
return _ref16.apply(this, arguments);
|
677
795
|
};
|
678
796
|
}();
|
679
|
-
|
680
797
|
/**
|
681
798
|
* 批量删除关系
|
682
799
|
* @param {[{id: string}]} params
|
683
800
|
* @returns
|
684
801
|
*/
|
802
|
+
|
803
|
+
|
685
804
|
exports.deleteRelation = deleteRelation;
|
805
|
+
|
686
806
|
var batchDeleteRelation = /*#__PURE__*/function () {
|
687
|
-
var _ref17 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
688
|
-
return
|
807
|
+
var _ref17 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee14(params) {
|
808
|
+
return _regenerator["default"].wrap(function _callee14$(_context14) {
|
689
809
|
while (1) switch (_context14.prev = _context14.next) {
|
690
810
|
case 0:
|
691
811
|
_context14.next = 2;
|
692
812
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/relation/batchDelete', params);
|
813
|
+
|
693
814
|
case 2:
|
694
815
|
return _context14.abrupt("return", _context14.sent);
|
816
|
+
|
695
817
|
case 3:
|
696
818
|
case "end":
|
697
819
|
return _context14.stop();
|
698
820
|
}
|
699
821
|
}, _callee14);
|
700
822
|
}));
|
823
|
+
|
701
824
|
return function batchDeleteRelation(_x36) {
|
702
825
|
return _ref17.apply(this, arguments);
|
703
826
|
};
|
704
827
|
}();
|
705
|
-
|
706
828
|
/**
|
707
829
|
* 强制删除关系
|
708
830
|
* @param {*} id 关系id
|
709
831
|
* @returns
|
710
832
|
*/
|
833
|
+
|
834
|
+
|
711
835
|
exports.batchDeleteRelation = batchDeleteRelation;
|
836
|
+
|
712
837
|
var forceDeleteRelation = /*#__PURE__*/function () {
|
713
|
-
var _ref18 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
714
|
-
return
|
838
|
+
var _ref18 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee15(id) {
|
839
|
+
return _regenerator["default"].wrap(function _callee15$(_context15) {
|
715
840
|
while (1) switch (_context15.prev = _context15.next) {
|
716
841
|
case 0:
|
717
842
|
_context15.next = 2;
|
@@ -719,54 +844,64 @@ var forceDeleteRelation = /*#__PURE__*/function () {
|
|
719
844
|
id: id,
|
720
845
|
force: true
|
721
846
|
}]);
|
847
|
+
|
722
848
|
case 2:
|
723
849
|
return _context15.abrupt("return", _context15.sent);
|
850
|
+
|
724
851
|
case 3:
|
725
852
|
case "end":
|
726
853
|
return _context15.stop();
|
727
854
|
}
|
728
855
|
}, _callee15);
|
729
856
|
}));
|
857
|
+
|
730
858
|
return function forceDeleteRelation(_x37) {
|
731
859
|
return _ref18.apply(this, arguments);
|
732
860
|
};
|
733
861
|
}();
|
734
|
-
|
735
862
|
/**
|
736
863
|
* 查询关系
|
737
864
|
* @param {[{id: string}]} params
|
738
865
|
* @returns
|
739
866
|
*/
|
867
|
+
|
868
|
+
|
740
869
|
exports.forceDeleteRelation = forceDeleteRelation;
|
870
|
+
|
741
871
|
var batchQueryRelationById = /*#__PURE__*/function () {
|
742
|
-
var _ref19 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
743
|
-
return
|
872
|
+
var _ref19 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee16(params) {
|
873
|
+
return _regenerator["default"].wrap(function _callee16$(_context16) {
|
744
874
|
while (1) switch (_context16.prev = _context16.next) {
|
745
875
|
case 0:
|
746
876
|
_context16.next = 2;
|
747
877
|
return _componentTopologyUtils.request.post('/cmdb/v1/api/relation/batchQueryById', params);
|
878
|
+
|
748
879
|
case 2:
|
749
880
|
return _context16.abrupt("return", _context16.sent);
|
881
|
+
|
750
882
|
case 3:
|
751
883
|
case "end":
|
752
884
|
return _context16.stop();
|
753
885
|
}
|
754
886
|
}, _callee16);
|
755
887
|
}));
|
888
|
+
|
756
889
|
return function batchQueryRelationById(_x38) {
|
757
890
|
return _ref19.apply(this, arguments);
|
758
891
|
};
|
759
892
|
}();
|
760
|
-
|
761
893
|
/**
|
762
894
|
* 查询关系
|
763
895
|
* @param {*} ids 关系ids
|
764
896
|
* @returns
|
765
897
|
*/
|
898
|
+
|
899
|
+
|
766
900
|
exports.batchQueryRelationById = batchQueryRelationById;
|
901
|
+
|
767
902
|
var queryRelationByIds = /*#__PURE__*/function () {
|
768
|
-
var _ref20 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/
|
769
|
-
return
|
903
|
+
var _ref20 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee17(ids) {
|
904
|
+
return _regenerator["default"].wrap(function _callee17$(_context17) {
|
770
905
|
while (1) switch (_context17.prev = _context17.next) {
|
771
906
|
case 0:
|
772
907
|
_context17.next = 2;
|
@@ -775,16 +910,20 @@ var queryRelationByIds = /*#__PURE__*/function () {
|
|
775
910
|
id: id
|
776
911
|
};
|
777
912
|
}));
|
913
|
+
|
778
914
|
case 2:
|
779
915
|
return _context17.abrupt("return", _context17.sent);
|
916
|
+
|
780
917
|
case 3:
|
781
918
|
case "end":
|
782
919
|
return _context17.stop();
|
783
920
|
}
|
784
921
|
}, _callee17);
|
785
922
|
}));
|
923
|
+
|
786
924
|
return function queryRelationByIds(_x39) {
|
787
925
|
return _ref20.apply(this, arguments);
|
788
926
|
};
|
789
927
|
}();
|
928
|
+
|
790
929
|
exports.queryRelationByIds = queryRelationByIds;
|