diff --git a/nezha-fronted/src/components/common/rightBox/locationCascader.vue b/nezha-fronted/src/components/common/rightBox/locationCascader.vue
index 9787d8f14..b84a99cc0 100644
--- a/nezha-fronted/src/components/common/rightBox/locationCascader.vue
+++ b/nezha-fronted/src/components/common/rightBox/locationCascader.vue
@@ -25,7 +25,7 @@
-
-
{{item.name}}
+
{{item.name}}
@@ -91,6 +91,16 @@
toggleDropdown:function(){
if(this.disabled == false){
this.dropDownVisible = !this.dropDownVisible;
+ if(this.dropDownVisible){
+ let $temp=this;
+ document.addEventListener('click',function(e){
+ e.stopPropagation ? e.stopPropagation() : e.cancelBubble = true;
+ $temp.dropDownVisible=false;
+ },false)
+ this.$el.addEventListener('click',function(e){
+ e.stopPropagation ? e.stopPropagation() : e.cancelBubble = true;
+ },false)
+ }
}
},
queryIdcInfos:function(){
@@ -169,6 +179,7 @@
})
this.oldUChecked=this.uChecked
this.selectedData.u=this.initData.u;
+ this.$emit('change',this.selectedData);
}
this.uInfos.set(cabinetUKey,us);
}else{
@@ -355,7 +366,6 @@
}
},
mounted() {
-
},
computed:{
inputShowInfo:function(){