@riil-frontend/component-topology 8.0.0-a.11 → 8.0.0-a.13

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.
@@ -23,7 +23,7 @@ import topoFactory from "./topoFactory";
23
23
  import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
24
24
  import SelectionModel from "./SelectionModel"; // eslint-disable-next-line no-undef
25
25
 
26
- var version = typeof "8.0.0-a.11" === 'string' ? "8.0.0-a.11" : null;
26
+ var version = typeof "8.0.0-a.13" === 'string' ? "8.0.0-a.13" : null;
27
27
  console.info("\u62D3\u6251\u7248\u672C: " + version);
28
28
  /**
29
29
  * 拓扑显示和编辑
@@ -148,7 +148,7 @@ export default {
148
148
  */
149
149
  queryAssociatedlinks: function queryAssociatedlinks(ids, type) {
150
150
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
151
- var stag, ttag, condition, parm, jsonParm, result;
151
+ var stag, ttag, condition, parm, result;
152
152
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
153
153
  while (1) {
154
154
  switch (_context5.prev = _context5.next) {
@@ -167,28 +167,27 @@ export default {
167
167
  sort: "name asc",
168
168
  currentPage: 1,
169
169
  pageSize: 99
170
- };
171
- jsonParm = JSON.stringify(parm); // console.log("queryAssociatedlinks", ids, parm, jsonParm);
170
+ }; // console.log("queryAssociatedlinks", ids, parm, jsonParm);
172
171
 
173
- _context5.prev = 6;
174
- _context5.next = 9;
175
- return request.post("/mdc/v1/api/cmdb/commonQueryCiData", jsonParm);
172
+ _context5.prev = 5;
173
+ _context5.next = 8;
174
+ return request.post("/mdc/v1/api/cmdb/commonQueryCiData", parm);
176
175
 
177
- case 9:
176
+ case 8:
178
177
  result = _context5.sent;
179
178
  return _context5.abrupt("return", result);
180
179
 
181
- case 13:
182
- _context5.prev = 13;
183
- _context5.t0 = _context5["catch"](6);
180
+ case 12:
181
+ _context5.prev = 12;
182
+ _context5.t0 = _context5["catch"](5);
184
183
  rlog.error("查询可关联链路", _context5.t0);
185
184
 
186
- case 16:
185
+ case 15:
187
186
  case "end":
188
187
  return _context5.stop();
189
188
  }
190
189
  }
191
- }, _callee5, null, [[6, 13]]);
190
+ }, _callee5, null, [[5, 12]]);
192
191
  }))();
193
192
  }
194
193
  };
@@ -54,7 +54,7 @@ var _ElementTagTipConfig = _interopRequireDefault(require("./tagstips/ElementTag
54
54
  var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
55
55
 
56
56
  // eslint-disable-next-line no-undef
57
- var version = typeof "8.0.0-a.11" === 'string' ? "8.0.0-a.11" : null;
57
+ var version = typeof "8.0.0-a.13" === 'string' ? "8.0.0-a.13" : null;
58
58
  console.info("\u62D3\u6251\u7248\u672C: " + version);
59
59
  /**
60
60
  * 拓扑显示和编辑
@@ -165,7 +165,7 @@ var _default = {
165
165
  */
166
166
  queryAssociatedlinks: function queryAssociatedlinks(ids, type) {
167
167
  return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
168
- var stag, ttag, condition, parm, jsonParm, result;
168
+ var stag, ttag, condition, parm, result;
169
169
  return _regenerator["default"].wrap(function _callee5$(_context5) {
170
170
  while (1) {
171
171
  switch (_context5.prev = _context5.next) {
@@ -184,29 +184,28 @@ var _default = {
184
184
  sort: "name asc",
185
185
  currentPage: 1,
186
186
  pageSize: 99
187
- };
188
- jsonParm = JSON.stringify(parm); // console.log("queryAssociatedlinks", ids, parm, jsonParm);
187
+ }; // console.log("queryAssociatedlinks", ids, parm, jsonParm);
189
188
 
190
- _context5.prev = 6;
191
- _context5.next = 9;
192
- return _componentTopologyUtils.request.post("/mdc/v1/api/cmdb/commonQueryCiData", jsonParm);
189
+ _context5.prev = 5;
190
+ _context5.next = 8;
191
+ return _componentTopologyUtils.request.post("/mdc/v1/api/cmdb/commonQueryCiData", parm);
193
192
 
194
- case 9:
193
+ case 8:
195
194
  result = _context5.sent;
196
195
  return _context5.abrupt("return", result);
197
196
 
198
- case 13:
199
- _context5.prev = 13;
200
- _context5.t0 = _context5["catch"](6);
197
+ case 12:
198
+ _context5.prev = 12;
199
+ _context5.t0 = _context5["catch"](5);
201
200
 
202
201
  _rlog["default"].error("查询可关联链路", _context5.t0);
203
202
 
204
- case 16:
203
+ case 15:
205
204
  case "end":
206
205
  return _context5.stop();
207
206
  }
208
207
  }
209
- }, _callee5, null, [[6, 13]]);
208
+ }, _callee5, null, [[5, 12]]);
210
209
  }))();
211
210
  }
212
211
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "8.0.0-a.11",
3
+ "version": "8.0.0-a.13",
4
4
  "description": "拓扑",
5
5
  "scripts": {
6
6
  "start": "build-scripts start",
@@ -116,6 +116,6 @@
116
116
  "access": "public"
117
117
  },
118
118
  "license": "MIT",
119
- "homepage": "https://unpkg.com/@riil-frontend/component-topology@8.0.0-a.11/build/index.html",
119
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@8.0.0-a.13/build/index.html",
120
120
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
121
121
  }