| 12345678910111213141516171819202122232425262728293031323334 |
- define(['app/app'], function (app) {
- 'use strict';
- app.register.controller('AuditRealAuthCtrl', ['$scope', 'ngTableParams', 'User', 'toaster', 'BaseService', function ($scope, ngTableParams, User, toaster, BaseService) {
- $scope.active = 'tobeAudit';
- $scope.status = 2;
- //table设置
- $scope.realAuthTableParams = new ngTableParams({
- page : 1,
- count : 5
- }, {
- total : 0,
- getData : function ($defer, params) {
- const param = BaseService.parseParams(params.url());
- param.status = $scope.status;
- //param.keyword = $scope.keyword;
- User.getPageStatusRealAuth(param, function (data) {
- params.total(data.totalElements);
- $defer.resolve(data.content);
- }, function (response) {
- toaster.pop('error', '获取账户信息失败');
- });
- }
- });
- $scope.updateIdEnable = function(idEnable,info){
- info.idEnable = idEnable;
- User.updateIdEnable(info,function(data){
- location.reload();
- },function(response){
- });
- }
- }]);
- });
|