ting.yin 6 роки тому
батько
коміт
7735292405

+ 2 - 1
stmms-web/src/main/webapp/WEB-INF/views/modules/mark/markTrack.jsp

@@ -70,10 +70,11 @@
 					},
                     'specialTag':{
                     },
+					<c:if test="${exam.showSheet==true}">
 					'sheet-view':{
                         server : '${sheetServer}',
-                        showSheet : eval('${exam.showSheet}'.toLowerCase())
                     },
+                    </c:if>
 					'object-view':{
 					    list: [
 					           {title:'试卷',  url:'<c:if test="${subject.hasPaper==true}">${cardServer}${subject.paperUrl}</c:if>'},

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

@@ -10,10 +10,7 @@ function SheetView(option) {
 	this.server = option.server;
 	this.list = [];
 	this.markControl.on('task.get.success', this, function(event, context, eventObject) {
-		//开启原图显示
-		if(option.showSheet===true){
-			this.render(context.task.sheetUrls);
-		}
+		this.render(context.task.sheetUrls);
 	});
 	this.markControl.on('task.get.none', this, function(event, context, eventObject) {
 		this.render();