NEZ-357 feat:mib browser snmp设置同步asset & alert rule侧滑bug修复

This commit is contained in:
wangwenrui
2020-07-27 16:21:38 +08:00
parent c9be557490
commit 3c6d841561
5 changed files with 68 additions and 16 deletions

View File

@@ -102,7 +102,7 @@
</div>
</left-menu>
<transition name="right-box">
<alert-config-box v-if="rightBox.show" :alert-rule="alertRule" @close="closeRightBox" ref="alertConfigBox"></alert-config-box>
<alert-config-box :alert-rule="alertRule" @close="closeRightBox" ref="alertConfigBox"></alert-config-box>
</transition>
<element-set
v-if="tools.showElementSet"
@@ -123,10 +123,6 @@
name: "alert-config",
data() {
return {
//侧滑
rightBox: {
show: false,
},
/*二级页面相关*/
bottomBox: {
ruleDetail: {},
@@ -332,10 +328,9 @@
},
edit(u) {
this.alertRule = JSON.parse(JSON.stringify(u));
this.rightBox.show = true;
this.$refs.alertConfigBox.show();
},
closeRightBox(refresh) {
this.rightBox.show = false;
if (refresh) {
this.getTableData();
}
@@ -366,7 +361,7 @@
},
add() {
this.alertRule = this.newAlertRule();
this.rightBox.show = true;
this.$refs.alertConfigBox.show();
},
newAlertRule() {
return JSON.parse(JSON.stringify(this.blankAlertRule));