fix: 修复数个bug
1.asset-account exporter项在编辑时不可见; 2.asset cli下拉选择项中去掉snmp; 3.alert-rule 文字标题更改; 4.修复endpoint-query时会自己弹出chartbox的问题; 5.优化了asset-box代码逻辑
This commit is contained in:
@@ -147,7 +147,7 @@
|
||||
ref="addEndpointBox"></add-endpoint-box>
|
||||
<!--<asset-add-unit :add-unit-show='addUnitShow' @refreshData="refreshAsset" ref="assetAddUnit"
|
||||
@sendStateData="closeAsset"></asset-add-unit>-->
|
||||
<asset-box :edit-unit-show='addUnitShow' @refreshData="refreshAsset" @sendStateData="closeAsset"
|
||||
<asset-box :edit-unit-show='addUnitShow' @refreshData="refreshAsset" @sendStateData="closeAsset" v-if="assetBoxShow"
|
||||
ref="assetAddUnit"></asset-box>
|
||||
<dc-box ref="dcBox" :dc="currentDc" :user-data="userDatas" @reload="getAssetData"></dc-box>
|
||||
<alert-config-box :parentAlertRule="alertRule" @reload="" ref="alertConfigBox"></alert-config-box>
|
||||
@@ -253,6 +253,7 @@
|
||||
},
|
||||
IDCOptionData: [],
|
||||
addUnitShow: false,
|
||||
assetBoxShow: false,
|
||||
userDatas:[],
|
||||
showChangePwd:false,
|
||||
}
|
||||
@@ -260,6 +261,7 @@
|
||||
methods: {
|
||||
closeAsset() {
|
||||
this.addUnitShow = false;
|
||||
this.assetBoxShow = false;
|
||||
},
|
||||
refreshAsset(flag) {
|
||||
if (flag && this.$route.path == "/asset") {
|
||||
@@ -323,9 +325,11 @@
|
||||
} else if (item.type == 5) {
|
||||
this.$refs.alertConfigBox.show(true, true);
|
||||
} else if (item.type == 4) {
|
||||
this.addUnitShow = true;
|
||||
this.$refs.assetAddUnit.show();
|
||||
this.$refs.assetAddUnit.resetAsset();
|
||||
this.assetBoxShow = true;
|
||||
this.$nextTick(() => {
|
||||
this.addUnitShow = true;
|
||||
this.$refs.assetAddUnit.resetAsset();
|
||||
});
|
||||
} else if (item.type == 6) {
|
||||
this.currentDc = {
|
||||
id: '',
|
||||
|
||||
Reference in New Issue
Block a user