|
@@ -44,7 +44,7 @@
|
|
|
<div class="col-md-6 col-sm-6">
|
|
<div class="col-md-6 col-sm-6">
|
|
|
<input type="text" class="form-control" id="input-device_code" name="device_code" placeholder="唯一序列号">
|
|
<input type="text" class="form-control" id="input-device_code" name="device_code" placeholder="唯一序列号">
|
|
|
</div>
|
|
</div>
|
|
|
- <label style="height: 30px; line-height: 30px;" for="show_device_code"><input id="show_device_code" type="checkbox" value="" checked>显示设备号</label>
|
|
|
|
|
|
|
+ <label style="height: 30px; line-height: 30px;" for="show_device_code"><input id="show_device_code" name="show_device_code" type="checkbox" value="1" checked>显示设备号</label>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
<label for="input-number" class="col-sm-2 control-label"><span class="form-required">*</span>编号</label>
|
|
<label for="input-number" class="col-sm-2 control-label"><span class="form-required">*</span>编号</label>
|
|
@@ -141,7 +141,6 @@
|
|
|
|
|
|
|
|
mark.addEventListener("dragend", showInfo);
|
|
mark.addEventListener("dragend", showInfo);
|
|
|
mark.enableDragging(); //可拖拽
|
|
mark.enableDragging(); //可拖拽
|
|
|
- loadLocation();
|
|
|
|
|
map.addEventListener("click",function(e){
|
|
map.addEventListener("click",function(e){
|
|
|
poi = new BMap.Point(e.point.lng, e.point.lat);
|
|
poi = new BMap.Point(e.point.lng, e.point.lat);
|
|
|
mark = new BMap.Marker(poi);
|
|
mark = new BMap.Marker(poi);
|
|
@@ -150,6 +149,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
+ loadLocation();
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 获取地址
|
|
* 获取地址
|
|
@@ -207,7 +207,7 @@
|
|
|
$("#input-address").val(address);
|
|
$("#input-address").val(address);
|
|
|
|
|
|
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
|
- showMsg('您的城市:'+r.address.city);
|
|
|
|
|
|
|
+ showMsg('您的城市:'+r.address.city+' '+r.address.district);
|
|
|
}, 500)
|
|
}, 500)
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|