|
|
@@ -439,14 +439,13 @@ angular.module('app.supervise').controller("sptSxtgzsCtrl", function ($scope, $r
|
|
439
|
439
|
|
|
440
|
440
|
$scope.yearflag = false;
|
|
441
|
441
|
$scope.monthflag = true;
|
|
442
|
|
- now = new Date();
|
|
443
|
|
- year = now.getFullYear();
|
|
|
442
|
+ var now = new Date();
|
|
|
443
|
+ var year = now.getFullYear();
|
|
444
|
444
|
var month2 = String(now.getMonth()+1).padStart(2,'0');
|
|
445
|
445
|
$scope.search.monthTime = year+"-"+month2;
|
|
446
|
446
|
$("#monthTime").val($scope.search.monthTime);
|
|
447
|
447
|
|
|
448
|
448
|
$scope.conditionsSelect = function(param) {
|
|
449
|
|
- var now = null;
|
|
450
|
449
|
if(param == 'year'){
|
|
451
|
450
|
$scope.yearflag = true;
|
|
452
|
451
|
$scope.monthflag = false;
|
|
|
@@ -465,14 +464,13 @@ angular.module('app.supervise').controller("sptSxtgzsCtrl", function ($scope, $r
|
|
465
|
464
|
} else if (param == 'month') {
|
|
466
|
465
|
$scope.yearflag = false;
|
|
467
|
466
|
$scope.monthflag = true;
|
|
468
|
|
- var year = null;
|
|
469
|
467
|
var month = null;
|
|
470
|
468
|
var firstDay = "01";
|
|
471
|
469
|
$scope.search.monthTime = $("#monthTime").val();
|
|
472
|
470
|
if ($scope.search.monthTime == null || $scope.search.monthTime == undefined || $scope.search.monthTime == "") {
|
|
473
|
471
|
now = new Date();
|
|
474
|
472
|
year = now.getFullYear();
|
|
475
|
|
- var month2 = String(now.getMonth()+1).padStart(2,'0');
|
|
|
473
|
+ month2 = String(now.getMonth()+1).padStart(2,'0');
|
|
476
|
474
|
$scope.search.monthTime = year+"-"+month2;
|
|
477
|
475
|
$scope.search.xxcjsjks = $scope.search.monthTime+"-"+firstDay;//初始化开始时间
|
|
478
|
476
|
month = String(now.getMonth()+2).padStart(2,'0');//这个参数主要是为了生成最后一天
|