28383
This commit is contained in:
		| @@ -25,7 +25,7 @@ | ||||
|         </el-form-item> | ||||
|       </el-form> | ||||
|     </ai-dialog> | ||||
|     <locate-dialog v-model="locate" :ins="instance" @confirm="v=>handleLocate(selected,v)"/> | ||||
|     <locate-dialog v-model="locate" :ins="instance" :latlng="latlng" @confirm="v=>handleLocate(selected,v)"/> | ||||
|     <ai-area custom-clicker :input-clicker="false" v-model="selected.areaId" :hideLevel="disabledLevel" :instance="instance" ref="BindArea" | ||||
|              @change="handleSubmit(selected)"/> | ||||
|   </section> | ||||
| @@ -71,6 +71,7 @@ | ||||
|         selected: { | ||||
|           areaId: '' | ||||
|         }, | ||||
|         latlng: null, | ||||
|         disabledLevel: 0, | ||||
|         rules: { | ||||
|           name: [{required: true, message: "请填写 设备名称"}] | ||||
| @@ -155,6 +156,10 @@ | ||||
|         } else if (command == "area") {//绑定areaId | ||||
|           this.$refs.BindArea?.chooseArea() | ||||
|         } else if (command == "locate") {//地图标绘 | ||||
|           this.latlng = data.lat && data.lng ? { | ||||
|             lat: data.lat, | ||||
|             lng: data.lng | ||||
|           } : '' | ||||
|           this.locate = true | ||||
|         } | ||||
|       }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user