From 6cd45c9ac23ab89b248c77476f43913aa70f6039 Mon Sep 17 00:00:00 2001 From: wangning <164851225@qq.com> Date: Tue, 16 Jan 2018 09:07:48 +0800 Subject: [PATCH 1/5] tmp --- .../ui/static/config/orgcommission/orgcommission.js | 13 +++++++++++++ .../templates/org_commission_root.html | 11 ++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/main/ui/static/config/orgcommission/orgcommission.js b/src/main/ui/static/config/orgcommission/orgcommission.js index 3171ff7a7..d064e8a40 100644 --- a/src/main/ui/static/config/orgcommission/orgcommission.js +++ b/src/main/ui/static/config/orgcommission/orgcommission.js @@ -92,6 +92,19 @@ define(['angular','../../analysis/org/analysis-org'], function (angular) { var monthStr = $scope.params.year.getFullYear() + '-' + (('0' + mon).substr(-2)); $state.go('analysis_org.orgcommission.month', {monthStr: monthStr}) }; + + $scope.gotoMonth = function (mon) { + alert($scope.mon.monthstr); + var monthStr = $scope.params.year.getFullYear() + '-' + (('0' + mon).substr(-2)); + $state.go('analysis_org.orgcommission.month', {monthStr: monthStr}) + }; + + + $scope.gotoReferrerMonth = function (mon) { + alert($scope.mon.monthstr); + var monthStr = $scope.params.year.getFullYear() + '-' + (('0' + mon).substr(-2)); + $state.go('analysis_agent.agentcommission.month', {monthStr: monthStr}) + }; }]); app.controller('orgCommissionMonthViewCtrl', ['$scope', 'monthData','$filter', function ($scope, monthData) { $scope.monthData = monthData.data; diff --git a/src/main/ui/static/config/orgcommission/templates/org_commission_root.html b/src/main/ui/static/config/orgcommission/templates/org_commission_root.html index 27478cb97..b9d6e610c 100644 --- a/src/main/ui/static/config/orgcommission/templates/org_commission_root.html +++ b/src/main/ui/static/config/orgcommission/templates/org_commission_root.html @@ -13,7 +13,6 @@ -