diff --git a/bklog/web/src/views/retrieve-v2/result-comp/context-log.vue b/bklog/web/src/views/retrieve-v2/result-comp/context-log.vue index a0810a64d3..a9d4ff0f09 100644 --- a/bklog/web/src/views/retrieve-v2/result-comp/context-log.vue +++ b/bklog/web/src/views/retrieve-v2/result-comp/context-log.vue @@ -262,7 +262,9 @@ try { this.isConfigLoading = true; const res = await this.$http.request('retrieve/getLogTableHead', { - params: { index_set_id: window.__IS_MONITOR_APM__ ? this.$route.query.indexId : this.$route.params.indexId }, + params: { + index_set_id: window.__IS_MONITOR_APM__ ? this.$route.query.indexId : this.$route.params.indexId, + }, query: { scope: 'search_context', start_time: this.retrieveParams.start_time, @@ -303,7 +305,9 @@ try { this.logLoading = true; const res = await this.$http.request('retrieve/getContentLog', { - params: { index_set_id: window.__IS_MONITOR_APM__ ? this.$route.query.indexId : this.$route.params.indexId }, + params: { + index_set_id: window.__IS_MONITOR_APM__ ? this.$route.query.indexId : this.$route.params.indexId, + }, data, }); @@ -373,13 +377,16 @@ const data = { display_fields: list }; try { const configRes = await this.$http.request('retrieve/getFieldsConfigByContextLog', { - params: { index_set_id: window.__IS_MONITOR_APM__ ? this.$route.query.indexId : this.$route.params.indexId, config_id: this.currentConfigID }, + params: { + index_set_id: window.__IS_MONITOR_APM__ ? this.$route.query.indexId : this.$route.params.indexId, + config_id: this.currentConfigID, + }, }); Object.assign(data, { sort_list: configRes.data.sort_list, name: configRes.data.name, config_id: this.currentConfigID, - index_set_id:window.__IS_MONITOR_APM__ ? this.$route.query.indexId : this.$route.params.indexId, + index_set_id: window.__IS_MONITOR_APM__ ? this.$route.query.indexId : this.$route.params.indexId, }); await this.$http.request('retrieve/updateFieldsConfig', { data, diff --git a/bklog/web/src/views/retrieve-v2/result-comp/fields-setting.vue b/bklog/web/src/views/retrieve-v2/result-comp/fields-setting.vue index caf779f939..4b6c828160 100644 --- a/bklog/web/src/views/retrieve-v2/result-comp/fields-setting.vue +++ b/bklog/web/src/views/retrieve-v2/result-comp/fields-setting.vue @@ -379,8 +379,8 @@ this.isConfirmSubmit = true; await this.handleUpdateConfig(confirmConfigData); // 判断当前应用的config_id 与 索引集使用的config_id是否相同 不同则更新config - if (this.currentClickConfigID !== this.filedSettingConfigID) { - await this.submitFieldsSet(this.currentClickConfigID); + if (this.currentClickConfigData.id !== this.filedSettingConfigID) { + await this.submitFieldsSet(this.currentClickConfigData.id); } this.cancelModifyFields(); this.$store.commit('updateShowFieldAlias', this.showFieldAlias); @@ -662,6 +662,8 @@ isShowEdit: false, editStr: item.name, })); + + } catch (error) { } finally { this.isLoading = false;