var app = angular.module('app',['baseServices','SysTransDefService','commonListService','arrayToolService']); app.controller("SetController",['$scope','BaseService','SysTransDef','CommonListService','ArrayToolService',function($scope,BaseService,SysTransDef,CommonListService,ArrayToolService){ $scope.CommonList=CommonListService; $scope.ArrayTool=ArrayToolService; //对象 $scope.prop={}; //页面用到的参数或临时变量 $scope.param={}; $scope.param.author={};//授权人 $scope.param.targetPerson={};//目的人 SysTransDef.detail({id:id},function(data){ $scope.std=data; }); //执行selectSql $scope.excuteSelectSql=function(){ if(id=="1") return;//1是为显示好看的父节点,没意义的 var json={}; json.id=id; json.authorId=$scope.param.author.id; SysTransDef.excuteSelectSql(json,function(data){ $scope.param.list=jQuery.extend(true,[], data); for(var i=0;i