소스 검색

初始化sql的admin初始密码为123456

ting.yin 5 년 전
부모
커밋
e8a33a3533
2개의 변경된 파일31개의 추가작업 그리고 36개의 파일을 삭제
  1. 1 1
      stmms-web/src/main/webapp/sql/stmms_ft.sql
  2. 30 35
      stmms-web/src/main/webapp/static/mark-track/js/modules/sheet-view.js

+ 1 - 1
stmms-web/src/main/webapp/sql/stmms_ft.sql

@@ -97,7 +97,7 @@ LOCK TABLES `b_user` WRITE;
 
 
 INSERT INTO `b_user` (`id`, `login_name`, `name`, `password`, `role`, `enable`, `school_id`, `subject_code`, `last_login_time`, `last_login_ip`, `created_time`, `updated_time`)
 INSERT INTO `b_user` (`id`, `login_name`, `name`, `password`, `role`, `enable`, `school_id`, `subject_code`, `last_login_time`, `last_login_ip`, `created_time`, `updated_time`)
 VALUES
 VALUES
-	(1,'admin','超级管理员','f4f49b97cf567ca04b9bffdfc11d59ee','SYS_ADMIN',1,0,NULL,'2017-09-25 10:07:37','192.168.1.94','2013-10-16 18:11:51','2017-09-25 10:07:37');
+	(1,'admin','超级管理员','14e1b600b1fd579f47433b88e8d85291','SYS_ADMIN',1,0,NULL,'2017-09-25 10:07:37','192.168.1.94','2013-10-16 18:11:51','2017-09-25 10:07:37');
 
 
 UNLOCK TABLES;
 UNLOCK TABLES;
 
 

+ 30 - 35
stmms-web/src/main/webapp/static/mark-track/js/modules/sheet-view.js

@@ -55,41 +55,36 @@ SheetView.prototype.renderContent = function(content, url,i) {
 	content.width(this.markControl.container.centerContent.width());
 	content.width(this.markControl.container.centerContent.width());
 	content.height(this.markControl.container.centerContent.height());
 	content.height(this.markControl.container.centerContent.height());
 	content.empty();
 	content.empty();
-//	content.append($('<img src="'+this.server + url +'">'));
-	    var show = false;
-	    //  if(i%2==0){
-	    //      show = true;
-	    //  }
-		content.append($('<canvas id="sheet-canvas'+i+'"></canvas>'));
-	    var image = new Image();
-	    image.crossOrigin = '';
-	    image.src = this.server + url;
-	    image.canvas = document.getElementById('sheet-canvas'+i);
-	    image.content = content;
-	    var self = this;
-	    image.onload = function() {
-	        var ctx = image.canvas.getContext("2d");
-	        image.canvas.width = Math.min(image.width, image.content.width());
-	        var scale = image.canvas.width / image.width;
-	        image.canvas.height = image.height * scale;
-	        ctx.drawImage(image, 0, 0, image.width, image.height, 0, 0, image.canvas.width, image.canvas.height);
-	        ctx.fillStyle = "#FFFFFF";
-	        if(self.sheetConfig.length!=0){
-	        	for (var j = 0; j < self.sheetConfig.length; j++) {
-	        		var config = self.sheetConfig[j];
-	        		var index = parseNumber(i) + 1;
-	        		if (config.i == index) {
-	        			//兼容简单模式1:0:0:0:0
-	        			if(config.x==0 && config.y==0 && config.w==0 && config.h==0){
-	        				ctx.fillRect(0, 0, image.width * scale, image.height * scale);
-	        			}else{
-	        				ctx.fillRect(config.x * scale, config.y * scale, config.w * scale, config.h * scale);
-	        			}
-	        		}
-	        	}
-	        }else{
-	        	ctx.fillRect(0, 0, this.canvas.width/2, this.canvas.height*3.7/10);
-	        }
+	content.append($('<canvas id="sheet-canvas'+i+'"></canvas>'));
+    var image = new Image();
+    image.crossOrigin = '';
+    image.src = this.server + url;
+    image.canvas = document.getElementById('sheet-canvas'+i);
+    image.content = content;
+    var self = this;
+    image.onload = function() {
+        var ctx = image.canvas.getContext("2d");
+        image.canvas.width = Math.min(image.width, image.content.width());
+        var scale = image.canvas.width / image.width;
+        image.canvas.height = image.height * scale;
+        ctx.drawImage(image, 0, 0, image.width, image.height, 0, 0, image.canvas.width, image.canvas.height);
+        ctx.fillStyle = "#FFFFFF";
+        if(self.sheetConfig.length!=0){
+        	for (var j = 0; j < self.sheetConfig.length; j++) {
+        		var config = self.sheetConfig[j];
+        		var index = parseNumber(i) + 1;
+        		if (config.i == index) {
+        			//兼容简单模式1:0:0:0:0
+        			if(config.x==0 && config.y==0 && config.w==0 && config.h==0){
+        				ctx.fillRect(0, 0, image.width * scale, image.height * scale);
+        			}else{
+        				ctx.fillRect(config.x * scale, config.y * scale, config.w * scale, config.h * scale);
+        			}
+        		}
+        	}
+        }else{
+        	ctx.fillRect(0, 0, this.canvas.width/2, this.canvas.height*3.7/10);
+        }
     	this.canvas.toDataURL("image/jpeg");
     	this.canvas.toDataURL("image/jpeg");
     }
     }
 }
 }