|
@@ -6856,6 +6856,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$defer.resolve(page.content);
|
|
$defer.resolve(page.content);
|
|
|
$scope.searchFilterXls = angular.copy(pageParams.searchFilter);//保存当前取值的关键词
|
|
$scope.searchFilterXls = angular.copy(pageParams.searchFilter);//保存当前取值的关键词
|
|
|
}
|
|
}
|
|
|
|
|
+ getUnreadCount();
|
|
|
}, function (response) {
|
|
}, function (response) {
|
|
|
$scope.loading = false;
|
|
$scope.loading = false;
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
@@ -6867,7 +6868,6 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
var getUnreadCount = function () {
|
|
var getUnreadCount = function () {
|
|
|
PurcSample.getUnreadCount(null, function(data){
|
|
PurcSample.getUnreadCount(null, function(data){
|
|
|
$scope.unread = data;
|
|
$scope.unread = data;
|
|
|
- console.log(data);
|
|
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
getUnreadCount();
|
|
getUnreadCount();
|
|
@@ -6879,7 +6879,10 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}
|
|
}
|
|
|
var sourceId = [];
|
|
var sourceId = [];
|
|
|
sourceId.push(id);
|
|
sourceId.push(id);
|
|
|
- PurcSample.setRead({}, sourceId);
|
|
|
|
|
|
|
+ PurcSample.setRead({}, sourceId, function (message) {
|
|
|
|
|
+ getUnreadIds();
|
|
|
|
|
+ getUnreadCount();
|
|
|
|
|
+ });
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
//获取未读单据id
|
|
//获取未读单据id
|