angular.module('registry_module', []) .controller('registryCtrl',['http_service','$scope','$location','$rootScope',function(http_service,$scope,$location,$rootScope){ $scope.tenantnames=[ {"name":"租户1","code":888}, {"name":"租户2","code":999} ] // $scope.usernames=[ // {"name":"yonghu1","code":1}, // {"name":"yonghu2","code":1}, // {"name":"yonghu3","code":1}, // {"name":"yonghu4","code":1} // ] $scope.adminnames=[ {"name":"用户1","code":1}, {"name":"用户2","code":2}, {"name":"用户3","code":3}, {"name":"用户4","code":4} ] $scope.adminnames2=[ {"name":"用户5","code":5}, {"name":"用户6","code":6}, {"name":"用户7","code":7}, {"name":"用户8","code":8} ] //测试用 // token:{ // tenant:"租户id", // user:"userId" // } $("#top").hide(); $('#registrySection').hide(); $scope.selectuser = function($index){ $scope.username = $scope.adminname[$index].code; // //获得加密用户id // http_service.post('workflow/userInfo?userId='+$scope.username,{},function(response){ // var info = response.data.data; // $("