|
|
@ -30,10 +30,10 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
|
|
|
|
|
|
|
|
|
|
|
|
// 加入对应项的end索引值
|
|
|
|
// 加入对应项的end索引值
|
|
|
|
for (var k in $scope.clientsMap) {
|
|
|
|
for (var k in $scope.clientsMap) {
|
|
|
|
if ($scope.clientsMap[k].length <= initEndIndex) {
|
|
|
|
var length = $scope.clientsMap[k].length;
|
|
|
|
|
|
|
|
if (length <= initEndIndex) {
|
|
|
|
$scope.endIndexMap[k] = length;
|
|
|
|
$scope.endIndexMap[k] = length;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
else
|
|
|
|
$scope.endIndexMap[k] = initEndIndex;
|
|
|
|
$scope.endIndexMap[k] = initEndIndex;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -47,10 +47,7 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
|
|
|
|
// 判断加60后的索引是否超出数组长度
|
|
|
|
// 判断加60后的索引是否超出数组长度
|
|
|
|
if (endIndex > $scope.clientsMap[key].length) {
|
|
|
|
if (endIndex > $scope.clientsMap[key].length) {
|
|
|
|
$scope.endIndexMap[key] = $scope.clientsMap[key].length;
|
|
|
|
$scope.endIndexMap[key] = $scope.clientsMap[key].length;
|
|
|
|
//alert("$scope.clientsMap[k].length:" + $scope.clientsMap[key].length + "$scope.endIndexMap[k]:" + $scope.endIndexMap[key])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
else
|
|
|
|
$scope.endIndexMap[key] = endIndex;
|
|
|
|
$scope.endIndexMap[key] = endIndex;
|
|
|
|
};
|
|
|
|
};
|
|
|
|