Merge branch 'dev-2.0' of https://git.mesalab.cn/nezha/nezha-fronted into dev-2.0

# Conflicts:
#	nezha-fronted/src/components/layout/path_navigation/PathNavigation.vue
This commit is contained in:
zhangyu
2021-05-10 16:37:19 +08:00
33 changed files with 596 additions and 784 deletions

View File

@@ -78,7 +78,7 @@
</transition>
<!-- cabinet -->
<transition name="right-box">
<cabinet-box v-if="rightBox.cabinet.show" :cabinet="cabinet" ref="cabinetEditBox" @close="closeCabinetBox"></cabinet-box>
<cabinet-box v-if="rightBox.cabinet.show" :current-dc="cabinet" :cabinet="cabinet" ref="cabinetEditBox" @close="closeCabinetBox"></cabinet-box>
</transition>
<!-- agent -->
<transition name="right-box">
@@ -173,7 +173,7 @@
v-if="rightBox.charts.show"></chart-box>
</transition>
<transition name="right-box">
<alert-rule-box v-if="rightBox.alert.show" ref="alertConfigBox" :alert="alert" @close="closeAlertBox"></alert-rule-box>
<alert-rule-box v-if="rightBox.alert.show" :alert-rule="alert" ref="alertConfigBox" :alert="alert" @close="closeAlertBox"></alert-rule-box>
</transition>
<!--web-->
<el-dropdown>
@@ -228,12 +228,10 @@ import axios from 'axios'
export default {
props: {
show: Boolean,
params: { type: Object },
exportFileName: { type: String },
link: { type: Object },
permissions: { type: Object },
showCur: { type: Boolean, default: true },
id: { type: String, default: 'export' }
id: { type: String, default: 'export' },
currentDc: { type: Object },
alertRule: Object
},
components: {
DcBox,
@@ -432,9 +430,10 @@ export default {
unit: 2,
operator: '>',
last: 60,
severity: 'P2',
severityId: '',
summary: '',
description: ''
description: '',
method: []
},
cabinet: {
id: '',