Skip to content

Commit

Permalink
Merge pull request #669 from WeBankPartners/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
pobu168 authored Nov 4, 2020
2 parents 7c872dc + 774ce0c commit c0ba299
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 22 deletions.
7 changes: 7 additions & 0 deletions monitor-ui/src/router-plugin-p.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ const routerP = [
// title: "搜索主页",
// meta: {},
// component: portal
},
{
path: "/alarmHistory",
name: "alarmHistory",
// title: "告警历史",
// meta: {},
// component: portal
}
];

Expand Down
24 changes: 2 additions & 22 deletions monitor-ui/src/views/monitor-config/threshold-management.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@on-clear="clearEndpoint"
>
<Option v-for="(option, index) in endpointOptions" :value="option.id" :key="index">
<TagShow :tagName="option.option_type_name" :index="index"></TagShow>
<TagShow v-if="type!== 'grp'" :tagName="option.option_type_name" :index="index"></TagShow>
{{option.option_text}}
</Option>
</Select>
Expand Down Expand Up @@ -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, () => {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit c0ba299

Please sign in to comment.