Просмотр исходного кода

Merge branch 'master' of http://121.42.53.174:3000/bulomakaka/ekexiu.com.portal.git

luyanan лет назад: 8
Родитель
Сommit
4e4bd03cdc
2 измененных файлов с 15 добавлено и 5 удалено
  1. 2 2
      src/main/resources/log4j.properties
  2. 13 3
      src/main/webapp/js/workindex.js

+ 2 - 2
src/main/resources/log4j.properties

@ -9,7 +9,7 @@ log4j.appender.stdout.layout.ConversionPattern = [%-5p] %d{yyyy-MM-dd HH:mm:ss,S
9 9

10 10
### \u8F93\u51FADEBUG \u7EA7\u522B\u4EE5\u4E0A\u7684\u65E5\u5FD7\u5230=E://logs/log.log ###
11 11
log4j.appender.D = org.apache.log4j.DailyRollingFileAppender
12
log4j.appender.D.File = /home/tomcat/apache-tomcat-7.0.73/webapps/log.log
12
log4j.appender.D.File = /home/tomcat/apache-tomcat-7.0.73/webapps/logs/log.log
13 13
log4j.appender.D.Append = true
14 14
log4j.appender.D.Threshold = DEBUG 
15 15
log4j.appender.D.layout = org.apache.log4j.PatternLayout
@ -17,7 +17,7 @@ log4j.appender.D.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss}  [ %t:%r ]
17 17

18 18
### \u8F93\u51FAERROR \u7EA7\u522B\u4EE5\u4E0A\u7684\u65E5\u5FD7\u5230=E://logs/error.log ###
19 19
log4j.appender.E = org.apache.log4j.DailyRollingFileAppender
20
log4j.appender.E.File =/home/tomcat/apache-tomcat-7.0.73/webapps/error.log 
20
log4j.appender.E.File =/home/tomcat/apache-tomcat-7.0.73/webapps/logs/error.log 
21 21
log4j.appender.E.Append = true
22 22
log4j.appender.E.Threshold = ERROR 
23 23
log4j.appender.E.layout = org.apache.log4j.PatternLayout

+ 13 - 3
src/main/webapp/js/workindex.js

@ -30,13 +30,23 @@ $(function(){
30 30
					}
31 31
				}
32 32
			if(data.data.office) {
33
				$("#office").text(data.data.office+",");
33
				if(data.data.title) {
34
					$("#office").text(data.data.office+",");
35
				}else{
36
					$("#office").text(data.data.office);
37
				}
38
				
34 39
			}
35 40
			if(data.data.title) {
36
				$("#title").text(data.data.title+",");
41
				$("#title").text(data.data.title);
37 42
			}			
38 43
			if(data.data.department) {
39
				$("#department").text(data.data.department+",");
44
				if(data.data.orgName) {
45
					$("#department").text(data.data.department+",");
46
				}else{
47
					$("#department").text(data.data.department);
48
				}
49
				
40 50
			}
41 51
			if(data.data.orgName) {
42 52
				$("#organization").text(data.data.orgName);