fanxw 2 年之前
父節點
當前提交
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
         $scope.yearflag = false;
440
         $scope.yearflag = false;
441
 		$scope.monthflag = true;
441
 		$scope.monthflag = true;
442
-        now = new Date();
443
-		year = now.getFullYear();
442
+        var now = new Date();
443
+		var year = now.getFullYear();
444
 		var month2 = String(now.getMonth()+1).padStart(2,'0');
444
 		var month2 = String(now.getMonth()+1).padStart(2,'0');
445
 		$scope.search.monthTime = year+"-"+month2;
445
 		$scope.search.monthTime = year+"-"+month2;
446
 		$("#monthTime").val($scope.search.monthTime);
446
 		$("#monthTime").val($scope.search.monthTime);
447
 
447
 
448
         $scope.conditionsSelect = function(param) {
448
         $scope.conditionsSelect = function(param) {
449
-        	var now = null;
450
         	if(param == 'year'){
449
         	if(param == 'year'){
451
         		$scope.yearflag = true; 
450
         		$scope.yearflag = true; 
452
         		$scope.monthflag = false;
451
         		$scope.monthflag = false;
@@ -465,14 +464,13 @@ angular.module('app.supervise').controller("sptSxtgzsCtrl", function ($scope, $r
465
         	} else if (param == 'month') {
464
         	} else if (param == 'month') {
466
         		$scope.yearflag = false;
465
         		$scope.yearflag = false;
467
         		$scope.monthflag = true;
466
         		$scope.monthflag = true;
468
-        		var year = null;
469
         		var month = null;
467
         		var month = null;
470
         		var firstDay = "01";
468
         		var firstDay = "01";
471
         		$scope.search.monthTime = $("#monthTime").val();
469
         		$scope.search.monthTime = $("#monthTime").val();
472
         		if ($scope.search.monthTime == null || $scope.search.monthTime == undefined || $scope.search.monthTime == "") {
470
         		if ($scope.search.monthTime == null || $scope.search.monthTime == undefined || $scope.search.monthTime == "") {
473
         			now = new Date();
471
         			now = new Date();
474
             		year = now.getFullYear();
472
             		year = now.getFullYear();
475
-            		var month2 = String(now.getMonth()+1).padStart(2,'0');
473
+            		month2 = String(now.getMonth()+1).padStart(2,'0');
476
             		$scope.search.monthTime = year+"-"+month2;
474
             		$scope.search.monthTime = year+"-"+month2;
477
             		$scope.search.xxcjsjks = $scope.search.monthTime+"-"+firstDay;//初始化开始时间
475
             		$scope.search.xxcjsjks = $scope.search.monthTime+"-"+firstDay;//初始化开始时间
478
             		month = String(now.getMonth()+2).padStart(2,'0');//这个参数主要是为了生成最后一天
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
         $scope.submit = function() {
736
         $scope.submit = function() {
737
+        	//alert("您已经连续90天未更换密码,请先修改密码!")
737
         	if (validator.form()) {
738
         	if (validator.form()) {
738
                 userService.modifyPwd($scope.oldPassword, $scope.newPassword).then(function(data) {
739
                 userService.modifyPwd($scope.oldPassword, $scope.newPassword).then(function(data) {
739
                     if (data != null) {
740
                     if (data != null) {