@blueking/monitor-trace-log 2.0.10 → 2.0.11

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.
Files changed (2) hide show
  1. package/main.js +507 -100
  2. package/package.json +1 -1
package/main.js CHANGED
@@ -47425,6 +47425,111 @@ function defineProperty_defineProperty(e, r, t) {
47425
47425
  }) : e[r] = t, e;
47426
47426
  }
47427
47427
 
47428
+ ;// ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
47429
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
47430
+ try {
47431
+ var i = n[a](c),
47432
+ u = i.value;
47433
+ } catch (n) {
47434
+ return void e(n);
47435
+ }
47436
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
47437
+ }
47438
+ function asyncToGenerator_asyncToGenerator(n) {
47439
+ return function () {
47440
+ var t = this,
47441
+ e = arguments;
47442
+ return new Promise(function (r, o) {
47443
+ var a = n.apply(t, e);
47444
+ function _next(n) {
47445
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
47446
+ }
47447
+ function _throw(n) {
47448
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
47449
+ }
47450
+ _next(void 0);
47451
+ });
47452
+ };
47453
+ }
47454
+
47455
+ ;// ./node_modules/@babel/runtime/helpers/esm/OverloadYield.js
47456
+ function _OverloadYield(e, d) {
47457
+ this.v = e, this.k = d;
47458
+ }
47459
+
47460
+ ;// ./node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js
47461
+
47462
+ function wrapAsyncGenerator_wrapAsyncGenerator(e) {
47463
+ return function () {
47464
+ return new AsyncGenerator(e.apply(this, arguments));
47465
+ };
47466
+ }
47467
+ function AsyncGenerator(e) {
47468
+ var r, t;
47469
+ function resume(r, t) {
47470
+ try {
47471
+ var n = e[r](t),
47472
+ o = n.value,
47473
+ u = o instanceof _OverloadYield;
47474
+ Promise.resolve(u ? o.v : o).then(function (t) {
47475
+ if (u) {
47476
+ var i = "return" === r ? "return" : "next";
47477
+ if (!o.k || t.done) return resume(i, t);
47478
+ t = e[i](t).value;
47479
+ }
47480
+ settle(n.done ? "return" : "normal", t);
47481
+ }, function (e) {
47482
+ resume("throw", e);
47483
+ });
47484
+ } catch (e) {
47485
+ settle("throw", e);
47486
+ }
47487
+ }
47488
+ function settle(e, n) {
47489
+ switch (e) {
47490
+ case "return":
47491
+ r.resolve({
47492
+ value: n,
47493
+ done: !0
47494
+ });
47495
+ break;
47496
+ case "throw":
47497
+ r.reject(n);
47498
+ break;
47499
+ default:
47500
+ r.resolve({
47501
+ value: n,
47502
+ done: !1
47503
+ });
47504
+ }
47505
+ (r = r.next) ? resume(r.key, r.arg) : t = null;
47506
+ }
47507
+ this._invoke = function (e, n) {
47508
+ return new Promise(function (o, u) {
47509
+ var i = {
47510
+ key: e,
47511
+ arg: n,
47512
+ resolve: o,
47513
+ reject: u,
47514
+ next: null
47515
+ };
47516
+ t ? t = t.next = i : (r = t = i, resume(e, n));
47517
+ });
47518
+ }, "function" != typeof e["return"] && (this["return"] = void 0);
47519
+ }
47520
+ AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () {
47521
+ return this;
47522
+ }, AsyncGenerator.prototype.next = function (e) {
47523
+ return this._invoke("next", e);
47524
+ }, AsyncGenerator.prototype["throw"] = function (e) {
47525
+ return this._invoke("throw", e);
47526
+ }, AsyncGenerator.prototype["return"] = function (e) {
47527
+ return this._invoke("return", e);
47528
+ };
47529
+
47530
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
47531
+ var regenerator = __webpack_require__(4756);
47532
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
47428
47533
  ;// ./src/store/store.type.ts
47429
47534
  /*
47430
47535
  * Tencent is pleased to support the open source community by making
@@ -52506,7 +52611,7 @@ function JSONBigNumber_parse(source, reviver) {
52506
52611
  result;
52507
52612
  }
52508
52613
 
52509
- /* harmony default export */ const JSONBigNumber = ({
52614
+ /* harmony default export */ const src_JSONBigNumber = ({
52510
52615
  parse: JSONBigNumber_parse,
52511
52616
  stringify: stringify
52512
52617
  });
@@ -52517,11 +52622,17 @@ function JSONBigNumber_parse(source, reviver) {
52517
52622
 
52518
52623
 
52519
52624
 
52625
+
52626
+
52627
+
52520
52628
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
52521
52629
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
52630
+
52522
52631
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = util_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
52523
52632
  function util_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return util_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? util_arrayLikeToArray(r, a) : void 0; } }
52524
52633
  function util_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
52634
+ function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = "@@asyncIterator", o = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
52635
+ function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, "return": function _return(r) { var n = this.s["return"]; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, "throw": function _throw(r) { var n = this.s["return"]; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }
52525
52636
  /*
52526
52637
  * Tencent is pleased to support the open source community by making
52527
52638
  * 蓝鲸智云PaaS平台 (BlueKing PaaS) available.
@@ -52873,11 +52984,11 @@ function projectManage(menuProject, projectName, childName) {
52873
52984
  return project;
52874
52985
  }
52875
52986
  function projectManages(menuList, id) {
52876
- var _iterator = _createForOfIteratorHelper(menuList),
52877
- _step;
52987
+ var _iterator2 = _createForOfIteratorHelper(menuList),
52988
+ _step2;
52878
52989
  try {
52879
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
52880
- var menu = _step.value;
52990
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
52991
+ var menu = _step2.value;
52881
52992
  if (menu.id === id) {
52882
52993
  return menu.project_manage;
52883
52994
  }
@@ -52889,9 +53000,9 @@ function projectManages(menuList, id) {
52889
53000
  }
52890
53001
  }
52891
53002
  } catch (err) {
52892
- _iterator.e(err);
53003
+ _iterator2.e(err);
52893
53004
  } finally {
52894
- _iterator.f();
53005
+ _iterator2.f();
52895
53006
  }
52896
53007
  return undefined;
52897
53008
  }
@@ -53070,31 +53181,362 @@ function formatFileSize(size) {
53070
53181
  }
53071
53182
 
53072
53183
  /**
53073
- * 读取Blob格式返回数据
53074
- * @param {*} response
53184
+ * Bidi 控制字符单次扫描清洗:
53185
+ * - 覆盖范围:U+202A~U+202E(LRE/RLE/PDF/LRO/RLO)、U+2066~U+2069(LRI/RLI/FSI/PDI)
53186
+ * - 未命中走零分配路径,命中时才创建新字符串
53187
+ * @param {string} str
53188
+ * @returns {string}
53189
+ */
53190
+ function sanitizeBidi(str) {
53191
+ if (!str) return str;
53192
+ var result = null;
53193
+ var lastIndex = 0;
53194
+ var len = str.length;
53195
+ for (var i = 0; i < len; i++) {
53196
+ var code = str.charCodeAt(i);
53197
+ if (code >= 0x202A && code <= 0x202E || code >= 0x2066 && code <= 0x2069) {
53198
+ if (result === null) result = '';
53199
+ result += str.slice(lastIndex, i);
53200
+ lastIndex = i + 1;
53201
+ }
53202
+ }
53203
+ return result === null ? str : result + str.slice(lastIndex);
53204
+ }
53205
+
53206
+ /**
53207
+ * 流式 Sanitize Transform:
53208
+ * - 处理跨 chunk 边界:保留尾部 2 个字符到下一个 chunk 再处理,避免控制字符被拆分
53075
53209
  */
53076
- function readBlobResponse(response) {
53210
+ function createSanitizeTransform() {
53211
+ var carry = '';
53212
+ return new TransformStream({
53213
+ transform: function transform(chunk, controller) {
53214
+ var str = carry + chunk;
53215
+ var safeLen = Math.max(0, str.length - 2);
53216
+ carry = str.slice(safeLen);
53217
+ controller.enqueue(sanitizeBidi(str.slice(0, safeLen)));
53218
+ },
53219
+ flush: function flush(controller) {
53220
+ if (carry) {
53221
+ controller.enqueue(sanitizeBidi(carry));
53222
+ carry = '';
53223
+ }
53224
+ }
53225
+ });
53226
+ }
53227
+ function supportsStreamPipeline() {
53228
+ return typeof TextDecoderStream !== 'undefined' && typeof TransformStream !== 'undefined' && typeof ReadableStream !== 'undefined';
53229
+ }
53230
+ function readBlobByFileReader(blob) {
53077
53231
  return new Promise(function (resolve, reject) {
53078
53232
  var reader = new FileReader();
53079
53233
  reader.onload = function () {
53080
- resolve(reader.result);
53234
+ return resolve(reader.result);
53081
53235
  };
53082
53236
  reader.onerror = function () {
53083
- reject(reader.error);
53237
+ return reject(reader.error);
53084
53238
  };
53085
- reader.readAsText(response);
53239
+ reader.readAsText(blob);
53086
53240
  });
53087
53241
  }
53242
+ function collectStringStream(_x2) {
53243
+ return _collectStringStream.apply(this, arguments);
53244
+ }
53245
+ /**
53246
+ * 读取 Blob 为字符串(已清洗 Bidi 控制字符)
53247
+ * - 优先走 Blob.stream() → TextDecoderStream → Sanitize 流式管道,避免一次性分配完整字符串
53248
+ * - 老环境回退到 FileReader.readAsText 后整串清洗
53249
+ * @param {Blob} response
53250
+ * @returns {Promise<string>}
53251
+ */
53252
+ function _collectStringStream() {
53253
+ _collectStringStream = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2(stream) {
53254
+ var reader, out, _yield$reader$read, done, value;
53255
+ return regenerator_default().wrap(function _callee2$(_context2) {
53256
+ while (1) switch (_context2.prev = _context2.next) {
53257
+ case 0:
53258
+ reader = stream.getReader();
53259
+ out = '';
53260
+ _context2.prev = 2;
53261
+ case 3:
53262
+ if (false) {}
53263
+ _context2.next = 6;
53264
+ return reader.read();
53265
+ case 6:
53266
+ _yield$reader$read = _context2.sent;
53267
+ done = _yield$reader$read.done;
53268
+ value = _yield$reader$read.value;
53269
+ if (!done) {
53270
+ _context2.next = 11;
53271
+ break;
53272
+ }
53273
+ return _context2.abrupt("break", 14);
53274
+ case 11:
53275
+ out += value;
53276
+ _context2.next = 3;
53277
+ break;
53278
+ case 14:
53279
+ _context2.prev = 14;
53280
+ reader.releaseLock();
53281
+ return _context2.finish(14);
53282
+ case 17:
53283
+ return _context2.abrupt("return", out);
53284
+ case 18:
53285
+ case "end":
53286
+ return _context2.stop();
53287
+ }
53288
+ }, _callee2, null, [[2,, 14, 17]]);
53289
+ }));
53290
+ return _collectStringStream.apply(this, arguments);
53291
+ }
53292
+ function readBlobResponse(response) {
53293
+ var canStream = supportsStreamPipeline() && response && typeof response.stream === 'function';
53294
+ if (!canStream) {
53295
+ return readBlobByFileReader(response).then(sanitizeBidi);
53296
+ }
53297
+ try {
53298
+ var stream = response.stream().pipeThrough(new TextDecoderStream()).pipeThrough(createSanitizeTransform());
53299
+ return collectStringStream(stream);
53300
+ } catch (e) {
53301
+ return readBlobByFileReader(response).then(sanitizeBidi);
53302
+ }
53303
+ }
53088
53304
 
53089
53305
  /**
53090
- * 读取Blob格式返回Json数据
53091
- * @param {*} resp
53306
+ * 读取 Blob 为 JSON(Bidi 清洗 + 长整型精度保留)
53307
+ * @param {Blob} resp
53092
53308
  */
53093
53309
  function readBlobRespToJson(resp) {
53094
53310
  return readBlobResponse(resp).then(function (resText) {
53095
- return Promise.resolve(JSONBigNumber.parse(resText));
53311
+ return src_JSONBigNumber.parse(resText);
53096
53312
  });
53097
53313
  }
53314
+
53315
+ /**
53316
+ * 流式解析顶层 JSON 数组:
53317
+ * - 输入:字符串 ReadableStream(建议经过 TextDecoderStream + createSanitizeTransform)
53318
+ * - 输出:逐个 yield 数组内的对象,避免一次性 JSON.parse 大字符串
53319
+ * @param {ReadableStream<string>} stream
53320
+ */
53321
+ function parseJSONArrayStream(_x) {
53322
+ return _parseJSONArrayStream.apply(this, arguments);
53323
+ }
53324
+
53325
+ /**
53326
+ * 大 JSON 流水线消费:流式读取 → 文本解码 → Bidi 清洗 → 逐对象 parse
53327
+ * - 不落地完整字符串,可支撑 100MB+ 数据
53328
+ * - 每 256 条主动让出主线程一次,降低 UI 卡顿
53329
+ * @param {Blob} response
53330
+ * @param {(item: any) => void} onItem
53331
+ */
53332
+ function _parseJSONArrayStream() {
53333
+ _parseJSONArrayStream = _wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(stream) {
53334
+ var reader, buffer, start, depth, inString, escape, _yield$_awaitAsyncGen, done, value, i, ch;
53335
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
53336
+ while (1) switch (_context.prev = _context.next) {
53337
+ case 0:
53338
+ reader = stream.getReader();
53339
+ buffer = '';
53340
+ start = -1;
53341
+ depth = 0;
53342
+ inString = false;
53343
+ escape = false;
53344
+ _context.prev = 6;
53345
+ case 7:
53346
+ if (false) {}
53347
+ _context.next = 10;
53348
+ return _awaitAsyncGenerator(reader.read());
53349
+ case 10:
53350
+ _yield$_awaitAsyncGen = _context.sent;
53351
+ done = _yield$_awaitAsyncGen.done;
53352
+ value = _yield$_awaitAsyncGen.value;
53353
+ if (!done) {
53354
+ _context.next = 15;
53355
+ break;
53356
+ }
53357
+ return _context.abrupt("break", 43);
53358
+ case 15:
53359
+ buffer += value;
53360
+ i = 0;
53361
+ case 17:
53362
+ if (!(i < buffer.length)) {
53363
+ _context.next = 40;
53364
+ break;
53365
+ }
53366
+ ch = buffer[i];
53367
+ if (!inString) {
53368
+ _context.next = 22;
53369
+ break;
53370
+ }
53371
+ if (escape) escape = false;else if (ch === '\\') escape = true;else if (ch === '"') inString = false;
53372
+ return _context.abrupt("continue", 37);
53373
+ case 22:
53374
+ if (!(ch === '"')) {
53375
+ _context.next = 26;
53376
+ break;
53377
+ }
53378
+ inString = true;
53379
+ _context.next = 37;
53380
+ break;
53381
+ case 26:
53382
+ if (!(ch === '{')) {
53383
+ _context.next = 31;
53384
+ break;
53385
+ }
53386
+ if (depth === 0) start = i;
53387
+ depth++;
53388
+ _context.next = 37;
53389
+ break;
53390
+ case 31:
53391
+ if (!(ch === '}')) {
53392
+ _context.next = 37;
53393
+ break;
53394
+ }
53395
+ depth--;
53396
+ if (!(depth === 0 && start >= 0)) {
53397
+ _context.next = 37;
53398
+ break;
53399
+ }
53400
+ _context.next = 36;
53401
+ return JSONBigNumber.parse(buffer.slice(start, i + 1));
53402
+ case 36:
53403
+ start = -1;
53404
+ case 37:
53405
+ i++;
53406
+ _context.next = 17;
53407
+ break;
53408
+ case 40:
53409
+ if (depth > 0 && start >= 0) {
53410
+ buffer = buffer.slice(start);
53411
+ start = 0;
53412
+ } else {
53413
+ buffer = '';
53414
+ start = -1;
53415
+ }
53416
+ _context.next = 7;
53417
+ break;
53418
+ case 43:
53419
+ _context.prev = 43;
53420
+ reader.releaseLock();
53421
+ return _context.finish(43);
53422
+ case 46:
53423
+ case "end":
53424
+ return _context.stop();
53425
+ }
53426
+ }, _callee, null, [[6,, 43, 46]]);
53427
+ }));
53428
+ return _parseJSONArrayStream.apply(this, arguments);
53429
+ }
53430
+ function processHugeJSON(_x3, _x4) {
53431
+ return _processHugeJSON.apply(this, arguments);
53432
+ }
53433
+ function _processHugeJSON() {
53434
+ _processHugeJSON = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(response, onItem) {
53435
+ var canStream, text, list, i, stream, count, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, obj;
53436
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
53437
+ while (1) switch (_context3.prev = _context3.next) {
53438
+ case 0:
53439
+ canStream = supportsStreamPipeline() && response && typeof response.stream === 'function';
53440
+ if (canStream) {
53441
+ _context3.next = 17;
53442
+ break;
53443
+ }
53444
+ _context3.next = 4;
53445
+ return readBlobByFileReader(response).then(sanitizeBidi);
53446
+ case 4:
53447
+ text = _context3.sent;
53448
+ list = JSONBigNumber.parse(text);
53449
+ if (!Array.isArray(list)) {
53450
+ _context3.next = 16;
53451
+ break;
53452
+ }
53453
+ i = 0;
53454
+ case 8:
53455
+ if (!(i < list.length)) {
53456
+ _context3.next = 16;
53457
+ break;
53458
+ }
53459
+ onItem(list[i]);
53460
+ if (!((i & 0xff) === 0xff)) {
53461
+ _context3.next = 13;
53462
+ break;
53463
+ }
53464
+ _context3.next = 13;
53465
+ return new Promise(function (r) {
53466
+ return setTimeout(r);
53467
+ });
53468
+ case 13:
53469
+ i++;
53470
+ _context3.next = 8;
53471
+ break;
53472
+ case 16:
53473
+ return _context3.abrupt("return");
53474
+ case 17:
53475
+ stream = response.stream().pipeThrough(new TextDecoderStream()).pipeThrough(createSanitizeTransform());
53476
+ count = 0;
53477
+ _iteratorAbruptCompletion = false;
53478
+ _didIteratorError = false;
53479
+ _context3.prev = 21;
53480
+ _iterator = _asyncIterator(parseJSONArrayStream(stream));
53481
+ case 23:
53482
+ _context3.next = 25;
53483
+ return _iterator.next();
53484
+ case 25:
53485
+ if (!(_iteratorAbruptCompletion = !(_step = _context3.sent).done)) {
53486
+ _context3.next = 35;
53487
+ break;
53488
+ }
53489
+ obj = _step.value;
53490
+ onItem(obj);
53491
+ count += 1;
53492
+ if (!((count & 0xff) === 0)) {
53493
+ _context3.next = 32;
53494
+ break;
53495
+ }
53496
+ _context3.next = 32;
53497
+ return new Promise(function (r) {
53498
+ return setTimeout(r);
53499
+ });
53500
+ case 32:
53501
+ _iteratorAbruptCompletion = false;
53502
+ _context3.next = 23;
53503
+ break;
53504
+ case 35:
53505
+ _context3.next = 41;
53506
+ break;
53507
+ case 37:
53508
+ _context3.prev = 37;
53509
+ _context3.t0 = _context3["catch"](21);
53510
+ _didIteratorError = true;
53511
+ _iteratorError = _context3.t0;
53512
+ case 41:
53513
+ _context3.prev = 41;
53514
+ _context3.prev = 42;
53515
+ if (!(_iteratorAbruptCompletion && _iterator["return"] != null)) {
53516
+ _context3.next = 46;
53517
+ break;
53518
+ }
53519
+ _context3.next = 46;
53520
+ return _iterator["return"]();
53521
+ case 46:
53522
+ _context3.prev = 46;
53523
+ if (!_didIteratorError) {
53524
+ _context3.next = 49;
53525
+ break;
53526
+ }
53527
+ throw _iteratorError;
53528
+ case 49:
53529
+ return _context3.finish(46);
53530
+ case 50:
53531
+ return _context3.finish(41);
53532
+ case 51:
53533
+ case "end":
53534
+ return _context3.stop();
53535
+ }
53536
+ }, _callee3, null, [[21, 37, 41, 51], [42,, 46, 50]]);
53537
+ }));
53538
+ return _processHugeJSON.apply(this, arguments);
53539
+ }
53098
53540
  function bigNumberToString(value) {
53099
53541
  return (value || {})._isBigNumber ? value.toString().length < 16 ? Number(value) : value.toString() : value;
53100
53542
  }
@@ -53479,20 +53921,20 @@ var _parseTableRowData = function parseTableRowData(row, key) {
53479
53921
  var getRowFieldValue = function getRowFieldValue(row, field) {
53480
53922
  if (field.is_virtual_alias_field) {
53481
53923
  var fieldList = [field.field_name].concat(toConsumableArray_toConsumableArray(field.source_field_names));
53482
- var _iterator2 = _createForOfIteratorHelper(fieldList),
53483
- _step2;
53924
+ var _iterator3 = _createForOfIteratorHelper(fieldList),
53925
+ _step3;
53484
53926
  try {
53485
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
53486
- var fieldName = _step2.value;
53927
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
53928
+ var fieldName = _step3.value;
53487
53929
  var value = _parseTableRowData(row, fieldName, field.field_type, false, null);
53488
53930
  if (value !== undefined && value !== null && value !== '') {
53489
53931
  return value !== null && value !== void 0 ? value : '--';
53490
53932
  }
53491
53933
  }
53492
53934
  } catch (err) {
53493
- _iterator2.e(err);
53935
+ _iterator3.e(err);
53494
53936
  } finally {
53495
- _iterator2.f();
53937
+ _iterator3.f();
53496
53938
  }
53497
53939
  }
53498
53940
  return _parseTableRowData(row, field.field_name, field.field_type, false);
@@ -55703,36 +56145,6 @@ class ConditionOperator {
55703
56145
  }
55704
56146
  }
55705
56147
 
55706
- ;// ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
55707
- function asyncGeneratorStep(n, t, e, r, o, a, c) {
55708
- try {
55709
- var i = n[a](c),
55710
- u = i.value;
55711
- } catch (n) {
55712
- return void e(n);
55713
- }
55714
- i.done ? t(u) : Promise.resolve(u).then(r, o);
55715
- }
55716
- function _asyncToGenerator(n) {
55717
- return function () {
55718
- var t = this,
55719
- e = arguments;
55720
- return new Promise(function (r, o) {
55721
- var a = n.apply(t, e);
55722
- function _next(n) {
55723
- asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
55724
- }
55725
- function _throw(n) {
55726
- asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
55727
- }
55728
- _next(void 0);
55729
- });
55730
- };
55731
- }
55732
-
55733
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
55734
- var regenerator = __webpack_require__(4756);
55735
- var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
55736
56148
  ;// ./src/common/bkmagic.js
55737
56149
  /*
55738
56150
  * Tencent is pleased to support the open source community by making
@@ -59598,7 +60010,7 @@ axiosInstance.interceptors.request.use(function (config) {
59598
60010
  * @returns {Object|Promise} - 如果数据是 Blob 类型,则直接返回响应对象;否则返回处理后的响应数据。
59599
60011
  */
59600
60012
  axiosInstance.interceptors.response.use(/*#__PURE__*/function () {
59601
- var _ref = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2(response) {
60013
+ var _ref = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2(response) {
59602
60014
  var responsePromise;
59603
60015
  return regenerator_default().wrap(function _callee2$(_context2) {
59604
60016
  while (1) switch (_context2.prev = _context2.next) {
@@ -59608,7 +60020,7 @@ axiosInstance.interceptors.response.use(/*#__PURE__*/function () {
59608
60020
  var cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
59609
60021
  var config = response.config;
59610
60022
  return new Promise(/*#__PURE__*/function () {
59611
- var _ref2 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(resolve, reject) {
60023
+ var _ref2 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(resolve, reject) {
59612
60024
  return regenerator_default().wrap(function _callee$(_context) {
59613
60025
  while (1) switch (_context.prev = _context.next) {
59614
60026
  case 0:
@@ -59740,7 +60152,7 @@ function getPromise(_x4, _x5, _x6) {
59740
60152
  * @param {Function} promise 拒绝函数
59741
60153
  */
59742
60154
  function _getPromise() {
59743
- _getPromise = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4(method, url, data) {
60155
+ _getPromise = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4(method, url, data) {
59744
60156
  var userConfig,
59745
60157
  config,
59746
60158
  promise,
@@ -59769,7 +60181,7 @@ function _getPromise() {
59769
60181
  return _context4.abrupt("return", promise);
59770
60182
  case 8:
59771
60183
  promise = new Promise(/*#__PURE__*/function () {
59772
- var _ref5 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3(resolve, reject) {
60184
+ var _ref5 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3(resolve, reject) {
59773
60185
  var axiosRequest, response;
59774
60186
  return regenerator_default().wrap(function _callee3$(_context3) {
59775
60187
  while (1) switch (_context3.prev = _context3.next) {
@@ -71067,7 +71479,7 @@ var batch_operation_menuvue_type_template_id_e77a8126_scoped_true_staticRenderFn
71067
71479
  return _handleBatchDeleteFavorite.apply(this, arguments);
71068
71480
  } // 批量移动分组
71069
71481
  function _handleBatchDeleteFavorite() {
71070
- _handleBatchDeleteFavorite = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
71482
+ _handleBatchDeleteFavorite = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
71071
71483
  var res;
71072
71484
  return regenerator_default().wrap(function _callee$(_context) {
71073
71485
  while (1) switch (_context.prev = _context.next) {
@@ -71109,7 +71521,7 @@ var batch_operation_menuvue_type_template_id_e77a8126_scoped_true_staticRenderFn
71109
71521
  return _handleBatchMoveToGroup.apply(this, arguments);
71110
71522
  } // 添加新分组确认
71111
71523
  function _handleBatchMoveToGroup() {
71112
- _handleBatchMoveToGroup = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2(id) {
71524
+ _handleBatchMoveToGroup = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2(id) {
71113
71525
  var params;
71114
71526
  return regenerator_default().wrap(function _callee2$(_context2) {
71115
71527
  while (1) switch (_context2.prev = _context2.next) {
@@ -71153,7 +71565,7 @@ var batch_operation_menuvue_type_template_id_e77a8126_scoped_true_staticRenderFn
71153
71565
  return _handleAddGroupConfirm.apply(this, arguments);
71154
71566
  }
71155
71567
  function _handleAddGroupConfirm() {
71156
- _handleAddGroupConfirm = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3() {
71568
+ _handleAddGroupConfirm = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3() {
71157
71569
  var _checkInputAddFormRef, _operationMenuRef$val, data, res;
71158
71570
  return regenerator_default().wrap(function _callee3$(_context3) {
71159
71571
  while (1) switch (_context3.prev = _context3.next) {
@@ -71414,7 +71826,7 @@ function favorite_detailvue_type_script_setup_true_lang_js_objectSpread(e) { for
71414
71826
  groupInput.value = props.value.group_id;
71415
71827
  };
71416
71828
  var handleUpdateName = /*#__PURE__*/function () {
71417
- var _ref2 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
71829
+ var _ref2 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
71418
71830
  var params, success;
71419
71831
  return regenerator_default().wrap(function _callee$(_context) {
71420
71832
  while (1) switch (_context.prev = _context.next) {
@@ -71445,7 +71857,7 @@ function favorite_detailvue_type_script_setup_true_lang_js_objectSpread(e) { for
71445
71857
  };
71446
71858
  }();
71447
71859
  var handleUpdateGroup = /*#__PURE__*/function () {
71448
- var _ref3 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
71860
+ var _ref3 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
71449
71861
  var _props$groups$find, group_name, params, success;
71450
71862
  return regenerator_default().wrap(function _callee2$(_context2) {
71451
71863
  while (1) switch (_context2.prev = _context2.next) {
@@ -71481,7 +71893,7 @@ function favorite_detailvue_type_script_setup_true_lang_js_objectSpread(e) { for
71481
71893
  };
71482
71894
  }();
71483
71895
  var handleUpdateFavorite = /*#__PURE__*/function () {
71484
- var _ref4 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3(row) {
71896
+ var _ref4 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3(row) {
71485
71897
  var params;
71486
71898
  return regenerator_default().wrap(function _callee3$(_context3) {
71487
71899
  while (1) switch (_context3.prev = _context3.next) {
@@ -71837,7 +72249,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
71837
72249
  deep: true
71838
72250
  });
71839
72251
  var initData = /*#__PURE__*/function () {
71840
- var _ref2 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
72252
+ var _ref2 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
71841
72253
  var val,
71842
72254
  _args = arguments;
71843
72255
  return regenerator_default().wrap(function _callee$(_context) {
@@ -71868,7 +72280,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
71868
72280
  };
71869
72281
  /** 获取组列表 */
71870
72282
  var getGroupList = /*#__PURE__*/function () {
71871
- var _ref3 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
72283
+ var _ref3 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
71872
72284
  var res;
71873
72285
  return regenerator_default().wrap(function _callee2$(_context2) {
71874
72286
  while (1) switch (_context2.prev = _context2.next) {
@@ -71912,7 +72324,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
71912
72324
 
71913
72325
  /** 获取收藏请求 */
71914
72326
  var getFavoriteList = /*#__PURE__*/function () {
71915
- var _ref4 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3() {
72327
+ var _ref4 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3() {
71916
72328
  var res, data;
71917
72329
  return regenerator_default().wrap(function _callee3$(_context3) {
71918
72330
  while (1) switch (_context3.prev = _context3.next) {
@@ -72002,7 +72414,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
72002
72414
  }),
72003
72415
  type: "warning",
72004
72416
  confirmFn: function () {
72005
- var _confirmFn = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4() {
72417
+ var _confirmFn = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4() {
72006
72418
  var res;
72007
72419
  return regenerator_default().wrap(function _callee4$(_context4) {
72008
72420
  while (1) switch (_context4.prev = _context4.next) {
@@ -72048,7 +72460,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
72048
72460
  };
72049
72461
  /** 添加分组 */
72050
72462
  var handleAddGroupConfirm = /*#__PURE__*/function () {
72051
- var _ref6 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee5() {
72463
+ var _ref6 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee5() {
72052
72464
  var data;
72053
72465
  return regenerator_default().wrap(function _callee5$(_context5) {
72054
72466
  while (1) switch (_context5.prev = _context5.next) {
@@ -72165,7 +72577,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
72165
72577
  }
72166
72578
  };
72167
72579
  var handleUpdateFavorite = /*#__PURE__*/function () {
72168
- var _ref7 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee6(row) {
72580
+ var _ref7 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee6(row) {
72169
72581
  var params;
72170
72582
  return regenerator_default().wrap(function _callee6$(_context6) {
72171
72583
  while (1) switch (_context6.prev = _context6.next) {
@@ -72222,7 +72634,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
72222
72634
  };
72223
72635
  // 批量编辑分组
72224
72636
  var handleBatchUpdateGroup = /*#__PURE__*/function () {
72225
- var _ref8 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee7(groupId) {
72637
+ var _ref8 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee7(groupId) {
72226
72638
  var selectIds, updateDataInList, _updateDataInList;
72227
72639
  return regenerator_default().wrap(function _callee7$(_context7) {
72228
72640
  while (1) switch (_context7.prev = _context7.next) {
@@ -77762,7 +78174,7 @@ var external_vuedraggable_default = /*#__PURE__*/__webpack_require__.n(external_
77762
78174
 
77763
78175
  // 新建提交逻辑
77764
78176
  var handleCreateRequest = /*#__PURE__*/function () {
77765
- var _ref = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
78177
+ var _ref = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
77766
78178
  var param;
77767
78179
  return regenerator_default().wrap(function _callee$(_context) {
77768
78180
  while (1) switch (_context.prev = _context.next) {
@@ -77786,7 +78198,7 @@ var external_vuedraggable_default = /*#__PURE__*/__webpack_require__.n(external_
77786
78198
  };
77787
78199
  }();
77788
78200
  var confirmModifyFields = /*#__PURE__*/function () {
77789
- var _ref2 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
78201
+ var _ref2 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
77790
78202
  return regenerator_default().wrap(function _callee2$(_context2) {
77791
78203
  while (1) switch (_context2.prev = _context2.next) {
77792
78204
  case 0:
@@ -111816,7 +112228,7 @@ var BookmarkPop = function BookmarkPop() {
111816
112228
  return store.state.indexItem;
111817
112229
  });
111818
112230
  var saveCurrentActiveFavorite = /*#__PURE__*/function () {
111819
- var _ref2 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
112231
+ var _ref2 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
111820
112232
  var _reqFormatAddition$fi, _reqFormatAddition$fi2;
111821
112233
  var _activeFavorite$value2, name, group_id, display_fields, visible_type, is_enable_display_fields, index_set_type, searchMode, reqFormatAddition, searchParams, data, _activeFavorite$value3, res;
111822
112234
  return regenerator_default().wrap(function _callee$(_context) {
@@ -111898,7 +112310,7 @@ var BookmarkPop = function BookmarkPop() {
111898
112310
  };
111899
112311
  }();
111900
112312
  var handleCopyQueryValue = /*#__PURE__*/function () {
111901
- var _ref3 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
112313
+ var _ref3 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
111902
112314
  var target;
111903
112315
  return regenerator_default().wrap(function _callee2$(_context2) {
111904
112316
  while (1) switch (_context2.prev = _context2.next) {
@@ -120294,7 +120706,7 @@ SettingMoreMenu = __decorate([vue_class_component_esm], SettingMoreMenu);
120294
120706
  methods: {
120295
120707
  /** 用户配置操作 */emitOperate: function emitOperate(type) {
120296
120708
  var _this = this;
120297
- return _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
120709
+ return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
120298
120710
  var submitData;
120299
120711
  return regenerator_default().wrap(function _callee$(_context) {
120300
120712
  while (1) switch (_context.prev = _context.next) {
@@ -120361,7 +120773,7 @@ SettingMoreMenu = __decorate([vue_class_component_esm], SettingMoreMenu);
120361
120773
  */
120362
120774
  handleDeleteTipPopoverShow: function handleDeleteTipPopoverShow() {
120363
120775
  var _this2 = this;
120364
- return _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
120776
+ return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
120365
120777
  var _this2$$refs, _this2$$refs2, _this2$$refs3, _this2$deleteTipInsta3;
120366
120778
  return regenerator_default().wrap(function _callee2$(_context2) {
120367
120779
  while (1) switch (_context2.prev = _context2.next) {
@@ -120653,7 +121065,7 @@ var FIELD_CONFIG_FILENAME_PREFIX = 'log-field-';
120653
121065
  methods: {
120654
121066
  /** 带config列表请求的初始化 */initRequestConfigListShow: function initRequestConfigListShow() {
120655
121067
  var _this4 = this;
120656
- return _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
121068
+ return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
120657
121069
  return regenerator_default().wrap(function _callee$(_context) {
120658
121070
  while (1) switch (_context.prev = _context.next) {
120659
121071
  case 0:
@@ -120683,7 +121095,7 @@ var FIELD_CONFIG_FILENAME_PREFIX = 'log-field-';
120683
121095
  },
120684
121096
  /** 保存或应用 */confirmModifyFields: function confirmModifyFields() {
120685
121097
  var _this5 = this;
120686
- return _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
121098
+ return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
120687
121099
  var currentVisibleList, _this5$$refs, updateSortList, confirmConfigData;
120688
121100
  return regenerator_default().wrap(function _callee2$(_context2) {
120689
121101
  while (1) switch (_context2.prev = _context2.next) {
@@ -120758,7 +121170,7 @@ var FIELD_CONFIG_FILENAME_PREFIX = 'log-field-';
120758
121170
  },
120759
121171
  /** 更新config */submitFieldsSet: function submitFieldsSet(configID) {
120760
121172
  var _this6 = this;
120761
- return _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3() {
121173
+ return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3() {
120762
121174
  return regenerator_default().wrap(function _callee3$(_context3) {
120763
121175
  while (1) switch (_context3.prev = _context3.next) {
120764
121176
  case 0:
@@ -120887,7 +121299,7 @@ var FIELD_CONFIG_FILENAME_PREFIX = 'log-field-';
120887
121299
  /** 更新配置 */handleUpdateConfig: function handleUpdateConfig(updateItem) {
120888
121300
  var _arguments = arguments,
120889
121301
  _this7 = this;
120890
- return _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4() {
121302
+ return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4() {
120891
121303
  var isCreate, successMsg, requestStr, data;
120892
121304
  return regenerator_default().wrap(function _callee4$(_context4) {
120893
121305
  while (1) switch (_context4.prev = _context4.next) {
@@ -120944,7 +121356,7 @@ var FIELD_CONFIG_FILENAME_PREFIX = 'log-field-';
120944
121356
  },
120945
121357
  /** 删除配置 */handleDeleteConfig: function handleDeleteConfig(configID) {
120946
121358
  var _this8 = this;
120947
- return _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee5() {
121359
+ return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee5() {
120948
121360
  return regenerator_default().wrap(function _callee5$(_context5) {
120949
121361
  while (1) switch (_context5.prev = _context5.next) {
120950
121362
  case 0:
@@ -121030,7 +121442,7 @@ var FIELD_CONFIG_FILENAME_PREFIX = 'log-field-';
121030
121442
  },
121031
121443
  /** 获取配置列表 */getFiledConfigList: function getFiledConfigList() {
121032
121444
  var _this10 = this;
121033
- return _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee6() {
121445
+ return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee6() {
121034
121446
  var res;
121035
121447
  return regenerator_default().wrap(function _callee6$(_context6) {
121036
121448
  while (1) switch (_context6.prev = _context6.next) {
@@ -136401,6 +136813,7 @@ var StrategyType;
136401
136813
  /** 数量突增告警告警是否保存过 */
136402
136814
  const increaseIsSubmit = (0,vue_esm.ref)(false);
136403
136815
  const bkBizId = (0,vue_esm.computed)(() => store.state.bkBizId);
136816
+ const indexItemBizId = (0,vue_esm.computed)(() => store.state.indexItem.items[0]?.bk_biz_id ?? bkBizId.value);
136404
136817
  (0,vue_esm.watch)(alarmIsSubmit, () => {
136405
136818
  props.strategySubmitStatus?.(alarmIsSubmit.value);
136406
136819
  });
@@ -136462,7 +136875,7 @@ var StrategyType;
136462
136875
  }, [(0,vue_esm.h)("config-item", {
136463
136876
  "attrs": {
136464
136877
  "configData": strategyConfigData.value,
136465
- "bkBizId": bkBizId.value,
136878
+ "bkBizId": indexItemBizId.value,
136466
136879
  "configured": alarmIsSubmit.value,
136467
136880
  "indexId": props.indexId,
136468
136881
  "labelName": labelName.value,
@@ -136474,7 +136887,7 @@ var StrategyType;
136474
136887
  }), (0,vue_esm.h)("config-item", {
136475
136888
  "attrs": {
136476
136889
  "configData": strategyConfigData.value,
136477
- "bkBizId": bkBizId.value,
136890
+ "bkBizId": indexItemBizId.value,
136478
136891
  "configured": increaseIsSubmit.value,
136479
136892
  "indexId": props.indexId,
136480
136893
  "labelName": labelName.value,
@@ -152100,8 +152513,8 @@ const SearchResultTab = () => null;
152100
152513
  }), renderTabContent()]);
152101
152514
  }
152102
152515
  }));
152103
- ;// ./node_modules/thread-loader/dist/cjs.js??clonedRuleSet-3.use[0]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[1]!./node_modules/ifdef-loader/ifdef-loader.js??clonedRuleSet-3.use[2]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/views/retrieve-v2/sub-bar/index.vue?vue&type=template&id=4ec14278
152104
- var sub_barvue_type_template_id_4ec14278_render = function render() {
152516
+ ;// ./node_modules/thread-loader/dist/cjs.js??clonedRuleSet-3.use[0]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[1]!./node_modules/ifdef-loader/ifdef-loader.js??clonedRuleSet-3.use[2]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/views/retrieve-v2/sub-bar/index.vue?vue&type=template&id=08eba3c6
152517
+ var sub_barvue_type_template_id_08eba3c6_render = function render() {
152105
152518
  var _vm = this,
152106
152519
  _c = _vm._self._c,
152107
152520
  _setup = _vm._self._setupProxy;
@@ -152181,7 +152594,7 @@ var sub_barvue_type_template_id_4ec14278_render = function render() {
152181
152594
  }
152182
152595
  })], 1) : _vm._e()]);
152183
152596
  };
152184
- var sub_barvue_type_template_id_4ec14278_staticRenderFns = [];
152597
+ var sub_barvue_type_template_id_08eba3c6_staticRenderFns = [];
152185
152598
 
152186
152599
  ;// ./src/components/ellipsis-tag-list/index.tsx
152187
152600
  /*
@@ -154398,30 +154811,25 @@ var AutoRefresh = function AutoRefresh() {
154398
154811
  });
154399
154812
  };
154400
154813
  var handleIndexSetSelected = /*#__PURE__*/function () {
154401
- var _ref = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(payload) {
154814
+ var _ref = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(payload) {
154402
154815
  var _payload$ids, indexSetDefaultCondition, _payload$items$, _payload$items$2, _payload$pid;
154403
154816
  return regenerator_default().wrap(function _callee$(_context) {
154404
154817
  while (1) switch (_context.prev = _context.next) {
154405
154818
  case 0:
154406
- console.log('handleIndexSetSelected = ', payload);
154407
154819
  if (!lodash_es_isEqual(indexSetParams.value.ids, payload.ids) || indexSetParams.value.isUnionIndex !== payload.isUnionIndex) {
154408
- console.log('11111');
154409
154820
  /** 索引集默认条件 */
154410
154821
  indexSetDefaultCondition = {};
154411
154822
  /** 只选择一个索引集且ui模式和sql模式都没有值, 取索引集默认条件
154412
154823
  * 如果是监控组件,切换采集项的时候也取对应索引集默认条件
154413
154824
  */
154414
- if (payload.items.length === 1 && (!indexSetParams.value.addition.length && !indexSetParams.value.keyword || window.__IS_MONITOR_COMPONENT__)) {
154415
- console.log('22222');
154825
+ if (payload.items.length === 1 && (!indexSetParams.value.addition.length && !indexSetParams.value.keyword || isMonitorComponent)) {
154416
154826
  if ((_payload$items$ = payload.items[0]) !== null && _payload$items$ !== void 0 && _payload$items$.query_string) {
154417
- console.log('33333');
154418
154827
  indexSetDefaultCondition = {
154419
154828
  keyword: payload.items[0].query_string,
154420
154829
  search_mode: 'sql',
154421
154830
  addition: []
154422
154831
  };
154423
154832
  } else if ((_payload$items$2 = payload.items[0]) !== null && _payload$items$2 !== void 0 && _payload$items$2.addition) {
154424
- console.log('44444');
154425
154833
  indexSetDefaultCondition = {
154426
154834
  addition: toConsumableArray_toConsumableArray(payload.items[0].addition),
154427
154835
  search_mode: 'ui',
@@ -154429,7 +154837,6 @@ var AutoRefresh = function AutoRefresh() {
154429
154837
  };
154430
154838
  }
154431
154839
  if (indexSetDefaultCondition.search_mode) {
154432
- console.log('55555');
154433
154840
  store.commit('updateStorage', defineProperty_defineProperty({}, store_type_BK_LOG_STORAGE.SEARCH_TYPE, ['ui', 'sql'].indexOf(indexSetDefaultCondition.search_mode)));
154434
154841
  }
154435
154842
  }
@@ -154437,7 +154844,6 @@ var AutoRefresh = function AutoRefresh() {
154437
154844
  store.commit('updateUnionIndexList', payload.isUnionIndex ? (_payload$ids = payload.ids) !== null && _payload$ids !== void 0 ? _payload$ids : [] : []);
154438
154845
  store.commit('updateIndexItem', sub_barvue_type_script_setup_true_lang_js_objectSpread(sub_barvue_type_script_setup_true_lang_js_objectSpread({}, payload), indexSetDefaultCondition));
154439
154846
  if (!payload.isUnionIndex) {
154440
- console.log('66666');
154441
154847
  store.commit('updateState', {
154442
154848
  indexId: payload.ids[0]
154443
154849
  });
@@ -154464,9 +154870,10 @@ var AutoRefresh = function AutoRefresh() {
154464
154870
  });
154465
154871
  setRouteParams(payload.ids, payload.isUnionIndex, payload.pid);
154466
154872
  } else {
154467
- console.log('77777');
154468
154873
  if ((_payload$pid = payload.pid) !== null && _payload$pid !== void 0 && _payload$pid.length && !lodash_es_isEqual(payload.pid, indexSetPid.value)) {
154469
- console.log('88888');
154874
+ store.commit('updateIndexItem', {
154875
+ pid: payload.pid
154876
+ });
154470
154877
  router.replace({
154471
154878
  query: sub_barvue_type_script_setup_true_lang_js_objectSpread(sub_barvue_type_script_setup_true_lang_js_objectSpread({}, route.query), {}, {
154472
154879
  pid: JSON.stringify(payload.pid)
@@ -154474,7 +154881,7 @@ var AutoRefresh = function AutoRefresh() {
154474
154881
  });
154475
154882
  }
154476
154883
  }
154477
- case 2:
154884
+ case 1:
154478
154885
  case "end":
154479
154886
  return _context.stop();
154480
154887
  }
@@ -154650,8 +155057,8 @@ var AutoRefresh = function AutoRefresh() {
154650
155057
 
154651
155058
  var sub_bar_component = normalizeComponent(
154652
155059
  retrieve_v2_sub_barvue_type_script_setup_true_lang_js,
154653
- sub_barvue_type_template_id_4ec14278_render,
154654
- sub_barvue_type_template_id_4ec14278_staticRenderFns,
155060
+ sub_barvue_type_template_id_08eba3c6_render,
155061
+ sub_barvue_type_template_id_08eba3c6_staticRenderFns,
154655
155062
  false,
154656
155063
  null,
154657
155064
  null,
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@blueking/monitor-trace-log","version":"2.0.10","description":"","main":"main.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"MIT"}
1
+ {"name":"@blueking/monitor-trace-log","version":"2.0.11","description":"","main":"main.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"MIT"}