|
|
@@ -1144,7 +1144,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}]);
|
|
|
|
|
|
/**
|
|
|
- * 邀请记录(个人)--现在包括个人和企业
|
|
|
+ * 邀请记录
|
|
|
*/
|
|
|
app.controller('InvitationCtrl', ['$scope', 'toaster', 'InvitationRecord', 'BaseService', 'ngTableParams', '$modal', function($scope, toaster, InvitationRecord, BaseService, ngTableParams, $modal) {
|
|
|
BaseService.scrollBackToTop();
|
|
|
@@ -1235,62 +1235,6 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
- // /**
|
|
|
- // * 邀请记录(企业)--弃用
|
|
|
- // */
|
|
|
- // app.controller('InvitationByEnCtrl', ['$scope', 'toaster', 'InvitationRecord', 'BaseService', 'ngTableParams', function($scope, toaster, InvitationRecord, BaseService, ngTableParams) {
|
|
|
- // BaseService.scrollBackToTop();
|
|
|
- // $scope.status = "invitationTeam";
|
|
|
- // var getService = function() {
|
|
|
- // return InvitationRecord.getRecordsByEn;
|
|
|
- // };
|
|
|
- //
|
|
|
- // $scope.tableParams = new ngTableParams({ // ng-Table参数
|
|
|
- // page : 1,
|
|
|
- // count : 10,
|
|
|
- // sorting: {
|
|
|
- // }
|
|
|
- // }, {
|
|
|
- // total : 0,
|
|
|
- // counts: [],
|
|
|
- // getData : function($defer, params) { // 获取数据的方法
|
|
|
- // $scope.loading = true;
|
|
|
- // var pageParams = params.url();
|
|
|
- // pageParams.keyword = $scope.keyword;
|
|
|
- // $scope.tip = $scope.keyword;
|
|
|
- // getService().call(null, BaseService.parseParams(pageParams), function(page){
|
|
|
- // $scope.loading = false;
|
|
|
- // if(page) {
|
|
|
- // params.total(page.totalElement);
|
|
|
- // $defer.resolve(page.content);
|
|
|
- // }
|
|
|
- // }, function(response){
|
|
|
- // $scope.loading = false;
|
|
|
- // toaster.pop('error', '数据加载失败', response.data);
|
|
|
- // });
|
|
|
- // }
|
|
|
- // });
|
|
|
- //
|
|
|
- // $scope.onSearch = function(keyword){
|
|
|
- // $scope.tableParams.page(1);
|
|
|
- // $scope.tableParams.reload();
|
|
|
- // $scope.tip = keyword;
|
|
|
- // }
|
|
|
- //
|
|
|
- // // 再次邀请
|
|
|
- // $scope.reInvite = function(id) {
|
|
|
- // InvitationRecord.reInvite({id: id}, {}, function(data) {
|
|
|
- // if(data.success) {
|
|
|
- // toaster.pop('success', '提示', data.success);
|
|
|
- // $scope.tableParams.page(1);
|
|
|
- // $scope.tableParams.reload();
|
|
|
- // }
|
|
|
- // }, function(response) {
|
|
|
- // toaster.pop('error', '提示', response.data);
|
|
|
- // });
|
|
|
- // }
|
|
|
- // }]);
|
|
|
-
|
|
|
/**
|
|
|
* 模糊查询相似的企业名称
|
|
|
*/
|