diff --git a/nezha-fronted/src/components/common/rightBox/dcBox.vue b/nezha-fronted/src/components/common/rightBox/dcBox.vue index 9914aa3e5..20b029461 100644 --- a/nezha-fronted/src/components/common/rightBox/dcBox.vue +++ b/nezha-fronted/src/components/common/rightBox/dcBox.vue @@ -48,7 +48,7 @@ > - + - + @@ -112,6 +114,7 @@ ] }, areaData: [], + coordinateFlag:false, } }, methods: { @@ -204,7 +207,15 @@ selectArea(area) { this.editDc.area.id = area.id; this.editDc.area.name = area.name; - } + }, + coordinateChange(val,str){//经纬度改变 + if(regNum.test(this.editDc.longitude) || regNum.test(this.editDc.latitude)){ + this.coordinateFlag=true + }else{ + this.coordinateFlag=false; + this.$refs['dcForm'].clearValidate(['longitude','latitude']) + } + }, }, mounted() { // this.getAreaData();