|
|
|
@ -9,8 +9,9 @@ define(['angular','../../agent/commission/commission'], function (angular) {
|
|
|
|
|
url: '/analysis_agent/agentcommission',
|
|
|
|
|
templateUrl: '/static/agent/commission/templates/agent_commission_root.html',
|
|
|
|
|
controller: 'agentCommissionRootCtrl'
|
|
|
|
|
}).state('analysis_agent.agentcommission', {
|
|
|
|
|
}).state('analysis_agent.agentcommission.month', {
|
|
|
|
|
url: '/analysis_agent/agentcommission/months/{monthStr}',
|
|
|
|
|
url: '/months/{monthStr}',
|
|
|
|
|
templateUrl: '/static/agent/commission/templates/agent_commission_month.html',
|
|
|
|
|
controller: 'agentCommissionMonthViewCtrl',
|
|
|
|
|
resolve: {
|
|
|
|
@ -19,7 +20,7 @@ define(['angular','../../agent/commission/commission'], function (angular) {
|
|
|
|
|
}]
|
|
|
|
|
}
|
|
|
|
|
}).state('analysis_agent.agentcommission.month.agentdetail', {
|
|
|
|
|
url: '/analysis_agent/agentcommission/{orgId}',
|
|
|
|
|
url: '/{orgId}',
|
|
|
|
|
templateUrl: '/static/agent/commission/templates/agent_commission_detail.html',
|
|
|
|
|
controller: 'agentCommissionagentDetailCtrl',
|
|
|
|
|
resolve: {
|
|
|
|
@ -35,6 +36,7 @@ define(['angular','../../agent/commission/commission'], function (angular) {
|
|
|
|
|
$scope.generate = {};
|
|
|
|
|
|
|
|
|
|
$scope.generateagentCommission = function () {
|
|
|
|
|
alert(1);
|
|
|
|
|
$scope.generate.status = {};
|
|
|
|
|
if (!$scope.generate.month) {
|
|
|
|
|
commonDialog.alert({
|
|
|
|
|