From c3639430ae45e152a0b551bafa1a07dfdc222220 Mon Sep 17 00:00:00 2001 From: Elvis Date: Thu, 31 May 2018 19:25:49 +0800 Subject: [PATCH] 修改页面bug --- WebRoot/WEB-INF/jsp/sunvote/paper/paper_list2.jsp | 3 ++- WebRoot/WEB-INF/jsp/sunvote/teacher/creat_question.jsp | 16 ++++++++++++++-- WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp | 11 ++++++++--- WebRoot/static/js/control.js | 2 +- 4 files changed, 25 insertions(+), 7 deletions(-) diff --git a/WebRoot/WEB-INF/jsp/sunvote/paper/paper_list2.jsp b/WebRoot/WEB-INF/jsp/sunvote/paper/paper_list2.jsp index 4206fc0..610679c 100644 --- a/WebRoot/WEB-INF/jsp/sunvote/paper/paper_list2.jsp +++ b/WebRoot/WEB-INF/jsp/sunvote/paper/paper_list2.jsp @@ -12,11 +12,12 @@ + + --> <%@ include file="../../system/index/top.jsp"%> diff --git a/WebRoot/WEB-INF/jsp/sunvote/teacher/creat_question.jsp b/WebRoot/WEB-INF/jsp/sunvote/teacher/creat_question.jsp index dfa4efd..720f54a 100644 --- a/WebRoot/WEB-INF/jsp/sunvote/teacher/creat_question.jsp +++ b/WebRoot/WEB-INF/jsp/sunvote/teacher/creat_question.jsp @@ -1,5 +1,16 @@ - - +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + 创建试卷 @@ -201,6 +212,7 @@ diff --git a/WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp b/WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp index b6526e8..41884ab 100644 --- a/WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp +++ b/WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp @@ -60,10 +60,15 @@ src="plugins/websocketInstantMsg/ext4/ext-all-debug.js"> + + + + --> + + + @@ -191,10 +196,10 @@ diff --git a/WebRoot/static/js/control.js b/WebRoot/static/js/control.js index 9422030..e8b626b 100644 --- a/WebRoot/static/js/control.js +++ b/WebRoot/static/js/control.js @@ -208,7 +208,7 @@ }) /*提交保存数据*/ $("#save").click(function(){ - var url="http://192.168.0.240:8080/SunvoteEducation/api/v1/uploadpaper"; + var url= URL; var data={ title: $(".text-center").text(), exam_time: parseInt($("#time").text()), -- libgit2 0.21.4