@riil-frontend/component-topology 3.5.0-a.9 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/1.js +1 -1
- package/build/index.css +1 -1
- package/build/index.js +12 -12
- package/es/components/index.module.scss +3 -114
- package/es/core/components/AlarmListPanel/index.js +7 -12
- package/es/core/components/DisplaySettingDrawer/DisplaySetting.js +8 -5
- package/es/core/components/DisplaySettingDrawer/NodeTag.js +10 -5
- package/es/core/components/DisplaySettingDrawer/NodeTip.js +10 -5
- package/es/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +3 -21
- package/es/core/components/TopoView/topoView.js +1 -0
- package/es/core/editor/components/settings/propertyViews/edge/CommonEdgePropertyView.js +7 -140
- package/es/core/editor/components/settings/propertyViews/edge/EdgePropertyView.js +1 -1
- package/es/core/editor/components/settings/propertyViews/node/Setting/Setting.js +1 -1
- package/es/core/editor/components/settings/propertyViews/node/data/Data.js +18 -17
- package/es/core/editor/components/titlebar/TopoEditorTitleBar.js +62 -18
- package/es/core/models/Alarm.js +206 -120
- package/es/core/models/DataModel.js +15 -1
- package/es/core/models/TopoApp.js +4 -6
- package/es/core/models/cache/CiTyeCache.js +4 -0
- package/es/core/models/utils/linkUtils.js +87 -42
- package/es/core/services/index.js +28 -0
- package/es/core/utils/saveSerialize.js +34 -0
- package/es/core/viewer/components/plugins/ResourceDetail/ResourceDetail.js +0 -37
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BaseInfo.js +31 -28
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +44 -43
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverviewMetric.js +39 -26
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useCiData.js +0 -0
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useMetricModels.js +143 -0
- package/es/core/viewer/components/plugins/ResourceDetail/getCiDisplayMetricModels.js +37 -0
- package/es/core/viewer/components/titlebar/BasicTools.js +11 -1
- package/es/core/viewer/components/titlebar/widgets/AlarmListShowButton.js +21 -13
- package/es/hooks/useGraphAlarmDisplay.js +3 -4
- package/es/hooks/useManageStatus.js +1 -1
- package/es/hooks/useTopoEdit.js +200 -144
- package/es/hooks/useTopoEventListener.js +13 -6
- package/es/index.js +3 -2
- package/es/models/topoConfig.js +0 -1
- package/es/models/topoMod.js +15 -10
- package/es/topoCenter/components/Topo404.js +3 -1
- package/es/topoCenter/components/TopoNoPermission.js +3 -1
- package/es/topoCenter/components/TopoView.js +77 -32
- package/es/topoCenter/components/Topology.js +2 -0
- package/es/topoCenter/components/editor/propertyViews/edge/EdgePropertyView.js +10 -0
- package/es/topoCenter/components/editor/propertyViews/edge/LinkPropertyView/Data/index.js +5 -20
- package/es/topoCenter/components/editor/propertyViews/edge/LinkPropertyView/LinkPropertyView.js +12 -6
- package/es/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/AddLinkDrawer.js +84 -43
- package/es/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/components/editLinkInfo.js +60 -34
- package/es/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/index.module.scss +9 -0
- package/es/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/server.js +62 -19
- package/es/topoCenter/components/editor/propertyViews/edge/link/BindExitLinkSelect.js +157 -0
- package/es/topoCenter/components/editor/propertyViews/edge/link/LinkInfoPreview.js +1 -2
- package/es/topoCenter/hooks/editor/useDeleteEdges.js +2 -3
- package/es/topoCenter/utils/resourcePermissionUtil.js +18 -12
- package/es/utils/topoData.js +15 -13
- package/lib/components/index.module.scss +3 -114
- package/lib/core/components/AlarmListPanel/index.js +7 -12
- package/lib/core/components/DisplaySettingDrawer/DisplaySetting.js +9 -5
- package/lib/core/components/DisplaySettingDrawer/NodeTag.js +11 -5
- package/lib/core/components/DisplaySettingDrawer/NodeTip.js +12 -5
- package/lib/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +3 -21
- package/lib/core/components/TopoView/topoView.js +1 -0
- package/lib/core/editor/components/settings/propertyViews/edge/CommonEdgePropertyView.js +7 -151
- package/lib/core/editor/components/settings/propertyViews/edge/EdgePropertyView.js +2 -2
- package/lib/core/editor/components/settings/propertyViews/node/Setting/Setting.js +1 -1
- package/lib/core/editor/components/settings/propertyViews/node/data/Data.js +17 -16
- package/lib/core/editor/components/titlebar/TopoEditorTitleBar.js +66 -20
- package/lib/core/models/Alarm.js +206 -121
- package/lib/core/models/DataModel.js +15 -1
- package/lib/core/models/TopoApp.js +4 -6
- package/lib/core/models/cache/CiTyeCache.js +4 -0
- package/lib/core/models/utils/linkUtils.js +92 -43
- package/lib/core/services/index.js +29 -0
- package/lib/core/utils/saveSerialize.js +43 -0
- package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetail.js +0 -37
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BaseInfo.js +29 -26
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +45 -43
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverviewMetric.js +38 -24
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useCiData.js +1 -0
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useMetricModels.js +155 -0
- package/lib/core/viewer/components/plugins/ResourceDetail/getCiDisplayMetricModels.js +47 -0
- package/lib/core/viewer/components/titlebar/BasicTools.js +11 -1
- package/lib/core/viewer/components/titlebar/widgets/AlarmListShowButton.js +22 -15
- package/lib/hooks/useGraphAlarmDisplay.js +3 -5
- package/lib/hooks/useManageStatus.js +1 -1
- package/lib/hooks/useTopoEdit.js +197 -141
- package/lib/hooks/useTopoEventListener.js +13 -6
- package/lib/index.js +5 -0
- package/lib/models/topoConfig.js +0 -1
- package/lib/models/topoMod.js +15 -10
- package/lib/topoCenter/components/Topo404.js +4 -1
- package/lib/topoCenter/components/TopoNoPermission.js +4 -1
- package/lib/topoCenter/components/TopoView.js +78 -33
- package/lib/topoCenter/components/Topology.js +3 -0
- package/lib/topoCenter/components/editor/propertyViews/edge/EdgePropertyView.js +22 -0
- package/lib/topoCenter/components/editor/propertyViews/edge/LinkPropertyView/Data/index.js +5 -21
- package/lib/topoCenter/components/editor/propertyViews/edge/LinkPropertyView/LinkPropertyView.js +13 -8
- package/lib/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/AddLinkDrawer.js +87 -42
- package/lib/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/components/editLinkInfo.js +61 -37
- package/lib/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/index.module.scss +9 -0
- package/lib/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/server.js +62 -18
- package/lib/topoCenter/components/editor/propertyViews/edge/link/BindExitLinkSelect.js +183 -0
- package/lib/topoCenter/components/editor/propertyViews/edge/link/LinkInfoPreview.js +1 -2
- package/lib/topoCenter/hooks/editor/useDeleteEdges.js +2 -3
- package/lib/topoCenter/utils/resourcePermissionUtil.js +20 -12
- package/lib/utils/topoData.js +15 -13
- package/package.json +5 -5
package/lib/hooks/useTopoEdit.js
CHANGED
|
@@ -55,15 +55,15 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
55
55
|
resourceConfig: resourceConfig
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
-
var _store$useModel = store.useModel(
|
|
58
|
+
var _store$useModel = store.useModel("topoEdit"),
|
|
59
59
|
topoEditState = _store$useModel[0],
|
|
60
60
|
topoEditDispatchers = _store$useModel[1];
|
|
61
61
|
|
|
62
|
-
var _store$useModel2 = store.useModel(
|
|
62
|
+
var _store$useModel2 = store.useModel("topoConfig"),
|
|
63
63
|
editState = _store$useModel2[0],
|
|
64
64
|
editDispatchers = _store$useModel2[1];
|
|
65
65
|
|
|
66
|
-
var _store$useModel3 = store.useModel(
|
|
66
|
+
var _store$useModel3 = store.useModel("topoMod"),
|
|
67
67
|
topoState = _store$useModel3[0],
|
|
68
68
|
topoDispatchers = _store$useModel3[1];
|
|
69
69
|
|
|
@@ -110,7 +110,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
var addResourceToView = function addResourceToView() {
|
|
113
|
-
_rlog["default"].debug(
|
|
113
|
+
_rlog["default"].debug("addResourceToView", resourceConfig.getViewResources());
|
|
114
114
|
|
|
115
115
|
setComboResData(resourceConfig.getViewResources());
|
|
116
116
|
setShowComboResDrawer(true);
|
|
@@ -122,7 +122,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
122
122
|
// 从拓扑图获取分层和资源配置
|
|
123
123
|
var config = resourceConfig.getConfigFromHt(topo.getDataModel());
|
|
124
124
|
|
|
125
|
-
_rlog["default"].info(
|
|
125
|
+
_rlog["default"].info("onLayerAdd", {
|
|
126
126
|
config: config
|
|
127
127
|
}); // 如果非分层拓扑且有分层,切换到分层模板,设置方向
|
|
128
128
|
|
|
@@ -142,7 +142,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
142
142
|
|
|
143
143
|
var config = resourceConfig.getConfigFromHt(topo.getDataModel());
|
|
144
144
|
|
|
145
|
-
_rlog["default"].info(
|
|
145
|
+
_rlog["default"].info("deleteLayer", {
|
|
146
146
|
config: config
|
|
147
147
|
}); // 如果没有分层,将拓扑类型切换为空白模板
|
|
148
148
|
|
|
@@ -167,13 +167,13 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
167
167
|
|
|
168
168
|
|
|
169
169
|
_dialog["default"].confirm({
|
|
170
|
-
title:
|
|
171
|
-
content:
|
|
170
|
+
title: "删除",
|
|
171
|
+
content: "若执行相关操作,此分层包含的内容也会一同被删除,确定删除吗?",
|
|
172
172
|
okProps: {
|
|
173
|
-
children:
|
|
173
|
+
children: "确定"
|
|
174
174
|
},
|
|
175
175
|
messageProps: {
|
|
176
|
-
type:
|
|
176
|
+
type: "warning"
|
|
177
177
|
},
|
|
178
178
|
onOk: function () {
|
|
179
179
|
var _onOk = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
@@ -225,13 +225,13 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
225
225
|
|
|
226
226
|
|
|
227
227
|
_dialog["default"].confirm({
|
|
228
|
-
title:
|
|
229
|
-
content:
|
|
228
|
+
title: "删除",
|
|
229
|
+
content: "若执行相关操作,此区域包含的内容也会一同被删除,确定删除吗?",
|
|
230
230
|
okProps: {
|
|
231
|
-
children:
|
|
231
|
+
children: "确定"
|
|
232
232
|
},
|
|
233
233
|
messageProps: {
|
|
234
|
-
type:
|
|
234
|
+
type: "warning"
|
|
235
235
|
},
|
|
236
236
|
onOk: function () {
|
|
237
237
|
var _onOk2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
@@ -307,7 +307,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
307
307
|
return newGroup;
|
|
308
308
|
});
|
|
309
309
|
|
|
310
|
-
_rlog["default"].info(
|
|
310
|
+
_rlog["default"].info("删除容器内的单个资源", {
|
|
311
311
|
groups: groups,
|
|
312
312
|
node: node,
|
|
313
313
|
newGroups: newGroups
|
|
@@ -325,18 +325,63 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
325
325
|
var nodeDeleteable = params.nodeDeleteable || ((_topo$options$editor = topo.options.editor) === null || _topo$options$editor === void 0 ? void 0 : _topo$options$editor.nodeDeleteable);
|
|
326
326
|
|
|
327
327
|
if (nodeDeleteable === undefined || nodeDeleteable(data)) {
|
|
328
|
-
if (typeof onNodeDelete ===
|
|
328
|
+
if (typeof onNodeDelete === "function") {
|
|
329
329
|
onNodeDelete(data);
|
|
330
330
|
} else {
|
|
331
331
|
deleteNode(data);
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
};
|
|
334
|
+
}; // 删除关联在节点上的出口链路
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
var deleteExLink = /*#__PURE__*/function () {
|
|
338
|
+
var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(node) {
|
|
339
|
+
var _node$getEdges$toArra, _node$getEdges;
|
|
340
|
+
|
|
341
|
+
var config, edges, exportLinkIdList;
|
|
342
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
343
|
+
while (1) {
|
|
344
|
+
switch (_context4.prev = _context4.next) {
|
|
345
|
+
case 0:
|
|
346
|
+
config = resourceConfig.getConfig(); // console.log("删除关联在节点上的出口链路- node, config", node, config);
|
|
347
|
+
|
|
348
|
+
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 = [];
|
|
349
|
+
|
|
350
|
+
if (!(edges.length > 0)) {
|
|
351
|
+
_context4.next = 9;
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
exportLinkIdList = [].concat(config.exportLinkIdList);
|
|
356
|
+
console.log("删除关联在节点上的出口链路- edge", edges);
|
|
357
|
+
edges.map(function (edge) {
|
|
358
|
+
if (edge.a("connect_type") === "exit" && exportLinkIdList.indexOf(edge.getTag() >= 0)) {
|
|
359
|
+
// exLink.push(edge);
|
|
360
|
+
topo.getGraphView().dm().remove(edge);
|
|
361
|
+
exportLinkIdList.splice(config.exportLinkIdList.indexOf(edge.getTag()), 1);
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
config.exportLinkIdList = exportLinkIdList;
|
|
365
|
+
_context4.next = 9;
|
|
366
|
+
return resourceConfig.updateConfig(config);
|
|
367
|
+
|
|
368
|
+
case 9:
|
|
369
|
+
case "end":
|
|
370
|
+
return _context4.stop();
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}, _callee4);
|
|
374
|
+
}));
|
|
375
|
+
|
|
376
|
+
return function deleteExLink(_x) {
|
|
377
|
+
return _ref3.apply(this, arguments);
|
|
378
|
+
};
|
|
379
|
+
}();
|
|
335
380
|
|
|
336
381
|
var onDeleteElement = function onDeleteElement(data) {
|
|
337
382
|
var dtype = data.dtype;
|
|
338
383
|
|
|
339
|
-
_rlog["default"].info(
|
|
384
|
+
_rlog["default"].info("onDeleteElement", data);
|
|
340
385
|
|
|
341
386
|
if ((0, _htElementUtils.isLayer)(data)) {
|
|
342
387
|
handleDeleteLayer(data);
|
|
@@ -360,18 +405,18 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
360
405
|
}
|
|
361
406
|
|
|
362
407
|
switch (dtype) {
|
|
363
|
-
case
|
|
408
|
+
case "link":
|
|
364
409
|
if (onLineDelete) {
|
|
365
410
|
onLineDelete(data);
|
|
366
411
|
}
|
|
367
412
|
|
|
368
413
|
break;
|
|
369
414
|
|
|
370
|
-
case
|
|
415
|
+
case "device":
|
|
371
416
|
handleDeleteNode(data);
|
|
372
417
|
break;
|
|
373
418
|
|
|
374
|
-
case
|
|
419
|
+
case "container":
|
|
375
420
|
deleteGroup(data);
|
|
376
421
|
break;
|
|
377
422
|
|
|
@@ -385,41 +430,41 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
385
430
|
*/
|
|
386
431
|
|
|
387
432
|
|
|
388
|
-
function bindGroupResources(
|
|
433
|
+
function bindGroupResources(_x2, _x3) {
|
|
389
434
|
return _bindGroupResources.apply(this, arguments);
|
|
390
435
|
}
|
|
391
436
|
|
|
392
437
|
function _bindGroupResources() {
|
|
393
|
-
_bindGroupResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
438
|
+
_bindGroupResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(group, resources) {
|
|
394
439
|
var id, tag, _yield$editDispatcher2, elements, nodeElements, existedLinkIds, newLinkElements, updateElements;
|
|
395
440
|
|
|
396
|
-
return _regenerator["default"].wrap(function
|
|
441
|
+
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
|
397
442
|
while (1) {
|
|
398
|
-
switch (
|
|
443
|
+
switch (_context9.prev = _context9.next) {
|
|
399
444
|
case 0:
|
|
400
445
|
id = group.id, tag = group.tag;
|
|
401
446
|
|
|
402
|
-
_rlog["default"].debug(
|
|
447
|
+
_rlog["default"].debug("bindGroupResources--id, tag", id, tag);
|
|
403
448
|
|
|
404
|
-
|
|
449
|
+
_context9.next = 4;
|
|
405
450
|
return resourceConfig.updateGroupResources(group, resources);
|
|
406
451
|
|
|
407
452
|
case 4:
|
|
408
|
-
|
|
453
|
+
_context9.next = 6;
|
|
409
454
|
return editDispatchers.fetchDataByConfig();
|
|
410
455
|
|
|
411
456
|
case 6:
|
|
412
|
-
_yield$editDispatcher2 =
|
|
457
|
+
_yield$editDispatcher2 = _context9.sent;
|
|
413
458
|
elements = _yield$editDispatcher2.elements;
|
|
414
459
|
nodeElements = elements.filter(function (element) {
|
|
415
460
|
var type = element.type,
|
|
416
461
|
groupId = element.groupId,
|
|
417
462
|
groupTag = element.groupTag;
|
|
418
|
-
return type ===
|
|
463
|
+
return type === "node" && (groupId === id || groupTag === tag);
|
|
419
464
|
});
|
|
420
465
|
existedLinkIds = resourceConfig.getAllEdgeResourceIds();
|
|
421
466
|
newLinkElements = elements.filter(function (element) {
|
|
422
|
-
return (element.type ===
|
|
467
|
+
return (element.type === "link" || element.type === "linkGroup") && existedLinkIds.indexOf(element.id) === -1;
|
|
423
468
|
});
|
|
424
469
|
updateElements = [].concat(nodeElements, newLinkElements);
|
|
425
470
|
|
|
@@ -433,15 +478,15 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
433
478
|
|
|
434
479
|
case 13:
|
|
435
480
|
case "end":
|
|
436
|
-
return
|
|
481
|
+
return _context9.stop();
|
|
437
482
|
}
|
|
438
483
|
}
|
|
439
|
-
},
|
|
484
|
+
}, _callee9);
|
|
440
485
|
}));
|
|
441
486
|
return _bindGroupResources.apply(this, arguments);
|
|
442
487
|
}
|
|
443
488
|
|
|
444
|
-
function addGroupResources(
|
|
489
|
+
function addGroupResources(_x4, _x5) {
|
|
445
490
|
return _addGroupResources.apply(this, arguments);
|
|
446
491
|
}
|
|
447
492
|
/**
|
|
@@ -450,11 +495,11 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
450
495
|
|
|
451
496
|
|
|
452
497
|
function _addGroupResources() {
|
|
453
|
-
_addGroupResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
498
|
+
_addGroupResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10(group, newResourceIds) {
|
|
454
499
|
var groupConfig, resources, groupData;
|
|
455
|
-
return _regenerator["default"].wrap(function
|
|
500
|
+
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
|
456
501
|
while (1) {
|
|
457
|
-
switch (
|
|
502
|
+
switch (_context10.prev = _context10.next) {
|
|
458
503
|
case 0:
|
|
459
504
|
groupConfig = resourceConfig.getGroupConfigByElement(group);
|
|
460
505
|
resources = {
|
|
@@ -462,22 +507,22 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
462
507
|
};
|
|
463
508
|
groupData = {
|
|
464
509
|
id: group.getTag(),
|
|
465
|
-
tag: group.a(
|
|
510
|
+
tag: group.a("tag")
|
|
466
511
|
};
|
|
467
|
-
|
|
512
|
+
_context10.next = 5;
|
|
468
513
|
return bindGroupResources(groupData, resources, newResourceIds);
|
|
469
514
|
|
|
470
515
|
case 5:
|
|
471
516
|
case "end":
|
|
472
|
-
return
|
|
517
|
+
return _context10.stop();
|
|
473
518
|
}
|
|
474
519
|
}
|
|
475
|
-
},
|
|
520
|
+
}, _callee10);
|
|
476
521
|
}));
|
|
477
522
|
return _addGroupResources.apply(this, arguments);
|
|
478
523
|
}
|
|
479
524
|
|
|
480
|
-
function bindViewResources(
|
|
525
|
+
function bindViewResources(_x6) {
|
|
481
526
|
return _bindViewResources.apply(this, arguments);
|
|
482
527
|
}
|
|
483
528
|
/**
|
|
@@ -489,24 +534,25 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
489
534
|
|
|
490
535
|
|
|
491
536
|
function _bindViewResources() {
|
|
492
|
-
_bindViewResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
537
|
+
_bindViewResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11(data) {
|
|
493
538
|
var config, _yield$editDispatcher3, elements;
|
|
494
539
|
|
|
495
|
-
return _regenerator["default"].wrap(function
|
|
540
|
+
return _regenerator["default"].wrap(function _callee11$(_context11) {
|
|
496
541
|
while (1) {
|
|
497
|
-
switch (
|
|
542
|
+
switch (_context11.prev = _context11.next) {
|
|
498
543
|
case 0:
|
|
544
|
+
console.log("关联视图的资源", data);
|
|
499
545
|
config = resourceConfig.getConfig();
|
|
500
546
|
config.resources = data;
|
|
501
|
-
|
|
547
|
+
_context11.next = 5;
|
|
502
548
|
return resourceConfig.updateConfig(config);
|
|
503
549
|
|
|
504
|
-
case
|
|
505
|
-
|
|
550
|
+
case 5:
|
|
551
|
+
_context11.next = 7;
|
|
506
552
|
return editDispatchers.fetchDataByConfig();
|
|
507
553
|
|
|
508
|
-
case
|
|
509
|
-
_yield$editDispatcher3 =
|
|
554
|
+
case 7:
|
|
555
|
+
_yield$editDispatcher3 = _context11.sent;
|
|
510
556
|
elements = _yield$editDispatcher3.topoDataTrans;
|
|
511
557
|
saveBind(_componentTopologyGraph.TopoEvent.DATA_TYPE_RESOURCE_COMBO, elements); // 临时放这里,仅拓扑中心有
|
|
512
558
|
|
|
@@ -514,37 +560,37 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
514
560
|
topo.linkDynamicStyleExecutor.execute();
|
|
515
561
|
}
|
|
516
562
|
|
|
517
|
-
case
|
|
563
|
+
case 11:
|
|
518
564
|
case "end":
|
|
519
|
-
return
|
|
565
|
+
return _context11.stop();
|
|
520
566
|
}
|
|
521
567
|
}
|
|
522
|
-
},
|
|
568
|
+
}, _callee11);
|
|
523
569
|
}));
|
|
524
570
|
return _bindViewResources.apply(this, arguments);
|
|
525
571
|
}
|
|
526
572
|
|
|
527
|
-
function addLayerResources(
|
|
573
|
+
function addLayerResources(_x7, _x8) {
|
|
528
574
|
return _addLayerResources.apply(this, arguments);
|
|
529
575
|
}
|
|
530
576
|
|
|
531
577
|
function _addLayerResources() {
|
|
532
|
-
_addLayerResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
578
|
+
_addLayerResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee12(group, newResourceIds) {
|
|
533
579
|
var _yield$editDispatcher4, topoData, data;
|
|
534
580
|
|
|
535
|
-
return _regenerator["default"].wrap(function
|
|
581
|
+
return _regenerator["default"].wrap(function _callee12$(_context12) {
|
|
536
582
|
while (1) {
|
|
537
|
-
switch (
|
|
583
|
+
switch (_context12.prev = _context12.next) {
|
|
538
584
|
case 0:
|
|
539
|
-
|
|
585
|
+
_context12.next = 2;
|
|
540
586
|
return resourceConfig.addLayerStaticResources(group, newResourceIds);
|
|
541
587
|
|
|
542
588
|
case 2:
|
|
543
|
-
|
|
589
|
+
_context12.next = 4;
|
|
544
590
|
return editDispatchers.fetchDataByConfig();
|
|
545
591
|
|
|
546
592
|
case 4:
|
|
547
|
-
_yield$editDispatcher4 =
|
|
593
|
+
_yield$editDispatcher4 = _context12.sent;
|
|
548
594
|
topoData = _yield$editDispatcher4.topoData;
|
|
549
595
|
// 过滤出新增的资源和链路
|
|
550
596
|
data = {
|
|
@@ -556,7 +602,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
556
602
|
})
|
|
557
603
|
}; // 添加到分层
|
|
558
604
|
|
|
559
|
-
|
|
605
|
+
_context12.next = 9;
|
|
560
606
|
return topo.addElements(data);
|
|
561
607
|
|
|
562
608
|
case 9:
|
|
@@ -567,35 +613,35 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
567
613
|
|
|
568
614
|
case 10:
|
|
569
615
|
case "end":
|
|
570
|
-
return
|
|
616
|
+
return _context12.stop();
|
|
571
617
|
}
|
|
572
618
|
}
|
|
573
|
-
},
|
|
619
|
+
}, _callee12);
|
|
574
620
|
}));
|
|
575
621
|
return _addLayerResources.apply(this, arguments);
|
|
576
622
|
}
|
|
577
623
|
|
|
578
|
-
function addResourceToFirstLayer(
|
|
624
|
+
function addResourceToFirstLayer(_x9) {
|
|
579
625
|
return _addResourceToFirstLayer.apply(this, arguments);
|
|
580
626
|
}
|
|
581
627
|
|
|
582
628
|
function _addResourceToFirstLayer() {
|
|
583
|
-
_addResourceToFirstLayer = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
629
|
+
_addResourceToFirstLayer = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13(data) {
|
|
584
630
|
var group;
|
|
585
|
-
return _regenerator["default"].wrap(function
|
|
631
|
+
return _regenerator["default"].wrap(function _callee13$(_context13) {
|
|
586
632
|
while (1) {
|
|
587
|
-
switch (
|
|
633
|
+
switch (_context13.prev = _context13.next) {
|
|
588
634
|
case 0:
|
|
589
635
|
group = resourceConfig.getGroups()[0];
|
|
590
|
-
|
|
636
|
+
_context13.next = 3;
|
|
591
637
|
return addLayerResources(group, data);
|
|
592
638
|
|
|
593
639
|
case 3:
|
|
594
640
|
case "end":
|
|
595
|
-
return
|
|
641
|
+
return _context13.stop();
|
|
596
642
|
}
|
|
597
643
|
}
|
|
598
|
-
},
|
|
644
|
+
}, _callee13);
|
|
599
645
|
}));
|
|
600
646
|
return _addResourceToFirstLayer.apply(this, arguments);
|
|
601
647
|
}
|
|
@@ -604,7 +650,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
604
650
|
var type;
|
|
605
651
|
|
|
606
652
|
if (isLayerTopo) {
|
|
607
|
-
type =
|
|
653
|
+
type = "addToFirstLayer";
|
|
608
654
|
}
|
|
609
655
|
|
|
610
656
|
return type;
|
|
@@ -617,119 +663,119 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
617
663
|
|
|
618
664
|
|
|
619
665
|
function getAddResourceDrawerMode() {
|
|
620
|
-
return getAddResourceType() ===
|
|
666
|
+
return getAddResourceType() === "addToFirstLayer" ? "new" : "all";
|
|
621
667
|
}
|
|
622
668
|
|
|
623
669
|
var onSaveComboRes = /*#__PURE__*/function () {
|
|
624
|
-
var
|
|
625
|
-
return _regenerator["default"].wrap(function
|
|
670
|
+
var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(data) {
|
|
671
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
626
672
|
while (1) {
|
|
627
|
-
switch (
|
|
673
|
+
switch (_context5.prev = _context5.next) {
|
|
628
674
|
case 0:
|
|
629
|
-
_rlog["default"].debug(
|
|
675
|
+
_rlog["default"].debug("关联资源-----onSaveComboRes", data);
|
|
630
676
|
|
|
631
|
-
if (!(getAddResourceType() ===
|
|
632
|
-
|
|
677
|
+
if (!(getAddResourceType() === "addToFirstLayer")) {
|
|
678
|
+
_context5.next = 6;
|
|
633
679
|
break;
|
|
634
680
|
}
|
|
635
681
|
|
|
636
|
-
|
|
682
|
+
_context5.next = 4;
|
|
637
683
|
return addResourceToFirstLayer(data);
|
|
638
684
|
|
|
639
685
|
case 4:
|
|
640
|
-
|
|
686
|
+
_context5.next = 8;
|
|
641
687
|
break;
|
|
642
688
|
|
|
643
689
|
case 6:
|
|
644
|
-
|
|
690
|
+
_context5.next = 8;
|
|
645
691
|
return bindViewResources(data);
|
|
646
692
|
|
|
647
693
|
case 8:
|
|
648
694
|
case "end":
|
|
649
|
-
return
|
|
695
|
+
return _context5.stop();
|
|
650
696
|
}
|
|
651
697
|
}
|
|
652
|
-
},
|
|
698
|
+
}, _callee5);
|
|
653
699
|
}));
|
|
654
700
|
|
|
655
|
-
return function onSaveComboRes(
|
|
656
|
-
return
|
|
701
|
+
return function onSaveComboRes(_x10) {
|
|
702
|
+
return _ref4.apply(this, arguments);
|
|
657
703
|
};
|
|
658
704
|
}();
|
|
659
705
|
|
|
660
|
-
function checkSavePermission(
|
|
706
|
+
function checkSavePermission(_x11) {
|
|
661
707
|
return _checkSavePermission.apply(this, arguments);
|
|
662
708
|
}
|
|
663
709
|
|
|
664
710
|
function _checkSavePermission() {
|
|
665
|
-
_checkSavePermission = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
711
|
+
_checkSavePermission = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee14(id) {
|
|
666
712
|
var permission;
|
|
667
|
-
return _regenerator["default"].wrap(function
|
|
713
|
+
return _regenerator["default"].wrap(function _callee14$(_context14) {
|
|
668
714
|
while (1) {
|
|
669
|
-
switch (
|
|
715
|
+
switch (_context14.prev = _context14.next) {
|
|
670
716
|
case 0:
|
|
671
|
-
|
|
717
|
+
_context14.next = 2;
|
|
672
718
|
return topoDispatchers.getTopoPermission({
|
|
673
719
|
id: id,
|
|
674
720
|
update: false
|
|
675
721
|
});
|
|
676
722
|
|
|
677
723
|
case 2:
|
|
678
|
-
permission =
|
|
724
|
+
permission = _context14.sent;
|
|
679
725
|
|
|
680
726
|
if (!_topoPermissionUtil["default"].isEditable(permission)) {
|
|
681
|
-
|
|
727
|
+
_context14.next = 5;
|
|
682
728
|
break;
|
|
683
729
|
}
|
|
684
730
|
|
|
685
|
-
return
|
|
731
|
+
return _context14.abrupt("return", true);
|
|
686
732
|
|
|
687
733
|
case 5:
|
|
688
734
|
_dialog["default"].alert({
|
|
689
|
-
title:
|
|
690
|
-
content:
|
|
735
|
+
title: "没有权限进行此操作",
|
|
736
|
+
content: "您的权限发生了变化,请联系相关管理员。",
|
|
691
737
|
okProps: {
|
|
692
|
-
children:
|
|
738
|
+
children: "确定"
|
|
693
739
|
},
|
|
694
740
|
onOk: function onOk() {}
|
|
695
741
|
});
|
|
696
742
|
|
|
697
|
-
return
|
|
743
|
+
return _context14.abrupt("return", false);
|
|
698
744
|
|
|
699
745
|
case 7:
|
|
700
746
|
case "end":
|
|
701
|
-
return
|
|
747
|
+
return _context14.stop();
|
|
702
748
|
}
|
|
703
749
|
}
|
|
704
|
-
},
|
|
750
|
+
}, _callee14);
|
|
705
751
|
}));
|
|
706
752
|
return _checkSavePermission.apply(this, arguments);
|
|
707
753
|
}
|
|
708
754
|
|
|
709
755
|
var onSaveTopo = /*#__PURE__*/function () {
|
|
710
|
-
var
|
|
756
|
+
var _ref5 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(data) {
|
|
711
757
|
var id, config, serialize, _config$layout, template, layout, saveConfig, valid, saveData;
|
|
712
758
|
|
|
713
|
-
return _regenerator["default"].wrap(function
|
|
759
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
714
760
|
while (1) {
|
|
715
|
-
switch (
|
|
761
|
+
switch (_context7.prev = _context7.next) {
|
|
716
762
|
case 0:
|
|
717
763
|
id = data.id, config = data.config, serialize = data.serialize;
|
|
718
764
|
_config$layout = config === null || config === void 0 ? void 0 : config.layout, template = _config$layout.type, layout = _config$layout.layout;
|
|
719
765
|
|
|
720
766
|
if (!onSave) {
|
|
721
|
-
|
|
767
|
+
_context7.next = 6;
|
|
722
768
|
break;
|
|
723
769
|
}
|
|
724
770
|
|
|
725
771
|
// 自定义保存
|
|
726
772
|
saveConfig = /*#__PURE__*/function () {
|
|
727
|
-
var
|
|
728
|
-
return _regenerator["default"].wrap(function
|
|
773
|
+
var _ref6 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6() {
|
|
774
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
729
775
|
while (1) {
|
|
730
|
-
switch (
|
|
776
|
+
switch (_context6.prev = _context6.next) {
|
|
731
777
|
case 0:
|
|
732
|
-
|
|
778
|
+
_context6.next = 2;
|
|
733
779
|
return editDispatchers.saveTopo({
|
|
734
780
|
id: id,
|
|
735
781
|
layout: layout,
|
|
@@ -738,14 +784,14 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
738
784
|
|
|
739
785
|
case 2:
|
|
740
786
|
case "end":
|
|
741
|
-
return
|
|
787
|
+
return _context6.stop();
|
|
742
788
|
}
|
|
743
789
|
}
|
|
744
|
-
},
|
|
790
|
+
}, _callee6);
|
|
745
791
|
}));
|
|
746
792
|
|
|
747
793
|
return function saveConfig() {
|
|
748
|
-
return
|
|
794
|
+
return _ref6.apply(this, arguments);
|
|
749
795
|
};
|
|
750
796
|
}();
|
|
751
797
|
|
|
@@ -753,7 +799,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
753
799
|
data: data,
|
|
754
800
|
saveConfig: saveConfig
|
|
755
801
|
});
|
|
756
|
-
return
|
|
802
|
+
return _context7.abrupt("return");
|
|
757
803
|
|
|
758
804
|
case 6:
|
|
759
805
|
// TODO 以下逻辑移到拓扑中心
|
|
@@ -761,21 +807,21 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
761
807
|
saving: true
|
|
762
808
|
}); // 检查权限
|
|
763
809
|
|
|
764
|
-
|
|
810
|
+
_context7.next = 9;
|
|
765
811
|
return checkSavePermission(id);
|
|
766
812
|
|
|
767
813
|
case 9:
|
|
768
|
-
valid =
|
|
814
|
+
valid = _context7.sent;
|
|
769
815
|
|
|
770
816
|
if (valid) {
|
|
771
|
-
|
|
817
|
+
_context7.next = 13;
|
|
772
818
|
break;
|
|
773
819
|
}
|
|
774
820
|
|
|
775
821
|
topoEditDispatchers.update({
|
|
776
822
|
saving: false
|
|
777
823
|
});
|
|
778
|
-
return
|
|
824
|
+
return _context7.abrupt("return");
|
|
779
825
|
|
|
780
826
|
case 13:
|
|
781
827
|
// 保存
|
|
@@ -785,9 +831,9 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
785
831
|
serialize: serialize
|
|
786
832
|
}, resourceConfig.getConfig());
|
|
787
833
|
|
|
788
|
-
_rlog["default"].info(
|
|
834
|
+
_rlog["default"].info("保存", saveData);
|
|
789
835
|
|
|
790
|
-
|
|
836
|
+
_context7.next = 17;
|
|
791
837
|
return editDispatchers.saveTopo(saveData);
|
|
792
838
|
|
|
793
839
|
case 17:
|
|
@@ -795,18 +841,18 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
795
841
|
saving: false
|
|
796
842
|
});
|
|
797
843
|
|
|
798
|
-
_message["default"].success(
|
|
844
|
+
_message["default"].success("保存成功!");
|
|
799
845
|
|
|
800
846
|
case 19:
|
|
801
847
|
case "end":
|
|
802
|
-
return
|
|
848
|
+
return _context7.stop();
|
|
803
849
|
}
|
|
804
850
|
}
|
|
805
|
-
},
|
|
851
|
+
}, _callee7);
|
|
806
852
|
}));
|
|
807
853
|
|
|
808
|
-
return function onSaveTopo(
|
|
809
|
-
return
|
|
854
|
+
return function onSaveTopo(_x12) {
|
|
855
|
+
return _ref5.apply(this, arguments);
|
|
810
856
|
};
|
|
811
857
|
}();
|
|
812
858
|
|
|
@@ -816,7 +862,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
816
862
|
data: data
|
|
817
863
|
};
|
|
818
864
|
|
|
819
|
-
_rlog["default"].debug(
|
|
865
|
+
_rlog["default"].debug("TopoCenter:onSaveBind", eventData);
|
|
820
866
|
|
|
821
867
|
emitEvent(_componentTopologyGraph.TopoEvent.EVENT_DATA_RESULT, eventData);
|
|
822
868
|
};
|
|
@@ -842,12 +888,12 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
842
888
|
|
|
843
889
|
|
|
844
890
|
var bindNodeResource = /*#__PURE__*/function () {
|
|
845
|
-
var
|
|
891
|
+
var _ref7 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(params) {
|
|
846
892
|
var id, oldResId, newResId, node, groupElement, config, groupId, groupTag, _yield$editDispatcher, elements, nodeRelatedDatas, replaceOrAddRes;
|
|
847
893
|
|
|
848
|
-
return _regenerator["default"].wrap(function
|
|
894
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
849
895
|
while (1) {
|
|
850
|
-
switch (
|
|
896
|
+
switch (_context8.prev = _context8.next) {
|
|
851
897
|
case 0:
|
|
852
898
|
replaceOrAddRes = function _replaceOrAddRes(resources, oldResId, newResId) {
|
|
853
899
|
return (0, _extends2["default"])({}, resources, {
|
|
@@ -859,7 +905,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
859
905
|
|
|
860
906
|
id = params.id, oldResId = params.oldResId, newResId = params.newResId;
|
|
861
907
|
|
|
862
|
-
_rlog["default"].debug(
|
|
908
|
+
_rlog["default"].debug("bindNodeResource", params);
|
|
863
909
|
|
|
864
910
|
node = topo.getDataModel().getDataById(id); // 节点所属容器
|
|
865
911
|
|
|
@@ -870,7 +916,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
870
916
|
// 在容器中
|
|
871
917
|
groupId = groupElement.getTag(); // 容器业务id
|
|
872
918
|
|
|
873
|
-
groupTag = groupElement.a(
|
|
919
|
+
groupTag = groupElement.a("tag"); // 容器临时id
|
|
874
920
|
|
|
875
921
|
config.groups = config.groups.map(function (g) {
|
|
876
922
|
// 匹配到容器,替换资源或增加
|
|
@@ -888,46 +934,51 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
888
934
|
config.resources = replaceOrAddRes(config.resources, oldResId, newResId);
|
|
889
935
|
}
|
|
890
936
|
|
|
891
|
-
|
|
937
|
+
_context8.next = 9;
|
|
892
938
|
return resourceConfig.updateConfig(config);
|
|
893
939
|
|
|
894
940
|
case 9:
|
|
895
|
-
|
|
941
|
+
_context8.next = 11;
|
|
896
942
|
return editDispatchers.fetchDataByConfig();
|
|
897
943
|
|
|
898
944
|
case 11:
|
|
899
|
-
_yield$editDispatcher =
|
|
945
|
+
_yield$editDispatcher = _context8.sent;
|
|
900
946
|
elements = _yield$editDispatcher.topoDataTrans;
|
|
901
947
|
// 过滤出关联的节点和连线,通知ht更新
|
|
902
948
|
nodeRelatedDatas = (0, _format.filterElementsByNodeId)(elements, newResId);
|
|
903
949
|
|
|
904
950
|
if (nodeRelatedDatas.length) {
|
|
905
|
-
|
|
951
|
+
_context8.next = 17;
|
|
906
952
|
break;
|
|
907
953
|
}
|
|
908
954
|
|
|
909
|
-
_message["default"].error(
|
|
955
|
+
_message["default"].error("关联资源失败");
|
|
910
956
|
|
|
911
|
-
return
|
|
957
|
+
return _context8.abrupt("return", false);
|
|
912
958
|
|
|
913
959
|
case 17:
|
|
914
960
|
saveBind(_componentTopologyGraph.TopoEvent.DATA_TYPE_RESOURCE_SINGLE, nodeRelatedDatas);
|
|
915
|
-
node.a(
|
|
961
|
+
node.a("customName", null); // 删除关联在节点上的出口链路
|
|
916
962
|
|
|
963
|
+
_context8.next = 21;
|
|
964
|
+
return deleteExLink(node);
|
|
965
|
+
|
|
966
|
+
case 21:
|
|
967
|
+
// 临时放这里,仅拓扑中心有
|
|
917
968
|
if (topo.linkDynamicStyleExecutor) {
|
|
918
969
|
topo.linkDynamicStyleExecutor.execute();
|
|
919
970
|
}
|
|
920
971
|
|
|
921
|
-
case
|
|
972
|
+
case 22:
|
|
922
973
|
case "end":
|
|
923
|
-
return
|
|
974
|
+
return _context8.stop();
|
|
924
975
|
}
|
|
925
976
|
}
|
|
926
|
-
},
|
|
977
|
+
}, _callee8);
|
|
927
978
|
}));
|
|
928
979
|
|
|
929
|
-
return function bindNodeResource(
|
|
930
|
-
return
|
|
980
|
+
return function bindNodeResource(_x13) {
|
|
981
|
+
return _ref7.apply(this, arguments);
|
|
931
982
|
};
|
|
932
983
|
}();
|
|
933
984
|
/**
|
|
@@ -948,7 +999,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
948
999
|
}
|
|
949
1000
|
};
|
|
950
1001
|
|
|
951
|
-
var effectsState = store.useModelEffectsState(
|
|
1002
|
+
var effectsState = store.useModelEffectsState("topoConfig");
|
|
952
1003
|
var topoLoading = effectsState.getTopoByConditions.isLoading;
|
|
953
1004
|
return {
|
|
954
1005
|
resourceConfig: resourceConfig,
|
|
@@ -1022,6 +1073,11 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
|
1022
1073
|
*/
|
|
1023
1074
|
bindNodeResource: bindNodeResource,
|
|
1024
1075
|
|
|
1076
|
+
/**
|
|
1077
|
+
* 删除节点关联的出口链路
|
|
1078
|
+
*/
|
|
1079
|
+
deleteExLink: deleteExLink,
|
|
1080
|
+
|
|
1025
1081
|
/**
|
|
1026
1082
|
* 关闭资源绑定(单选)抽屉
|
|
1027
1083
|
*/
|