@blueking/monitor-trace-log 2.0.9 → 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.
- package/css/main.css +13 -7
- package/fonts/{iconcool3e93020.ttf → iconcool043d97a.ttf} +0 -0
- package/fonts/{iconcoolfcf16a4.eot → iconcool3d83ae4.eot} +0 -0
- package/fonts/{iconcoole30d2f3.woff → iconcoola8035e4.woff} +0 -0
- package/img/{iconcool097417b.svg → iconcoold41009d.svg} +6 -0
- package/main.js +695 -156
- package/package.json +1 -11
package/main.js
CHANGED
|
@@ -41359,9 +41359,12 @@ var services_collect_namespaceObject = {};
|
|
|
41359
41359
|
__webpack_require__.r(services_collect_namespaceObject);
|
|
41360
41360
|
__webpack_require__.d(services_collect_namespaceObject, {
|
|
41361
41361
|
addCollection: () => (addCollection),
|
|
41362
|
+
addIndexGroup: () => (addIndexGroup),
|
|
41362
41363
|
applyItsmTicket: () => (applyItsmTicket),
|
|
41364
|
+
collectorFieldEnums: () => (collectorFieldEnums),
|
|
41363
41365
|
createCollectionTask: () => (createCollectionTask),
|
|
41364
41366
|
createWeWork: () => (createWeWork),
|
|
41367
|
+
delIndexGroup: () => (delIndexGroup),
|
|
41365
41368
|
deleteCollect: () => (deleteCollect),
|
|
41366
41369
|
details: () => (details),
|
|
41367
41370
|
executDetails: () => (executDetails),
|
|
@@ -41374,6 +41377,7 @@ __webpack_require__.d(services_collect_namespaceObject, {
|
|
|
41374
41377
|
getCollectList: () => (getCollectList),
|
|
41375
41378
|
getCollectStatus: () => (getCollectStatus),
|
|
41376
41379
|
getCollectorPlugins: () => (getCollectorPlugins),
|
|
41380
|
+
getCollectorStatus: () => (getCollectorStatus),
|
|
41377
41381
|
getDynamicGroup: () => (getDynamicGroup),
|
|
41378
41382
|
getDynamicGroupList: () => (getDynamicGroupList),
|
|
41379
41383
|
getEtlPreview: () => (collect_getEtlPreview),
|
|
@@ -41382,6 +41386,7 @@ __webpack_require__.d(services_collect_namespaceObject, {
|
|
|
41382
41386
|
getHostByIp: () => (getHostByIp),
|
|
41383
41387
|
getHostByNode: () => (getHostByNode),
|
|
41384
41388
|
getHostByTemplate: () => (getHostByTemplate),
|
|
41389
|
+
getIndexGroupList: () => (getIndexGroupList),
|
|
41385
41390
|
getIssuedClusterList: () => (getIssuedClusterList),
|
|
41386
41391
|
getNodeAgentStatus: () => (getNodeAgentStatus),
|
|
41387
41392
|
getPreCheck: () => (getPreCheck),
|
|
@@ -41395,6 +41400,7 @@ __webpack_require__.d(services_collect_namespaceObject, {
|
|
|
41395
41400
|
getUserReportList: () => (getUserReportList),
|
|
41396
41401
|
getUsernameList: () => (getUsernameList),
|
|
41397
41402
|
globals: () => (globals),
|
|
41403
|
+
newCollectList: () => (newCollectList),
|
|
41398
41404
|
onlyCreateCollection: () => (onlyCreateCollection),
|
|
41399
41405
|
onlyUpdateCollection: () => (onlyUpdateCollection),
|
|
41400
41406
|
queryItsmTicket: () => (queryItsmTicket),
|
|
@@ -41405,7 +41411,8 @@ __webpack_require__.d(services_collect_namespaceObject, {
|
|
|
41405
41411
|
startCollect: () => (startCollect),
|
|
41406
41412
|
stopCollect: () => (stopCollect),
|
|
41407
41413
|
syncUserReport: () => (syncUserReport),
|
|
41408
|
-
updateCollection: () => (updateCollection)
|
|
41414
|
+
updateCollection: () => (updateCollection),
|
|
41415
|
+
updateIndexGroup: () => (updateIndexGroup)
|
|
41409
41416
|
});
|
|
41410
41417
|
|
|
41411
41418
|
// NAMESPACE OBJECT: ./src/services/container.js
|
|
@@ -45029,7 +45036,7 @@ const updateTimezone = newTz => {
|
|
|
45029
45036
|
"您当前没有业务权限,请先联系对应的业务运维同学进行添加!': '您当前没有业务权限,请先联系对应的业务运维同学进行添加!": "You currently do not have business permissions, please contact the corresponding business operation and maintenance students to add!': 'you currently do not have business permissions, please contact the corresponding business operation and maintenance students to add!",
|
|
45030
45037
|
'如果日志已经存储在Elasticsearch,可以在“集群管理”中添加Elasticsearch集群,就可以通过创建索引集来使用存储中的日志数据。': 'If the logs are already stored in Elasticsearch, you can add an Elasticsearch cluster in "Cluster management", and then use the log data in storage by creating an index set.',
|
|
45031
45038
|
'该功能指从查询语句中获取相应的字段,当勾选对应的字段时,将以表单的填写方式显示给收藏的使用者。(字段说明:没有字段时,为全文检索;重复的字段增加显示序号(N) ,默认不勾选任何字段)': 'This function refers to getting the corresponding fields from the query statement. when the corresponding fields are checked, they will be displayed to the collector users in the form of form filling. (field description: when there is no field, it is a full-text search; duplicate fields increase the display sequence number (n), and no fields are selected by default).',
|
|
45032
|
-
'选择{n}范围': 'Select {n} scope',
|
|
45039
|
+
'选择 {n} 范围': 'Select {n} scope',
|
|
45033
45040
|
所有选择范围可相互叠加并作用: 'All selection ranges can be stacked and act on each other',
|
|
45034
45041
|
按命名空间选择: 'Select by NameSpace',
|
|
45035
45042
|
'按标签选择{n}': 'Select {n} by label',
|
|
@@ -45545,12 +45552,6 @@ const updateTimezone = newTz => {
|
|
|
45545
45552
|
'聚类正则已生效,请前往 {0} 修改': 'Clustering regularization has taken effect, please go to {0} to modify',
|
|
45546
45553
|
原始日志检索结果: 'Original log retrieval results',
|
|
45547
45554
|
'可切换原始日志,查看该日志的上下文': 'You can switch to the original log to view the context of the log',
|
|
45548
|
-
'搜索 任务 ID、任务名称、openID、创建方式、任务状态、任务阶段、创建人': 'Task ID, Name, OpenID, Create Method, Status, Stage, Creator',
|
|
45549
|
-
'使用本功能,需要在您的项目中集成并初始化相应的软件开发工具包(SDK),点击查看。': 'To use this feature, you need to integrate and initialize the corresponding Software Development Kit (SDK) in your project. Click to view.',
|
|
45550
|
-
'暂无下载链接,请在任务完成后点击下载': 'No download link available. Please click download after completing the task.',
|
|
45551
|
-
灰度业务: 'Gray scale business',
|
|
45552
|
-
'本功能为灰度业务,请联系管理员开通': 'This feature is currently in a phased rollout phase. Please contact the administrator to activate it.',
|
|
45553
|
-
任务未处理完成: 'The task has not been processed completely',
|
|
45554
45555
|
'最大 {num} 个': 'Maximum {num}',
|
|
45555
45556
|
'最大 {num} 天': 'Maximum {num} days',
|
|
45556
45557
|
所属索引集: 'Associated index set',
|
|
@@ -45559,7 +45560,7 @@ const updateTimezone = newTz => {
|
|
|
45559
45560
|
全部采集项: 'All collection items',
|
|
45560
45561
|
创建索引集可合并多采集项一同使用: 'Create index set to merge multiple collection items for use together',
|
|
45561
45562
|
'搜索 索引集名称': 'Search index set name',
|
|
45562
|
-
'搜索
|
|
45563
|
+
'搜索 数据ID、采集名、存储名': 'Search by data ID, collection name, and storage name.',
|
|
45563
45564
|
暂无索引集: 'No index set yet',
|
|
45564
45565
|
'第三方ES 日志接入': 'Third-party ES log access',
|
|
45565
45566
|
文件采集: 'File collection',
|
|
@@ -45619,6 +45620,22 @@ const updateTimezone = newTz => {
|
|
|
45619
45620
|
集群说明: 'Cluster Description',
|
|
45620
45621
|
副本数量: 'Replica Count',
|
|
45621
45622
|
集群备注: 'Cluster Remarks',
|
|
45623
|
+
'搜索 任务 ID、任务名称、openID、创建方式、任务状态、任务阶段、创建人': 'Task ID, Name, OpenID, Create Method, Status, Stage, Creator',
|
|
45624
|
+
'使用本功能,需要在您的项目中集成并初始化相应的软件开发工具包(SDK),点击查看。': 'To use this feature, you need to integrate and initialize the corresponding Software Development Kit (SDK) in your project. Click to view.',
|
|
45625
|
+
'暂无下载链接,请在任务完成后点击下载': 'No download link available. Please click download after completing the task.',
|
|
45626
|
+
灰度业务: 'Gray scale business',
|
|
45627
|
+
'本功能为灰度业务,请联系管理员开通': 'This feature is currently in a phased rollout phase. Please contact the administrator to activate it.',
|
|
45628
|
+
任务未完成: 'Task not completed',
|
|
45629
|
+
'Windows Event 日志': 'Windows Event Log',
|
|
45630
|
+
容器标准输出: 'Container Standard Output',
|
|
45631
|
+
容器文件采集: 'Container File Collection',
|
|
45632
|
+
开启清洗: 'Enable Cleaning',
|
|
45633
|
+
停用索引集: 'Disable Index Set',
|
|
45634
|
+
'索引集停用后,该索引集将无法检索。': 'After the index set is disabled, it will no longer be searchable.',
|
|
45635
|
+
请确认停用类型: 'Please confirm the disable type',
|
|
45636
|
+
停用采集配置: 'Disable Collection Configuration',
|
|
45637
|
+
'采集项停用后,在有效期内,您仍可检索历史日志。': 'After the collection item is disabled, you can still search historical logs within the validity period.',
|
|
45638
|
+
任务未处理完成: 'The task has not been processed completely',
|
|
45622
45639
|
'日志上传中...': 'Log uploading...',
|
|
45623
45640
|
'预计等待2-3分钟,窗口关闭后不会影响任务执行': 'The estimated waiting time is 2-3 minutes. Closing the window will not affect the task execution.',
|
|
45624
45641
|
日志上传成功: 'Log upload successful',
|
|
@@ -45645,7 +45662,8 @@ const updateTimezone = newTz => {
|
|
|
45645
45662
|
设置排序字段: 'Set sorting field',
|
|
45646
45663
|
排序字段设置: 'Sort field settings',
|
|
45647
45664
|
至少需要配置一个排序字段: 'At least one sorting field needs to be configured',
|
|
45648
|
-
文件不存在: 'File does not exist'
|
|
45665
|
+
文件不存在: 'File does not exist',
|
|
45666
|
+
热数据天数不能大于过期时间: 'The number of days for hot data cannot exceed the expiration time'
|
|
45649
45667
|
});
|
|
45650
45668
|
;// ./src/language/lang/en/label.ts
|
|
45651
45669
|
/*
|
|
@@ -46605,7 +46623,8 @@ const updateTimezone = newTz => {
|
|
|
46605
46623
|
未上传: 'Not uploaded',
|
|
46606
46624
|
英文名称: 'English name',
|
|
46607
46625
|
'搜索名称、英文名称、地址、创建人': 'Search by name, English name, address, or creator',
|
|
46608
|
-
集群英文名称: 'Cluster English Name'
|
|
46626
|
+
集群英文名称: 'Cluster English Name',
|
|
46627
|
+
'最大自定义天数为{n}': 'Maximum custom days is {n}'
|
|
46609
46628
|
});
|
|
46610
46629
|
;// ./src/language/lang/en/route.ts
|
|
46611
46630
|
/*
|
|
@@ -47406,6 +47425,111 @@ function defineProperty_defineProperty(e, r, t) {
|
|
|
47406
47425
|
}) : e[r] = t, e;
|
|
47407
47426
|
}
|
|
47408
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);
|
|
47409
47533
|
;// ./src/store/store.type.ts
|
|
47410
47534
|
/*
|
|
47411
47535
|
* Tencent is pleased to support the open source community by making
|
|
@@ -52487,7 +52611,7 @@ function JSONBigNumber_parse(source, reviver) {
|
|
|
52487
52611
|
result;
|
|
52488
52612
|
}
|
|
52489
52613
|
|
|
52490
|
-
/* harmony default export */ const
|
|
52614
|
+
/* harmony default export */ const src_JSONBigNumber = ({
|
|
52491
52615
|
parse: JSONBigNumber_parse,
|
|
52492
52616
|
stringify: stringify
|
|
52493
52617
|
});
|
|
@@ -52498,11 +52622,17 @@ function JSONBigNumber_parse(source, reviver) {
|
|
|
52498
52622
|
|
|
52499
52623
|
|
|
52500
52624
|
|
|
52625
|
+
|
|
52626
|
+
|
|
52627
|
+
|
|
52501
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; }
|
|
52502
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
|
+
|
|
52503
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; } } }; }
|
|
52504
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; } }
|
|
52505
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); }
|
|
52506
52636
|
/*
|
|
52507
52637
|
* Tencent is pleased to support the open source community by making
|
|
52508
52638
|
* 蓝鲸智云PaaS平台 (BlueKing PaaS) available.
|
|
@@ -52854,11 +52984,11 @@ function projectManage(menuProject, projectName, childName) {
|
|
|
52854
52984
|
return project;
|
|
52855
52985
|
}
|
|
52856
52986
|
function projectManages(menuList, id) {
|
|
52857
|
-
var
|
|
52858
|
-
|
|
52987
|
+
var _iterator2 = _createForOfIteratorHelper(menuList),
|
|
52988
|
+
_step2;
|
|
52859
52989
|
try {
|
|
52860
|
-
for (
|
|
52861
|
-
var menu =
|
|
52990
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
52991
|
+
var menu = _step2.value;
|
|
52862
52992
|
if (menu.id === id) {
|
|
52863
52993
|
return menu.project_manage;
|
|
52864
52994
|
}
|
|
@@ -52870,9 +53000,9 @@ function projectManages(menuList, id) {
|
|
|
52870
53000
|
}
|
|
52871
53001
|
}
|
|
52872
53002
|
} catch (err) {
|
|
52873
|
-
|
|
53003
|
+
_iterator2.e(err);
|
|
52874
53004
|
} finally {
|
|
52875
|
-
|
|
53005
|
+
_iterator2.f();
|
|
52876
53006
|
}
|
|
52877
53007
|
return undefined;
|
|
52878
53008
|
}
|
|
@@ -53051,31 +53181,362 @@ function formatFileSize(size) {
|
|
|
53051
53181
|
}
|
|
53052
53182
|
|
|
53053
53183
|
/**
|
|
53054
|
-
*
|
|
53055
|
-
*
|
|
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 再处理,避免控制字符被拆分
|
|
53056
53209
|
*/
|
|
53057
|
-
function
|
|
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) {
|
|
53058
53231
|
return new Promise(function (resolve, reject) {
|
|
53059
53232
|
var reader = new FileReader();
|
|
53060
53233
|
reader.onload = function () {
|
|
53061
|
-
resolve(reader.result);
|
|
53234
|
+
return resolve(reader.result);
|
|
53062
53235
|
};
|
|
53063
53236
|
reader.onerror = function () {
|
|
53064
|
-
reject(reader.error);
|
|
53237
|
+
return reject(reader.error);
|
|
53065
53238
|
};
|
|
53066
|
-
reader.readAsText(
|
|
53239
|
+
reader.readAsText(blob);
|
|
53067
53240
|
});
|
|
53068
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
|
+
}
|
|
53069
53304
|
|
|
53070
53305
|
/**
|
|
53071
|
-
* 读取Blob
|
|
53072
|
-
* @param {
|
|
53306
|
+
* 读取 Blob 为 JSON(Bidi 清洗 + 长整型精度保留)
|
|
53307
|
+
* @param {Blob} resp
|
|
53073
53308
|
*/
|
|
53074
53309
|
function readBlobRespToJson(resp) {
|
|
53075
53310
|
return readBlobResponse(resp).then(function (resText) {
|
|
53076
|
-
return
|
|
53311
|
+
return src_JSONBigNumber.parse(resText);
|
|
53077
53312
|
});
|
|
53078
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
|
+
}
|
|
53079
53540
|
function bigNumberToString(value) {
|
|
53080
53541
|
return (value || {})._isBigNumber ? value.toString().length < 16 ? Number(value) : value.toString() : value;
|
|
53081
53542
|
}
|
|
@@ -53460,20 +53921,20 @@ var _parseTableRowData = function parseTableRowData(row, key) {
|
|
|
53460
53921
|
var getRowFieldValue = function getRowFieldValue(row, field) {
|
|
53461
53922
|
if (field.is_virtual_alias_field) {
|
|
53462
53923
|
var fieldList = [field.field_name].concat(toConsumableArray_toConsumableArray(field.source_field_names));
|
|
53463
|
-
var
|
|
53464
|
-
|
|
53924
|
+
var _iterator3 = _createForOfIteratorHelper(fieldList),
|
|
53925
|
+
_step3;
|
|
53465
53926
|
try {
|
|
53466
|
-
for (
|
|
53467
|
-
var fieldName =
|
|
53927
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
53928
|
+
var fieldName = _step3.value;
|
|
53468
53929
|
var value = _parseTableRowData(row, fieldName, field.field_type, false, null);
|
|
53469
53930
|
if (value !== undefined && value !== null && value !== '') {
|
|
53470
53931
|
return value !== null && value !== void 0 ? value : '--';
|
|
53471
53932
|
}
|
|
53472
53933
|
}
|
|
53473
53934
|
} catch (err) {
|
|
53474
|
-
|
|
53935
|
+
_iterator3.e(err);
|
|
53475
53936
|
} finally {
|
|
53476
|
-
|
|
53937
|
+
_iterator3.f();
|
|
53477
53938
|
}
|
|
53478
53939
|
}
|
|
53479
53940
|
return _parseTableRowData(row, field.field_name, field.field_type, false);
|
|
@@ -55684,36 +56145,6 @@ class ConditionOperator {
|
|
|
55684
56145
|
}
|
|
55685
56146
|
}
|
|
55686
56147
|
|
|
55687
|
-
;// ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
55688
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
55689
|
-
try {
|
|
55690
|
-
var i = n[a](c),
|
|
55691
|
-
u = i.value;
|
|
55692
|
-
} catch (n) {
|
|
55693
|
-
return void e(n);
|
|
55694
|
-
}
|
|
55695
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
55696
|
-
}
|
|
55697
|
-
function _asyncToGenerator(n) {
|
|
55698
|
-
return function () {
|
|
55699
|
-
var t = this,
|
|
55700
|
-
e = arguments;
|
|
55701
|
-
return new Promise(function (r, o) {
|
|
55702
|
-
var a = n.apply(t, e);
|
|
55703
|
-
function _next(n) {
|
|
55704
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
55705
|
-
}
|
|
55706
|
-
function _throw(n) {
|
|
55707
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
55708
|
-
}
|
|
55709
|
-
_next(void 0);
|
|
55710
|
-
});
|
|
55711
|
-
};
|
|
55712
|
-
}
|
|
55713
|
-
|
|
55714
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
55715
|
-
var regenerator = __webpack_require__(4756);
|
|
55716
|
-
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
55717
56148
|
;// ./src/common/bkmagic.js
|
|
55718
56149
|
/*
|
|
55719
56150
|
* Tencent is pleased to support the open source community by making
|
|
@@ -56503,6 +56934,58 @@ var getStorageUsage = {
|
|
|
56503
56934
|
url: '/index_set/storage_usage/',
|
|
56504
56935
|
method: 'post'
|
|
56505
56936
|
};
|
|
56937
|
+
/**
|
|
56938
|
+
* 新版采集列表接口
|
|
56939
|
+
*/
|
|
56940
|
+
var newCollectList = {
|
|
56941
|
+
url: '/databus/log_access/collector/',
|
|
56942
|
+
method: 'post'
|
|
56943
|
+
};
|
|
56944
|
+
/**
|
|
56945
|
+
* 获取左侧索引集列表
|
|
56946
|
+
*/
|
|
56947
|
+
var getIndexGroupList = {
|
|
56948
|
+
url: '/index_group/',
|
|
56949
|
+
method: 'get'
|
|
56950
|
+
};
|
|
56951
|
+
|
|
56952
|
+
/**
|
|
56953
|
+
* 新增左侧索引集
|
|
56954
|
+
*/
|
|
56955
|
+
var addIndexGroup = {
|
|
56956
|
+
url: '/index_group/',
|
|
56957
|
+
method: 'post'
|
|
56958
|
+
};
|
|
56959
|
+
/**
|
|
56960
|
+
* 更新左侧索引集
|
|
56961
|
+
*/
|
|
56962
|
+
var updateIndexGroup = {
|
|
56963
|
+
url: '/index_group/:index_set_id/',
|
|
56964
|
+
method: 'put'
|
|
56965
|
+
};
|
|
56966
|
+
|
|
56967
|
+
/**
|
|
56968
|
+
* 删除左侧索引集
|
|
56969
|
+
*/
|
|
56970
|
+
var delIndexGroup = {
|
|
56971
|
+
url: '/index_group/:index_set_id/',
|
|
56972
|
+
method: 'delete'
|
|
56973
|
+
};
|
|
56974
|
+
|
|
56975
|
+
/**
|
|
56976
|
+
* 获取采集列表过滤相关枚举值
|
|
56977
|
+
*/
|
|
56978
|
+
var collectorFieldEnums = {
|
|
56979
|
+
url: '/databus/log_access/collector_field_enums/',
|
|
56980
|
+
method: 'get'
|
|
56981
|
+
};
|
|
56982
|
+
/**
|
|
56983
|
+
* 获取采集列表状态接口
|
|
56984
|
+
*/
|
|
56985
|
+
var getCollectorStatus = {
|
|
56986
|
+
url: '/databus/log_access/collector_status/',
|
|
56987
|
+
method: 'post'
|
|
56988
|
+
};
|
|
56506
56989
|
|
|
56507
56990
|
// 获取客户端日志-采集下发-日志列表数据
|
|
56508
56991
|
var getTaskLogList = {
|
|
@@ -59527,7 +60010,7 @@ axiosInstance.interceptors.request.use(function (config) {
|
|
|
59527
60010
|
* @returns {Object|Promise} - 如果数据是 Blob 类型,则直接返回响应对象;否则返回处理后的响应数据。
|
|
59528
60011
|
*/
|
|
59529
60012
|
axiosInstance.interceptors.response.use(/*#__PURE__*/function () {
|
|
59530
|
-
var _ref =
|
|
60013
|
+
var _ref = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2(response) {
|
|
59531
60014
|
var responsePromise;
|
|
59532
60015
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
59533
60016
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -59537,7 +60020,7 @@ axiosInstance.interceptors.response.use(/*#__PURE__*/function () {
|
|
|
59537
60020
|
var cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
59538
60021
|
var config = response.config;
|
|
59539
60022
|
return new Promise(/*#__PURE__*/function () {
|
|
59540
|
-
var _ref2 =
|
|
60023
|
+
var _ref2 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(resolve, reject) {
|
|
59541
60024
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
59542
60025
|
while (1) switch (_context.prev = _context.next) {
|
|
59543
60026
|
case 0:
|
|
@@ -59669,7 +60152,7 @@ function getPromise(_x4, _x5, _x6) {
|
|
|
59669
60152
|
* @param {Function} promise 拒绝函数
|
|
59670
60153
|
*/
|
|
59671
60154
|
function _getPromise() {
|
|
59672
|
-
_getPromise =
|
|
60155
|
+
_getPromise = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4(method, url, data) {
|
|
59673
60156
|
var userConfig,
|
|
59674
60157
|
config,
|
|
59675
60158
|
promise,
|
|
@@ -59698,7 +60181,7 @@ function _getPromise() {
|
|
|
59698
60181
|
return _context4.abrupt("return", promise);
|
|
59699
60182
|
case 8:
|
|
59700
60183
|
promise = new Promise(/*#__PURE__*/function () {
|
|
59701
|
-
var _ref5 =
|
|
60184
|
+
var _ref5 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3(resolve, reject) {
|
|
59702
60185
|
var axiosRequest, response;
|
|
59703
60186
|
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
59704
60187
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -63617,7 +64100,11 @@ const IndexFieldInfo = {
|
|
|
63617
64100
|
has_repeat_alias_field: false,
|
|
63618
64101
|
alias_mapping_field: null,
|
|
63619
64102
|
is_virtual_alias_field: false,
|
|
63620
|
-
source_field_names: []
|
|
64103
|
+
source_field_names: [],
|
|
64104
|
+
// field_name → FieldInfoItem 索引,在 updateIndexFieldInfo 中同步构建
|
|
64105
|
+
fieldNameIndex: {},
|
|
64106
|
+
// query_alias → FieldInfoItem 索引,在 updateIndexFieldInfo 中同步构建
|
|
64107
|
+
queryAliasIndex: {}
|
|
63621
64108
|
};
|
|
63622
64109
|
const IndexsetItemParams = {
|
|
63623
64110
|
...DEFAULT_RETRIEVE_PARAMS
|
|
@@ -64687,6 +65174,7 @@ var _resolveIndexItemAttr = function resolveIndexItemAttr() {
|
|
|
64687
65174
|
flatIndexSetList: [],
|
|
64688
65175
|
isIndexSetLoading: false,
|
|
64689
65176
|
isTrendDataLoading: false,
|
|
65177
|
+
isTotalCountLoaded: false,
|
|
64690
65178
|
trendDataCount: 0,
|
|
64691
65179
|
catchFieldCustomConfig: {
|
|
64692
65180
|
fieldsWidth: {},
|
|
@@ -64705,6 +65193,9 @@ var _resolveIndexItemAttr = function resolveIndexItemAttr() {
|
|
|
64705
65193
|
updateTrendDataLoading: function updateTrendDataLoading(state, payload) {
|
|
64706
65194
|
state.isTrendDataLoading = payload;
|
|
64707
65195
|
},
|
|
65196
|
+
updateTotalCountLoaded: function updateTotalCountLoaded(state, payload) {
|
|
65197
|
+
state.isTotalCountLoaded = payload;
|
|
65198
|
+
},
|
|
64708
65199
|
updateTrendDataCount: function updateTrendDataCount(state, payload) {
|
|
64709
65200
|
state.trendDataCount = payload;
|
|
64710
65201
|
},
|
|
@@ -65616,6 +66107,16 @@ var store_store = new vuex_esm.Store({
|
|
|
65616
66107
|
}
|
|
65617
66108
|
return 0;
|
|
65618
66109
|
});
|
|
66110
|
+
var fieldNameIndex = {};
|
|
66111
|
+
var queryAliasIndex = {};
|
|
66112
|
+
state.indexFieldInfo.fields.forEach(function (f) {
|
|
66113
|
+
fieldNameIndex[f.field_name] = f;
|
|
66114
|
+
if (f.query_alias) {
|
|
66115
|
+
queryAliasIndex[f.query_alias] = f;
|
|
66116
|
+
}
|
|
66117
|
+
});
|
|
66118
|
+
(0,vue_esm.set)(state.indexFieldInfo, 'fieldNameIndex', fieldNameIndex);
|
|
66119
|
+
(0,vue_esm.set)(state.indexFieldInfo, 'queryAliasIndex', queryAliasIndex);
|
|
65619
66120
|
}
|
|
65620
66121
|
}), "updateIndexFieldEggsItems", function updateIndexFieldEggsItems(state, payload) {
|
|
65621
66122
|
var _state$indexItem2 = state.indexItem,
|
|
@@ -70978,7 +71479,7 @@ var batch_operation_menuvue_type_template_id_e77a8126_scoped_true_staticRenderFn
|
|
|
70978
71479
|
return _handleBatchDeleteFavorite.apply(this, arguments);
|
|
70979
71480
|
} // 批量移动分组
|
|
70980
71481
|
function _handleBatchDeleteFavorite() {
|
|
70981
|
-
_handleBatchDeleteFavorite =
|
|
71482
|
+
_handleBatchDeleteFavorite = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
70982
71483
|
var res;
|
|
70983
71484
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
70984
71485
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -71020,7 +71521,7 @@ var batch_operation_menuvue_type_template_id_e77a8126_scoped_true_staticRenderFn
|
|
|
71020
71521
|
return _handleBatchMoveToGroup.apply(this, arguments);
|
|
71021
71522
|
} // 添加新分组确认
|
|
71022
71523
|
function _handleBatchMoveToGroup() {
|
|
71023
|
-
_handleBatchMoveToGroup =
|
|
71524
|
+
_handleBatchMoveToGroup = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2(id) {
|
|
71024
71525
|
var params;
|
|
71025
71526
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
71026
71527
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -71064,7 +71565,7 @@ var batch_operation_menuvue_type_template_id_e77a8126_scoped_true_staticRenderFn
|
|
|
71064
71565
|
return _handleAddGroupConfirm.apply(this, arguments);
|
|
71065
71566
|
}
|
|
71066
71567
|
function _handleAddGroupConfirm() {
|
|
71067
|
-
_handleAddGroupConfirm =
|
|
71568
|
+
_handleAddGroupConfirm = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3() {
|
|
71068
71569
|
var _checkInputAddFormRef, _operationMenuRef$val, data, res;
|
|
71069
71570
|
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
71070
71571
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -71325,7 +71826,7 @@ function favorite_detailvue_type_script_setup_true_lang_js_objectSpread(e) { for
|
|
|
71325
71826
|
groupInput.value = props.value.group_id;
|
|
71326
71827
|
};
|
|
71327
71828
|
var handleUpdateName = /*#__PURE__*/function () {
|
|
71328
|
-
var _ref2 =
|
|
71829
|
+
var _ref2 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
71329
71830
|
var params, success;
|
|
71330
71831
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
71331
71832
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -71356,7 +71857,7 @@ function favorite_detailvue_type_script_setup_true_lang_js_objectSpread(e) { for
|
|
|
71356
71857
|
};
|
|
71357
71858
|
}();
|
|
71358
71859
|
var handleUpdateGroup = /*#__PURE__*/function () {
|
|
71359
|
-
var _ref3 =
|
|
71860
|
+
var _ref3 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
71360
71861
|
var _props$groups$find, group_name, params, success;
|
|
71361
71862
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
71362
71863
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -71392,7 +71893,7 @@ function favorite_detailvue_type_script_setup_true_lang_js_objectSpread(e) { for
|
|
|
71392
71893
|
};
|
|
71393
71894
|
}();
|
|
71394
71895
|
var handleUpdateFavorite = /*#__PURE__*/function () {
|
|
71395
|
-
var _ref4 =
|
|
71896
|
+
var _ref4 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3(row) {
|
|
71396
71897
|
var params;
|
|
71397
71898
|
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
71398
71899
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -71748,7 +72249,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
71748
72249
|
deep: true
|
|
71749
72250
|
});
|
|
71750
72251
|
var initData = /*#__PURE__*/function () {
|
|
71751
|
-
var _ref2 =
|
|
72252
|
+
var _ref2 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
71752
72253
|
var val,
|
|
71753
72254
|
_args = arguments;
|
|
71754
72255
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
@@ -71779,7 +72280,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
71779
72280
|
};
|
|
71780
72281
|
/** 获取组列表 */
|
|
71781
72282
|
var getGroupList = /*#__PURE__*/function () {
|
|
71782
|
-
var _ref3 =
|
|
72283
|
+
var _ref3 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
71783
72284
|
var res;
|
|
71784
72285
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
71785
72286
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -71823,7 +72324,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
71823
72324
|
|
|
71824
72325
|
/** 获取收藏请求 */
|
|
71825
72326
|
var getFavoriteList = /*#__PURE__*/function () {
|
|
71826
|
-
var _ref4 =
|
|
72327
|
+
var _ref4 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3() {
|
|
71827
72328
|
var res, data;
|
|
71828
72329
|
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
71829
72330
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -71913,7 +72414,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
71913
72414
|
}),
|
|
71914
72415
|
type: "warning",
|
|
71915
72416
|
confirmFn: function () {
|
|
71916
|
-
var _confirmFn =
|
|
72417
|
+
var _confirmFn = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4() {
|
|
71917
72418
|
var res;
|
|
71918
72419
|
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
71919
72420
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -71959,7 +72460,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
71959
72460
|
};
|
|
71960
72461
|
/** 添加分组 */
|
|
71961
72462
|
var handleAddGroupConfirm = /*#__PURE__*/function () {
|
|
71962
|
-
var _ref6 =
|
|
72463
|
+
var _ref6 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee5() {
|
|
71963
72464
|
var data;
|
|
71964
72465
|
return regenerator_default().wrap(function _callee5$(_context5) {
|
|
71965
72466
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -72076,7 +72577,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
72076
72577
|
}
|
|
72077
72578
|
};
|
|
72078
72579
|
var handleUpdateFavorite = /*#__PURE__*/function () {
|
|
72079
|
-
var _ref7 =
|
|
72580
|
+
var _ref7 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee6(row) {
|
|
72080
72581
|
var params;
|
|
72081
72582
|
return regenerator_default().wrap(function _callee6$(_context6) {
|
|
72082
72583
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -72133,7 +72634,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
72133
72634
|
};
|
|
72134
72635
|
// 批量编辑分组
|
|
72135
72636
|
var handleBatchUpdateGroup = /*#__PURE__*/function () {
|
|
72136
|
-
var _ref8 =
|
|
72637
|
+
var _ref8 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee7(groupId) {
|
|
72137
72638
|
var selectIds, updateDataInList, _updateDataInList;
|
|
72138
72639
|
return regenerator_default().wrap(function _callee7$(_context7) {
|
|
72139
72640
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -77673,7 +78174,7 @@ var external_vuedraggable_default = /*#__PURE__*/__webpack_require__.n(external_
|
|
|
77673
78174
|
|
|
77674
78175
|
// 新建提交逻辑
|
|
77675
78176
|
var handleCreateRequest = /*#__PURE__*/function () {
|
|
77676
|
-
var _ref =
|
|
78177
|
+
var _ref = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
77677
78178
|
var param;
|
|
77678
78179
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
77679
78180
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -77697,7 +78198,7 @@ var external_vuedraggable_default = /*#__PURE__*/__webpack_require__.n(external_
|
|
|
77697
78198
|
};
|
|
77698
78199
|
}();
|
|
77699
78200
|
var confirmModifyFields = /*#__PURE__*/function () {
|
|
77700
|
-
var _ref2 =
|
|
78201
|
+
var _ref2 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
77701
78202
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
77702
78203
|
while (1) switch (_context2.prev = _context2.next) {
|
|
77703
78204
|
case 0:
|
|
@@ -106365,8 +106866,8 @@ function highlightNotKeywords() {
|
|
|
106365
106866
|
destroy: destroy
|
|
106366
106867
|
};
|
|
106367
106868
|
});
|
|
106368
|
-
;// ./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/search-bar/sql-mode/sql-query-options.vue?vue&type=template&id=
|
|
106369
|
-
var
|
|
106869
|
+
;// ./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/search-bar/sql-mode/sql-query-options.vue?vue&type=template&id=080da438&scoped=true
|
|
106870
|
+
var sql_query_optionsvue_type_template_id_080da438_scoped_true_render = function render() {
|
|
106370
106871
|
var _vm = this,
|
|
106371
106872
|
_c = _vm._self._c,
|
|
106372
106873
|
_setup = _vm._self._setupProxy;
|
|
@@ -106661,7 +107162,7 @@ var sql_query_optionsvue_type_template_id_9287358c_scoped_true_render = function
|
|
|
106661
107162
|
}
|
|
106662
107163
|
})], 1)]);
|
|
106663
107164
|
};
|
|
106664
|
-
var
|
|
107165
|
+
var sql_query_optionsvue_type_template_id_080da438_scoped_true_staticRenderFns = [function () {
|
|
106665
107166
|
var _vm = this,
|
|
106666
107167
|
_c = _vm._self._c,
|
|
106667
107168
|
_setup = _vm._self._setupProxy;
|
|
@@ -106735,7 +107236,7 @@ var sql_query_optionsvue_type_template_id_9287358c_scoped_true_staticRenderFns =
|
|
|
106735
107236
|
})]);
|
|
106736
107237
|
}];
|
|
106737
107238
|
|
|
106738
|
-
;// ./src/views/retrieve-v2/search-bar/sql-mode/sql-query-options.vue?vue&type=template&id=
|
|
107239
|
+
;// ./src/views/retrieve-v2/search-bar/sql-mode/sql-query-options.vue?vue&type=template&id=080da438&scoped=true
|
|
106739
107240
|
|
|
106740
107241
|
;// ./src/hooks/use-field-name.ts
|
|
106741
107242
|
/*
|
|
@@ -106780,6 +107281,35 @@ const getFieldNameByField = (field, store) => {
|
|
|
106780
107281
|
let {
|
|
106781
107282
|
store
|
|
106782
107283
|
} = _ref;
|
|
107284
|
+
const getStoreFieldNameIndex = () => store.state.indexFieldInfo.fieldNameIndex ?? {};
|
|
107285
|
+
const getStoreQueryAliasIndex = () => store.state.indexFieldInfo.queryAliasIndex ?? {};
|
|
107286
|
+
const buildFieldNameIndex = list => {
|
|
107287
|
+
const map = {};
|
|
107288
|
+
for (const f of list) {
|
|
107289
|
+
map[f.field_name] = f;
|
|
107290
|
+
}
|
|
107291
|
+
return map;
|
|
107292
|
+
};
|
|
107293
|
+
const buildQueryAliasIndex = list => {
|
|
107294
|
+
const map = {};
|
|
107295
|
+
for (const f of list) {
|
|
107296
|
+
if (f.query_alias) {
|
|
107297
|
+
map[f.query_alias] = f;
|
|
107298
|
+
}
|
|
107299
|
+
}
|
|
107300
|
+
return map;
|
|
107301
|
+
};
|
|
107302
|
+
const lookupByFieldName = function (fieldName, list) {
|
|
107303
|
+
let withAliasFieldMap = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
107304
|
+
if (list) {
|
|
107305
|
+
return list.find(item => item.field_name === fieldName);
|
|
107306
|
+
}
|
|
107307
|
+
const field = getStoreFieldNameIndex()[fieldName];
|
|
107308
|
+
if (!withAliasFieldMap && field?.is_virtual_alias_field) {
|
|
107309
|
+
return undefined;
|
|
107310
|
+
}
|
|
107311
|
+
return field;
|
|
107312
|
+
};
|
|
106783
107313
|
/**
|
|
106784
107314
|
* 根据字段名返回别名
|
|
106785
107315
|
* @param name 字段名field_name
|
|
@@ -106787,8 +107317,8 @@ const getFieldNameByField = (field, store) => {
|
|
|
106787
107317
|
*/
|
|
106788
107318
|
const getFieldName = name => {
|
|
106789
107319
|
if (store.state.storage[store_type_BK_LOG_STORAGE.SHOW_FIELD_ALIAS]) {
|
|
106790
|
-
const field =
|
|
106791
|
-
return field
|
|
107320
|
+
const field = getStoreFieldNameIndex()[name];
|
|
107321
|
+
return field?.query_alias || name;
|
|
106792
107322
|
}
|
|
106793
107323
|
return name;
|
|
106794
107324
|
};
|
|
@@ -106850,8 +107380,15 @@ const getFieldNameByField = (field, store) => {
|
|
|
106850
107380
|
*/
|
|
106851
107381
|
const changeFieldName = function (name, list) {
|
|
106852
107382
|
let withAliasFieldMap = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
106853
|
-
|
|
106854
|
-
|
|
107383
|
+
if (list) {
|
|
107384
|
+
const index = buildQueryAliasIndex(list);
|
|
107385
|
+
return index[name]?.field_name || name;
|
|
107386
|
+
}
|
|
107387
|
+
const field = getStoreQueryAliasIndex()[name];
|
|
107388
|
+
if (!withAliasFieldMap && field?.is_virtual_alias_field) {
|
|
107389
|
+
return name;
|
|
107390
|
+
}
|
|
107391
|
+
return field?.field_name || name;
|
|
106855
107392
|
};
|
|
106856
107393
|
/**
|
|
106857
107394
|
* 根据字段名返回拼接字段名
|
|
@@ -106860,15 +107397,15 @@ const getFieldNameByField = (field, store) => {
|
|
|
106860
107397
|
*/
|
|
106861
107398
|
const getQualifiedFieldName = function (fieldName, list) {
|
|
106862
107399
|
let withAliasFieldMap = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
106863
|
-
const field = (list
|
|
106864
|
-
if (field
|
|
106865
|
-
return `${field
|
|
107400
|
+
const field = lookupByFieldName(fieldName, list, withAliasFieldMap);
|
|
107401
|
+
if (field?.query_alias) {
|
|
107402
|
+
return `${field.query_alias}(${fieldName})`;
|
|
106866
107403
|
}
|
|
106867
107404
|
return fieldName;
|
|
106868
107405
|
};
|
|
106869
107406
|
/**
|
|
106870
|
-
*
|
|
106871
|
-
* @param
|
|
107407
|
+
* 根据字段名返回拼接字段名及附加属性
|
|
107408
|
+
* @param fieldName
|
|
106872
107409
|
* @param list
|
|
106873
107410
|
* @param withAliasFieldMap
|
|
106874
107411
|
* @param attrs
|
|
@@ -106877,10 +107414,10 @@ const getFieldNameByField = (field, store) => {
|
|
|
106877
107414
|
const getQualifiedFieldAttrs = function (fieldName, list) {
|
|
106878
107415
|
let withAliasFieldMap = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
106879
107416
|
let attrs = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
106880
|
-
const field = (list
|
|
107417
|
+
const field = lookupByFieldName(fieldName, list, withAliasFieldMap);
|
|
106881
107418
|
const reduceFn = (acc, attr) => {
|
|
106882
107419
|
if (attr !== 'field_name') {
|
|
106883
|
-
acc[attr] = field[attr];
|
|
107420
|
+
acc[attr] = field?.[attr];
|
|
106884
107421
|
}
|
|
106885
107422
|
return acc;
|
|
106886
107423
|
};
|
|
@@ -106901,7 +107438,8 @@ const getFieldNameByField = (field, store) => {
|
|
|
106901
107438
|
changeFieldName,
|
|
106902
107439
|
getFieldNameByField: mGetFieldNameByField,
|
|
106903
107440
|
getQualifiedFieldName,
|
|
106904
|
-
getQualifiedFieldAttrs
|
|
107441
|
+
getQualifiedFieldAttrs,
|
|
107442
|
+
buildFieldNameIndex
|
|
106905
107443
|
};
|
|
106906
107444
|
});
|
|
106907
107445
|
;// ./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/search-bar/components/favorite-list.vue?vue&type=template&id=7dca101c&scoped=true
|
|
@@ -107120,7 +107658,7 @@ var OptionItemType;
|
|
|
107120
107658
|
} = use_locale();
|
|
107121
107659
|
const {
|
|
107122
107660
|
getQualifiedFieldName,
|
|
107123
|
-
|
|
107661
|
+
buildFieldNameIndex
|
|
107124
107662
|
} = use_field_name({
|
|
107125
107663
|
store
|
|
107126
107664
|
});
|
|
@@ -107352,15 +107890,15 @@ var OptionItemType;
|
|
|
107352
107890
|
// 开始输入字段【nam】
|
|
107353
107891
|
const inputField = /^\s*(?<field>[\w.]+)$/.exec(lastFragment)?.groups?.field;
|
|
107354
107892
|
if (inputField) {
|
|
107893
|
+
const fieldIndex = store.state.indexFieldInfo.fieldNameIndex ?? buildFieldNameIndex(totalFields.value);
|
|
107894
|
+
const inputLower = inputField.toLowerCase();
|
|
107355
107895
|
fieldList.value = originFieldList().reduce((acc, item) => {
|
|
107356
|
-
const
|
|
107357
|
-
|
|
107358
|
-
|
|
107359
|
-
|
|
107360
|
-
const index = fieldName.toLowerCase().indexOf(inputField.toLowerCase());
|
|
107361
|
-
if (index >= 0) {
|
|
107896
|
+
const field = fieldIndex[item];
|
|
107897
|
+
const displayName = field?.query_alias ? `${field.query_alias}(${item})` : item;
|
|
107898
|
+
const idx = displayName.toLowerCase().indexOf(inputLower);
|
|
107899
|
+
if (idx >= 0) {
|
|
107362
107900
|
acc.push({
|
|
107363
|
-
index:
|
|
107901
|
+
index: idx * 10 - (field?.is_virtual_alias_field ? 1 : 0),
|
|
107364
107902
|
fieldName: item
|
|
107365
107903
|
});
|
|
107366
107904
|
}
|
|
@@ -107557,7 +108095,7 @@ var OptionItemType;
|
|
|
107557
108095
|
});
|
|
107558
108096
|
});
|
|
107559
108097
|
const fieldNameShow = item => {
|
|
107560
|
-
return getQualifiedFieldName(item
|
|
108098
|
+
return getQualifiedFieldName(item);
|
|
107561
108099
|
};
|
|
107562
108100
|
expose({
|
|
107563
108101
|
beforeShowndFn,
|
|
@@ -107579,7 +108117,7 @@ var OptionItemType;
|
|
|
107579
108117
|
store,
|
|
107580
108118
|
$t,
|
|
107581
108119
|
getQualifiedFieldName,
|
|
107582
|
-
|
|
108120
|
+
buildFieldNameIndex,
|
|
107583
108121
|
shortCutClsName,
|
|
107584
108122
|
isAiAssistantActive,
|
|
107585
108123
|
OptionItemType,
|
|
@@ -107644,11 +108182,11 @@ var OptionItemType;
|
|
|
107644
108182
|
|
|
107645
108183
|
var sql_query_options_component = normalizeComponent(
|
|
107646
108184
|
sql_mode_sql_query_optionsvue_type_script_lang_ts_setup_true,
|
|
107647
|
-
|
|
107648
|
-
|
|
108185
|
+
sql_query_optionsvue_type_template_id_080da438_scoped_true_render,
|
|
108186
|
+
sql_query_optionsvue_type_template_id_080da438_scoped_true_staticRenderFns,
|
|
107649
108187
|
false,
|
|
107650
108188
|
null,
|
|
107651
|
-
"
|
|
108189
|
+
"080da438",
|
|
107652
108190
|
null
|
|
107653
108191
|
|
|
107654
108192
|
)
|
|
@@ -111690,7 +112228,7 @@ var BookmarkPop = function BookmarkPop() {
|
|
|
111690
112228
|
return store.state.indexItem;
|
|
111691
112229
|
});
|
|
111692
112230
|
var saveCurrentActiveFavorite = /*#__PURE__*/function () {
|
|
111693
|
-
var _ref2 =
|
|
112231
|
+
var _ref2 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
111694
112232
|
var _reqFormatAddition$fi, _reqFormatAddition$fi2;
|
|
111695
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;
|
|
111696
112234
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
@@ -111772,7 +112310,7 @@ var BookmarkPop = function BookmarkPop() {
|
|
|
111772
112310
|
};
|
|
111773
112311
|
}();
|
|
111774
112312
|
var handleCopyQueryValue = /*#__PURE__*/function () {
|
|
111775
|
-
var _ref3 =
|
|
112313
|
+
var _ref3 = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
111776
112314
|
var target;
|
|
111777
112315
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
111778
112316
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -112748,17 +113286,15 @@ const DEFAULT_AI_QUERY_RESULT = {
|
|
|
112748
113286
|
* 获取字段配置
|
|
112749
113287
|
*/
|
|
112750
113288
|
const fieldsJsonValue = (0,vue_esm.computed)(() => {
|
|
112751
|
-
const fieldConfig =
|
|
112752
|
-
|
|
112753
|
-
|
|
112754
|
-
|
|
112755
|
-
|
|
112756
|
-
|
|
112757
|
-
|
|
112758
|
-
} : {})
|
|
112759
|
-
}
|
|
113289
|
+
const fieldConfig = {};
|
|
113290
|
+
for (const field of store.state.indexFieldInfo.fields) {
|
|
113291
|
+
fieldConfig[field.field_name] = {
|
|
113292
|
+
type: field.field_type,
|
|
113293
|
+
...(field.query_alias ? {
|
|
113294
|
+
query_alias: field.query_alias
|
|
113295
|
+
} : {})
|
|
112760
113296
|
};
|
|
112761
|
-
}
|
|
113297
|
+
}
|
|
112762
113298
|
return JSON.stringify(fieldConfig);
|
|
112763
113299
|
});
|
|
112764
113300
|
/**
|
|
@@ -113473,9 +114009,9 @@ var log_resultvue_type_template_id_5a3341aa_scoped_true_render = function render
|
|
|
113473
114009
|
};
|
|
113474
114010
|
var log_resultvue_type_template_id_5a3341aa_scoped_true_staticRenderFns = [];
|
|
113475
114011
|
|
|
113476
|
-
;// ./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/result-comp/export-log.vue?vue&type=template&id=
|
|
114012
|
+
;// ./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/result-comp/export-log.vue?vue&type=template&id=2621a59b&scoped=true
|
|
113477
114013
|
|
|
113478
|
-
var
|
|
114014
|
+
var export_logvue_type_template_id_2621a59b_scoped_true_render = function render() {
|
|
113479
114015
|
var _vm = this,
|
|
113480
114016
|
_c = _vm._self._c;
|
|
113481
114017
|
return _c('div', [_c('div', {
|
|
@@ -113644,7 +114180,7 @@ var export_logvue_type_template_id_18b5c5b9_scoped_true_render = function render
|
|
|
113644
114180
|
});
|
|
113645
114181
|
}), 1) : _vm._e()], 1) : _vm._e(), _vm._v(" "), false ? 0 : _vm._e()])])], 1);
|
|
113646
114182
|
};
|
|
113647
|
-
var
|
|
114183
|
+
var export_logvue_type_template_id_2621a59b_scoped_true_staticRenderFns = [];
|
|
113648
114184
|
|
|
113649
114185
|
;// ./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/result-comp/export-history.vue?vue&type=template&id=789055ea&scoped=true
|
|
113650
114186
|
var export_historyvue_type_template_id_789055ea_scoped_true_render = function render() {
|
|
@@ -114442,7 +114978,7 @@ function export_logvue_type_script_lang_js_objectSpread(e) { for (var r = 1; r <
|
|
|
114442
114978
|
return state.retrieve.trendDataCount;
|
|
114443
114979
|
},
|
|
114444
114980
|
queueStatus: function queueStatus(state) {
|
|
114445
|
-
return
|
|
114981
|
+
return state.retrieve.isTotalCountLoaded;
|
|
114446
114982
|
},
|
|
114447
114983
|
totalFields: function totalFields(state) {
|
|
114448
114984
|
var _state$indexFieldInfo;
|
|
@@ -114717,11 +115253,11 @@ function export_logvue_type_script_lang_js_objectSpread(e) { for (var r = 1; r <
|
|
|
114717
115253
|
|
|
114718
115254
|
var export_log_component = normalizeComponent(
|
|
114719
115255
|
result_comp_export_logvue_type_script_lang_js,
|
|
114720
|
-
|
|
114721
|
-
|
|
115256
|
+
export_logvue_type_template_id_2621a59b_scoped_true_render,
|
|
115257
|
+
export_logvue_type_template_id_2621a59b_scoped_true_staticRenderFns,
|
|
114722
115258
|
false,
|
|
114723
115259
|
null,
|
|
114724
|
-
"
|
|
115260
|
+
"2621a59b",
|
|
114725
115261
|
null
|
|
114726
115262
|
|
|
114727
115263
|
)
|
|
@@ -114866,8 +115402,8 @@ var export_log_component = normalizeComponent(
|
|
|
114866
115402
|
})])]);
|
|
114867
115403
|
}
|
|
114868
115404
|
}));
|
|
114869
|
-
;// ./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/result-comp/update/table-sort.vue?vue&type=template&id=
|
|
114870
|
-
var
|
|
115405
|
+
;// ./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/result-comp/update/table-sort.vue?vue&type=template&id=24882b4b&scoped=true
|
|
115406
|
+
var table_sortvue_type_template_id_24882b4b_scoped_true_render = function render() {
|
|
114871
115407
|
var _vm = this,
|
|
114872
115408
|
_c = _vm._self._c,
|
|
114873
115409
|
_setup = _vm._self._setupProxy;
|
|
@@ -115010,7 +115546,7 @@ var table_sortvue_type_template_id_24d0bf6d_scoped_true_render = function render
|
|
|
115010
115546
|
}
|
|
115011
115547
|
}, [_vm._v(_vm._s(_setup.$t('添加排序字段')))])])], 1);
|
|
115012
115548
|
};
|
|
115013
|
-
var
|
|
115549
|
+
var table_sortvue_type_template_id_24882b4b_scoped_true_staticRenderFns = [];
|
|
115014
115550
|
|
|
115015
115551
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-2.use[0]!./node_modules/ts-loader/index.js??clonedRuleSet-2.use[1]!./node_modules/ifdef-loader/ifdef-loader.js??clonedRuleSet-2.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/views/retrieve-v2/result-comp/update/table-sort.vue?vue&type=script&setup=true&lang=ts
|
|
115016
115552
|
|
|
@@ -115064,7 +115600,7 @@ var table_sortvue_type_template_id_24d0bf6d_scoped_true_staticRenderFns = [];
|
|
|
115064
115600
|
const shadowSort = (0,vue_esm.computed)(() => sortList.value.map(e => e.sorts).filter(e => e[0] !== '' && e[1] !== ''));
|
|
115065
115601
|
const fieldList = (0,vue_esm.computed)(() => store.state.indexFieldInfo.fields);
|
|
115066
115602
|
const selectList = (0,vue_esm.computed)(() => {
|
|
115067
|
-
const filterFn = field => field.field_type !== '__virtual__' && field.field_type !== 'flattened';
|
|
115603
|
+
const filterFn = field => field.es_doc_values && field.field_type !== '__virtual__' && field.field_type !== 'flattened';
|
|
115068
115604
|
return fieldList.value.filter(filterFn).map(field => {
|
|
115069
115605
|
return Object.assign({}, field, {
|
|
115070
115606
|
disabled: shadowSort.value.some(item => item[0] === field.field_name)
|
|
@@ -115143,11 +115679,11 @@ var table_sortvue_type_template_id_24d0bf6d_scoped_true_staticRenderFns = [];
|
|
|
115143
115679
|
|
|
115144
115680
|
var table_sort_component = normalizeComponent(
|
|
115145
115681
|
update_table_sortvue_type_script_setup_true_lang_ts,
|
|
115146
|
-
|
|
115147
|
-
|
|
115682
|
+
table_sortvue_type_template_id_24882b4b_scoped_true_render,
|
|
115683
|
+
table_sortvue_type_template_id_24882b4b_scoped_true_staticRenderFns,
|
|
115148
115684
|
false,
|
|
115149
115685
|
null,
|
|
115150
|
-
"
|
|
115686
|
+
"24882b4b",
|
|
115151
115687
|
null
|
|
115152
115688
|
|
|
115153
115689
|
)
|
|
@@ -120170,7 +120706,7 @@ SettingMoreMenu = __decorate([vue_class_component_esm], SettingMoreMenu);
|
|
|
120170
120706
|
methods: {
|
|
120171
120707
|
/** 用户配置操作 */emitOperate: function emitOperate(type) {
|
|
120172
120708
|
var _this = this;
|
|
120173
|
-
return
|
|
120709
|
+
return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
120174
120710
|
var submitData;
|
|
120175
120711
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
120176
120712
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -120237,7 +120773,7 @@ SettingMoreMenu = __decorate([vue_class_component_esm], SettingMoreMenu);
|
|
|
120237
120773
|
*/
|
|
120238
120774
|
handleDeleteTipPopoverShow: function handleDeleteTipPopoverShow() {
|
|
120239
120775
|
var _this2 = this;
|
|
120240
|
-
return
|
|
120776
|
+
return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
120241
120777
|
var _this2$$refs, _this2$$refs2, _this2$$refs3, _this2$deleteTipInsta3;
|
|
120242
120778
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
120243
120779
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -120529,7 +121065,7 @@ var FIELD_CONFIG_FILENAME_PREFIX = 'log-field-';
|
|
|
120529
121065
|
methods: {
|
|
120530
121066
|
/** 带config列表请求的初始化 */initRequestConfigListShow: function initRequestConfigListShow() {
|
|
120531
121067
|
var _this4 = this;
|
|
120532
|
-
return
|
|
121068
|
+
return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
120533
121069
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
120534
121070
|
while (1) switch (_context.prev = _context.next) {
|
|
120535
121071
|
case 0:
|
|
@@ -120559,7 +121095,7 @@ var FIELD_CONFIG_FILENAME_PREFIX = 'log-field-';
|
|
|
120559
121095
|
},
|
|
120560
121096
|
/** 保存或应用 */confirmModifyFields: function confirmModifyFields() {
|
|
120561
121097
|
var _this5 = this;
|
|
120562
|
-
return
|
|
121098
|
+
return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
120563
121099
|
var currentVisibleList, _this5$$refs, updateSortList, confirmConfigData;
|
|
120564
121100
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
120565
121101
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -120634,7 +121170,7 @@ var FIELD_CONFIG_FILENAME_PREFIX = 'log-field-';
|
|
|
120634
121170
|
},
|
|
120635
121171
|
/** 更新config */submitFieldsSet: function submitFieldsSet(configID) {
|
|
120636
121172
|
var _this6 = this;
|
|
120637
|
-
return
|
|
121173
|
+
return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3() {
|
|
120638
121174
|
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
120639
121175
|
while (1) switch (_context3.prev = _context3.next) {
|
|
120640
121176
|
case 0:
|
|
@@ -120763,7 +121299,7 @@ var FIELD_CONFIG_FILENAME_PREFIX = 'log-field-';
|
|
|
120763
121299
|
/** 更新配置 */handleUpdateConfig: function handleUpdateConfig(updateItem) {
|
|
120764
121300
|
var _arguments = arguments,
|
|
120765
121301
|
_this7 = this;
|
|
120766
|
-
return
|
|
121302
|
+
return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4() {
|
|
120767
121303
|
var isCreate, successMsg, requestStr, data;
|
|
120768
121304
|
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
120769
121305
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -120820,7 +121356,7 @@ var FIELD_CONFIG_FILENAME_PREFIX = 'log-field-';
|
|
|
120820
121356
|
},
|
|
120821
121357
|
/** 删除配置 */handleDeleteConfig: function handleDeleteConfig(configID) {
|
|
120822
121358
|
var _this8 = this;
|
|
120823
|
-
return
|
|
121359
|
+
return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee5() {
|
|
120824
121360
|
return regenerator_default().wrap(function _callee5$(_context5) {
|
|
120825
121361
|
while (1) switch (_context5.prev = _context5.next) {
|
|
120826
121362
|
case 0:
|
|
@@ -120906,7 +121442,7 @@ var FIELD_CONFIG_FILENAME_PREFIX = 'log-field-';
|
|
|
120906
121442
|
},
|
|
120907
121443
|
/** 获取配置列表 */getFiledConfigList: function getFiledConfigList() {
|
|
120908
121444
|
var _this10 = this;
|
|
120909
|
-
return
|
|
121445
|
+
return asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee6() {
|
|
120910
121446
|
var res;
|
|
120911
121447
|
return regenerator_default().wrap(function _callee6$(_context6) {
|
|
120912
121448
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -136277,6 +136813,7 @@ var StrategyType;
|
|
|
136277
136813
|
/** 数量突增告警告警是否保存过 */
|
|
136278
136814
|
const increaseIsSubmit = (0,vue_esm.ref)(false);
|
|
136279
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);
|
|
136280
136817
|
(0,vue_esm.watch)(alarmIsSubmit, () => {
|
|
136281
136818
|
props.strategySubmitStatus?.(alarmIsSubmit.value);
|
|
136282
136819
|
});
|
|
@@ -136338,7 +136875,7 @@ var StrategyType;
|
|
|
136338
136875
|
}, [(0,vue_esm.h)("config-item", {
|
|
136339
136876
|
"attrs": {
|
|
136340
136877
|
"configData": strategyConfigData.value,
|
|
136341
|
-
"bkBizId":
|
|
136878
|
+
"bkBizId": indexItemBizId.value,
|
|
136342
136879
|
"configured": alarmIsSubmit.value,
|
|
136343
136880
|
"indexId": props.indexId,
|
|
136344
136881
|
"labelName": labelName.value,
|
|
@@ -136350,7 +136887,7 @@ var StrategyType;
|
|
|
136350
136887
|
}), (0,vue_esm.h)("config-item", {
|
|
136351
136888
|
"attrs": {
|
|
136352
136889
|
"configData": strategyConfigData.value,
|
|
136353
|
-
"bkBizId":
|
|
136890
|
+
"bkBizId": indexItemBizId.value,
|
|
136354
136891
|
"configured": increaseIsSubmit.value,
|
|
136355
136892
|
"indexId": props.indexId,
|
|
136356
136893
|
"labelName": labelName.value,
|
|
@@ -151976,8 +152513,8 @@ const SearchResultTab = () => null;
|
|
|
151976
152513
|
}), renderTabContent()]);
|
|
151977
152514
|
}
|
|
151978
152515
|
}));
|
|
151979
|
-
;// ./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=
|
|
151980
|
-
var
|
|
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() {
|
|
151981
152518
|
var _vm = this,
|
|
151982
152519
|
_c = _vm._self._c,
|
|
151983
152520
|
_setup = _vm._self._setupProxy;
|
|
@@ -152057,7 +152594,7 @@ var sub_barvue_type_template_id_368222d7_render = function render() {
|
|
|
152057
152594
|
}
|
|
152058
152595
|
})], 1) : _vm._e()]);
|
|
152059
152596
|
};
|
|
152060
|
-
var
|
|
152597
|
+
var sub_barvue_type_template_id_08eba3c6_staticRenderFns = [];
|
|
152061
152598
|
|
|
152062
152599
|
;// ./src/components/ellipsis-tag-list/index.tsx
|
|
152063
152600
|
/*
|
|
@@ -154274,7 +154811,7 @@ var AutoRefresh = function AutoRefresh() {
|
|
|
154274
154811
|
});
|
|
154275
154812
|
};
|
|
154276
154813
|
var handleIndexSetSelected = /*#__PURE__*/function () {
|
|
154277
|
-
var _ref =
|
|
154814
|
+
var _ref = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(payload) {
|
|
154278
154815
|
var _payload$ids, indexSetDefaultCondition, _payload$items$, _payload$items$2, _payload$pid;
|
|
154279
154816
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
154280
154817
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -154282,8 +154819,10 @@ var AutoRefresh = function AutoRefresh() {
|
|
|
154282
154819
|
if (!lodash_es_isEqual(indexSetParams.value.ids, payload.ids) || indexSetParams.value.isUnionIndex !== payload.isUnionIndex) {
|
|
154283
154820
|
/** 索引集默认条件 */
|
|
154284
154821
|
indexSetDefaultCondition = {};
|
|
154285
|
-
/** 只选择一个索引集且ui模式和sql模式都没有值, 取索引集默认条件
|
|
154286
|
-
|
|
154822
|
+
/** 只选择一个索引集且ui模式和sql模式都没有值, 取索引集默认条件
|
|
154823
|
+
* 如果是监控组件,切换采集项的时候也取对应索引集默认条件
|
|
154824
|
+
*/
|
|
154825
|
+
if (payload.items.length === 1 && (!indexSetParams.value.addition.length && !indexSetParams.value.keyword || isMonitorComponent)) {
|
|
154287
154826
|
if ((_payload$items$ = payload.items[0]) !== null && _payload$items$ !== void 0 && _payload$items$.query_string) {
|
|
154288
154827
|
indexSetDefaultCondition = {
|
|
154289
154828
|
keyword: payload.items[0].query_string,
|
|
@@ -154518,8 +155057,8 @@ var AutoRefresh = function AutoRefresh() {
|
|
|
154518
155057
|
|
|
154519
155058
|
var sub_bar_component = normalizeComponent(
|
|
154520
155059
|
retrieve_v2_sub_barvue_type_script_setup_true_lang_js,
|
|
154521
|
-
|
|
154522
|
-
|
|
155060
|
+
sub_barvue_type_template_id_08eba3c6_render,
|
|
155061
|
+
sub_barvue_type_template_id_08eba3c6_staticRenderFns,
|
|
154523
155062
|
false,
|
|
154524
155063
|
null,
|
|
154525
155064
|
null,
|