Browse Source

添加数据请求

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@10564 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
wangmh 8 years ago
parent
commit
d6e9a04efb
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/main/webapp/resources/js/index/app.js

+ 5 - 2
src/main/webapp/resources/js/index/app.js

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