|
|
|
@ -127,6 +127,7 @@ define(['angular', '../../analysis/bd/analysis-bd'], function (angular) {
|
|
|
|
|
$scope.editBDLevels = function () {
|
|
|
|
|
$uibModal.open({
|
|
|
|
|
templateUrl: '/static/config/bdprize/templates/bd_level_config_dialog.html',
|
|
|
|
|
size: 'lg',
|
|
|
|
|
controller: 'bdLevelConfigCtrl'
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
@ -194,7 +195,7 @@ define(['angular', '../../analysis/bd/analysis-bd'], function (angular) {
|
|
|
|
|
}
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('bdLevelConfigCtrl', ['$scope', '$http', function ($scope, $http) {
|
|
|
|
|
|
|
|
|
|
$scope.bdtypes = [{id: 1, label: 'BD Manager(Sydney)'}, {id: 2, label: 'KA Manager(Sydney)'},{id: 6, label: 'BD Manager(Melbourne)'}, {id: 7, label: 'KA Manager(Melbourne)'}];
|
|
|
|
|
$scope.getBDGroups = function () {
|
|
|
|
|
$http.get('/sys/manager_accounts/roles/bd_leader').then(function (resp) {
|
|
|
|
|
$scope.bdgroups = resp.data;
|
|
|
|
@ -220,7 +221,7 @@ define(['angular', '../../analysis/bd/analysis-bd'], function (angular) {
|
|
|
|
|
app.controller('bdCommissionConfigCtrl', ['$scope', '$state', '$http', '$filter', 'monModal', function ($scope, $state, $http, $filter, monModal) {
|
|
|
|
|
$scope.monModal = monModal;
|
|
|
|
|
$scope.params = {year: new Date().getFullYear()};
|
|
|
|
|
$scope.bdtypes = [{id: 1, label: 'BD Manager'}, {id: 2, label: 'KA Manager'}, {id: 3, label: 'Sydney GM'},{id: 4, label: 'COO'},{id: 5, label: 'NJ Department'}];
|
|
|
|
|
$scope.bdtypes = [{id: 1, label: 'BD Manager(Sydney)'}, {id: 2, label: 'KA Manager(Sydney)'}, {id: 6, label: 'BD Manager(Melbourne)'}, {id: 7, label: 'KA Manager(Melbourne)'}];//, {id: 3, label: 'Sydney GM'},{id: 4, label: 'COO'},{id: 5, label: 'NJ Department'}];
|
|
|
|
|
// $scope.bdmon;
|
|
|
|
|
// $scope.newSwitch;
|
|
|
|
|
$scope.initMonth = function (year) {
|
|
|
|
|