Skip to content

Commit

Permalink
修改八阿哥
Browse files Browse the repository at this point in the history
  • Loading branch information
Fantasy1316 committed May 8, 2018
1 parent 450beb0 commit 20c76af
Show file tree
Hide file tree
Showing 17 changed files with 51 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/snut_tdms/controller/UserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public JSONObject uploadFile(HttpServletRequest request,HttpSession httpSession)
String b = request.getParameter("description");
String c = request.getParameter("typeContentStr");
if (request.getParameter("fileType")==null){
List<DataClass> list = userService.selectDataClass(userInfo.getDepartment().getCode(),null,"(2)",null);
List<DataClass> list = userService.selectDataClass(null,null,"(2)",null);
request.setAttribute("fileType",list.get(0).getId());
}else {
request.setAttribute("fileType",request.getParameter("fileType"));
Expand Down
12 changes: 11 additions & 1 deletion src/main/java/com/snut_tdms/service/AdminService.java
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,17 @@ public boolean backupsDataBase(String departmentCode, String backupsType){
}
}
String rootPath = AdminService.class.getResource("").getPath();
rootPath = rootPath.substring(1,25);
rootPath = rootPath.substring(1,rootPath.length());
int cot = 0;
for(int i =0;i<rootPath.length();i++){
if ('/' == rootPath.toCharArray()[i]){
if(++cot==4){
cot = i;
break;
}
}
}
rootPath = rootPath.substring(0,cot);
return ExcelUtilPOI.createExcel(rootPath,departmentCode,backupsType,"xls",titles,content);
}

Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/mapper/UserMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@
LEFT JOIN role ON data_class.role = role.id
LEFT JOIN `user` ON data_class.`user` = `user`.username
LEFT JOIN department ON data_class.department = department.code
WHERE department.code = #{departmentCode}
WHERE 1=1
<if test="department!=null and department!=''">
AND department.code = #{departmentCode}
</if>
<if test="flag != null and flag!= ''">
AND data_class.flag in ${flag}
</if>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/jsp/admin/typeManageDeanOffice.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</div>
<div class="form-group">
<label>类目属性:</label>
<a id="addProperty" class="btn btn-success btn-sm" href="javascript: void(0);" style="margin-left: -30px;">添加属性</a>
<a id="addProperty" class="btn btn-success btn-sm" href="javascript: void(0);" style="margin-left: 5px;">添加属性</a>
<a id="removeProperty" class="btn btn-warning btn-sm" href="javascript: void(0);">删除属性</a>
<div id="selectProperty" class="form-group"></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</div>
<div class="form-group">
<label>类目属性:</label>
<a id="addProperty" class="btn btn-success btn-sm" href="javascript: void(0);" style="margin-left: -30px;">添加属性</a>
<a id="addProperty" class="btn btn-success btn-sm" href="javascript: void(0);" style="margin-left: 5px;">添加属性</a>
<a id="removeProperty" class="btn btn-warning btn-sm" href="javascript: void(0);">删除属性</a>
<div id="selectProperty" class="form-group">

Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/jsp/admin/typeManageTeacher.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</div>
<div class="form-group">
<label>类目属性:</label>
<a id="addProperty" class="btn btn-success btn-sm" href="javascript: void(0);" style="margin-left: -30px;">添加属性</a>
<a id="addProperty" class="btn btn-success btn-sm" href="javascript: void(0);" style="margin-left: 5px;">添加属性</a>
<a id="removeProperty" class="btn btn-warning btn-sm" href="javascript: void(0);">删除属性</a>
<div id="selectProperty" class="form-group">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</div>
<div class="form-group">
<label>类目属性:</label>
<a id="addProperty" class="btn btn-success btn-sm" href="javascript:void(0);" style="margin-left: -30px;">添加属性</a>
<a id="addProperty" class="btn btn-success btn-sm" href="javascript:void(0);" style="margin-left: 5px;">添加属性</a>
<a id="removeProperty" class="btn btn-warning btn-sm" href="javascript:void(0);">删除属性</a>
<div id="selectProperty" class="form-group"></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@
</div>
</div>
<div class="spin"></div>
<div id="mb"></div>
<div id="mb">
<p class="spinText">首次加载时间较长,请耐心等待...</p>
</div>
<script>
// 打开文件
function openFile(id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@
</div>
</div>
<div class="spin"></div>
<div id="mb"></div>
<div id="mb">
<p class="spinText">首次加载时间较长,请耐心等待...</p>
</div>
<script>
// 打开文件
function openFile(id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@
</form>
</div>
<div class="spin"></div>
<div id="mb"></div>
<div id="mb">
<p class="spinText">首次加载时间较长,请耐心等待...</p>
</div>
<script>
// 打开文件
function openFile(id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</div>
<div class="form-group">
<label>类目属性:</label>
<a id="addProperty" class="btn btn-success btn-sm" href="javascript: void(0);" style="margin-left: -30px;">添加属性</a>
<a id="addProperty" class="btn btn-success btn-sm" href="javascript: void(0);" style="margin-left: 5px;">添加属性</a>
<a id="removeProperty" class="btn btn-warning btn-sm" href="javascript: void(0);">删除属性</a>
<div id="selectProperty" class="form-group"></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@
</div>
</div>
<div class="spin"></div>
<div id="mb"></div>
<div id="mb">
<p class="spinText">首次加载时间较长,请耐心等待...</p>
</div>
<script>
// 打开文件
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@
</div>
</div>
<div class="spin"></div>
<div id="mb"></div>
<div id="mb">
<p class="spinText">首次加载时间较长,请耐心等待...</p>
</div>
<script>
// 打开文件
function openFile(id) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/jsp/teacher/applyAddDataClass.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</div>
<div class="form-group">
<label>类目属性:</label>
<a id="addProperty" class="btn btn-success btn-sm" href="javascript: void(0);" style="margin-left: -30px;">添加属性</a>
<a id="addProperty" class="btn btn-success btn-sm" href="javascript: void(0);" style="margin-left: 5px;">添加属性</a>
<a id="removeProperty" class="btn btn-warning btn-sm" href="javascript: void(0);">删除属性</a>
<div id="selectProperty" class="form-group"></div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion src/main/webapp/WEB-INF/jsp/teacher/teacherPersonData.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@
</div>
</div>
<div class="spin"></div>
<div id="mb"></div>
<div id="mb">
<p class="spinText">首次加载时间较长,请耐心等待...</p>
</div>
<script>
// 打开文件
function openFile(id) {
Expand Down
4 changes: 3 additions & 1 deletion src/main/webapp/WEB-INF/jsp/teacher/teacherPublicData.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@
</div>
</div>
<div class="spin"></div>
<div id="mb"></div>
<div id="mb">
<p class="spinText">首次加载时间较长,请耐心等待...</p>
</div>
<script>
$("#dataClassFilter").change(function () {
Expand Down
8 changes: 8 additions & 0 deletions src/main/webapp/resources/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,12 @@ a{
left: 0;
opacity:0.6;
z-index: 999999;
}

.spinText{
z-index: 9999999;
text-align: center;
color: #fff;
margin-top: 370px;
font-size: 18px;
}

0 comments on commit 20c76af

Please sign in to comment.