@blueking/monitor-apm-log 1.0.1-beta.1 → 1.0.1-beta.3
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 +1 -1
- package/main.js +178 -97
- package/package.json +1 -1
package/css/main.css
CHANGED
|
@@ -73,7 +73,7 @@ ul.search-items{display:inline-flex;flex-wrap:wrap;width:100%;max-height:135px;p
|
|
|
73
73
|
.original-log-panel .original-log-panel-tools[data-v-b540758c]{display:flex;justify-content:space-between;padding-left:16px}.original-log-panel .tools-more[data-v-b540758c]{display:flex;align-items:center;justify-content:center}.original-log-panel .tools-more .switch-label[data-v-b540758c]{margin-right:2px;font-size:12px;color:#63656e}.original-log-panel .operation-icons[data-v-b540758c]{display:flex;align-items:center;justify-content:space-between;margin-left:16px}.original-log-panel .operation-icons .operation-icon[data-v-b540758c]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin-left:10px;cursor:pointer;border:1px solid #c4c6cc;border-radius:2px;outline:none;transition:boder-color .2s}.original-log-panel .operation-icons .operation-icon[data-v-b540758c]:hover{border-color:#979ba5;transition:boder-color .2s}.original-log-panel .operation-icons .operation-icon[data-v-b540758c]:active{border-color:#3a84ff;transition:boder-color .2s}.original-log-panel .operation-icons .operation-icon .bklog-icon[data-v-b540758c]{width:16px;font-size:16px;color:#979ba5}.original-log-panel .operation-icons .disabled-icon[data-v-b540758c]{cursor:not-allowed;background-color:#fff;border-color:#dcdee5}.original-log-panel .operation-icons .disabled-icon[data-v-b540758c]:hover,.original-log-panel .operation-icons .disabled-icon .bklog-icon[data-v-b540758c]{color:#c4c6cc;border-color:#dcdee5}.original-log-panel .left-operate[data-v-b540758c]{flex-wrap:nowrap;align-items:center;display:flex;justify-content:space-between}.original-log-panel .left-operate>div[data-v-b540758c]{flex-shrink:0}.original-log-panel .left-operate .bklog-option-item[data-v-b540758c]{font-size:12px;line-height:20px;color:#63656e}.original-log-panel .field-select[data-v-b540758c]{position:relative;width:120px;margin-left:16px}.original-log-panel .field-select .icon-field-config[data-v-b540758c]{position:absolute;top:4px;left:4px;width:18px}.original-log-panel .field-select[data-v-b540758c] .bk-select .bk-select-name{padding:0px 36px 0 30px}.extension-add-new-config[data-v-b540758c]{cursor:pointer;display:flex;align-items:center;justify-content:center}.extension-add-new-config[data-v-b540758c] :last-child{margin-left:4px;color:#63656e}.extension-add-new-config .icon-close-circle[data-v-b540758c]{margin-left:4px;font-size:14px;color:#979ba5;transform:rotateZ(45deg)}
|
|
74
74
|
.json-depth-num.bk-form-control{width:96px}.json-depth-num.bk-form-control .bk-input-number input.bk-form-input{height:26px}body.no-user-select{user-select:none}
|
|
75
75
|
.search-result-panel{background-color:#fff}.search-result-panel.flex{position:relative;display:flex;height:fit-content;overflow:visible}.search-result-panel.flex .field-list-sticky.is-show{position:sticky;top:var(--offset-search-bar);z-index:3;align-self:start;height:calc(100vh - var(--offset-search-bar) - 150px)}.search-result-panel.flex .split-line{width:100%;margin:3px 0 6px;border-bottom:solid 1px #dcdee5}.search-result-panel.flex .search-result-content{position:relative;border-left:solid 1px #dcdee5}.search-result-panel.flex .search-result-content .monitor-echarts-container{padding-left:16px}.search-result-panel.flex .search-result-content .monitor-echarts-container .title-wrapper-new{z-index:3;width:calc(100% - 110px);margin-left:110px}.search-result-panel.flex .search-result-content.field-list-show .monitor-echarts-container .title-wrapper-new{width:100%;margin-left:0}
|
|
76
|
-
.retrieve-v2-index{position:relative;height:100%;padding:0 16px;background:#f5f7fa}.retrieve-v2-index .sub-head{display:flex;align-items:center;height:48px;background-color:#f5f7fa}.retrieve-v2-index .sub-head .retrieve-index-select{min-width:320px;background-color:#fff}.retrieve-v2-index .sub-head .retrieve-index-select .bk-select-dropdown{width:100%}.retrieve-v2-index .sub-head .retrieve-index-select .bk-select-dropdown .bk-select-name,.retrieve-v2-index .sub-head .retrieve-index-select .bk-select-dropdown .index-select-tag-container{position:relative;padding:0 6px;padding-right:20px;border-color:#c4c6cc}.retrieve-v2-index .sub-head .retrieve-index-select .bk-select-dropdown .bk-select-name .bklog-select-arrow,.retrieve-v2-index .sub-head .retrieve-index-select .bk-select-dropdown .index-select-tag-container .bklog-select-arrow{position:absolute;top:50%;right:6px;font-size:18px;color:#979ba5;transform:translateY(-50%)}.retrieve-v2-index .sub-head .retrieve-tab-item-title{margin-left:24px}.retrieve-v2-index .retrieve-body{
|
|
76
|
+
.retrieve-v2-index{position:relative;height:100%;padding:0 16px;background:#f5f7fa}.retrieve-v2-index.scroll-y{height:calc(100vh - 52px);overflow-x:hidden;overflow-y:auto}.retrieve-v2-index .sub-head{position:relative;z-index:5;display:flex;align-items:center;height:48px;background-color:#f5f7fa}.retrieve-v2-index .sub-head .retrieve-index-select{min-width:320px;background-color:#fff}.retrieve-v2-index .sub-head .retrieve-index-select .bk-select-dropdown{width:100%}.retrieve-v2-index .sub-head .retrieve-index-select .bk-select-dropdown .bk-select-name,.retrieve-v2-index .sub-head .retrieve-index-select .bk-select-dropdown .index-select-tag-container{position:relative;padding:0 6px;padding-right:20px;border-color:#c4c6cc}.retrieve-v2-index .sub-head .retrieve-index-select .bk-select-dropdown .bk-select-name .bklog-select-arrow,.retrieve-v2-index .sub-head .retrieve-index-select .bk-select-dropdown .index-select-tag-container .bklog-select-arrow{position:absolute;top:50%;right:6px;font-size:18px;color:#979ba5;transform:translateY(-50%)}.retrieve-v2-index .sub-head .retrieve-tab-item-title{margin-left:24px}.retrieve-v2-index .retrieve-v2-body{display:flex;background-color:#fafbfd}.retrieve-v2-index .retrieve-v2-body .retrieve-collect-index{position:relative;position:sticky;top:8px;z-index:3;align-self:start;overflow:visible}.retrieve-v2-index .retrieve-v2-content{position:relative;width:calc(100% - var(--left-width));background-color:#f4f7fa}.retrieve-v2-index .retrieve-v2-content::after{position:absolute;top:0;bottom:0;left:0;z-index:1;width:8px;content:"";background-color:#f4f7fa}.retrieve-v2-index .retrieve-v2-content .retrieve-tab,.retrieve-v2-index .retrieve-v2-content .search-result-panel{padding-left:8px}.retrieve-v2-index .result-table-container{height:100%;margin-top:12px;overflow:auto}.retrieve-v2-index .bk-table-body td.bk-table-expanded-cell{padding:0 !important}.retrieve-v2-index .favorite-query-list{background-color:#fff}.retrieve-v2-index .bk-form .bk-label,.retrieve-v2-index .bk-form-radio .bk-radio-text,.retrieve-v2-index .bk-form-checkbox .bk-checkbox-text{font-size:12px}.bk-log-drag{position:absolute;top:50%;left:242px;z-index:100;display:flex;align-items:center;justify-items:center;width:6px;height:100px;background-color:#dcdee5;border-radius:3px;transform:translateY(-50%)}.bk-log-drag::after{position:absolute;left:2px;width:0;height:80px;content:" ";border-left:2px dotted #fff}.bk-log-drag:hover{cursor:col-resize}.bk-log-drag-simple{position:absolute;top:50%;right:-3px;z-index:100;display:flex;align-items:center;justify-items:center;width:6px;height:22px;border-radius:3px;transform:translateY(-50%)}.bk-log-drag-simple::after{position:absolute;left:2px;width:0;height:100%;content:" ";border-left:2px dotted #63656e}.bk-log-drag-simple:hover{cursor:col-resize}.title-overflow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bk-options .bk-option:hover{color:#63656e;background-color:#f5f7fa}.beta-class{padding-top:3px;margin-left:2px;color:#ffa228}.json-view-wrapper .vjs-value{word-break:break-all}:root{--table-fount-family: Menlo, Monaco, Consolas, Courier, "PingFang SC", "Microsoft Yahei", monospace;--table-fount-size: 13px;--table-fount-color: #313238}[data-tippy-root] .tippy-box[data-theme=segment-light]{color:#26323d;background-color:#fff;box-shadow:0 0 6px 0 #dcdee5}[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-arrow{color:#fff;background-color:#fff;box-shadow:#dcdee5 0px -12px 12px 0px}[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content{padding:0}[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content .event-tippy-content.segment-event-icons{flex-direction:column;display:flex;align-items:center;justify-content:center}[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content .event-tippy-content.segment-event-icons .segment-event-box{display:flex;align-items:center;justify-content:space-between;min-width:240px;height:32px;padding:0 10px;font-size:12px;cursor:pointer}[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content .event-tippy-content.segment-event-icons .segment-event-box:hover{background:#eaf3ff}[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content .event-tippy-content.segment-event-icons .segment-new-link{display:flex;align-items:center;justify-content:right;width:24px;height:24px}[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content .event-tippy-content.segment-event-icons .segment-new-link:hover{color:#3a84ff}[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content .event-tippy-content.segment-event-icons .segment-event-btn{display:flex;flex:1;align-items:center;justify-content:space-between}[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content .event-tippy-content.segment-event-icons .segment-event-btn:hover{color:#3a84ff}[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content .event-tippy-content.segment-event-icons .segment-event-btn .new-link{transform:translateY(1px)}[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content .event-tippy-content.segment-event-icons .tippy-tooltip{padding:6px 2px}[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content .event-tippy-content.segment-event-icons .icon{display:inline-block;font-size:14px;cursor:pointer}[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content .event-tippy-content.segment-event-icons .icon-minus-circle,[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content .event-tippy-content.segment-event-icons .bklog-trace-view,[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content .event-tippy-content.segment-event-icons .icon-plus-circle{margin-right:6px}[data-tippy-root] .tippy-box[data-theme=segment-light] .tippy-content .event-tippy-content.segment-event-icons .bklog-copy{margin-left:-4px;font-size:24px}
|
|
77
77
|
@font-face {
|
|
78
78
|
font-family: "bklog";
|
|
79
79
|
src: url(../img/iconcoolaeb4839.svg#iconcool) format("svg"),
|
package/main.js
CHANGED
|
@@ -53012,13 +53012,16 @@ store.dispatch = function (_type, _payload) {
|
|
|
53012
53012
|
*/
|
|
53013
53013
|
|
|
53014
53014
|
/* harmony default export */ const use_store = (() => src_store);
|
|
53015
|
-
;// ./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/monitor/monitor.vue?vue&type=template&id=
|
|
53016
|
-
var
|
|
53015
|
+
;// ./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/monitor/monitor.vue?vue&type=template&id=fe826148
|
|
53016
|
+
var monitorvue_type_template_id_fe826148_render = function render() {
|
|
53017
53017
|
var _vm = this,
|
|
53018
53018
|
_c = _vm._self._c,
|
|
53019
53019
|
_setup = _vm._self._setupProxy;
|
|
53020
53020
|
return _c('div', {
|
|
53021
|
-
|
|
53021
|
+
"class": ['retrieve-v2-index', {
|
|
53022
|
+
'scroll-y': _setup.isScrollY,
|
|
53023
|
+
'is-sticky-top': _setup.isStickyTop
|
|
53024
|
+
}]
|
|
53022
53025
|
}, [_c('div', {
|
|
53023
53026
|
staticClass: "sub-head"
|
|
53024
53027
|
}, [_c(_setup.SelectIndexSet, {
|
|
@@ -53036,9 +53039,10 @@ var monitorvue_type_template_id_78770791_render = function render() {
|
|
|
53036
53039
|
"change": _setup.updateSearchParam
|
|
53037
53040
|
}
|
|
53038
53041
|
})], 1), _vm._v(" "), _c('div', {
|
|
53039
|
-
|
|
53042
|
+
"class": ['retrieve-v2-body'],
|
|
53043
|
+
style: _setup.contentStyle
|
|
53040
53044
|
}, [_c('div', {
|
|
53041
|
-
staticClass: "retrieve-
|
|
53045
|
+
staticClass: "retrieve-v2-content"
|
|
53042
53046
|
}, [_c(_setup.SearchBar, {
|
|
53043
53047
|
on: {
|
|
53044
53048
|
"height-change": _setup.handleHeightChange
|
|
@@ -53063,7 +53067,7 @@ var monitorvue_type_template_id_78770791_render = function render() {
|
|
|
53063
53067
|
}
|
|
53064
53068
|
})], 1)], 1)])]);
|
|
53065
53069
|
};
|
|
53066
|
-
var
|
|
53070
|
+
var monitorvue_type_template_id_fe826148_staticRenderFns = [];
|
|
53067
53071
|
|
|
53068
53072
|
;// external "lodash"
|
|
53069
53073
|
var external_lodash_x = (y) => {
|
|
@@ -92141,13 +92145,15 @@ var query_history_component = normalizeComponent(
|
|
|
92141
92145
|
)
|
|
92142
92146
|
|
|
92143
92147
|
/* harmony default export */ const query_history = (query_history_component.exports);
|
|
92144
|
-
;// ./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-result-panel/index.vue?vue&type=template&id=
|
|
92145
|
-
var
|
|
92148
|
+
;// ./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-result-panel/index.vue?vue&type=template&id=3b6c5408
|
|
92149
|
+
var search_result_panelvue_type_template_id_3b6c5408_render = function render() {
|
|
92146
92150
|
var _vm = this,
|
|
92147
92151
|
_c = _vm._self._c,
|
|
92148
92152
|
_setup = _vm._self._setupProxy;
|
|
92149
92153
|
return _c('div', {
|
|
92150
|
-
|
|
92154
|
+
"class": ['search-result-panel', {
|
|
92155
|
+
'flex': !_setup.__IS_MONITOR_TRACE__
|
|
92156
|
+
}]
|
|
92151
92157
|
}, [!_setup.pageLoading && _setup.isNoIndexSet ? _c(_setup.NoIndexSet) : [_c('div', {
|
|
92152
92158
|
"class": ['field-list-sticky', {
|
|
92153
92159
|
'is-show': _setup.isShowFieldStatistics
|
|
@@ -92200,7 +92206,7 @@ var search_result_panelvue_type_template_id_3d0cc856_render = function render()
|
|
|
92200
92206
|
"class": ['search-result-content', {
|
|
92201
92207
|
'field-list-show': _setup.isShowFieldStatistics
|
|
92202
92208
|
}],
|
|
92203
|
-
style: _setup.rightContentStyle
|
|
92209
|
+
style: _setup.__IS_MONITOR_TRACE__ ? undefined : _setup.rightContentStyle
|
|
92204
92210
|
}, [_c(_setup.SearchResultChart, {
|
|
92205
92211
|
directives: [{
|
|
92206
92212
|
name: "show",
|
|
@@ -92238,7 +92244,7 @@ var search_result_panelvue_type_template_id_3d0cc856_render = function render()
|
|
|
92238
92244
|
}
|
|
92239
92245
|
}) : _vm._e()], 1)], 1)]], 2);
|
|
92240
92246
|
};
|
|
92241
|
-
var
|
|
92247
|
+
var search_result_panelvue_type_template_id_3b6c5408_staticRenderFns = [];
|
|
92242
92248
|
|
|
92243
92249
|
;// ./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/no-index-set.vue?vue&type=template&id=8c9135ae&scoped=true
|
|
92244
92250
|
var no_index_setvue_type_template_id_8c9135ae_scoped_true_render = function render() {
|
|
@@ -114683,29 +114689,35 @@ function log_rows_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
|
114683
114689
|
return tableRowConfig.get(row).value[ROW_INDEX] + 1;
|
|
114684
114690
|
}
|
|
114685
114691
|
}]);
|
|
114686
|
-
const rightColumns = (0,external_vue_namespaceObject.computed)(() =>
|
|
114687
|
-
|
|
114688
|
-
|
|
114689
|
-
|
|
114690
|
-
width: operatorToolsWidth.value,
|
|
114691
|
-
fixed: 'right',
|
|
114692
|
-
resize: false,
|
|
114693
|
-
renderBodyCell: _ref10 => {
|
|
114694
|
-
let {
|
|
114695
|
-
row
|
|
114696
|
-
} = _ref10;
|
|
114697
|
-
return (// @ts-ignore
|
|
114698
|
-
(0,external_vue_namespaceObject.h)(operator_tools, {
|
|
114699
|
-
"attrs": {
|
|
114700
|
-
"handle-click": event => props.handleClickTools(event, row, indexSetOperatorConfig.value),
|
|
114701
|
-
"index": row[ROW_INDEX],
|
|
114702
|
-
"operator-config": indexSetOperatorConfig.value,
|
|
114703
|
-
"row-data": row
|
|
114704
|
-
}
|
|
114705
|
-
})
|
|
114706
|
-
);
|
|
114692
|
+
const rightColumns = (0,external_vue_namespaceObject.computed)(() => {
|
|
114693
|
+
var _window;
|
|
114694
|
+
if ((_window = window) !== null && _window !== void 0 && _window.__IS_MONITOR_TRACE__) {
|
|
114695
|
+
return [];
|
|
114707
114696
|
}
|
|
114708
|
-
|
|
114697
|
+
return [{
|
|
114698
|
+
field: ROW_F_ORIGIN_OPT,
|
|
114699
|
+
key: ROW_F_ORIGIN_OPT,
|
|
114700
|
+
title: $t('操作'),
|
|
114701
|
+
width: operatorToolsWidth.value,
|
|
114702
|
+
fixed: 'right',
|
|
114703
|
+
resize: false,
|
|
114704
|
+
renderBodyCell: _ref10 => {
|
|
114705
|
+
let {
|
|
114706
|
+
row
|
|
114707
|
+
} = _ref10;
|
|
114708
|
+
return (// @ts-ignore
|
|
114709
|
+
(0,external_vue_namespaceObject.h)(operator_tools, {
|
|
114710
|
+
"attrs": {
|
|
114711
|
+
"handle-click": event => props.handleClickTools(event, row, indexSetOperatorConfig.value),
|
|
114712
|
+
"index": row[ROW_INDEX],
|
|
114713
|
+
"operator-config": indexSetOperatorConfig.value,
|
|
114714
|
+
"row-data": row
|
|
114715
|
+
}
|
|
114716
|
+
})
|
|
114717
|
+
);
|
|
114718
|
+
}
|
|
114719
|
+
}];
|
|
114720
|
+
});
|
|
114709
114721
|
const getTableColumnContent = (row, field) => {
|
|
114710
114722
|
// 日志来源 展示来源的索引集名称
|
|
114711
114723
|
if ((field === null || field === void 0 ? void 0 : field.tag) === 'union-source') {
|
|
@@ -115181,6 +115193,10 @@ function log_rows_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
|
115181
115193
|
}, [loadingText.value])]);
|
|
115182
115194
|
};
|
|
115183
115195
|
const renderFixRightShadow = () => {
|
|
115196
|
+
var _window2;
|
|
115197
|
+
if ((_window2 = window) !== null && _window2 !== void 0 && _window2.__IS_MONITOR_TRACE__) {
|
|
115198
|
+
return null;
|
|
115199
|
+
}
|
|
115184
115200
|
if (tableDataSize.value > 0) {
|
|
115185
115201
|
return (0,external_vue_namespaceObject.h)("div", {
|
|
115186
115202
|
"class": 'fixed-right-shadown'
|
|
@@ -115646,6 +115662,9 @@ var search_result_panel_log_result_component = normalizeComponent(
|
|
|
115646
115662
|
var handleUpdateActiveTab = function handleUpdateActiveTab(active) {
|
|
115647
115663
|
emit('update:active-tab', active);
|
|
115648
115664
|
};
|
|
115665
|
+
var __IS_MONITOR_TRACE__ = (0,external_vue_namespaceObject.computed)(function () {
|
|
115666
|
+
return !!window.__IS_MONITOR_TRACE__;
|
|
115667
|
+
});
|
|
115649
115668
|
var rightContentStyle = (0,external_vue_namespaceObject.computed)(function () {
|
|
115650
115669
|
if (isOriginShow.value) {
|
|
115651
115670
|
return {
|
|
@@ -115681,6 +115700,7 @@ var search_result_panel_log_result_component = normalizeComponent(
|
|
|
115681
115700
|
handleFieldsShowChange: handleFieldsShowChange,
|
|
115682
115701
|
handleFilterWidthChange: handleFilterWidthChange,
|
|
115683
115702
|
handleUpdateActiveTab: handleUpdateActiveTab,
|
|
115703
|
+
__IS_MONITOR_TRACE__: __IS_MONITOR_TRACE__,
|
|
115684
115704
|
rightContentStyle: rightContentStyle,
|
|
115685
115705
|
NoIndexSet: no_index_set,
|
|
115686
115706
|
SearchResultChart: search_result_chart,
|
|
@@ -115703,8 +115723,8 @@ var search_result_panel_log_result_component = normalizeComponent(
|
|
|
115703
115723
|
|
|
115704
115724
|
var search_result_panel_component = normalizeComponent(
|
|
115705
115725
|
retrieve_v2_search_result_panelvue_type_script_setup_true_lang_js,
|
|
115706
|
-
|
|
115707
|
-
|
|
115726
|
+
search_result_panelvue_type_template_id_3b6c5408_render,
|
|
115727
|
+
search_result_panelvue_type_template_id_3b6c5408_staticRenderFns,
|
|
115708
115728
|
false,
|
|
115709
115729
|
null,
|
|
115710
115730
|
null,
|
|
@@ -115717,8 +115737,6 @@ var search_result_panel_component = normalizeComponent(
|
|
|
115717
115737
|
|
|
115718
115738
|
|
|
115719
115739
|
|
|
115720
|
-
var monitorvue_type_script_setup_true_lang_js_excluded = ["start_time", "end_time"];
|
|
115721
|
-
|
|
115722
115740
|
function monitorvue_type_script_setup_true_lang_js_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = monitorvue_type_script_setup_true_lang_js_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; } } }; }
|
|
115723
115741
|
function monitorvue_type_script_setup_true_lang_js_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return monitorvue_type_script_setup_true_lang_js_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) ? monitorvue_type_script_setup_true_lang_js_arrayLikeToArray(r, a) : void 0; } }
|
|
115724
115742
|
function monitorvue_type_script_setup_true_lang_js_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; }
|
|
@@ -115738,6 +115756,9 @@ function monitorvue_type_script_setup_true_lang_js_objectSpread(e) { for (var r
|
|
|
115738
115756
|
|
|
115739
115757
|
|
|
115740
115758
|
|
|
115759
|
+
|
|
115760
|
+
|
|
115761
|
+
|
|
115741
115762
|
/* harmony default export */ const monitorvue_type_script_setup_true_lang_js = ({
|
|
115742
115763
|
__name: 'monitor',
|
|
115743
115764
|
props: {
|
|
@@ -115773,28 +115794,36 @@ function monitorvue_type_script_setup_true_lang_js_objectSpread(e) { for (var r
|
|
|
115773
115794
|
var indexSetParams = (0,external_vue_namespaceObject.computed)(function () {
|
|
115774
115795
|
return store.state.indexItem;
|
|
115775
115796
|
});
|
|
115776
|
-
|
|
115777
|
-
|
|
115778
|
-
|
|
115779
|
-
|
|
115780
|
-
|
|
115781
|
-
|
|
115782
|
-
var _ref = (_store$getters$retrie = store.getters.retrieveParams) !== null && _store$getters$retrie !== void 0 ? _store$getters$retrie : {},
|
|
115783
|
-
start_time = _ref.start_time,
|
|
115784
|
-
end_time = _ref.end_time,
|
|
115785
|
-
retrieveParams = _objectWithoutProperties(_ref, monitorvue_type_script_setup_true_lang_js_excluded);
|
|
115786
|
-
var unionList = store.state.unionIndexList;
|
|
115787
|
-
var clusterParams = store.state.clusterParams;
|
|
115788
|
-
return monitorvue_type_script_setup_true_lang_js_objectSpread(monitorvue_type_script_setup_true_lang_js_objectSpread({}, retrieveParams), {}, {
|
|
115789
|
-
search_mode: search_mode,
|
|
115790
|
-
ids: ids,
|
|
115791
|
-
isUnionIndex: isUnionIndex,
|
|
115792
|
-
unionList: unionList,
|
|
115793
|
-
clusterParams: clusterParams
|
|
115794
|
-
});
|
|
115797
|
+
|
|
115798
|
+
// 解析默认URL为前端参数
|
|
115799
|
+
// 这里逻辑不要动,不做解析会导致后续前端查询相关参数的混乱
|
|
115800
|
+
store.dispatch('updateIndexItemByRoute', {
|
|
115801
|
+
route: route,
|
|
115802
|
+
list: []
|
|
115795
115803
|
});
|
|
115804
|
+
var setDefaultIndexsetId = function setDefaultIndexsetId() {
|
|
115805
|
+
if (!route.query.indexId) {
|
|
115806
|
+
var routeParams = store.getters.retrieveParams;
|
|
115807
|
+
var resolver = new RetrieveUrlResolver(monitorvue_type_script_setup_true_lang_js_objectSpread(monitorvue_type_script_setup_true_lang_js_objectSpread({}, routeParams), {}, {
|
|
115808
|
+
datePickerValue: store.state.indexItem.datePickerValue
|
|
115809
|
+
}));
|
|
115810
|
+
if (store.getters.isUnionSearch) {
|
|
115811
|
+
router.replace({
|
|
115812
|
+
query: monitorvue_type_script_setup_true_lang_js_objectSpread(monitorvue_type_script_setup_true_lang_js_objectSpread({}, route.query), resolver.resolveParamsToUrl())
|
|
115813
|
+
});
|
|
115814
|
+
return;
|
|
115815
|
+
}
|
|
115816
|
+
if (store.state.indexId) {
|
|
115817
|
+
router.replace({
|
|
115818
|
+
query: monitorvue_type_script_setup_true_lang_js_objectSpread(monitorvue_type_script_setup_true_lang_js_objectSpread({
|
|
115819
|
+
indexId: store.state.indexId
|
|
115820
|
+
}, route.query), resolver.resolveParamsToUrl())
|
|
115821
|
+
});
|
|
115822
|
+
}
|
|
115823
|
+
}
|
|
115824
|
+
};
|
|
115796
115825
|
var getApmIndexSetList = /*#__PURE__*/function () {
|
|
115797
|
-
var
|
|
115826
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
115798
115827
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
115799
115828
|
while (1) switch (_context.prev = _context.next) {
|
|
115800
115829
|
case 0:
|
|
@@ -115846,7 +115875,7 @@ function monitorvue_type_script_setup_true_lang_js_objectSpread(e) { for (var r
|
|
|
115846
115875
|
}, _callee);
|
|
115847
115876
|
}));
|
|
115848
115877
|
return function getApmIndexSetList() {
|
|
115849
|
-
return
|
|
115878
|
+
return _ref.apply(this, arguments);
|
|
115850
115879
|
};
|
|
115851
115880
|
}();
|
|
115852
115881
|
|
|
@@ -115862,15 +115891,57 @@ function monitorvue_type_script_setup_true_lang_js_objectSpread(e) { for (var r
|
|
|
115862
115891
|
route: route,
|
|
115863
115892
|
list: res
|
|
115864
115893
|
}).then(function () {
|
|
115894
|
+
setDefaultIndexsetId();
|
|
115865
115895
|
store.dispatch('requestIndexSetFieldInfo').then(function () {
|
|
115866
115896
|
store.dispatch('requestIndexSetQuery');
|
|
115867
115897
|
});
|
|
115868
115898
|
});
|
|
115869
115899
|
});
|
|
115870
115900
|
};
|
|
115901
|
+
var setRouteQuery = function setRouteQuery(query) {
|
|
115902
|
+
if (query) {
|
|
115903
|
+
router.replace({
|
|
115904
|
+
query: query
|
|
115905
|
+
});
|
|
115906
|
+
return;
|
|
115907
|
+
}
|
|
115908
|
+
var routeQuery = monitorvue_type_script_setup_true_lang_js_objectSpread({}, route.query);
|
|
115909
|
+
var _store$getters$retrie = store.getters.retrieveParams,
|
|
115910
|
+
keyword = _store$getters$retrie.keyword,
|
|
115911
|
+
addition = _store$getters$retrie.addition,
|
|
115912
|
+
ip_chooser = _store$getters$retrie.ip_chooser,
|
|
115913
|
+
search_mode = _store$getters$retrie.search_mode,
|
|
115914
|
+
begin = _store$getters$retrie.begin,
|
|
115915
|
+
size = _store$getters$retrie.size;
|
|
115916
|
+
var resolver = new RetrieveUrlResolver({
|
|
115917
|
+
keyword: keyword,
|
|
115918
|
+
addition: addition,
|
|
115919
|
+
ip_chooser: ip_chooser,
|
|
115920
|
+
search_mode: search_mode,
|
|
115921
|
+
begin: begin,
|
|
115922
|
+
size: size
|
|
115923
|
+
});
|
|
115924
|
+
Object.assign(routeQuery, resolver.resolveParamsToUrl());
|
|
115925
|
+
router.replace({
|
|
115926
|
+
query: routeQuery
|
|
115927
|
+
});
|
|
115928
|
+
};
|
|
115871
115929
|
var handleIndexSetSelected = function handleIndexSetSelected(payload) {
|
|
115872
115930
|
if (!(0,external_lodash_namespaceObject.isEqual)(indexSetParams.value.ids, payload.ids) || indexSetParams.value.isUnionIndex !== payload.isUnionIndex) {
|
|
115873
115931
|
var _payload$ids;
|
|
115932
|
+
if (payload.isUnionIndex) {
|
|
115933
|
+
setRouteQuery(monitorvue_type_script_setup_true_lang_js_objectSpread(monitorvue_type_script_setup_true_lang_js_objectSpread({}, route.query), {}, {
|
|
115934
|
+
indexId: undefined,
|
|
115935
|
+
unionList: JSON.stringify(ids),
|
|
115936
|
+
clusterParams: undefined
|
|
115937
|
+
}));
|
|
115938
|
+
return;
|
|
115939
|
+
}
|
|
115940
|
+
setRouteQuery(monitorvue_type_script_setup_true_lang_js_objectSpread(monitorvue_type_script_setup_true_lang_js_objectSpread({}, route.query), {}, {
|
|
115941
|
+
indexId: payload.ids[0],
|
|
115942
|
+
unionList: undefined,
|
|
115943
|
+
clusterParams: undefined
|
|
115944
|
+
}));
|
|
115874
115945
|
store.commit('updateUnionIndexList', payload.isUnionIndex ? (_payload$ids = payload.ids) !== null && _payload$ids !== void 0 ? _payload$ids : [] : []);
|
|
115875
115946
|
store.dispatch('requestIndexSetItemChanged', payload !== null && payload !== void 0 ? payload : {}).then(function () {
|
|
115876
115947
|
store.commit('retrieve/updateChartKey');
|
|
@@ -115890,6 +115961,7 @@ function monitorvue_type_script_setup_true_lang_js_objectSpread(e) { for (var r
|
|
|
115890
115961
|
if (Object.keys(ip_chooser).length) {
|
|
115891
115962
|
foramtAddition.unshift(getInputQueryIpSelectItem(ip_chooser));
|
|
115892
115963
|
}
|
|
115964
|
+
setRouteQuery();
|
|
115893
115965
|
store.commit('updateIndexItemParams', {
|
|
115894
115966
|
keyword: keyword,
|
|
115895
115967
|
addition: foramtAddition,
|
|
@@ -115901,29 +115973,6 @@ function monitorvue_type_script_setup_true_lang_js_objectSpread(e) { for (var r
|
|
|
115901
115973
|
store.dispatch('requestIndexSetQuery');
|
|
115902
115974
|
});
|
|
115903
115975
|
};
|
|
115904
|
-
var setRouteParams = function setRouteParams() {
|
|
115905
|
-
var _ids$, _route$query;
|
|
115906
|
-
var _routeQueryParams$val = routeQueryParams.value,
|
|
115907
|
-
ids = _routeQueryParams$val.ids,
|
|
115908
|
-
isUnionIndex = _routeQueryParams$val.isUnionIndex;
|
|
115909
|
-
var params = isUnionIndex ? {
|
|
115910
|
-
indexId: undefined
|
|
115911
|
-
} : {
|
|
115912
|
-
indexId: (_ids$ = ids === null || ids === void 0 ? void 0 : ids[0]) !== null && _ids$ !== void 0 ? _ids$ : (_route$query = route.query) === null || _route$query === void 0 ? void 0 : _route$query.indexId
|
|
115913
|
-
};
|
|
115914
|
-
var query = monitorvue_type_script_setup_true_lang_js_objectSpread(monitorvue_type_script_setup_true_lang_js_objectSpread({}, route.query), params);
|
|
115915
|
-
var resolver = new RetrieveUrlResolver(monitorvue_type_script_setup_true_lang_js_objectSpread(monitorvue_type_script_setup_true_lang_js_objectSpread({}, routeQueryParams.value), {}, {
|
|
115916
|
-
indexId: params.indexId,
|
|
115917
|
-
bizId: String(window.bk_biz_id),
|
|
115918
|
-
datePickerValue: store.state.indexItem.datePickerValue
|
|
115919
|
-
}));
|
|
115920
|
-
Object.assign(query, resolver.resolveParamsToUrl());
|
|
115921
|
-
if (!(0,external_lodash_namespaceObject.isEqual)(query, route.query)) {
|
|
115922
|
-
router.replace({
|
|
115923
|
-
query: query
|
|
115924
|
-
});
|
|
115925
|
-
}
|
|
115926
|
-
};
|
|
115927
115976
|
var init = function init() {
|
|
115928
115977
|
var result = handleTransformToTimestamp(props.timeRange);
|
|
115929
115978
|
var resolver = new url_resolver({
|
|
@@ -115934,30 +115983,24 @@ function monitorvue_type_script_setup_true_lang_js_objectSpread(e) { for (var r
|
|
|
115934
115983
|
end_time: result[1],
|
|
115935
115984
|
datePickerValue: props.timeRange
|
|
115936
115985
|
}));
|
|
115937
|
-
store.commit('updateIndexId', '');
|
|
115938
|
-
store.commit('updateUnionIndexList', []);
|
|
115939
115986
|
getIndexSetList();
|
|
115940
115987
|
};
|
|
115941
|
-
(
|
|
115942
|
-
setRouteParams();
|
|
115943
|
-
}, {
|
|
115944
|
-
deep: true
|
|
115945
|
-
});
|
|
115988
|
+
init();
|
|
115946
115989
|
(0,external_vue_namespaceObject.watch)(function () {
|
|
115947
115990
|
return props.timeRange;
|
|
115948
115991
|
}, /*#__PURE__*/function () {
|
|
115949
|
-
var
|
|
115992
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2(val) {
|
|
115950
115993
|
var result;
|
|
115951
115994
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
115952
115995
|
while (1) switch (_context2.prev = _context2.next) {
|
|
115953
115996
|
case 0:
|
|
115954
|
-
console.log('props.timeRange', props.timeRange);
|
|
115955
115997
|
if (val) {
|
|
115956
|
-
_context2.next =
|
|
115998
|
+
_context2.next = 2;
|
|
115957
115999
|
break;
|
|
115958
116000
|
}
|
|
115959
116001
|
return _context2.abrupt("return");
|
|
115960
|
-
case
|
|
116002
|
+
case 2:
|
|
116003
|
+
getIndexSetList();
|
|
115961
116004
|
store.commit('updateIsSetDefaultTableColumn', false);
|
|
115962
116005
|
result = handleTransformToTimestamp(val);
|
|
115963
116006
|
store.commit('updateIndexItemParams', {
|
|
@@ -115976,7 +116019,7 @@ function monitorvue_type_script_setup_true_lang_js_objectSpread(e) { for (var r
|
|
|
115976
116019
|
}, _callee2);
|
|
115977
116020
|
}));
|
|
115978
116021
|
return function (_x) {
|
|
115979
|
-
return
|
|
116022
|
+
return _ref2.apply(this, arguments);
|
|
115980
116023
|
};
|
|
115981
116024
|
}());
|
|
115982
116025
|
(0,external_vue_namespaceObject.watch)(function () {
|
|
@@ -116017,9 +116060,41 @@ function monitorvue_type_script_setup_true_lang_js_objectSpread(e) { for (var r
|
|
|
116017
116060
|
activeTab.value = 'origin';
|
|
116018
116061
|
}
|
|
116019
116062
|
});
|
|
116063
|
+
var contentStyle = (0,external_vue_namespaceObject.computed)(function () {
|
|
116064
|
+
return {
|
|
116065
|
+
'--left-width': "0px"
|
|
116066
|
+
};
|
|
116067
|
+
});
|
|
116020
116068
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
|
116021
116069
|
init();
|
|
116022
116070
|
});
|
|
116071
|
+
|
|
116072
|
+
/** 开始处理滚动容器滚动时,收藏夹高度 */
|
|
116073
|
+
|
|
116074
|
+
// 顶部二级导航高度,这个高度是固定的
|
|
116075
|
+
var subBarHeight = (0,external_vue_namespaceObject.ref)(64);
|
|
116076
|
+
var paddingTop = (0,external_vue_namespaceObject.ref)(0);
|
|
116077
|
+
// 滚动容器高度
|
|
116078
|
+
var scrollContainerHeight = (0,external_vue_namespaceObject.ref)(0);
|
|
116079
|
+
use_scroll(GLOBAL_SCROLL_SELECTOR, function (event) {
|
|
116080
|
+
var scrollTop = event.target.scrollTop;
|
|
116081
|
+
paddingTop.value = scrollTop > subBarHeight.value ? subBarHeight.value : scrollTop;
|
|
116082
|
+
});
|
|
116083
|
+
use_resize_observe(GLOBAL_SCROLL_SELECTOR, function (entry) {
|
|
116084
|
+
scrollContainerHeight.value = entry.target.offsetHeight;
|
|
116085
|
+
}, 0);
|
|
116086
|
+
var isStickyTop = (0,external_vue_namespaceObject.computed)(function () {
|
|
116087
|
+
if (window.__IS_MONITOR_TRACE__) {
|
|
116088
|
+
return false;
|
|
116089
|
+
}
|
|
116090
|
+
return paddingTop.value === subBarHeight.value;
|
|
116091
|
+
});
|
|
116092
|
+
var isScrollY = (0,external_vue_namespaceObject.computed)(function () {
|
|
116093
|
+
return !window.__IS_MONITOR_TRACE__;
|
|
116094
|
+
});
|
|
116095
|
+
|
|
116096
|
+
/*** 结束计算 ***/
|
|
116097
|
+
|
|
116023
116098
|
return {
|
|
116024
116099
|
__sfc: true,
|
|
116025
116100
|
props: props,
|
|
@@ -116027,18 +116102,24 @@ function monitorvue_type_script_setup_true_lang_js_objectSpread(e) { for (var r
|
|
|
116027
116102
|
router: router,
|
|
116028
116103
|
route: route,
|
|
116029
116104
|
indexSetParams: indexSetParams,
|
|
116030
|
-
|
|
116105
|
+
setDefaultIndexsetId: setDefaultIndexsetId,
|
|
116031
116106
|
getApmIndexSetList: getApmIndexSetList,
|
|
116032
116107
|
getIndexSetList: getIndexSetList,
|
|
116108
|
+
setRouteQuery: setRouteQuery,
|
|
116033
116109
|
handleIndexSetSelected: handleIndexSetSelected,
|
|
116034
116110
|
updateSearchParam: updateSearchParam,
|
|
116035
|
-
setRouteParams: setRouteParams,
|
|
116036
116111
|
init: init,
|
|
116037
116112
|
activeTab: activeTab,
|
|
116038
116113
|
searchBarHeight: searchBarHeight,
|
|
116039
116114
|
resultRow: resultRow,
|
|
116040
116115
|
handleHeightChange: handleHeightChange,
|
|
116041
116116
|
initIsShowClusterWatch: initIsShowClusterWatch,
|
|
116117
|
+
contentStyle: contentStyle,
|
|
116118
|
+
subBarHeight: subBarHeight,
|
|
116119
|
+
paddingTop: paddingTop,
|
|
116120
|
+
scrollContainerHeight: scrollContainerHeight,
|
|
116121
|
+
isStickyTop: isStickyTop,
|
|
116122
|
+
isScrollY: isScrollY,
|
|
116042
116123
|
SelectIndexSet: select_index_set,
|
|
116043
116124
|
SearchBar: search_bar,
|
|
116044
116125
|
QueryHistory: query_history,
|
|
@@ -116059,8 +116140,8 @@ function monitorvue_type_script_setup_true_lang_js_objectSpread(e) { for (var r
|
|
|
116059
116140
|
|
|
116060
116141
|
var monitor_component = normalizeComponent(
|
|
116061
116142
|
monitor_monitorvue_type_script_setup_true_lang_js,
|
|
116062
|
-
|
|
116063
|
-
|
|
116143
|
+
monitorvue_type_template_id_fe826148_render,
|
|
116144
|
+
monitorvue_type_template_id_fe826148_staticRenderFns,
|
|
116064
116145
|
false,
|
|
116065
116146
|
null,
|
|
116066
116147
|
null,
|