|
@@ -1531,6 +1531,19 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
toaster.pop('error', '错误', response.data);
|
|
toaster.pop('error', '错误', response.data);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ $scope.setCheckedNoticeRead = function () {
|
|
|
|
|
+ var ids = [];
|
|
|
|
|
+ for (var i in $scope.notices) {
|
|
|
|
|
+ var item = $scope.notices[i];
|
|
|
|
|
+ if (item.id) {
|
|
|
|
|
+ ids.push(item.id);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ PurcNotice.setRead({}, ids, function (message) {
|
|
|
|
|
+
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
}]);
|
|
}]);
|
|
|
app.controller('PersonalSaleStatCtrl', ['$scope', 'SaleStat', function ($scope, SaleStat) {
|
|
app.controller('PersonalSaleStatCtrl', ['$scope', 'SaleStat', function ($scope, SaleStat) {
|