|
|
@@ -92,9 +92,19 @@ define(['app/app'], function (app) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- ComputedAttendFn(_arr)
|
|
|
+ if (_arr.length === 0) {
|
|
|
+ toaster.pop('warnning', '警告', "未勾选任何条目");
|
|
|
+ } else {
|
|
|
+ ComputedAttendFn(_arr)
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
+ document.onkeydown = function (ev) {
|
|
|
+ var onEvent = ev || event;
|
|
|
+ if (onEvent.keyCode === 13 && $scope.keyWord !== '' && $scope.keyWord.trim() !== '') {
|
|
|
+ $scope.seekPurchaseTableParams.page(1);
|
|
|
+ $scope.seekPurchaseTableParams.reload();
|
|
|
+ }
|
|
|
+ };
|
|
|
// 批量关注或者 批量取消
|
|
|
function ComputedAttendFn(arr) {
|
|
|
if ($scope.Attend_tab === 'isAttend') {
|
|
|
@@ -102,6 +112,7 @@ define(['app/app'], function (app) {
|
|
|
if (data.success) {
|
|
|
$scope.seekPurchaseTableParams.page($scope.page);
|
|
|
$scope.seekPurchaseTableParams.reload();
|
|
|
+ $scope.checkBoxAll = false
|
|
|
toaster.pop('success', '取消关注成功');
|
|
|
} else {
|
|
|
toaster.pop('error', data.message);
|
|
|
@@ -112,6 +123,7 @@ define(['app/app'], function (app) {
|
|
|
if (data.success) {
|
|
|
$scope.seekPurchaseTableParams.page($scope.page);
|
|
|
$scope.seekPurchaseTableParams.reload();
|
|
|
+ $scope.checkBoxAll = false
|
|
|
toaster.pop('success', '关注成功');
|
|
|
} else {
|
|
|
toaster.pop('error', data.message);
|