@riil-frontend/component-topology 11.0.34 → 12.0.0-dev.1
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 +57 -34
- package/es/components/BatchAttrMetric/setting.js +1 -1
- package/es/components/MultiResourceDrawer/index.js +16 -18
- package/es/components/ResourceList/ResourceSelect.js +48 -50
- package/es/components/ResourceSelectDrawer/ResourceSelectDrawer.js +24 -26
- package/es/components/SingleResourceDrawer/SelectDrawer.js +18 -20
- package/es/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +23 -25
- package/es/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +78 -84
- package/es/core/components/titlebar/widgets/TitleWidget.js +5 -3
- package/es/core/editor/components/BackgroundView/UploadDialog/index.js +17 -18
- package/es/core/editor/components/BackgroundView/index.js +119 -129
- package/es/core/editor/components/CustomIconPlugin/RenameDialog.js +20 -22
- package/es/core/editor/components/CustomIconPlugin/UploadIconDialog.js +33 -34
- package/es/core/editor/components/CustomIconPlugin/utils/svgToShape.js +15 -17
- package/es/core/editor/components/GroupAddResourceDrawerPlugin/GroupAddResourceDrawer.js +7 -9
- package/es/core/editor/components/Sidebar/views/CanvasPanel/hooks/useCanvasThemeConfig.js +37 -41
- package/es/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundSetting.js +50 -54
- package/es/core/editor/components/Toolbar/widgets/FontColorButton.js +50 -54
- package/es/core/editor/components/settings/propertyViews/layer/DataTab/DefaultLayerAddResourceDrawer.js +11 -13
- package/es/core/editor/components/settings/propertyViews/node/data/BindResourceDrawer.js +21 -23
- package/es/core/editor/components/settings/propertyViews/node/data/Data.js +15 -17
- package/es/core/editor/components/settings/propertyViews/view/BackgroundSize.js +10 -12
- package/es/core/editor/components/titlebar/TopoEditorTitleBar.js +21 -27
- package/es/core/editor/hooks/useKeyboardShortcut.js +36 -32
- 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/copyElementUtil.js +171 -0
- package/es/core/editor/utils/edgeTypeStyleUtil.js +2 -4
- package/es/core/hooks/usePolling.js +117 -121
- package/es/core/hooks/useResourceConfig.js +58 -66
- package/es/core/hooks/useTopoEdit.js +473 -503
- package/es/core/models/Alarm.js +281 -298
- package/es/core/models/AttributeMetricDisplay.js +101 -107
- package/es/core/models/PluginManager.js +4 -3
- package/es/core/models/SelectionModel.js +4 -5
- package/es/core/models/TopoApp.js +205 -240
- package/es/core/models/TopoGraphView.js +18 -21
- package/es/core/models/cache/CiCache.js +28 -27
- package/es/core/models/cache/CiTypeCache.js +37 -41
- package/es/core/models/cache/DictCache.js +33 -35
- package/es/core/models/graph/Background.js +15 -17
- package/es/core/models/plugins/resourceWebControllUrl.js +76 -82
- package/es/core/models/tagstips/ElementTagTipConfig.js +34 -38
- package/es/core/models/topoData.js +68 -70
- package/es/core/models/utils/linkUtils.js +41 -43
- package/es/core/models/utils/nodeNameVisibleUtil.js +4 -4
- package/es/core/services/alarm.js +14 -16
- package/es/core/services/background.js +59 -67
- package/es/core/services/cmdb/metric.js +9 -11
- package/es/core/services/cmdb.js +20 -20
- package/es/core/services/index.js +39 -45
- package/es/core/services/overview.js +131 -151
- package/es/core/services/topo/basic.js +37 -41
- package/es/core/services/topo/tagtip.js +10 -12
- package/es/core/store/models/ciModel.js +58 -62
- package/es/core/store/models/customIcon.js +120 -134
- 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 +9 -11
- package/es/core/store/models/topoConfig.js +215 -231
- package/es/core/store/models/topoGraphView.js +4 -6
- package/es/core/store/models/topoMod.js +373 -395
- package/es/core/utils/imageUtil.js +18 -20
- package/es/core/utils/metricUtil.js +5 -0
- package/es/core/utils/saveSerialize.js +9 -11
- package/es/core/viewer/components/plugins/ResourceDetail/components/ClusterMemberTable.js +56 -58
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +15 -17
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +343 -357
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/Configurator/index.js +86 -92
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/LinkTopoCard.js +39 -41
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +189 -205
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useAlarmAndRiskData.js +107 -109
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useMetricModels.js +57 -59
- package/es/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +33 -37
- package/es/core/viewer/components/plugins/ResourceDetail/getCiDisplayMetricModels.js +25 -29
- package/es/core/viewer/components/plugins/ResourceDetail/hooks/useUserId.js +32 -36
- package/es/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +17 -19
- package/es/networkTopo/components/Link/hook.js +73 -77
- package/es/networkTopo/components/Link/index.js +86 -94
- package/es/networkTopo/components/Link/setting.js +42 -44
- package/es/networkTopo/getTopoData.js +63 -69
- package/es/networkTopo/hooks/viewer/useRelateTopo.js +30 -32
- package/es/networkTopo/models/LinkDynamicStyleExecutor.js +2 -2
- package/es/networkTopo/models/TopoCenter.js +18 -22
- package/es/networkTopo/services/alert.js +18 -22
- package/es/networkTopo/services/authorization.js +45 -55
- package/es/networkTopo/services/cmdb.js +422 -470
- package/es/networkTopo/services/funcAuth.js +22 -24
- package/es/networkTopo/services/link.js +107 -117
- package/es/networkTopo/services/mdc.js +18 -24
- package/es/networkTopo/services/metric.js +23 -27
- package/es/networkTopo/services/model.js +445 -509
- package/es/networkTopo/services/risk.js +9 -11
- package/es/networkTopo/services/topo/auth.js +27 -33
- package/es/networkTopo/services/topo/basic.js +251 -289
- 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/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 +52 -54
- package/lib/components/BatchAttrMetric/setting.js +1 -1
- package/lib/components/MultiResourceDrawer/index.js +16 -18
- package/lib/components/ResourceList/ResourceSelect.js +48 -50
- package/lib/components/ResourceSelectDrawer/ResourceSelectDrawer.js +27 -29
- package/lib/components/SingleResourceDrawer/SelectDrawer.js +18 -20
- package/lib/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +30 -32
- package/lib/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +78 -84
- package/lib/core/components/titlebar/widgets/TitleWidget.js +5 -3
- package/lib/core/editor/components/BackgroundView/UploadDialog/index.js +18 -18
- package/lib/core/editor/components/BackgroundView/index.js +118 -128
- package/lib/core/editor/components/CustomIconPlugin/RenameDialog.js +22 -24
- package/lib/core/editor/components/CustomIconPlugin/UploadIconDialog.js +34 -34
- package/lib/core/editor/components/CustomIconPlugin/utils/svgToShape.js +19 -21
- package/lib/core/editor/components/GroupAddResourceDrawerPlugin/GroupAddResourceDrawer.js +8 -10
- package/lib/core/editor/components/Sidebar/views/CanvasPanel/hooks/useCanvasThemeConfig.js +37 -41
- package/lib/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundSetting.js +50 -54
- package/lib/core/editor/components/Toolbar/widgets/FontColorButton.js +50 -54
- package/lib/core/editor/components/settings/propertyViews/layer/DataTab/DefaultLayerAddResourceDrawer.js +12 -14
- package/lib/core/editor/components/settings/propertyViews/node/data/BindResourceDrawer.js +26 -28
- package/lib/core/editor/components/settings/propertyViews/node/data/Data.js +15 -17
- package/lib/core/editor/components/settings/propertyViews/view/BackgroundSize.js +12 -14
- package/lib/core/editor/components/titlebar/TopoEditorTitleBar.js +25 -31
- package/lib/core/editor/hooks/useKeyboardShortcut.js +37 -34
- 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/copyElementUtil.js +182 -0
- package/lib/core/editor/utils/edgeTypeStyleUtil.js +2 -4
- package/lib/core/hooks/usePolling.js +116 -120
- package/lib/core/hooks/useResourceConfig.js +58 -66
- package/lib/core/hooks/useTopoEdit.js +465 -495
- package/lib/core/models/Alarm.js +275 -292
- package/lib/core/models/AttributeMetricDisplay.js +104 -110
- package/lib/core/models/PluginManager.js +4 -3
- package/lib/core/models/SelectionModel.js +4 -5
- package/lib/core/models/TopoApp.js +205 -240
- package/lib/core/models/TopoGraphView.js +18 -21
- package/lib/core/models/cache/CiCache.js +33 -32
- package/lib/core/models/cache/CiTypeCache.js +38 -42
- package/lib/core/models/cache/DictCache.js +33 -35
- package/lib/core/models/graph/Background.js +16 -18
- package/lib/core/models/plugins/resourceWebControllUrl.js +74 -80
- package/lib/core/models/tagstips/ElementTagTipConfig.js +34 -38
- package/lib/core/models/topoData.js +69 -71
- package/lib/core/models/utils/linkUtils.js +41 -43
- package/lib/core/models/utils/nodeNameVisibleUtil.js +4 -4
- package/lib/core/services/alarm.js +18 -20
- package/lib/core/services/background.js +70 -78
- package/lib/core/services/cmdb/metric.js +10 -12
- package/lib/core/services/cmdb.js +22 -22
- package/lib/core/services/index.js +45 -51
- package/lib/core/services/overview.js +131 -151
- package/lib/core/services/topo/basic.js +37 -41
- package/lib/core/services/topo/tagtip.js +12 -14
- package/lib/core/store/models/ciModel.js +66 -70
- package/lib/core/store/models/customIcon.js +120 -134
- 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 +9 -11
- package/lib/core/store/models/topoConfig.js +222 -238
- package/lib/core/store/models/topoGraphView.js +4 -6
- package/lib/core/store/models/topoMod.js +375 -397
- package/lib/core/utils/imageUtil.js +22 -24
- package/lib/core/utils/metricUtil.js +5 -0
- package/lib/core/utils/saveSerialize.js +9 -11
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ClusterMemberTable.js +56 -58
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +15 -17
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +344 -358
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/Configurator/index.js +86 -92
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/LinkTopoCard.js +39 -41
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +190 -206
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useAlarmAndRiskData.js +107 -109
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useMetricModels.js +57 -59
- package/lib/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +29 -33
- package/lib/core/viewer/components/plugins/ResourceDetail/getCiDisplayMetricModels.js +25 -29
- package/lib/core/viewer/components/plugins/ResourceDetail/hooks/useUserId.js +32 -36
- package/lib/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +18 -20
- package/lib/networkTopo/components/Link/hook.js +73 -77
- package/lib/networkTopo/components/Link/index.js +87 -95
- package/lib/networkTopo/components/Link/setting.js +42 -44
- package/lib/networkTopo/getTopoData.js +63 -69
- package/lib/networkTopo/hooks/viewer/useRelateTopo.js +31 -33
- package/lib/networkTopo/models/LinkDynamicStyleExecutor.js +2 -2
- package/lib/networkTopo/models/TopoCenter.js +18 -22
- package/lib/networkTopo/services/alert.js +18 -22
- package/lib/networkTopo/services/authorization.js +55 -65
- package/lib/networkTopo/services/cmdb.js +422 -470
- package/lib/networkTopo/services/funcAuth.js +24 -26
- package/lib/networkTopo/services/link.js +108 -118
- package/lib/networkTopo/services/mdc.js +21 -27
- package/lib/networkTopo/services/metric.js +27 -31
- package/lib/networkTopo/services/model.js +445 -509
- package/lib/networkTopo/services/risk.js +11 -13
- package/lib/networkTopo/services/topo/auth.js +27 -33
- package/lib/networkTopo/services/topo/basic.js +252 -290
- 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/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 +59 -61
- package/lib/utils/htElementDataUtil.js +4 -2
- package/package.json +5 -3
@@ -57,57 +57,55 @@ export default function (topoApp) {
|
|
57
57
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
58
58
|
var topoModState, type, id;
|
59
59
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
60
|
-
while (1) {
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
if (!id) {
|
88
|
-
_context.next = 9;
|
89
|
-
break;
|
90
|
-
}
|
91
|
-
|
60
|
+
while (1) switch (_context.prev = _context.next) {
|
61
|
+
case 0:
|
62
|
+
if (params === void 0) {
|
63
|
+
params = {};
|
64
|
+
}
|
65
|
+
|
66
|
+
topoModState = rootState.topoMod; // 处理URL参数
|
67
|
+
|
68
|
+
type = params.type || 'view';
|
69
|
+
id = params.id || topoModState.topoId || '';
|
70
|
+
rlog.debug("topoMod.init \u521D\u59CB\u5316(" + id + ")...", {
|
71
|
+
params: params,
|
72
|
+
rootState: rootState
|
73
|
+
});
|
74
|
+
|
75
|
+
_this.update({
|
76
|
+
viewState: type,
|
77
|
+
currentTopo: id ? {
|
78
|
+
id: id
|
79
|
+
} : null,
|
80
|
+
topoId: id,
|
81
|
+
graphLoaded: false,
|
82
|
+
graphLoaded2: false,
|
83
|
+
initParams: params
|
84
|
+
});
|
85
|
+
|
86
|
+
if (!id) {
|
92
87
|
_context.next = 9;
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
88
|
+
break;
|
89
|
+
}
|
90
|
+
|
91
|
+
_context.next = 9;
|
92
|
+
return _this.openTopoPage({
|
93
|
+
id: id,
|
94
|
+
viewState: type
|
95
|
+
});
|
96
|
+
|
97
|
+
case 9:
|
98
|
+
_this.update({
|
99
|
+
loading: false
|
100
|
+
});
|
101
|
+
|
102
|
+
rlog.debug('topoMod.initTopoCenter 初始化完成', {
|
103
|
+
rootState: rootState
|
104
|
+
});
|
105
|
+
|
106
|
+
case 11:
|
107
|
+
case "end":
|
108
|
+
return _context.stop();
|
111
109
|
}
|
112
110
|
}, _callee);
|
113
111
|
}))();
|
@@ -141,43 +139,41 @@ export default function (topoApp) {
|
|
141
139
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
142
140
|
var id, data, linkTo, viewState, topoId;
|
143
141
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
144
|
-
while (1) {
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
142
|
+
while (1) switch (_context2.prev = _context2.next) {
|
143
|
+
case 0:
|
144
|
+
id = playload.id, data = playload.data, linkTo = playload.linkTo;
|
145
|
+
viewState = playload.mode || playload.viewState || 'view';
|
146
|
+
topoId = id || data.config.id;
|
147
|
+
|
148
|
+
_this2.update({
|
149
|
+
viewState: viewState,
|
150
|
+
currentTopo: playload,
|
151
|
+
topoId: topoId,
|
152
|
+
graphLoaded: false,
|
153
|
+
graphLoaded2: false,
|
154
|
+
topoPermission: undefined
|
155
|
+
});
|
156
|
+
|
157
|
+
_context2.next = 6;
|
158
|
+
return _this2.initTopoData({
|
159
|
+
topoId: topoId,
|
160
|
+
data: data,
|
161
|
+
linkTo: linkTo
|
162
|
+
});
|
163
|
+
|
164
|
+
case 6:
|
165
|
+
if (viewState === 'edit') {
|
166
|
+
// TODO 待优化进入编辑模式方式
|
151
167
|
_this2.update({
|
152
|
-
|
153
|
-
currentTopo: playload,
|
154
|
-
topoId: topoId,
|
155
|
-
graphLoaded: false,
|
156
|
-
graphLoaded2: false,
|
157
|
-
topoPermission: undefined
|
168
|
+
graphLoaded2: false
|
158
169
|
});
|
159
170
|
|
160
|
-
|
161
|
-
|
162
|
-
topoId: topoId,
|
163
|
-
data: data,
|
164
|
-
linkTo: linkTo
|
165
|
-
});
|
166
|
-
|
167
|
-
case 6:
|
168
|
-
if (viewState === 'edit') {
|
169
|
-
// TODO 待优化进入编辑模式方式
|
170
|
-
_this2.update({
|
171
|
-
graphLoaded2: false
|
172
|
-
});
|
173
|
-
|
174
|
-
_this2.enterEditMode();
|
175
|
-
}
|
171
|
+
_this2.enterEditMode();
|
172
|
+
}
|
176
173
|
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
}
|
174
|
+
case 7:
|
175
|
+
case "end":
|
176
|
+
return _context2.stop();
|
181
177
|
}
|
182
178
|
}, _callee2);
|
183
179
|
}))();
|
@@ -218,34 +214,32 @@ export default function (topoApp) {
|
|
218
214
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
219
215
|
var topoId, treeData;
|
220
216
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
221
|
-
while (1) {
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
} // 右侧切换拓扑图
|
217
|
+
while (1) switch (_context3.prev = _context3.next) {
|
218
|
+
case 0:
|
219
|
+
if (conditions === void 0) {
|
220
|
+
conditions = {};
|
221
|
+
}
|
222
|
+
|
223
|
+
topoId = rootState.topoTreeMod.defId;
|
224
|
+
|
225
|
+
if (!topoId) {
|
226
|
+
// 查找第一个
|
227
|
+
treeData = rootState.topoTreeMod.treeData;
|
228
|
+
loopTreeByKey(treeData, 'type', 1, function (item, index, arr) {
|
229
|
+
if (!topoId) {
|
230
|
+
topoId = item.id;
|
231
|
+
}
|
232
|
+
});
|
233
|
+
} // 右侧切换拓扑图
|
239
234
|
|
240
235
|
|
241
|
-
|
242
|
-
|
243
|
-
|
236
|
+
_this3.openTopoPage({
|
237
|
+
id: topoId
|
238
|
+
});
|
244
239
|
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
}
|
240
|
+
case 4:
|
241
|
+
case "end":
|
242
|
+
return _context3.stop();
|
249
243
|
}
|
250
244
|
}, _callee3);
|
251
245
|
}))();
|
@@ -255,20 +249,18 @@ export default function (topoApp) {
|
|
255
249
|
|
256
250
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
257
251
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
258
|
-
while (1) {
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
return _context4.stop();
|
271
|
-
}
|
252
|
+
while (1) switch (_context4.prev = _context4.next) {
|
253
|
+
case 0:
|
254
|
+
_context4.next = 2;
|
255
|
+
return dispatch.functionAuth.refresh();
|
256
|
+
|
257
|
+
case 2:
|
258
|
+
_context4.next = 4;
|
259
|
+
return _this4.refreshTopoTree();
|
260
|
+
|
261
|
+
case 4:
|
262
|
+
case "end":
|
263
|
+
return _context4.stop();
|
272
264
|
}
|
273
265
|
}, _callee4);
|
274
266
|
}))();
|
@@ -276,16 +268,14 @@ export default function (topoApp) {
|
|
276
268
|
refreshTopoTree: function refreshTopoTree() {
|
277
269
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
|
278
270
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
279
|
-
while (1) {
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
return _context5.stop();
|
288
|
-
}
|
271
|
+
while (1) switch (_context5.prev = _context5.next) {
|
272
|
+
case 0:
|
273
|
+
_context5.next = 2;
|
274
|
+
return dispatch.topoTreeMod.refreshTree();
|
275
|
+
|
276
|
+
case 2:
|
277
|
+
case "end":
|
278
|
+
return _context5.stop();
|
289
279
|
}
|
290
280
|
}, _callee5);
|
291
281
|
}))();
|
@@ -310,193 +300,191 @@ export default function (topoApp) {
|
|
310
300
|
var startTime, topoId, data, linkToData, refresh, clear, linkTo, startState, permission, result, graphConfig, topoConfig, extraConfig, _combTopoData, topoData, resAndMetrics, _yield$Promise$all, newData, endTime;
|
311
301
|
|
312
302
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
313
|
-
while (1) {
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
Object.assign(startState, {
|
334
|
-
topoData: null,
|
335
|
-
data: null,
|
336
|
-
globalConfig: null // 全局配置
|
337
|
-
|
338
|
-
});
|
339
|
-
}
|
340
|
-
|
341
|
-
_this5.update(startState);
|
342
|
-
|
343
|
-
dispatch.topoBizMod.update({
|
344
|
-
pollingSwitch: false
|
345
|
-
});
|
346
|
-
topoApp.options.onLoadStart(); // TODO 待移到拓扑中心
|
347
|
-
|
348
|
-
permission = 'write';
|
349
|
-
|
350
|
-
if (!topoApp.options.usePermission) {
|
351
|
-
_context6.next = 19;
|
352
|
-
break;
|
353
|
-
}
|
354
|
-
|
355
|
-
_context6.next = 14;
|
356
|
-
return _this5.getTopoPermission({
|
357
|
-
id: topoId
|
358
|
-
});
|
359
|
-
|
360
|
-
case 14:
|
361
|
-
permission = _context6.sent;
|
362
|
-
|
363
|
-
if (topoPermissonUtil.isReadable(permission)) {
|
364
|
-
_context6.next = 19;
|
365
|
-
break;
|
366
|
-
}
|
367
|
-
|
368
|
-
_this5.update({
|
369
|
-
loading: false,
|
303
|
+
while (1) switch (_context6.prev = _context6.next) {
|
304
|
+
case 0:
|
305
|
+
startTime = moment();
|
306
|
+
topoId = props.topoId, data = props.data, linkToData = props.linkTo, refresh = props.refresh, clear = props.clear;
|
307
|
+
_context6.next = 4;
|
308
|
+
return topoApp.open(topoId);
|
309
|
+
|
310
|
+
case 4:
|
311
|
+
// 关联拓扑图
|
312
|
+
linkTo = refresh === true ? state.topoMod.linkTo : linkToData || null;
|
313
|
+
startState = {
|
314
|
+
loading: true,
|
315
|
+
graphLoaded: false,
|
316
|
+
graphLoaded2: false,
|
317
|
+
topoLoadError: false,
|
318
|
+
linkTo: linkTo
|
319
|
+
};
|
320
|
+
|
321
|
+
if (clear === true || topoId < 0) {
|
322
|
+
Object.assign(startState, {
|
370
323
|
topoData: null,
|
371
324
|
data: null,
|
372
325
|
globalConfig: null // 全局配置
|
373
326
|
|
374
327
|
});
|
328
|
+
}
|
375
329
|
|
376
|
-
|
377
|
-
return _context6.abrupt("return");
|
378
|
-
|
379
|
-
case 19:
|
380
|
-
if (!data) {
|
381
|
-
_context6.next = 30;
|
382
|
-
break;
|
383
|
-
}
|
330
|
+
_this5.update(startState);
|
384
331
|
|
385
|
-
|
332
|
+
dispatch.topoBizMod.update({
|
333
|
+
pollingSwitch: false
|
334
|
+
});
|
335
|
+
topoApp.options.onLoadStart(); // TODO 待移到拓扑中心
|
386
336
|
|
387
|
-
|
388
|
-
_context6.next = 27;
|
389
|
-
break;
|
390
|
-
}
|
337
|
+
permission = 'write';
|
391
338
|
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
case 24:
|
396
|
-
topoConfig = _context6.sent;
|
397
|
-
if (!topoConfig) rlog.error("\u672A\u67E5\u8BE2\u5230\u62D3\u6251id " + topoId + " \u7684\u6570\u636E\uFF0C\u8BF7\u68C0\u67E5");
|
398
|
-
graphConfig = {
|
399
|
-
global: topoConfig === null || topoConfig === void 0 ? void 0 : topoConfig.global,
|
400
|
-
customGlobal: data.global,
|
401
|
-
serialize: topoConfig === null || topoConfig === void 0 ? void 0 : topoConfig.serialize
|
402
|
-
};
|
403
|
-
|
404
|
-
case 27:
|
405
|
-
result = _extends({}, data, graphConfig);
|
406
|
-
_context6.next = 33;
|
339
|
+
if (!topoApp.options.usePermission) {
|
340
|
+
_context6.next = 19;
|
407
341
|
break;
|
342
|
+
}
|
408
343
|
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
case 32:
|
414
|
-
result = _context6.sent;
|
415
|
-
|
416
|
-
case 33:
|
417
|
-
if (result) {
|
418
|
-
_context6.next = 37;
|
419
|
-
break;
|
420
|
-
}
|
421
|
-
|
422
|
-
_this5.update({
|
423
|
-
loading: false,
|
424
|
-
data: null,
|
425
|
-
globalConfig: null,
|
426
|
-
// 全局配置
|
427
|
-
topoData: null
|
428
|
-
});
|
344
|
+
_context6.next = 14;
|
345
|
+
return _this5.getTopoPermission({
|
346
|
+
id: topoId
|
347
|
+
});
|
429
348
|
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
case 37:
|
434
|
-
result = parseTopoData(result);
|
435
|
-
rlog.debug('topoMod.initTopoData 查询数据完成', topoId, linkTo, result);
|
436
|
-
_context6.next = 41;
|
437
|
-
return dispatch.customIcon.loadCustomIcons();
|
438
|
-
|
439
|
-
case 41:
|
440
|
-
extraConfig = result.global.extraConfig;
|
441
|
-
_context6.next = 44;
|
442
|
-
return dispatch.displayConfig.setConfig(_extends({}, extraConfig, {
|
443
|
-
alarmSwitch: result.global.alarmSwitch,
|
444
|
-
alarmListDefaultOpen: result.global.alarmListDefaultOpen
|
445
|
-
}));
|
446
|
-
|
447
|
-
case 44:
|
448
|
-
_combTopoData = combTopoData({
|
449
|
-
engine: topoApp,
|
450
|
-
data: result,
|
451
|
-
linkTo: linkTo,
|
452
|
-
globalConfig: extraConfig
|
453
|
-
}), topoData = _combTopoData.topoData, resAndMetrics = _combTopoData.resAndMetrics; // rlog.debug("topoMod.initTopoData combTopoData", { topoData, resAndMetrics, });
|
454
|
-
|
455
|
-
_context6.next = 47;
|
456
|
-
return _this5.update({
|
457
|
-
currentTopo: topoData.config,
|
458
|
-
data: result,
|
459
|
-
globalConfig: extraConfig,
|
460
|
-
type: (_result$config = result.config) === null || _result$config === void 0 ? void 0 : _result$config.showType,
|
461
|
-
topoData: topoData,
|
462
|
-
resAndMetrics: resAndMetrics
|
463
|
-
});
|
349
|
+
case 14:
|
350
|
+
permission = _context6.sent;
|
464
351
|
|
465
|
-
|
466
|
-
|
467
|
-
|
352
|
+
if (topoPermissonUtil.isReadable(permission)) {
|
353
|
+
_context6.next = 19;
|
354
|
+
break;
|
355
|
+
}
|
468
356
|
|
469
|
-
|
357
|
+
_this5.update({
|
358
|
+
loading: false,
|
359
|
+
topoData: null,
|
360
|
+
data: null,
|
361
|
+
globalConfig: null // 全局配置
|
470
362
|
|
471
|
-
|
472
|
-
return Promise.all([addLinkData(result), topoApp.ciTyeCache.load(getCiTypes(result)), topoApp.elementTagTipConfig.init(result) // 暂停新配置开发
|
473
|
-
]);
|
363
|
+
});
|
474
364
|
|
475
|
-
|
476
|
-
|
477
|
-
newData = _yield$Promise$all[0];
|
478
|
-
_context6.next = 56;
|
479
|
-
return _this5.update({
|
480
|
-
data: newData
|
481
|
-
});
|
365
|
+
topoApp.options.onLoad();
|
366
|
+
return _context6.abrupt("return");
|
482
367
|
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
endTime = moment();
|
489
|
-
rlog.info('topoMod.initTopoData 初始化拓扑图数据完成. 耗时: ', endTime.diff(startTime, 'seconds', true));
|
490
|
-
topoApp.options.onLoad();
|
368
|
+
case 19:
|
369
|
+
if (!data) {
|
370
|
+
_context6.next = 30;
|
371
|
+
break;
|
372
|
+
}
|
491
373
|
|
492
|
-
|
493
|
-
loading: false
|
494
|
-
});
|
374
|
+
graphConfig = {};
|
495
375
|
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
376
|
+
if (!topoId) {
|
377
|
+
_context6.next = 27;
|
378
|
+
break;
|
379
|
+
}
|
380
|
+
|
381
|
+
_context6.next = 24;
|
382
|
+
return topoService.getTopoData(topoId);
|
383
|
+
|
384
|
+
case 24:
|
385
|
+
topoConfig = _context6.sent;
|
386
|
+
if (!topoConfig) rlog.error("\u672A\u67E5\u8BE2\u5230\u62D3\u6251id " + topoId + " \u7684\u6570\u636E\uFF0C\u8BF7\u68C0\u67E5");
|
387
|
+
graphConfig = {
|
388
|
+
global: topoConfig === null || topoConfig === void 0 ? void 0 : topoConfig.global,
|
389
|
+
customGlobal: data.global,
|
390
|
+
serialize: topoConfig === null || topoConfig === void 0 ? void 0 : topoConfig.serialize
|
391
|
+
};
|
392
|
+
|
393
|
+
case 27:
|
394
|
+
result = _extends({}, data, graphConfig);
|
395
|
+
_context6.next = 33;
|
396
|
+
break;
|
397
|
+
|
398
|
+
case 30:
|
399
|
+
_context6.next = 32;
|
400
|
+
return topoApp.options.loadData(topoId, topoApp.serverApi);
|
401
|
+
|
402
|
+
case 32:
|
403
|
+
result = _context6.sent;
|
404
|
+
|
405
|
+
case 33:
|
406
|
+
if (result) {
|
407
|
+
_context6.next = 37;
|
408
|
+
break;
|
409
|
+
}
|
410
|
+
|
411
|
+
_this5.update({
|
412
|
+
loading: false,
|
413
|
+
data: null,
|
414
|
+
globalConfig: null,
|
415
|
+
// 全局配置
|
416
|
+
topoData: null
|
417
|
+
});
|
418
|
+
|
419
|
+
topoApp.options.onLoad();
|
420
|
+
return _context6.abrupt("return");
|
421
|
+
|
422
|
+
case 37:
|
423
|
+
result = parseTopoData(result);
|
424
|
+
rlog.debug('topoMod.initTopoData 查询数据完成', topoId, linkTo, result);
|
425
|
+
_context6.next = 41;
|
426
|
+
return dispatch.customIcon.loadCustomIcons();
|
427
|
+
|
428
|
+
case 41:
|
429
|
+
extraConfig = result.global.extraConfig;
|
430
|
+
_context6.next = 44;
|
431
|
+
return dispatch.displayConfig.setConfig(_extends({}, extraConfig, {
|
432
|
+
alarmSwitch: result.global.alarmSwitch,
|
433
|
+
alarmListDefaultOpen: result.global.alarmListDefaultOpen
|
434
|
+
}));
|
435
|
+
|
436
|
+
case 44:
|
437
|
+
_combTopoData = combTopoData({
|
438
|
+
engine: topoApp,
|
439
|
+
data: result,
|
440
|
+
linkTo: linkTo,
|
441
|
+
globalConfig: extraConfig
|
442
|
+
}), topoData = _combTopoData.topoData, resAndMetrics = _combTopoData.resAndMetrics; // rlog.debug("topoMod.initTopoData combTopoData", { topoData, resAndMetrics, });
|
443
|
+
|
444
|
+
_context6.next = 47;
|
445
|
+
return _this5.update({
|
446
|
+
currentTopo: topoData.config,
|
447
|
+
data: result,
|
448
|
+
globalConfig: extraConfig,
|
449
|
+
type: (_result$config = result.config) === null || _result$config === void 0 ? void 0 : _result$config.showType,
|
450
|
+
topoData: topoData,
|
451
|
+
resAndMetrics: resAndMetrics
|
452
|
+
});
|
453
|
+
|
454
|
+
case 47:
|
455
|
+
dispatch.topoBizMod.combBatchCiInfo(resAndMetrics);
|
456
|
+
dispatch.background.init(extraConfig); // TODO 优化打开拓扑图显示告警速度:打开拓扑图立即请求告警
|
457
|
+
|
458
|
+
topoApp.alarm.open(); // 加载标注悬浮框数据
|
459
|
+
|
460
|
+
_context6.next = 52;
|
461
|
+
return Promise.all([addLinkData(result), topoApp.ciTyeCache.load(getCiTypes(result)), topoApp.elementTagTipConfig.init(result) // 暂停新配置开发
|
462
|
+
]);
|
463
|
+
|
464
|
+
case 52:
|
465
|
+
_yield$Promise$all = _context6.sent;
|
466
|
+
newData = _yield$Promise$all[0];
|
467
|
+
_context6.next = 56;
|
468
|
+
return _this5.update({
|
469
|
+
data: newData
|
470
|
+
});
|
471
|
+
|
472
|
+
case 56:
|
473
|
+
dispatch.topoBizMod.update({
|
474
|
+
pollingSwitch: true
|
475
|
+
});
|
476
|
+
topoApp.onTopoDataLoaded(topoData);
|
477
|
+
endTime = moment();
|
478
|
+
rlog.info('topoMod.initTopoData 初始化拓扑图数据完成. 耗时: ', endTime.diff(startTime, 'seconds', true));
|
479
|
+
topoApp.options.onLoad();
|
480
|
+
|
481
|
+
_this5.update({
|
482
|
+
loading: false
|
483
|
+
});
|
484
|
+
|
485
|
+
case 62:
|
486
|
+
case "end":
|
487
|
+
return _context6.stop();
|
500
488
|
}
|
501
489
|
}, _callee6);
|
502
490
|
}))();
|
@@ -512,25 +500,23 @@ export default function (topoApp) {
|
|
512
500
|
var _payload, clear;
|
513
501
|
|
514
502
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
515
|
-
while (1) {
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
return _context7.stop();
|
533
|
-
}
|
503
|
+
while (1) switch (_context7.prev = _context7.next) {
|
504
|
+
case 0:
|
505
|
+
if (payload === void 0) {
|
506
|
+
payload = {};
|
507
|
+
}
|
508
|
+
|
509
|
+
_payload = payload, clear = _payload.clear;
|
510
|
+
_context7.next = 4;
|
511
|
+
return _this6.initTopoData({
|
512
|
+
topoId: rootState.topoMod.topoId,
|
513
|
+
refresh: true,
|
514
|
+
clear: clear
|
515
|
+
});
|
516
|
+
|
517
|
+
case 4:
|
518
|
+
case "end":
|
519
|
+
return _context7.stop();
|
534
520
|
}
|
535
521
|
}, _callee7);
|
536
522
|
}))();
|
@@ -541,37 +527,35 @@ export default function (topoApp) {
|
|
541
527
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
|
542
528
|
var td;
|
543
529
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
544
|
-
while (1) {
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
530
|
+
while (1) switch (_context8.prev = _context8.next) {
|
531
|
+
case 0:
|
532
|
+
if (conditions === void 0) {
|
533
|
+
conditions = {};
|
534
|
+
}
|
535
|
+
|
536
|
+
if (conditions.id === state.topoMod.topoId) {
|
537
|
+
if (conditions.type === 'delete') {
|
538
|
+
_this7.update({
|
539
|
+
topoId: conditions.defId
|
540
|
+
});
|
549
541
|
}
|
550
542
|
|
551
|
-
if (conditions.
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
})
|
556
|
-
}
|
557
|
-
|
558
|
-
if (conditions.type === 'rename') {
|
559
|
-
td = _extends({}, state.topoMod.topoData, {
|
560
|
-
config: _extends({}, state.topoMod.topoData.config, {
|
561
|
-
name: conditions.name
|
562
|
-
})
|
563
|
-
});
|
543
|
+
if (conditions.type === 'rename') {
|
544
|
+
td = _extends({}, state.topoMod.topoData, {
|
545
|
+
config: _extends({}, state.topoMod.topoData.config, {
|
546
|
+
name: conditions.name
|
547
|
+
})
|
548
|
+
});
|
564
549
|
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
}
|
550
|
+
_this7.update({
|
551
|
+
topoData: td
|
552
|
+
});
|
569
553
|
}
|
554
|
+
}
|
570
555
|
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
}
|
556
|
+
case 2:
|
557
|
+
case "end":
|
558
|
+
return _context8.stop();
|
575
559
|
}
|
576
560
|
}, _callee8);
|
577
561
|
}))();
|
@@ -579,15 +563,13 @@ export default function (topoApp) {
|
|
579
563
|
openPermissionSetting: function openPermissionSetting(payload, rootState) {
|
580
564
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
|
581
565
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
582
|
-
while (1) {
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
return _context9.stop();
|
590
|
-
}
|
566
|
+
while (1) switch (_context9.prev = _context9.next) {
|
567
|
+
case 0:
|
568
|
+
dispatch.permissionSetting.open();
|
569
|
+
|
570
|
+
case 1:
|
571
|
+
case "end":
|
572
|
+
return _context9.stop();
|
591
573
|
}
|
592
574
|
}, _callee9);
|
593
575
|
}))();
|
@@ -595,19 +577,17 @@ export default function (topoApp) {
|
|
595
577
|
updateDelId: function updateDelId(conditions, state) {
|
596
578
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10() {
|
597
579
|
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
598
|
-
while (1) {
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
}
|
580
|
+
while (1) switch (_context10.prev = _context10.next) {
|
581
|
+
case 0:
|
582
|
+
if (conditions === void 0) {
|
583
|
+
conditions = '';
|
584
|
+
}
|
604
585
|
|
605
|
-
|
586
|
+
rlog.debug('updateDelId', conditions);
|
606
587
|
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
}
|
588
|
+
case 2:
|
589
|
+
case "end":
|
590
|
+
return _context10.stop();
|
611
591
|
}
|
612
592
|
}, _callee10);
|
613
593
|
}))();
|
@@ -618,38 +598,36 @@ export default function (topoApp) {
|
|
618
598
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {
|
619
599
|
var id, update, topoPermission;
|
620
600
|
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
621
|
-
while (1) {
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
}
|
601
|
+
while (1) switch (_context11.prev = _context11.next) {
|
602
|
+
case 0:
|
603
|
+
id = playload.id, update = playload.update;
|
604
|
+
_context11.prev = 1;
|
605
|
+
_context11.next = 4;
|
606
|
+
return topoApp.serverApi.auth.getTopoPermission(id);
|
607
|
+
|
608
|
+
case 4:
|
609
|
+
topoPermission = _context11.sent;
|
610
|
+
rlog.debug('查询拓扑权限', topoPermission);
|
611
|
+
_context11.next = 11;
|
612
|
+
break;
|
613
|
+
|
614
|
+
case 8:
|
615
|
+
_context11.prev = 8;
|
616
|
+
_context11.t0 = _context11["catch"](1);
|
617
|
+
rlog.error("\u67E5\u8BE2\u62D3\u6251" + id + "\u7684\u6743\u9650\u5931\u8D25", _context11.t0); // 尚未区分拓扑图不存在还是接口请求报错
|
618
|
+
|
619
|
+
case 11:
|
620
|
+
if (update !== false) {
|
621
|
+
_this8.update({
|
622
|
+
topoPermission: topoPermission
|
623
|
+
});
|
624
|
+
}
|
646
625
|
|
647
|
-
|
626
|
+
return _context11.abrupt("return", topoPermission);
|
648
627
|
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
}
|
628
|
+
case 13:
|
629
|
+
case "end":
|
630
|
+
return _context11.stop();
|
653
631
|
}
|
654
632
|
}, _callee11, null, [[1, 8]]);
|
655
633
|
}))();
|