|
|
@@ -797,7 +797,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
};
|
|
|
|
|
|
$scope.showMessage = function() {
|
|
|
- $modal.open({
|
|
|
+ var modalInstance = $modal.open({
|
|
|
templateUrl: 'static/tpl/index/home/pagingRelease.html',
|
|
|
controller: 'PagingReleaseCtrl'
|
|
|
});
|
|
|
@@ -934,11 +934,22 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}
|
|
|
});
|
|
|
PagingRelease.setRead({}, selectedMessages , function(message) {
|
|
|
+ toaster.pop("success", "成功", "设置成功");
|
|
|
$scope.tableParams.page(1);
|
|
|
$scope.tableParams.reload();
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+ // 点击内容连接之后,信息标为已读
|
|
|
+ $scope.setOneRead = function(id) {
|
|
|
+ $modalInstance.close();
|
|
|
+ PagingRelease.setOneRead({id: id}, {}, function(data) {
|
|
|
+ toaster.pop("success", "成功", "跳转到单据详情");
|
|
|
+ }, function(response) {
|
|
|
+ toaster.pop('error', '提示', response.data);
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
// 搜索框回车
|
|
|
$scope.onSearch = function() {
|
|
|
$scope.searchStatus = true;
|