|
@@ -20,10 +20,10 @@
|
|
|
$("#mapimg").css("height", $(window).height());
|
|
|
|
|
|
$("#searchInput").focus(function () {
|
|
|
-
|
|
|
+
|
|
|
});
|
|
|
|
|
|
-
|
|
|
+
|
|
|
$scope.mapImgClick = function (e) {
|
|
|
console.log(e.offsetX, e.offsetY);
|
|
|
$scope.isShowMark = false;
|
|
@@ -68,7 +68,8 @@
|
|
|
|
|
|
searchRoomList.forEach(r => {
|
|
|
var building = $scope.buildingXYAxisList.filter(e => e.BuildingId == r.BuildingId);
|
|
|
- $scope.searchList.push({ BuildingFloorId: r.BuildingFloorId, BuildingId: r.BuildingId, RoomName: r.RoomName, DepartmentOrServiceName: r.DepartmentOrServiceName, FloorName: r.FloorName, BuildingName: building.length > 0 ? building[0].BuildingName:"" });
|
|
|
+ if (building.length > 0)
|
|
|
+ $scope.searchList.push({ BuildingFloorId: r.BuildingFloorId, BuildingId: r.BuildingId, RoomName: r.RoomName, DepartmentOrServiceName: r.DepartmentOrServiceName, FloorName: r.FloorName, BuildingName: building.length > 0 ? building[0].BuildingName : "" });
|
|
|
});
|
|
|
|
|
|
$scope.isShowSearchList = $scope.searchList.length > 0;
|