|
@@ -4,7 +4,7 @@
|
|
|
*/
|
|
*/
|
|
|
define(['app/app'], function(app) {
|
|
define(['app/app'], function(app) {
|
|
|
"use strict";
|
|
"use strict";
|
|
|
- app.register.controller('vendorAccountManagementCtrl', ['$scope', '$rootScope', 'Enterprise', 'User', 'toaster', '$modal','BaseService','ngTableParams','$http', function($scope, $rootScope, Enterprise, User, toaster, $modal, BaseService, ngTableParams, $http) {
|
|
|
|
|
|
|
+ app.register.controller('vendorAccountManagementCtrl', ['$scope', '$rootScope', 'Enterprise', 'User', 'toaster', '$modal','BaseService','ngTableParams','$http','AccountResource','AccountRole', function($scope, $rootScope, Enterprise, User, toaster, $modal, BaseService, ngTableParams, $http, AccountResource, AccountRole) {
|
|
|
$rootScope.active = 'vendor_account_management';
|
|
$rootScope.active = 'vendor_account_management';
|
|
|
$scope.tab = 'base';
|
|
$scope.tab = 'base';
|
|
|
$scope.addingUser = false;
|
|
$scope.addingUser = false;
|
|
@@ -277,6 +277,12 @@ define(['app/app'], function(app) {
|
|
|
};
|
|
};
|
|
|
//角色控制
|
|
//角色控制
|
|
|
$scope.roles = {};
|
|
$scope.roles = {};
|
|
|
|
|
+ AccountResource.query({}, function (data) {
|
|
|
|
|
+ if (data && data.length > 0) {
|
|
|
|
|
+ data[0].$open = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ $scope.resources = data;
|
|
|
|
|
+ });
|
|
|
var getData = function () {
|
|
var getData = function () {
|
|
|
AccountRole.query({}, function (data) {
|
|
AccountRole.query({}, function (data) {
|
|
|
var defaults = [], custom = [];
|
|
var defaults = [], custom = [];
|