@riil-frontend/component-topology 10.0.57 → 10.0.59
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 +52 -45
- package/es/components/IndexSettingDrawer/index.js +6 -5
- package/es/components/MultiResourceDrawer/index.js +22 -26
- package/es/components/ResourceList/ResourceSelect.js +55 -58
- package/es/components/ResourceSelectDrawer/ResourceSelectDrawer.js +30 -34
- package/es/components/SingleResourceDrawer/SelectDrawer.js +24 -28
- package/es/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +29 -33
- package/es/core/components/DisplaySettingDrawer/ResourceDisplay/useElementTagTipConfig.js +78 -100
- package/es/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +92 -108
- package/es/core/components/titlebar/widgets/TitleWidget.js +5 -4
- package/es/core/editor/components/BackgroundView/UploadDialog/index.js +17 -18
- package/es/core/editor/components/BackgroundView/index.js +149 -178
- package/es/core/editor/components/CustomIconPlugin/RenameDialog.js +26 -30
- package/es/core/editor/components/CustomIconPlugin/UploadIconDialog.js +33 -34
- package/es/core/editor/components/CustomIconPlugin/utils/svgToShape.js +20 -24
- package/es/core/editor/components/GroupAddResourceDrawerPlugin/GroupAddResourceDrawer.js +13 -17
- package/es/core/editor/components/Sidebar/views/CanvasPanel/hooks/useCanvasThemeConfig.js +45 -56
- package/es/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundSetting.js +60 -70
- package/es/core/editor/components/Toolbar/widgets/FontColorButton.js +60 -70
- package/es/core/editor/components/settings/propertyViews/layer/DataTab/DefaultLayerAddResourceDrawer.js +17 -21
- package/es/core/editor/components/settings/propertyViews/node/data/BindResourceDrawer.js +27 -31
- package/es/core/editor/components/settings/propertyViews/node/data/Data.js +21 -25
- package/es/core/editor/components/settings/propertyViews/view/BackgroundSize.js +16 -20
- package/es/core/editor/components/titlebar/TopoEditorTitleBar.js +37 -55
- package/es/core/editor/hooks/useKeyboardShortcut.js +2 -2
- package/es/core/editor/hooks/useNewElementTheme.js +2 -2
- package/es/core/editor/store/background.js +8 -10
- package/es/core/editor/store/topoEdit.js +4 -6
- package/es/core/editor/utils/edgeTypeStyleUtil.js +2 -4
- package/es/core/hooks/useCanvasTheme.js +1 -1
- package/es/core/hooks/usePolling.js +110 -122
- package/es/core/hooks/useResourceConfig.js +76 -100
- package/es/core/hooks/useTopoEdit.js +539 -638
- package/es/core/models/Alarm.js +311 -394
- package/es/core/models/AttributeMetricDisplay.js +115 -143
- package/es/core/models/PluginManager.js +4 -3
- package/es/core/models/SelectionModel.js +4 -5
- package/es/core/models/TopoApp.js +287 -454
- package/es/core/models/TopoGraphView.js +28 -41
- package/es/core/models/cache/CiCache.js +34 -39
- package/es/core/models/cache/CiTypeCache.js +70 -84
- package/es/core/models/cache/DictCache.js +36 -42
- package/es/core/models/graph/Background.js +21 -26
- package/es/core/models/plugins/resourceWebControllUrl.js +84 -103
- package/es/core/models/tagstips/ElementTagTipConfig.js +34 -40
- package/es/core/models/topoData.js +73 -77
- package/es/core/models/utils/linkUtils.js +46 -51
- package/es/core/services/alarm.js +14 -16
- package/es/core/services/background.js +59 -67
- package/es/core/services/cmdb/metric.js +14 -18
- package/es/core/services/cmdb.js +23 -27
- package/es/core/services/index.js +48 -68
- package/es/core/services/overview.js +131 -151
- package/es/core/services/topo/basic.js +11 -13
- package/es/core/services/topo/tagtip.js +15 -19
- package/es/core/store/models/ciModel.js +58 -62
- package/es/core/store/models/customIcon.js +126 -145
- package/es/core/store/models/displayConfig.js +15 -19
- package/es/core/store/models/selection.js +4 -6
- package/es/core/store/models/topoAlarm.js +162 -145
- package/es/core/store/models/topoBaseInfoOverview.js +4 -6
- package/es/core/store/models/topoBizMod.js +28 -32
- package/es/core/store/models/topoConfig.js +217 -233
- package/es/core/store/models/topoGraphView.js +4 -6
- package/es/core/store/models/topoMod.js +379 -401
- package/es/core/utils/imageUtil.js +23 -27
- package/es/core/utils/saveSerialize.js +14 -18
- package/es/core/viewer/components/plugins/ResourceDetail/components/ClusterMemberTable.js +62 -66
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +20 -25
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +363 -409
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/Configurator/index.js +112 -131
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/LinkTopoCard.js +40 -46
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +219 -275
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useAlarmAndRiskData.js +113 -118
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useMetricModels.js +63 -68
- package/es/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +45 -54
- package/es/core/viewer/components/plugins/ResourceDetail/getCiDisplayMetricModels.js +32 -44
- package/es/core/viewer/components/plugins/ResourceDetail/hooks/useUserId.js +36 -43
- package/es/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +23 -27
- package/es/networkTopo/components/Link/hook.js +85 -96
- package/es/networkTopo/components/Link/index copy.js +104 -126
- package/es/networkTopo/components/Link/index.js +104 -126
- package/es/networkTopo/components/Link/setting.js +48 -52
- package/es/networkTopo/getTopoData.js +73 -92
- package/es/networkTopo/hooks/viewer/useRelateTopo.js +34 -39
- package/es/networkTopo/models/LinkDynamicStyleExecutor.js +2 -2
- package/es/networkTopo/models/TopoCenter.js +28 -46
- package/es/networkTopo/services/alert.js +18 -22
- package/es/networkTopo/services/authorization.js +45 -55
- package/es/networkTopo/services/cmdb.js +548 -696
- package/es/networkTopo/services/funcAuth.js +22 -24
- package/es/networkTopo/services/link.js +107 -117
- package/es/networkTopo/services/mdc.js +33 -48
- package/es/networkTopo/services/metric.js +38 -47
- package/es/networkTopo/services/model.js +616 -809
- package/es/networkTopo/services/risk.js +9 -11
- package/es/networkTopo/services/topo/auth.js +27 -33
- package/es/networkTopo/services/topo/basic.js +274 -314
- package/es/networkTopo/services/topo/blacklist.js +20 -24
- package/es/networkTopo/services/topo/ciInfo.js +27 -31
- package/es/networkTopo/services/topo/icon.js +49 -59
- package/es/networkTopo/services/topo/networkLink.js +32 -36
- package/es/networkTopo/services/topo/relation.js +9 -11
- package/es/networkTopo/services/topo/resourceWebUrl.js +36 -42
- package/es/networkTopo/store/functionAuth.js +31 -37
- package/es/networkTopo/store/linkDynamicStyle.js +102 -108
- package/es/networkTopo/store/linkDynamicStyleConfig.js +42 -44
- package/es/networkTopo/store/linkManager.js +4 -6
- package/es/networkTopo/store/topoCenter.js +142 -152
- package/es/networkTopo/store/topoLinkMod.js +4 -6
- package/es/networkTopo/store/topoTreeMod.js +170 -182
- package/es/networkTopo/utils/exportData.js +57 -61
- package/lib/components/IndexSettingDrawer/index.js +6 -5
- package/lib/components/MultiResourceDrawer/index.js +22 -26
- package/lib/components/ResourceList/ResourceSelect.js +54 -58
- package/lib/components/ResourceSelectDrawer/ResourceSelectDrawer.js +33 -37
- package/lib/components/SingleResourceDrawer/SelectDrawer.js +24 -28
- package/lib/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +36 -40
- package/lib/core/components/DisplaySettingDrawer/ResourceDisplay/useElementTagTipConfig.js +82 -104
- package/lib/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +92 -108
- package/lib/core/components/titlebar/widgets/TitleWidget.js +5 -4
- package/lib/core/editor/components/BackgroundView/UploadDialog/index.js +18 -18
- package/lib/core/editor/components/BackgroundView/index.js +148 -177
- package/lib/core/editor/components/CustomIconPlugin/RenameDialog.js +28 -32
- package/lib/core/editor/components/CustomIconPlugin/UploadIconDialog.js +34 -34
- package/lib/core/editor/components/CustomIconPlugin/utils/svgToShape.js +23 -28
- package/lib/core/editor/components/GroupAddResourceDrawerPlugin/GroupAddResourceDrawer.js +14 -18
- package/lib/core/editor/components/Sidebar/views/CanvasPanel/hooks/useCanvasThemeConfig.js +45 -56
- package/lib/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundSetting.js +60 -70
- package/lib/core/editor/components/Toolbar/widgets/FontColorButton.js +60 -70
- package/lib/core/editor/components/settings/propertyViews/layer/DataTab/DefaultLayerAddResourceDrawer.js +18 -22
- package/lib/core/editor/components/settings/propertyViews/node/data/BindResourceDrawer.js +32 -36
- package/lib/core/editor/components/settings/propertyViews/node/data/Data.js +21 -25
- package/lib/core/editor/components/settings/propertyViews/view/BackgroundSize.js +18 -22
- package/lib/core/editor/components/titlebar/TopoEditorTitleBar.js +41 -59
- package/lib/core/editor/hooks/useKeyboardShortcut.js +2 -2
- package/lib/core/editor/hooks/useNewElementTheme.js +2 -2
- package/lib/core/editor/store/background.js +8 -10
- package/lib/core/editor/store/topoEdit.js +4 -6
- package/lib/core/editor/utils/edgeTypeStyleUtil.js +2 -4
- package/lib/core/hooks/useCanvasTheme.js +1 -1
- package/lib/core/hooks/usePolling.js +108 -120
- package/lib/core/hooks/useResourceConfig.js +76 -100
- package/lib/core/hooks/useTopoEdit.js +530 -629
- package/lib/core/models/Alarm.js +308 -391
- package/lib/core/models/AttributeMetricDisplay.js +118 -146
- package/lib/core/models/PluginManager.js +4 -3
- package/lib/core/models/SelectionModel.js +4 -5
- package/lib/core/models/TopoApp.js +287 -454
- package/lib/core/models/TopoGraphView.js +28 -41
- package/lib/core/models/cache/CiCache.js +39 -44
- package/lib/core/models/cache/CiTypeCache.js +71 -85
- package/lib/core/models/cache/DictCache.js +39 -45
- package/lib/core/models/graph/Background.js +22 -27
- package/lib/core/models/plugins/resourceWebControllUrl.js +82 -101
- package/lib/core/models/tagstips/ElementTagTipConfig.js +34 -40
- package/lib/core/models/topoData.js +73 -78
- package/lib/core/models/utils/linkUtils.js +45 -51
- package/lib/core/services/alarm.js +18 -20
- package/lib/core/services/background.js +70 -78
- package/lib/core/services/cmdb/metric.js +14 -19
- package/lib/core/services/cmdb.js +24 -29
- package/lib/core/services/index.js +53 -72
- package/lib/core/services/overview.js +131 -151
- package/lib/core/services/topo/basic.js +13 -15
- package/lib/core/services/topo/tagtip.js +16 -21
- package/lib/core/store/models/ciModel.js +66 -70
- package/lib/core/store/models/customIcon.js +126 -145
- package/lib/core/store/models/displayConfig.js +15 -19
- package/lib/core/store/models/selection.js +4 -6
- package/lib/core/store/models/topoAlarm.js +163 -145
- package/lib/core/store/models/topoBaseInfoOverview.js +4 -6
- package/lib/core/store/models/topoBizMod.js +34 -38
- package/lib/core/store/models/topoConfig.js +224 -240
- package/lib/core/store/models/topoGraphView.js +4 -6
- package/lib/core/store/models/topoMod.js +381 -403
- package/lib/core/utils/imageUtil.js +26 -31
- package/lib/core/utils/saveSerialize.js +13 -18
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ClusterMemberTable.js +62 -66
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +21 -26
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +364 -410
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/Configurator/index.js +114 -133
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/LinkTopoCard.js +44 -50
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +220 -274
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useAlarmAndRiskData.js +113 -118
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useMetricModels.js +63 -68
- package/lib/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +40 -50
- package/lib/core/viewer/components/plugins/ResourceDetail/getCiDisplayMetricModels.js +35 -47
- package/lib/core/viewer/components/plugins/ResourceDetail/hooks/useUserId.js +36 -43
- package/lib/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +24 -28
- package/lib/networkTopo/components/Link/hook.js +86 -98
- package/lib/networkTopo/components/Link/index copy.js +105 -127
- package/lib/networkTopo/components/Link/index.js +105 -127
- package/lib/networkTopo/components/Link/setting.js +48 -52
- package/lib/networkTopo/getTopoData.js +73 -92
- package/lib/networkTopo/hooks/viewer/useRelateTopo.js +35 -40
- package/lib/networkTopo/models/LinkDynamicStyleExecutor.js +2 -2
- package/lib/networkTopo/models/TopoCenter.js +28 -46
- package/lib/networkTopo/services/alert.js +18 -22
- package/lib/networkTopo/services/authorization.js +55 -65
- package/lib/networkTopo/services/cmdb.js +551 -700
- package/lib/networkTopo/services/funcAuth.js +24 -26
- package/lib/networkTopo/services/link.js +108 -118
- package/lib/networkTopo/services/mdc.js +35 -51
- package/lib/networkTopo/services/metric.js +37 -47
- package/lib/networkTopo/services/model.js +615 -809
- package/lib/networkTopo/services/risk.js +11 -13
- package/lib/networkTopo/services/topo/auth.js +27 -33
- package/lib/networkTopo/services/topo/basic.js +277 -317
- package/lib/networkTopo/services/topo/blacklist.js +20 -24
- package/lib/networkTopo/services/topo/ciInfo.js +34 -38
- package/lib/networkTopo/services/topo/icon.js +59 -69
- package/lib/networkTopo/services/topo/networkLink.js +32 -36
- package/lib/networkTopo/services/topo/relation.js +11 -13
- package/lib/networkTopo/services/topo/resourceWebUrl.js +44 -50
- package/lib/networkTopo/store/functionAuth.js +31 -37
- package/lib/networkTopo/store/linkDynamicStyle.js +103 -109
- package/lib/networkTopo/store/linkDynamicStyleConfig.js +42 -44
- package/lib/networkTopo/store/linkManager.js +4 -6
- package/lib/networkTopo/store/topoCenter.js +142 -152
- package/lib/networkTopo/store/topoLinkMod.js +4 -6
- package/lib/networkTopo/store/topoTreeMod.js +166 -178
- package/lib/networkTopo/utils/exportData.js +63 -68
- package/package.json +3 -3
@@ -42,6 +42,8 @@ var _linkUtils = require("../models/utils/linkUtils");
|
|
42
42
|
var _exitLinkUtil = require("../../networkTopo/utils/exitLinkUtil");
|
43
43
|
|
44
44
|
var useTopoEdit = function useTopoEdit(params) {
|
45
|
+
var _ref2, _ref3, _ref4, _bindGroupResources, _addGroupResources, _bindViewResources, _addLayerResources, _addResourceToFirstLayer, _ref5, _ref6, _ref8, _relateNodeIp;
|
46
|
+
|
45
47
|
var topo = params.topo,
|
46
48
|
topoId = params.topoId,
|
47
49
|
isEditing = params.isEditing,
|
@@ -96,101 +98,91 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
96
98
|
setShowComboResDrawer(true);
|
97
99
|
};
|
98
100
|
|
99
|
-
var onLayerAdded =
|
100
|
-
|
101
|
+
var onLayerAdded = function onLayerAdded(_x) {
|
102
|
+
return (_ref2 = _ref2 || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_ref) {
|
101
103
|
var target, direction, config;
|
102
104
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
103
|
-
while (1) {
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
topo.historyManager.beginTransaction(); // 从拓扑图获取分层和资源配置
|
108
|
-
|
109
|
-
config = resourceConfig.getConfigFromHt(topo.getDataModel());
|
105
|
+
while (1) switch (_context.prev = _context.next) {
|
106
|
+
case 0:
|
107
|
+
target = _ref.target, direction = _ref.direction;
|
108
|
+
topo.historyManager.beginTransaction(); // 从拓扑图获取分层和资源配置
|
110
109
|
|
111
|
-
|
112
|
-
config: config
|
113
|
-
}); // 如果非分层拓扑且有分层,切换到分层模板,设置方向
|
110
|
+
config = resourceConfig.getConfigFromHt(topo.getDataModel());
|
114
111
|
|
112
|
+
_rlog["default"].info("onLayerAdd", {
|
113
|
+
config: config
|
114
|
+
}); // 如果非分层拓扑且有分层,切换到分层模板,设置方向
|
115
115
|
|
116
|
-
if (!(!isLayerTopo && config.layers.length)) {
|
117
|
-
_context.next = 7;
|
118
|
-
break;
|
119
|
-
}
|
120
116
|
|
117
|
+
if (!(!isLayerTopo && config.layers.length)) {
|
121
118
|
_context.next = 7;
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
119
|
+
break;
|
120
|
+
}
|
121
|
+
|
122
|
+
_context.next = 7;
|
123
|
+
return topoDispatchers.setTopoType(_template.TPL_TREE);
|
124
|
+
|
125
|
+
case 7:
|
126
|
+
// 更新配置
|
127
|
+
// resourceConfig.updateConfig(config);
|
128
|
+
// 更新配置对应的资源、链路
|
129
|
+
// editDispatchers.fetchDataByConfig();
|
130
|
+
topo.historyManager.endTransaction();
|
131
|
+
|
132
|
+
case 8:
|
133
|
+
case "end":
|
134
|
+
return _context.stop();
|
135
135
|
}
|
136
136
|
}, _callee);
|
137
|
-
}));
|
138
|
-
|
139
|
-
return function onLayerAdded(_x) {
|
140
|
-
return _ref2.apply(this, arguments);
|
141
|
-
};
|
142
|
-
}();
|
137
|
+
}))).apply(this, arguments);
|
138
|
+
};
|
143
139
|
|
144
|
-
var deleteLayer =
|
145
|
-
|
140
|
+
var deleteLayer = function deleteLayer(_x2) {
|
141
|
+
return (_ref3 = _ref3 || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(layerElement) {
|
146
142
|
var config;
|
147
143
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
148
|
-
while (1) {
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
emitEvent(_componentTopologyGraph.TopoEvent.EVENT_TRIGGER_DELETE, layerElement); // 获取资源配置
|
153
|
-
|
154
|
-
config = resourceConfig.getConfigFromHt(topo.getDataModel());
|
144
|
+
while (1) switch (_context2.prev = _context2.next) {
|
145
|
+
case 0:
|
146
|
+
topo.historyManager.beginTransaction();
|
147
|
+
emitEvent(_componentTopologyGraph.TopoEvent.EVENT_TRIGGER_DELETE, layerElement); // 获取资源配置
|
155
148
|
|
156
|
-
|
157
|
-
config: config
|
158
|
-
}); // 如果没有分层,将拓扑类型切换为空白模板
|
149
|
+
config = resourceConfig.getConfigFromHt(topo.getDataModel());
|
159
150
|
|
151
|
+
_rlog["default"].info("deleteLayer", {
|
152
|
+
config: config
|
153
|
+
}); // 如果没有分层,将拓扑类型切换为空白模板
|
160
154
|
|
161
|
-
if (config.layers.length) {
|
162
|
-
_context2.next = 7;
|
163
|
-
break;
|
164
|
-
}
|
165
155
|
|
156
|
+
if (config.layers.length) {
|
166
157
|
_context2.next = 7;
|
167
|
-
|
158
|
+
break;
|
159
|
+
}
|
168
160
|
|
169
|
-
|
170
|
-
|
171
|
-
return resourceConfig.updateConfig(config);
|
161
|
+
_context2.next = 7;
|
162
|
+
return topoDispatchers.setTopoType(_template.TPL_BLANK);
|
172
163
|
|
173
|
-
|
174
|
-
|
175
|
-
|
164
|
+
case 7:
|
165
|
+
_context2.next = 9;
|
166
|
+
return resourceConfig.updateConfig(config);
|
176
167
|
|
177
|
-
|
178
|
-
|
168
|
+
case 9:
|
169
|
+
_context2.next = 11;
|
170
|
+
return editDispatchers.fetchDataByConfig();
|
179
171
|
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
172
|
+
case 11:
|
173
|
+
topo.historyManager.endTransaction();
|
174
|
+
|
175
|
+
case 12:
|
176
|
+
case "end":
|
177
|
+
return _context2.stop();
|
184
178
|
}
|
185
179
|
}, _callee2);
|
186
|
-
}));
|
187
|
-
|
188
|
-
return function deleteLayer(_x2) {
|
189
|
-
return _ref3.apply(this, arguments);
|
190
|
-
};
|
191
|
-
}();
|
180
|
+
}))).apply(this, arguments);
|
181
|
+
};
|
192
182
|
|
193
183
|
var handleDeleteLayer = function handleDeleteLayer(layerElement) {
|
184
|
+
var _onOk;
|
185
|
+
|
194
186
|
var hasChildren = !!layerElement.getChildren().toArray().length;
|
195
187
|
|
196
188
|
if (!hasChildren) {
|
@@ -208,28 +200,20 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
208
200
|
messageProps: {
|
209
201
|
type: "warning"
|
210
202
|
},
|
211
|
-
onOk: function () {
|
212
|
-
|
203
|
+
onOk: function onOk() {
|
204
|
+
return (_onOk = _onOk || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
213
205
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
214
|
-
while (1) {
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
return _context3.stop();
|
222
|
-
}
|
206
|
+
while (1) switch (_context3.prev = _context3.next) {
|
207
|
+
case 0:
|
208
|
+
deleteLayer(layerElement);
|
209
|
+
|
210
|
+
case 1:
|
211
|
+
case "end":
|
212
|
+
return _context3.stop();
|
223
213
|
}
|
224
214
|
}, _callee3);
|
225
|
-
}));
|
226
|
-
|
227
|
-
function onOk() {
|
228
|
-
return _onOk.apply(this, arguments);
|
229
|
-
}
|
230
|
-
|
231
|
-
return onOk;
|
232
|
-
}()
|
215
|
+
}))).apply(this, arguments);
|
216
|
+
}
|
233
217
|
});
|
234
218
|
};
|
235
219
|
/**
|
@@ -242,6 +226,8 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
242
226
|
|
243
227
|
|
244
228
|
var deleteGroup = function deleteGroup(data) {
|
229
|
+
var _onOk2;
|
230
|
+
|
245
231
|
var id = data.id,
|
246
232
|
tag = data.tag; // 新加的容器 tag 格式为 group_${id}
|
247
233
|
|
@@ -266,28 +252,20 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
266
252
|
messageProps: {
|
267
253
|
type: "warning"
|
268
254
|
},
|
269
|
-
onOk: function () {
|
270
|
-
|
255
|
+
onOk: function onOk() {
|
256
|
+
return (_onOk2 = _onOk2 || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
271
257
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
272
|
-
while (1) {
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
return _context4.stop();
|
280
|
-
}
|
258
|
+
while (1) switch (_context4.prev = _context4.next) {
|
259
|
+
case 0:
|
260
|
+
doDelete();
|
261
|
+
|
262
|
+
case 1:
|
263
|
+
case "end":
|
264
|
+
return _context4.stop();
|
281
265
|
}
|
282
266
|
}, _callee4);
|
283
|
-
}));
|
284
|
-
|
285
|
-
function onOk() {
|
286
|
-
return _onOk2.apply(this, arguments);
|
287
|
-
}
|
288
|
-
|
289
|
-
return onOk;
|
290
|
-
}()
|
267
|
+
}))).apply(this, arguments);
|
268
|
+
}
|
291
269
|
});
|
292
270
|
|
293
271
|
function doDelete() {
|
@@ -324,49 +302,43 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
324
302
|
}; // 删除关联在节点上的出口链路
|
325
303
|
|
326
304
|
|
327
|
-
var deleteExLink =
|
328
|
-
|
305
|
+
var deleteExLink = function deleteExLink(_x3) {
|
306
|
+
return (_ref4 = _ref4 || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(node) {
|
329
307
|
var _node$getEdges$toArra, _node$getEdges;
|
330
308
|
|
331
309
|
var config, edges, exportLinkIdList;
|
332
310
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
333
|
-
while (1) {
|
334
|
-
|
335
|
-
|
336
|
-
config = resourceConfig.getConfig(); // console.log("删除关联在节点上的出口链路- node, config", node, config);
|
337
|
-
|
338
|
-
edges = (_node$getEdges$toArra = (_node$getEdges = node.getEdges()) === null || _node$getEdges === void 0 ? void 0 : _node$getEdges.toArray()) !== null && _node$getEdges$toArra !== void 0 ? _node$getEdges$toArra : []; // const exLink = [];
|
339
|
-
|
340
|
-
if (!(edges.length > 0)) {
|
341
|
-
_context5.next = 8;
|
342
|
-
break;
|
343
|
-
}
|
311
|
+
while (1) switch (_context5.prev = _context5.next) {
|
312
|
+
case 0:
|
313
|
+
config = resourceConfig.getConfig(); // console.log("删除关联在节点上的出口链路- node, config", node, config);
|
344
314
|
|
345
|
-
|
315
|
+
edges = (_node$getEdges$toArra = (_node$getEdges = node.getEdges()) === null || _node$getEdges === void 0 ? void 0 : _node$getEdges.toArray()) !== null && _node$getEdges$toArra !== void 0 ? _node$getEdges$toArra : []; // const exLink = [];
|
346
316
|
|
347
|
-
|
348
|
-
if (edge.a("dtype") === "link" && exportLinkIdList.indexOf(edge.getTag()) >= 0) {
|
349
|
-
// exLink.push(edge);
|
350
|
-
topo.getGraphView().dm().remove(edge);
|
351
|
-
exportLinkIdList.splice(config.exportLinkIdList.indexOf(edge.getTag()), 1);
|
352
|
-
}
|
353
|
-
});
|
354
|
-
config.exportLinkIdList = exportLinkIdList;
|
317
|
+
if (!(edges.length > 0)) {
|
355
318
|
_context5.next = 8;
|
356
|
-
|
319
|
+
break;
|
320
|
+
}
|
357
321
|
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
322
|
+
exportLinkIdList = [].concat(config.exportLinkIdList); //console.log("删除关联在节点上的出口链路- edges", edges,exportLinkIdList);
|
323
|
+
|
324
|
+
edges.map(function (edge) {
|
325
|
+
if (edge.a("dtype") === "link" && exportLinkIdList.indexOf(edge.getTag()) >= 0) {
|
326
|
+
// exLink.push(edge);
|
327
|
+
topo.getGraphView().dm().remove(edge);
|
328
|
+
exportLinkIdList.splice(config.exportLinkIdList.indexOf(edge.getTag()), 1);
|
329
|
+
}
|
330
|
+
});
|
331
|
+
config.exportLinkIdList = exportLinkIdList;
|
332
|
+
_context5.next = 8;
|
333
|
+
return resourceConfig.updateConfig(config);
|
334
|
+
|
335
|
+
case 8:
|
336
|
+
case "end":
|
337
|
+
return _context5.stop();
|
362
338
|
}
|
363
339
|
}, _callee5);
|
364
|
-
}));
|
365
|
-
|
366
|
-
return function deleteExLink(_x3) {
|
367
|
-
return _ref4.apply(this, arguments);
|
368
|
-
};
|
369
|
-
}();
|
340
|
+
}))).apply(this, arguments);
|
341
|
+
};
|
370
342
|
|
371
343
|
var onDeleteElement = function onDeleteElement(data) {
|
372
344
|
var dtype = data.dtype;
|
@@ -442,95 +414,111 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
442
414
|
|
443
415
|
|
444
416
|
function bindGroupResources(_x4, _x5) {
|
445
|
-
return _bindGroupResources.
|
446
|
-
|
417
|
+
return (_bindGroupResources = _bindGroupResources || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(group, resources) {
|
418
|
+
var id, tag, _yield$editDispatcher, elements, nodeElements, newLinkElements, updateElements;
|
447
419
|
|
448
|
-
|
449
|
-
|
450
|
-
|
420
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
421
|
+
while (1) switch (_context6.prev = _context6.next) {
|
422
|
+
case 0:
|
423
|
+
id = group.id, tag = group.tag;
|
451
424
|
|
452
|
-
|
453
|
-
while (1) {
|
454
|
-
switch (_context11.prev = _context11.next) {
|
455
|
-
case 0:
|
456
|
-
id = group.id, tag = group.tag;
|
425
|
+
_rlog["default"].debug("bindGroupResources--id, tag", id, tag);
|
457
426
|
|
458
|
-
|
427
|
+
topo.historyManager.beginTransaction();
|
428
|
+
_context6.next = 5;
|
429
|
+
return resourceConfig.updateGroupResources(group, resources);
|
459
430
|
|
460
|
-
|
461
|
-
|
462
|
-
|
431
|
+
case 5:
|
432
|
+
_context6.next = 7;
|
433
|
+
return editDispatchers.fetchDataByConfig();
|
463
434
|
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
saveBind(_componentTopologyGraph.TopoEvent.DATA_TYPE_RESOURCE_CONTAINER, updateElements); // 临时放这里,仅拓扑中心有
|
478
|
-
|
479
|
-
if (topo.linkDynamicStyleExecutor) {
|
480
|
-
topo.linkDynamicStyleExecutor.execute();
|
481
|
-
}
|
435
|
+
case 7:
|
436
|
+
_yield$editDispatcher = _context6.sent;
|
437
|
+
elements = _yield$editDispatcher.elements;
|
438
|
+
// 区域里的子区域及子区域的节点、新增的链路
|
439
|
+
nodeElements = (0, _topoData.findGroupChildren)(elements, group);
|
440
|
+
newLinkElements = findUNExistedLinkElements(elements);
|
441
|
+
updateElements = [].concat(nodeElements, newLinkElements);
|
442
|
+
|
443
|
+
if (updateElements.length) {
|
444
|
+
saveBind(_componentTopologyGraph.TopoEvent.DATA_TYPE_RESOURCE_CONTAINER, updateElements); // 临时放这里,仅拓扑中心有
|
445
|
+
|
446
|
+
if (topo.linkDynamicStyleExecutor) {
|
447
|
+
topo.linkDynamicStyleExecutor.execute();
|
482
448
|
}
|
449
|
+
}
|
483
450
|
|
484
|
-
|
451
|
+
topo.historyManager.endTransaction();
|
485
452
|
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
}
|
453
|
+
case 14:
|
454
|
+
case "end":
|
455
|
+
return _context6.stop();
|
490
456
|
}
|
491
|
-
},
|
492
|
-
}));
|
493
|
-
return _bindGroupResources.apply(this, arguments);
|
457
|
+
}, _callee6);
|
458
|
+
}))).apply(this, arguments);
|
494
459
|
}
|
495
460
|
|
496
461
|
function addGroupResources(_x6, _x7) {
|
497
|
-
return _addGroupResources.
|
462
|
+
return (_addGroupResources = _addGroupResources || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(group, newResourceIds) {
|
463
|
+
var groupConfig, resources, groupData;
|
464
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
465
|
+
while (1) switch (_context7.prev = _context7.next) {
|
466
|
+
case 0:
|
467
|
+
groupConfig = resourceConfig.getGroupConfigByElement(group);
|
468
|
+
resources = {
|
469
|
+
"static": [].concat(groupConfig.resources["static"], newResourceIds)
|
470
|
+
};
|
471
|
+
groupData = {
|
472
|
+
id: group.getTag(),
|
473
|
+
tag: group.a("tag")
|
474
|
+
};
|
475
|
+
_context7.next = 5;
|
476
|
+
return bindGroupResources(groupData, resources, newResourceIds);
|
477
|
+
|
478
|
+
case 5:
|
479
|
+
case "end":
|
480
|
+
return _context7.stop();
|
481
|
+
}
|
482
|
+
}, _callee7);
|
483
|
+
}))).apply(this, arguments);
|
498
484
|
}
|
499
485
|
/**
|
500
486
|
* 关联视图的资源
|
501
487
|
*/
|
502
488
|
|
503
489
|
|
504
|
-
function
|
505
|
-
|
506
|
-
var
|
507
|
-
return _regenerator["default"].wrap(function _callee12$(_context12) {
|
508
|
-
while (1) {
|
509
|
-
switch (_context12.prev = _context12.next) {
|
510
|
-
case 0:
|
511
|
-
groupConfig = resourceConfig.getGroupConfigByElement(group);
|
512
|
-
resources = {
|
513
|
-
"static": [].concat(groupConfig.resources["static"], newResourceIds)
|
514
|
-
};
|
515
|
-
groupData = {
|
516
|
-
id: group.getTag(),
|
517
|
-
tag: group.a("tag")
|
518
|
-
};
|
519
|
-
_context12.next = 5;
|
520
|
-
return bindGroupResources(groupData, resources, newResourceIds);
|
490
|
+
function bindViewResources(_x8) {
|
491
|
+
return (_bindViewResources = _bindViewResources || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(data) {
|
492
|
+
var config, _yield$editDispatcher2, elements;
|
521
493
|
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
494
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
495
|
+
while (1) switch (_context8.prev = _context8.next) {
|
496
|
+
case 0:
|
497
|
+
// console.log("关联视图的资源", data);
|
498
|
+
config = resourceConfig.getConfig();
|
499
|
+
config.resources = data;
|
500
|
+
_context8.next = 4;
|
501
|
+
return resourceConfig.updateConfig(config);
|
502
|
+
|
503
|
+
case 4:
|
504
|
+
_context8.next = 6;
|
505
|
+
return editDispatchers.fetchDataByConfig();
|
506
|
+
|
507
|
+
case 6:
|
508
|
+
_yield$editDispatcher2 = _context8.sent;
|
509
|
+
elements = _yield$editDispatcher2.elements;
|
510
|
+
saveBind(_componentTopologyGraph.TopoEvent.DATA_TYPE_RESOURCE_COMBO, elements); // 临时放这里,仅拓扑中心有
|
511
|
+
|
512
|
+
if (topo.linkDynamicStyleExecutor) {
|
513
|
+
topo.linkDynamicStyleExecutor.execute();
|
514
|
+
}
|
531
515
|
|
532
|
-
|
533
|
-
|
516
|
+
case 10:
|
517
|
+
case "end":
|
518
|
+
return _context8.stop();
|
519
|
+
}
|
520
|
+
}, _callee8);
|
521
|
+
}))).apply(this, arguments);
|
534
522
|
}
|
535
523
|
/**
|
536
524
|
* 分层添加资源
|
@@ -540,121 +528,70 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
540
528
|
*/
|
541
529
|
|
542
530
|
|
543
|
-
function _bindViewResources() {
|
544
|
-
_bindViewResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13(data) {
|
545
|
-
var config, _yield$editDispatcher3, elements;
|
546
|
-
|
547
|
-
return _regenerator["default"].wrap(function _callee13$(_context13) {
|
548
|
-
while (1) {
|
549
|
-
switch (_context13.prev = _context13.next) {
|
550
|
-
case 0:
|
551
|
-
// console.log("关联视图的资源", data);
|
552
|
-
config = resourceConfig.getConfig();
|
553
|
-
config.resources = data;
|
554
|
-
_context13.next = 4;
|
555
|
-
return resourceConfig.updateConfig(config);
|
556
|
-
|
557
|
-
case 4:
|
558
|
-
_context13.next = 6;
|
559
|
-
return editDispatchers.fetchDataByConfig();
|
560
|
-
|
561
|
-
case 6:
|
562
|
-
_yield$editDispatcher3 = _context13.sent;
|
563
|
-
elements = _yield$editDispatcher3.elements;
|
564
|
-
saveBind(_componentTopologyGraph.TopoEvent.DATA_TYPE_RESOURCE_COMBO, elements); // 临时放这里,仅拓扑中心有
|
565
|
-
|
566
|
-
if (topo.linkDynamicStyleExecutor) {
|
567
|
-
topo.linkDynamicStyleExecutor.execute();
|
568
|
-
}
|
569
|
-
|
570
|
-
case 10:
|
571
|
-
case "end":
|
572
|
-
return _context13.stop();
|
573
|
-
}
|
574
|
-
}
|
575
|
-
}, _callee13);
|
576
|
-
}));
|
577
|
-
return _bindViewResources.apply(this, arguments);
|
578
|
-
}
|
579
|
-
|
580
531
|
function addLayerResources(_x9, _x10) {
|
581
|
-
return _addLayerResources.
|
582
|
-
|
583
|
-
|
584
|
-
function _addLayerResources() {
|
585
|
-
_addLayerResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee14(group, newResourceIds) {
|
586
|
-
var _yield$editDispatcher4, elements, newElements;
|
532
|
+
return (_addLayerResources = _addLayerResources || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(group, newResourceIds) {
|
533
|
+
var _yield$editDispatcher3, elements, newElements;
|
587
534
|
|
588
|
-
return _regenerator["default"].wrap(function
|
589
|
-
while (1) {
|
590
|
-
|
591
|
-
|
592
|
-
topo.historyManager.beginTransaction(); // 构造新的配置
|
535
|
+
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
536
|
+
while (1) switch (_context9.prev = _context9.next) {
|
537
|
+
case 0:
|
538
|
+
topo.historyManager.beginTransaction(); // 构造新的配置
|
593
539
|
|
594
|
-
|
595
|
-
|
540
|
+
_context9.next = 3;
|
541
|
+
return resourceConfig.addLayerStaticResources(group, newResourceIds);
|
596
542
|
|
597
|
-
|
598
|
-
|
599
|
-
|
543
|
+
case 3:
|
544
|
+
_context9.next = 5;
|
545
|
+
return editDispatchers.fetchDataByConfig();
|
600
546
|
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
547
|
+
case 5:
|
548
|
+
_yield$editDispatcher3 = _context9.sent;
|
549
|
+
elements = _yield$editDispatcher3.elements;
|
550
|
+
// 2022-11-10 修复 添加资源后分层重新布局问题,仅布局新增资源。替换api topo.updateElements(data)
|
551
|
+
newElements = findUNExistedElements(elements);
|
606
552
|
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
553
|
+
_rlog["default"].debug("添加分层资源", {
|
554
|
+
layer: group,
|
555
|
+
newElements: newElements
|
556
|
+
});
|
611
557
|
|
612
|
-
|
558
|
+
topo.getHtTopo().addElements(newElements); // 临时放这里,仅拓扑中心有
|
613
559
|
|
614
|
-
|
615
|
-
|
616
|
-
|
560
|
+
if (topo.linkDynamicStyleExecutor) {
|
561
|
+
topo.linkDynamicStyleExecutor.execute();
|
562
|
+
}
|
617
563
|
|
618
|
-
|
619
|
-
|
564
|
+
topo.historyManager.endTransaction();
|
565
|
+
topo.getHtTopo().getGraphView().fitContent(undefined, undefined, true); // 添加资源后隐藏资源面板
|
620
566
|
|
621
|
-
|
622
|
-
|
623
|
-
|
567
|
+
topoEditDispatchers.update({
|
568
|
+
resourceTabActiveKey: null
|
569
|
+
});
|
624
570
|
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
}
|
571
|
+
case 14:
|
572
|
+
case "end":
|
573
|
+
return _context9.stop();
|
629
574
|
}
|
630
|
-
},
|
631
|
-
}));
|
632
|
-
return _addLayerResources.apply(this, arguments);
|
575
|
+
}, _callee9);
|
576
|
+
}))).apply(this, arguments);
|
633
577
|
}
|
634
578
|
|
635
579
|
function addResourceToFirstLayer(_x11) {
|
636
|
-
return _addResourceToFirstLayer
|
637
|
-
}
|
638
|
-
|
639
|
-
function _addResourceToFirstLayer() {
|
640
|
-
_addResourceToFirstLayer = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee15(data) {
|
580
|
+
return (_addResourceToFirstLayer = _addResourceToFirstLayer || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10(data) {
|
641
581
|
var group;
|
642
|
-
return _regenerator["default"].wrap(function
|
643
|
-
while (1) {
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
return _context15.stop();
|
653
|
-
}
|
582
|
+
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
583
|
+
while (1) switch (_context10.prev = _context10.next) {
|
584
|
+
case 0:
|
585
|
+
group = resourceConfig.getGroups()[0];
|
586
|
+
_context10.next = 3;
|
587
|
+
return addLayerResources(group, data);
|
588
|
+
|
589
|
+
case 3:
|
590
|
+
case "end":
|
591
|
+
return _context10.stop();
|
654
592
|
}
|
655
|
-
},
|
656
|
-
}));
|
657
|
-
return _addResourceToFirstLayer.apply(this, arguments);
|
593
|
+
}, _callee10);
|
594
|
+
}))).apply(this, arguments);
|
658
595
|
}
|
659
596
|
|
660
597
|
function getAddResourceType() {
|
@@ -683,110 +620,92 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
683
620
|
*/
|
684
621
|
|
685
622
|
|
686
|
-
var onSaveComboRes =
|
687
|
-
|
688
|
-
return _regenerator["default"].wrap(function
|
689
|
-
while (1) {
|
690
|
-
|
691
|
-
|
692
|
-
_rlog["default"].debug("关联资源-----onSaveComboRes", data);
|
623
|
+
var onSaveComboRes = function onSaveComboRes(_x12) {
|
624
|
+
return (_ref5 = _ref5 || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11(data) {
|
625
|
+
return _regenerator["default"].wrap(function _callee11$(_context11) {
|
626
|
+
while (1) switch (_context11.prev = _context11.next) {
|
627
|
+
case 0:
|
628
|
+
_rlog["default"].debug("关联资源-----onSaveComboRes", data);
|
693
629
|
|
694
|
-
|
630
|
+
topo.historyManager.beginTransaction();
|
695
631
|
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
632
|
+
if (!(getAddResourceType() === "addToFirstLayer")) {
|
633
|
+
_context11.next = 7;
|
634
|
+
break;
|
635
|
+
}
|
700
636
|
|
701
|
-
|
702
|
-
|
637
|
+
_context11.next = 5;
|
638
|
+
return addResourceToFirstLayer(data);
|
703
639
|
|
704
|
-
|
705
|
-
|
706
|
-
|
640
|
+
case 5:
|
641
|
+
_context11.next = 9;
|
642
|
+
break;
|
707
643
|
|
708
|
-
|
709
|
-
|
710
|
-
|
644
|
+
case 7:
|
645
|
+
_context11.next = 9;
|
646
|
+
return bindViewResources(data);
|
711
647
|
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
648
|
+
case 9:
|
649
|
+
topo.historyManager.endTransaction();
|
650
|
+
topo.getHtTopo().fitContent();
|
651
|
+
topoEditDispatchers.update({
|
652
|
+
resourceTabActiveKey: null
|
653
|
+
});
|
718
654
|
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
}
|
655
|
+
case 12:
|
656
|
+
case "end":
|
657
|
+
return _context11.stop();
|
723
658
|
}
|
724
|
-
},
|
725
|
-
}));
|
659
|
+
}, _callee11);
|
660
|
+
}))).apply(this, arguments);
|
661
|
+
};
|
726
662
|
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
}();
|
663
|
+
var onSaveTopo = function onSaveTopo(_x13) {
|
664
|
+
return (_ref6 = _ref6 || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13(data) {
|
665
|
+
var id, config, serialize, _config$layout, template, layout, _ref7, saveConfig;
|
731
666
|
|
732
|
-
|
733
|
-
|
734
|
-
|
667
|
+
return _regenerator["default"].wrap(function _callee13$(_context13) {
|
668
|
+
while (1) switch (_context13.prev = _context13.next) {
|
669
|
+
case 0:
|
670
|
+
id = data.id, config = data.config, serialize = data.serialize;
|
671
|
+
_config$layout = config === null || config === void 0 ? void 0 : config.layout, template = _config$layout.type, layout = _config$layout.layout;
|
672
|
+
|
673
|
+
if (onSave) {
|
674
|
+
// 自定义保存
|
675
|
+
saveConfig = function saveConfig() {
|
676
|
+
return (_ref7 = _ref7 || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee12() {
|
677
|
+
return _regenerator["default"].wrap(function _callee12$(_context12) {
|
678
|
+
while (1) switch (_context12.prev = _context12.next) {
|
679
|
+
case 0:
|
680
|
+
_context12.next = 2;
|
681
|
+
return editDispatchers.saveTopo({
|
682
|
+
id: id,
|
683
|
+
layout: layout,
|
684
|
+
serialize: serialize
|
685
|
+
});
|
686
|
+
|
687
|
+
case 2:
|
688
|
+
case "end":
|
689
|
+
return _context12.stop();
|
690
|
+
}
|
691
|
+
}, _callee12);
|
692
|
+
}))).apply(this, arguments);
|
693
|
+
};
|
735
694
|
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
if (onSave) {
|
744
|
-
// 自定义保存
|
745
|
-
saveConfig = /*#__PURE__*/function () {
|
746
|
-
var _ref7 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7() {
|
747
|
-
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
748
|
-
while (1) {
|
749
|
-
switch (_context7.prev = _context7.next) {
|
750
|
-
case 0:
|
751
|
-
_context7.next = 2;
|
752
|
-
return editDispatchers.saveTopo({
|
753
|
-
id: id,
|
754
|
-
layout: layout,
|
755
|
-
serialize: serialize
|
756
|
-
});
|
757
|
-
|
758
|
-
case 2:
|
759
|
-
case "end":
|
760
|
-
return _context7.stop();
|
761
|
-
}
|
762
|
-
}
|
763
|
-
}, _callee7);
|
764
|
-
}));
|
765
|
-
|
766
|
-
return function saveConfig() {
|
767
|
-
return _ref7.apply(this, arguments);
|
768
|
-
};
|
769
|
-
}();
|
770
|
-
|
771
|
-
onSave({
|
772
|
-
topo: topo,
|
773
|
-
data: data,
|
774
|
-
saveConfig: saveConfig
|
775
|
-
});
|
776
|
-
}
|
695
|
+
onSave({
|
696
|
+
topo: topo,
|
697
|
+
data: data,
|
698
|
+
saveConfig: saveConfig
|
699
|
+
});
|
700
|
+
}
|
777
701
|
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
}
|
702
|
+
case 3:
|
703
|
+
case "end":
|
704
|
+
return _context13.stop();
|
782
705
|
}
|
783
|
-
},
|
784
|
-
}));
|
785
|
-
|
786
|
-
return function onSaveTopo(_x13) {
|
787
|
-
return _ref6.apply(this, arguments);
|
788
|
-
};
|
789
|
-
}();
|
706
|
+
}, _callee13);
|
707
|
+
}))).apply(this, arguments);
|
708
|
+
};
|
790
709
|
|
791
710
|
var saveBind = function saveBind(type, data) {
|
792
711
|
var eventData = {
|
@@ -811,288 +730,270 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
811
730
|
*/
|
812
731
|
|
813
732
|
|
814
|
-
var bindNodeResource =
|
815
|
-
|
816
|
-
var
|
733
|
+
var bindNodeResource = function bindNodeResource(_x14) {
|
734
|
+
return (_ref8 = _ref8 || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee15(params) {
|
735
|
+
var _doBind;
|
817
736
|
|
818
|
-
|
819
|
-
while (1) {
|
820
|
-
switch (_context10.prev = _context10.next) {
|
821
|
-
case 0:
|
822
|
-
replaceOrAddRes = function _replaceOrAddRes(resources, oldResId, newResId) {
|
823
|
-
return (0, _extends2["default"])({}, resources, {
|
824
|
-
"static": [].concat(resources["static"].filter(function (item) {
|
825
|
-
return item !== oldResId;
|
826
|
-
}), [newResId])
|
827
|
-
});
|
828
|
-
};
|
737
|
+
var id, oldResId, newResId, node, parentGroupElement, htTopo, config, groupId, groupTag, _yield$editDispatcher4, elements, newData, doBind, replaceOrAddRes;
|
829
738
|
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
linkGroups: newLinkElements.filter(function (item) {
|
862
|
-
return item.type === "linkGroup";
|
863
|
-
})
|
864
|
-
};
|
865
|
-
htTopo.createElements(createElementsData); // 切换前图上如果存在集群内的节点,切换节点为集群后,移到集群内
|
866
|
-
|
867
|
-
groupElement = dm.getDataByTag(newData.id);
|
868
|
-
existedGroupChildren.forEach(function (groupChildData) {
|
869
|
-
var nodeElement = dm.getDataByTag(groupChildData.id);
|
870
|
-
nodeElement.setParent(groupElement);
|
871
|
-
});
|
739
|
+
return _regenerator["default"].wrap(function _callee15$(_context15) {
|
740
|
+
while (1) switch (_context15.prev = _context15.next) {
|
741
|
+
case 0:
|
742
|
+
replaceOrAddRes = function _replaceOrAddRes(resources, oldResId, newResId) {
|
743
|
+
return (0, _extends2["default"])({}, resources, {
|
744
|
+
"static": [].concat(resources["static"].filter(function (item) {
|
745
|
+
return item !== oldResId;
|
746
|
+
}), [newResId])
|
747
|
+
});
|
748
|
+
};
|
749
|
+
|
750
|
+
doBind = function _doBind2() {
|
751
|
+
return (_doBind = _doBind || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee14() {
|
752
|
+
var dm, newLinkElements, createElementsData, groupChildren, newGroupChildren, existedGroupChildren, groupElement, newElement, sm;
|
753
|
+
return _regenerator["default"].wrap(function _callee14$(_context14) {
|
754
|
+
while (1) switch (_context14.prev = _context14.next) {
|
755
|
+
case 0:
|
756
|
+
dm = htTopo.getGraphView().dm(); // 创建
|
757
|
+
|
758
|
+
newLinkElements = findUNExistedLinkElements(elements);
|
759
|
+
createElementsData = null;
|
760
|
+
|
761
|
+
if (newData.type === "group") {
|
762
|
+
groupChildren = (0, _topoData.findGroupChildren)(elements, newData);
|
763
|
+
newGroupChildren = [];
|
764
|
+
existedGroupChildren = [];
|
765
|
+
groupChildren.forEach(function (groupChildData) {
|
766
|
+
var ele = dm.getDataByTag(groupChildData.id);
|
767
|
+
|
768
|
+
if (ele) {
|
769
|
+
existedGroupChildren.push(groupChildData);
|
872
770
|
} else {
|
873
|
-
|
874
|
-
groups: [],
|
875
|
-
nodes: [newData],
|
876
|
-
links: newLinkElements.filter(function (item) {
|
877
|
-
return item.type === "link";
|
878
|
-
}),
|
879
|
-
linkGroups: newLinkElements.filter(function (item) {
|
880
|
-
return item.type === "linkGroup";
|
881
|
-
})
|
882
|
-
};
|
883
|
-
htTopo.createElements(createElementsData);
|
771
|
+
newGroupChildren.push(groupChildData);
|
884
772
|
}
|
773
|
+
});
|
774
|
+
createElementsData = {
|
775
|
+
groups: [newData],
|
776
|
+
nodes: newGroupChildren,
|
777
|
+
links: newLinkElements.filter(function (item) {
|
778
|
+
return item.type === "link";
|
779
|
+
}),
|
780
|
+
linkGroups: newLinkElements.filter(function (item) {
|
781
|
+
return item.type === "linkGroup";
|
782
|
+
})
|
783
|
+
};
|
784
|
+
htTopo.createElements(createElementsData); // 切换前图上如果存在集群内的节点,切换节点为集群后,移到集群内
|
785
|
+
|
786
|
+
groupElement = dm.getDataByTag(newData.id);
|
787
|
+
existedGroupChildren.forEach(function (groupChildData) {
|
788
|
+
var nodeElement = dm.getDataByTag(groupChildData.id);
|
789
|
+
nodeElement.setParent(groupElement);
|
790
|
+
});
|
791
|
+
} else {
|
792
|
+
createElementsData = {
|
793
|
+
groups: [],
|
794
|
+
nodes: [newData],
|
795
|
+
links: newLinkElements.filter(function (item) {
|
796
|
+
return item.type === "link";
|
797
|
+
}),
|
798
|
+
linkGroups: newLinkElements.filter(function (item) {
|
799
|
+
return item.type === "linkGroup";
|
800
|
+
})
|
801
|
+
};
|
802
|
+
htTopo.createElements(createElementsData);
|
803
|
+
}
|
885
804
|
|
886
|
-
|
887
|
-
|
805
|
+
_rlog["default"].debug("批量创建元素", createElementsData); // 恢复图标、大小、位置
|
888
806
|
|
889
|
-
newElement = dm.getDataByTag(newData.id);
|
890
807
|
|
891
|
-
|
892
|
-
newElement.setSize(node.getSize());
|
893
|
-
newElement.setPosition(node.getPosition());
|
894
|
-
newElement.setImage(node.getImage());
|
895
|
-
} // 选中
|
808
|
+
newElement = dm.getDataByTag(newData.id);
|
896
809
|
|
810
|
+
if (newElement) {
|
811
|
+
newElement.setSize(node.getSize());
|
812
|
+
newElement.setPosition(node.getPosition());
|
813
|
+
newElement.setImage(node.getImage());
|
814
|
+
} // 选中
|
897
815
|
|
898
|
-
sm = htTopo.getGraphView().sm();
|
899
|
-
sm.setSelection([newElement]); // 移除旧节点
|
900
816
|
|
901
|
-
|
902
|
-
|
903
|
-
// 删除关联在节点上的出口链路
|
817
|
+
sm = htTopo.getGraphView().sm();
|
818
|
+
sm.setSelection([newElement]); // 移除旧节点
|
904
819
|
|
905
|
-
|
906
|
-
|
820
|
+
dm.remove(node); // saveBind(TopoEvent.DATA_TYPE_RESOURCE_SINGLE, newDatas);
|
821
|
+
// node.a("customName", null);
|
822
|
+
// 删除关联在节点上的出口链路
|
907
823
|
|
908
|
-
|
909
|
-
|
910
|
-
if (topo.linkDynamicStyleExecutor) {
|
911
|
-
topo.linkDynamicStyleExecutor.execute();
|
912
|
-
}
|
824
|
+
_context14.next = 12;
|
825
|
+
return deleteExLink(node);
|
913
826
|
|
914
|
-
|
915
|
-
|
916
|
-
|
827
|
+
case 12:
|
828
|
+
// 临时放这里,仅拓扑中心有
|
829
|
+
if (topo.linkDynamicStyleExecutor) {
|
830
|
+
topo.linkDynamicStyleExecutor.execute();
|
917
831
|
}
|
918
|
-
}
|
919
|
-
}, _callee9);
|
920
|
-
}));
|
921
|
-
return _doBind.apply(this, arguments);
|
922
|
-
};
|
923
832
|
|
924
|
-
|
925
|
-
|
926
|
-
|
833
|
+
case 13:
|
834
|
+
case "end":
|
835
|
+
return _context14.stop();
|
836
|
+
}
|
837
|
+
}, _callee14);
|
838
|
+
}))).apply(this, arguments);
|
839
|
+
};
|
927
840
|
|
928
|
-
|
929
|
-
|
841
|
+
topo.historyManager.beginTransaction();
|
842
|
+
id = params.id, oldResId = params.oldResId, newResId = params.newResId;
|
930
843
|
|
931
|
-
|
844
|
+
_rlog["default"].debug("bindNodeResource", params);
|
932
845
|
|
933
|
-
|
846
|
+
node = topo.getDataModel().getDataById(id); // 节点所属容器
|
934
847
|
|
935
|
-
|
936
|
-
|
937
|
-
|
848
|
+
parentGroupElement = node.getParent();
|
849
|
+
htTopo = topo.getHtTopo();
|
850
|
+
config = resourceConfig.getConfig();
|
938
851
|
|
939
|
-
|
940
|
-
|
941
|
-
|
852
|
+
if (parentGroupElement) {
|
853
|
+
// 在容器中
|
854
|
+
groupId = parentGroupElement.getTag(); // 容器业务id
|
942
855
|
|
943
|
-
|
856
|
+
groupTag = parentGroupElement.a("tag"); // 容器临时id
|
944
857
|
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
858
|
+
config.groups = config.groups.map(function (g) {
|
859
|
+
// 匹配到容器,替换资源或增加
|
860
|
+
if (g.id === groupId || g.tag === groupTag) {
|
861
|
+
return (0, _extends2["default"])({}, g, {
|
862
|
+
resources: replaceOrAddRes(g.resources, oldResId, newResId)
|
863
|
+
});
|
864
|
+
} // 未匹配到容器
|
952
865
|
|
953
866
|
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
867
|
+
return g;
|
868
|
+
});
|
869
|
+
} else {
|
870
|
+
// 在画布上
|
871
|
+
config.resources = replaceOrAddRes(config.resources, oldResId, newResId);
|
872
|
+
}
|
960
873
|
|
961
|
-
|
962
|
-
|
874
|
+
_context15.next = 12;
|
875
|
+
return resourceConfig.updateConfig(config);
|
963
876
|
|
964
|
-
|
965
|
-
|
966
|
-
|
877
|
+
case 12:
|
878
|
+
_context15.next = 14;
|
879
|
+
return editDispatchers.fetchDataByConfig();
|
967
880
|
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
881
|
+
case 14:
|
882
|
+
_yield$editDispatcher4 = _context15.sent;
|
883
|
+
elements = _yield$editDispatcher4.elements;
|
884
|
+
newData = elements.find(function (item) {
|
885
|
+
return item.id === newResId;
|
886
|
+
});
|
974
887
|
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
888
|
+
if (newData) {
|
889
|
+
_context15.next = 22;
|
890
|
+
break;
|
891
|
+
}
|
979
892
|
|
980
|
-
|
893
|
+
_message["default"].error("关联资源失败");
|
981
894
|
|
982
|
-
|
895
|
+
_rlog["default"].warn("关联资源失败");
|
983
896
|
|
984
|
-
|
985
|
-
|
897
|
+
topo.historyManager.endTransaction();
|
898
|
+
return _context15.abrupt("return", false);
|
986
899
|
|
987
|
-
|
988
|
-
|
989
|
-
|
900
|
+
case 22:
|
901
|
+
_context15.next = 24;
|
902
|
+
return doBind();
|
990
903
|
|
991
|
-
|
992
|
-
|
904
|
+
case 24:
|
905
|
+
topo.historyManager.endTransaction();
|
993
906
|
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
}
|
907
|
+
case 25:
|
908
|
+
case "end":
|
909
|
+
return _context15.stop();
|
998
910
|
}
|
999
|
-
},
|
1000
|
-
}));
|
1001
|
-
|
1002
|
-
return function bindNodeResource(_x14) {
|
1003
|
-
return _ref8.apply(this, arguments);
|
1004
|
-
};
|
1005
|
-
}();
|
911
|
+
}, _callee15);
|
912
|
+
}))).apply(this, arguments);
|
913
|
+
};
|
1006
914
|
/**
|
1007
915
|
* 关联IP的图片节点
|
1008
916
|
*/
|
1009
917
|
|
1010
918
|
|
1011
919
|
function relateNodeIp(_x15, _x16) {
|
1012
|
-
return _relateNodeIp.
|
1013
|
-
}
|
1014
|
-
|
1015
|
-
function _relateNodeIp() {
|
1016
|
-
_relateNodeIp = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee16(txtValue, nodeElement) {
|
920
|
+
return (_relateNodeIp = _relateNodeIp || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee16(txtValue, nodeElement) {
|
1017
921
|
var dm, isUnique, ip, configObj, configData, _elements, newLinkElements, newLink, newLinkGroup, createElementsData, _htTopo;
|
1018
922
|
|
1019
923
|
return _regenerator["default"].wrap(function _callee16$(_context16) {
|
1020
|
-
while (1) {
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
}
|
1027
|
-
|
1028
|
-
return _context16.abrupt("return");
|
1029
|
-
|
1030
|
-
case 2:
|
1031
|
-
// if (txtValue === nodeElement.a('bindIp')) {
|
1032
|
-
// return;
|
1033
|
-
// }
|
1034
|
-
// 根据配置查询拓扑数据
|
1035
|
-
dm = topo.getDataModel(); // 执行唯一性验证
|
1036
|
-
|
1037
|
-
isUnique = (0, _exitLinkUtil.isUniqueIp)(dm, txtValue, nodeElement); // 获取关联链路
|
1038
|
-
|
1039
|
-
if (!isUnique) {
|
1040
|
-
_context16.next = 23;
|
1041
|
-
break;
|
1042
|
-
}
|
1043
|
-
|
1044
|
-
ip = (0, _exitLinkUtil.buildIpNode)(txtValue);
|
1045
|
-
_context16.next = 8;
|
1046
|
-
return deleteExLink(nodeElement);
|
924
|
+
while (1) switch (_context16.prev = _context16.next) {
|
925
|
+
case 0:
|
926
|
+
if (txtValue) {
|
927
|
+
_context16.next = 2;
|
928
|
+
break;
|
929
|
+
}
|
1047
930
|
|
1048
|
-
|
1049
|
-
nodeElement.a(ip);
|
1050
|
-
nodeElement.setName(txtValue);
|
1051
|
-
nodeElement.setTag("ip:" + txtValue); // 获取配置
|
931
|
+
return _context16.abrupt("return");
|
1052
932
|
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
933
|
+
case 2:
|
934
|
+
// if (txtValue === nodeElement.a('bindIp')) {
|
935
|
+
// return;
|
936
|
+
// }
|
937
|
+
// 根据配置查询拓扑数据
|
938
|
+
dm = topo.getDataModel(); // 执行唯一性验证
|
1056
939
|
|
1057
|
-
|
1058
|
-
_context16.next = 16;
|
1059
|
-
return editDispatchers.fetchDataByConfig();
|
940
|
+
isUnique = (0, _exitLinkUtil.isUniqueIp)(dm, txtValue, nodeElement); // 获取关联链路
|
1060
941
|
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
newLinkElements = findUNExistedLinkElements(_elements); // console.log("configData", configData, newLinkElements);
|
942
|
+
if (!isUnique) {
|
943
|
+
_context16.next = 23;
|
944
|
+
break;
|
945
|
+
}
|
1066
946
|
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
947
|
+
ip = (0, _exitLinkUtil.buildIpNode)(txtValue);
|
948
|
+
_context16.next = 8;
|
949
|
+
return deleteExLink(nodeElement);
|
950
|
+
|
951
|
+
case 8:
|
952
|
+
nodeElement.a(ip);
|
953
|
+
nodeElement.setName(txtValue);
|
954
|
+
nodeElement.setTag("ip:" + txtValue); // 获取配置
|
955
|
+
|
956
|
+
configObj = topo.resourceConfig.getConfig();
|
957
|
+
_context16.next = 14;
|
958
|
+
return resourceConfig.updateConfig(configObj);
|
959
|
+
|
960
|
+
case 14:
|
961
|
+
_context16.next = 16;
|
962
|
+
return editDispatchers.fetchDataByConfig();
|
963
|
+
|
964
|
+
case 16:
|
965
|
+
configData = _context16.sent;
|
966
|
+
// console.log("configData",configObj, configData);
|
967
|
+
_elements = configData.elements;
|
968
|
+
newLinkElements = findUNExistedLinkElements(_elements); // console.log("configData", configData, newLinkElements);
|
969
|
+
|
970
|
+
newLink = newLinkElements.filter(function (item) {
|
971
|
+
return item.type === "link";
|
972
|
+
});
|
973
|
+
newLinkGroup = newLinkElements.filter(function (item) {
|
974
|
+
return item.type === "linkGroup";
|
975
|
+
}); // const newData = elements.find((item) => item.id === `ip:${txtValue}`);
|
976
|
+
// console.log("newData",newLinkElements, newLink);
|
977
|
+
|
978
|
+
createElementsData = {
|
979
|
+
groups: [],
|
980
|
+
nodes: [],
|
981
|
+
links: newLink,
|
982
|
+
linkGroups: newLinkGroup
|
983
|
+
}; // console.log("createElementsData", createElementsData);
|
984
|
+
|
985
|
+
if ([].concat(newLink, newLinkGroup).length > 0) {
|
986
|
+
_htTopo = topo.getHtTopo();
|
987
|
+
|
988
|
+
_htTopo.createElements(createElementsData);
|
989
|
+
}
|
1087
990
|
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
}
|
991
|
+
case 23:
|
992
|
+
case "end":
|
993
|
+
return _context16.stop();
|
1092
994
|
}
|
1093
995
|
}, _callee16);
|
1094
|
-
}));
|
1095
|
-
return _relateNodeIp.apply(this, arguments);
|
996
|
+
}))).apply(this, arguments);
|
1096
997
|
}
|
1097
998
|
|
1098
999
|
var onEvent = function onEvent(e) {
|