fix: 修复chabinetBox name未定义 alertRuleBox id未定义
This commit is contained in:
@@ -56,6 +56,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
clickOutside () {
|
clickOutside () {
|
||||||
this.esc(false)
|
this.esc(false)
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
</transition>
|
</transition>
|
||||||
<!-- cabinet -->
|
<!-- cabinet -->
|
||||||
<transition name="right-box">
|
<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>
|
</transition>
|
||||||
<!-- agent -->
|
<!-- agent -->
|
||||||
<transition name="right-box">
|
<transition name="right-box">
|
||||||
@@ -173,7 +173,7 @@
|
|||||||
v-if="rightBox.charts.show"></chart-box>
|
v-if="rightBox.charts.show"></chart-box>
|
||||||
</transition>
|
</transition>
|
||||||
<transition name="right-box">
|
<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>
|
</transition>
|
||||||
<!--web-->
|
<!--web-->
|
||||||
<el-dropdown>
|
<el-dropdown>
|
||||||
@@ -227,12 +227,10 @@ import axios from 'axios'
|
|||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
show: Boolean,
|
show: Boolean,
|
||||||
params: { type: Object },
|
|
||||||
exportFileName: { type: String },
|
exportFileName: { type: String },
|
||||||
link: { type: Object },
|
id: { type: String, default: 'export' },
|
||||||
permissions: { type: Object },
|
currentDc: { type: Object },
|
||||||
showCur: { type: Boolean, default: true },
|
alertRule: Object
|
||||||
id: { type: String, default: 'export' }
|
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
DcBox,
|
DcBox,
|
||||||
@@ -431,9 +429,10 @@ export default {
|
|||||||
unit: 2,
|
unit: 2,
|
||||||
operator: '>',
|
operator: '>',
|
||||||
last: 60,
|
last: 60,
|
||||||
severity: 'P2',
|
severityId: '',
|
||||||
summary: '',
|
summary: '',
|
||||||
description: ''
|
description: '',
|
||||||
|
method: []
|
||||||
},
|
},
|
||||||
cabinet: {
|
cabinet: {
|
||||||
id: '',
|
id: '',
|
||||||
@@ -525,6 +524,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// Alert
|
// Alert
|
||||||
addAlertRule() {
|
addAlertRule() {
|
||||||
|
console.log(id)
|
||||||
this.rightBox.alert.show = true
|
this.rightBox.alert.show = true
|
||||||
this.$emit("update:show", false);
|
this.$emit("update:show", false);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</nz-data-list>
|
</nz-data-list>
|
||||||
<transition name="right-box">
|
<transition name="right-box">
|
||||||
<snmp-credential-box :credential="object" v-if="rightBox.show" ref="credentialBox" @close="closeRightBox" @reload="getTableData"></snmp-credential-box>
|
<snmp-credential-box :credential="object" v-if="rightBox.show" ref="credentialBox" @close="closeSnmpBox" @reload="getTableData"></snmp-credential-box>
|
||||||
</transition>
|
</transition>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user