From dddbec7412e3f707735a48085251dcc3a3f1153a Mon Sep 17 00:00:00 2001 From: pobu168 <244202969@qq.com> Date: Mon, 2 Nov 2020 09:54:25 +0800 Subject: [PATCH 1/2] Fix bug --- .../monitor-config/threshold-management.vue | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/monitor-ui/src/views/monitor-config/threshold-management.vue b/monitor-ui/src/views/monitor-config/threshold-management.vue index 7d40bba20..c6882dc4f 100644 --- a/monitor-ui/src/views/monitor-config/threshold-management.vue +++ b/monitor-ui/src/views/monitor-config/threshold-management.vue @@ -18,7 +18,7 @@ @on-clear="clearEndpoint" > @@ -334,26 +334,6 @@ export default { tpl_id: tableItem.tpl_id, accept: tableItem.accept } - // this.$root.$httpRequestEntrance.httpRequestEntrance('POST', this.$root.apiCenter.thresholdManagement.recevier.api, params, () => { - // this.$root.$eventBus.$emit('hideConfirmModal') - // this.$Message.success(this.$t('tips.success')) - // this.requestData(this.type, this.typeValue) - // }, {isNeedloading:false}) - // this.$delConfirm({ - // msg: receiver.option_text, - // callback: () => { - // tableItem.accept.splice(index,1) - // const params = { - // tpl_id: tableItem.tpl_id, - // accept: tableItem.accept - // } - // this.$root.$httpRequestEntrance.httpRequestEntrance('POST', this.$root.apiCenter.thresholdManagement.recevier.api, params, () => { - // this.$root.$eventBus.$emit('hideConfirmModal') - // this.$Message.success(this.$t('tips.success')) - // this.requestData(this.type, this.typeValue) - // }, {isNeedloading:false}) - // } - // }) }, ok () { this.$root.$httpRequestEntrance.httpRequestEntrance('POST', this.$root.apiCenter.thresholdManagement.recevier.api, this.requestParams, () => { @@ -498,7 +478,7 @@ export default { this.modelTip.value = rowData.metric this.modelConfig.addRow = this.$root.$tableUtil.manageEditParams(this.modelConfig.addRow, rowData) let cond = rowData.cond.split('') - if (cond.indexOf('=') > 0) { + if (cond.indexOf('=') >= 0) { this.modelConfig.threshold = cond.slice(0,2).join('') this.modelConfig.thresholdValue = cond.slice(2).join('') } else { From 774ce0c9067d48c76dd7e4521fcbb169bd9abad5 Mon Sep 17 00:00:00 2001 From: pobu168 <244202969@qq.com> Date: Tue, 3 Nov 2020 17:43:46 +0800 Subject: [PATCH 2/2] Fix bug --- monitor-ui/src/router-plugin-p.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/monitor-ui/src/router-plugin-p.js b/monitor-ui/src/router-plugin-p.js index cac0352c1..2d18e30eb 100644 --- a/monitor-ui/src/router-plugin-p.js +++ b/monitor-ui/src/router-plugin-p.js @@ -62,6 +62,13 @@ const routerP = [ // title: "搜索主页", // meta: {}, // component: portal + }, + { + path: "/alarmHistory", + name: "alarmHistory", + // title: "告警历史", + // meta: {}, + // component: portal } ];