Browse Source

更新采纳或拒绝页面提示及数据刷新

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

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

@@ -2997,6 +2997,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 			PurchaseInquiry.accept({id: id}, {}, function(data) {
 				if(data.success) {
 					toaster.pop('success', '提示', data.success);
+					$scope.tableParams.reload();
 				}
 				if(data.error) {
 					toaster.pop('error', '提示', data.error);
@@ -3012,6 +3013,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 			PurchaseInquiry.refuse({id: id}, {}, function(data) {
 				if(data.success) {
 					toaster.pop('success', '提示', data.success);
+					$scope.tableParams.reload();
 				}
 				if(data.error) {
 					toaster.pop('error', '提示', data.error);