fanxw 2 vuotta sitten
vanhempi
commit
0173619f68

+ 3 - 5
src/main/resources/static/app/supervise/controller/sptCtrl.js

@@ -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');//这个参数主要是为了生成最后一天

+ 1 - 0
src/main/resources/static/app/system/controller/userCtrl.js

@@ -734,6 +734,7 @@ angular.module('app.system').controller("pwdCtrl",
734 734
 
735 735
         });
736 736
         $scope.submit = function() {
737
+        	//alert("您已经连续90天未更换密码,请先修改密码!")
737 738
         	if (validator.form()) {
738 739
                 userService.modifyPwd($scope.oldPassword, $scope.newPassword).then(function(data) {
739 740
                     if (data != null) {