Commit 76a9c28e3b57145b27945eb73e000636fb2b01bc
Merge branch 'test' of http://192.168.1.195:9998/web_developers/workreport into test
Showing
11 changed files
with
84 additions
and
93 deletions
home.html deleted
index.html
0 → 100644
1 | +<!DOCTYPE html> | ||
2 | +<html lang="en"> | ||
3 | +<head> | ||
4 | + <meta charset="UTF-8"> | ||
5 | + <title>工时系统</title> | ||
6 | + <link rel="stylesheet" id="pageCssLink" type="text/css" href=""/> | ||
7 | + <link rel="stylesheet" href="resource/lib/bootstrap/css/bootstrap.min.css"> | ||
8 | + <link rel="stylesheet" href="resource/lib/bootstrap-daterangepicker/daterangepicker.css"> | ||
9 | + <link rel="stylesheet" href="resource/lib/bootstrap-datetimepicker/bootstrap-datetimepicker.css"> | ||
10 | + <link rel="stylesheet" href="resource/lib/bootstrap-select/css/bootstrap-select.css"> | ||
11 | + <link rel="stylesheet" href="resource/lib/bootstrap-table/bootstrap-table.min.css"> | ||
12 | + <link rel="stylesheet" href="resource/lib/bootstrap-table/bootstrap-table-fixed-columns.css"> | ||
13 | + <link rel="stylesheet" href="resource/lib/font-awesome/css/font-awesome.min.css"> | ||
14 | + <link rel="stylesheet" href="resource/public/components.min.css?a=2"> | ||
15 | + <link rel="stylesheet" href="resource/public/plugins.min.css?a=2"> | ||
16 | + <link rel="stylesheet" href="resource/public/commoncss.css?a=3"> | ||
17 | + | ||
18 | + | ||
19 | +</head> | ||
20 | +<body> | ||
21 | +<!----------------------------------------------头部--> | ||
22 | +<header> | ||
23 | + <div class="nav-bar-wrap"> | ||
24 | + <div class="float-left login-name"> | ||
25 | + <span id="loginShowName"></span> <a class="cursorpointer" href="login.html">退出</a> | ||
26 | + </div> | ||
27 | + | ||
28 | + <nav class="float-right"> | ||
29 | + <ul class="nav-bar-container" id="nav-bar-container"> | ||
30 | + <!--<li class="navbar-active" id="button-workfill"><a href="#/workfill">工时填报</a></li>--> | ||
31 | + <!--<li id="button-workquery"><a href="#/workquery" >工时查询</a></li>--> | ||
32 | + <!--<li id="button-hourscount"><a href="#/hourscount" >工时统计</a></li>--> | ||
33 | + <!--<li id="button-staffmanage"><a href="#/staffmanage" >员工管理</a></li>--> | ||
34 | + </ul> | ||
35 | + </nav> | ||
36 | + </div> | ||
37 | +</header> | ||
38 | + | ||
39 | +<!----------------------------------------------内容--> | ||
40 | +<div id="main-con" class="main-con"></div> | ||
41 | +<script src="resource/lib/jquery/jquery.min.js"></script> | ||
42 | +<script src="resource/lib/bootstrap/js/bootstrap.min.js"></script> | ||
43 | +<script src="resource/lib/bootstrap-daterangepicker/moment.js"></script> | ||
44 | +<script src="resource/lib/bootstrap-daterangepicker/daterangepicker.js"></script> | ||
45 | +<script src="resource/lib/bootstrap-datetimepicker/bootstrap-datetimepicker.js"></script> | ||
46 | +<script src="resource/lib/bootstrap-datetimepicker/bootstrap-datetimepicker.zh-CN.js"></script> | ||
47 | +<script src="resource/lib/bootstrap-select/js/bootstrap-select.js"></script> | ||
48 | +<script src="resource/lib/bootstrap-table/bootstrap-table.min.js"></script> | ||
49 | +<script src="resource/lib/bootstrap-table/bootstrap-table-fixed-columns.js"></script> | ||
50 | +<script src="resource/lib/bootstrap-table/bootstrap-table-zh-CN.js"></script> | ||
51 | +<script src="resource/lib/dateUtils/DateUtils.js"></script> | ||
52 | +<script src="resource/lib/jqueryform/jquery.form.js"></script> | ||
53 | +<script src="resource/js/unit.js"></script> | ||
54 | +<script src="topages/topagesTmp.js?a=1"></script> | ||
55 | +<!--<script src="resource/js/unit.js?a=1"></script>--> | ||
56 | +<!--<script src="../topages/workquery/workquery.js"></script>--> | ||
57 | +</body> | ||
58 | +</html> | ||
0 | \ No newline at end of file | 59 | \ No newline at end of file |
index/index.html deleted
1 | -<!DOCTYPE html> | ||
2 | -<html lang="en"> | ||
3 | -<head> | ||
4 | - <meta charset="UTF-8"> | ||
5 | - <title>工时系统</title> | ||
6 | - <link rel="stylesheet" id="pageCssLink" type="text/css" href=""/> | ||
7 | - <link rel="stylesheet" href="../resource/lib/bootstrap/css/bootstrap.min.css"> | ||
8 | - <link rel="stylesheet" href="../resource/lib/bootstrap-daterangepicker/daterangepicker.css"> | ||
9 | - <link rel="stylesheet" href="../resource/lib/bootstrap-datetimepicker/bootstrap-datetimepicker.css"> | ||
10 | - <link rel="stylesheet" href="../resource/lib/bootstrap-select/css/bootstrap-select.css"> | ||
11 | - <link rel="stylesheet" href="../resource/lib/bootstrap-table/bootstrap-table.min.css"> | ||
12 | - <link rel="stylesheet" href="../resource/lib/bootstrap-table/bootstrap-table-fixed-columns.css"> | ||
13 | - <link rel="stylesheet" href="../resource/lib/font-awesome/css/font-awesome.min.css"> | ||
14 | - <link rel="stylesheet" href="../resource/public/components.min.css?a=2"> | ||
15 | - <link rel="stylesheet" href="../resource/public/plugins.min.css?a=2"> | ||
16 | - <link rel="stylesheet" href="../resource/public/commoncss.css?a=3"> | ||
17 | - | ||
18 | - | ||
19 | -</head> | ||
20 | -<body> | ||
21 | -<!----------------------------------------------头部--> | ||
22 | -<header> | ||
23 | - <div class="nav-bar-wrap"> | ||
24 | - <div class="float-left login-name"> | ||
25 | - <span id="loginShowName"></span> <a class="cursorpointer" href="../login/login.html">退出</a> | ||
26 | - </div> | ||
27 | - | ||
28 | - <nav class="float-right"> | ||
29 | - <ul class="nav-bar-container" id="nav-bar-container"> | ||
30 | - <!--<li class="navbar-active" id="button-workfill"><a href="#/workfill">工时填报</a></li>--> | ||
31 | - <!--<li id="button-workquery"><a href="#/workquery" >工时查询</a></li>--> | ||
32 | - <!--<li id="button-hourscount"><a href="#/hourscount" >工时统计</a></li>--> | ||
33 | - <!--<li id="button-staffmanage"><a href="#/staffmanage" >员工管理</a></li>--> | ||
34 | - </ul> | ||
35 | - </nav> | ||
36 | - </div> | ||
37 | -</header> | ||
38 | - | ||
39 | -<!----------------------------------------------内容--> | ||
40 | -<div id="main-con" class="main-con"></div> | ||
41 | -<script src="../resource/lib/jquery/jquery.min.js"></script> | ||
42 | -<script src="../resource/lib/bootstrap/js/bootstrap.min.js"></script> | ||
43 | -<script src="../resource/lib/bootstrap-daterangepicker/moment.js"></script> | ||
44 | -<script src="../resource/lib/bootstrap-daterangepicker/daterangepicker.js"></script> | ||
45 | -<script src="../resource/lib/bootstrap-datetimepicker/bootstrap-datetimepicker.js"></script> | ||
46 | -<script src="../resource/lib/bootstrap-datetimepicker/bootstrap-datetimepicker.zh-CN.js"></script> | ||
47 | -<script src="../resource/lib/bootstrap-select/js/bootstrap-select.js"></script> | ||
48 | -<script src="../resource/lib/bootstrap-table/bootstrap-table.min.js"></script> | ||
49 | -<script src="../resource/lib/bootstrap-table/bootstrap-table-fixed-columns.js"></script> | ||
50 | -<script src="../resource/lib/bootstrap-table/bootstrap-table-zh-CN.js"></script> | ||
51 | -<script src="../resource/lib/dateUtils/DateUtils.js"></script> | ||
52 | -<script src="../resource/lib/jqueryform/jquery.form.js"></script> | ||
53 | -<script src="../resource/js/unit.js"></script> | ||
54 | -<script src="../topages/topagesTmp.js?a=1"></script> | ||
55 | -<script src="../resource/js/unit.js?a=1"></script> | ||
56 | -<!--<script src="../topages/workquery/workquery.js"></script>--> | ||
57 | -</body> | ||
58 | -</html> | ||
59 | \ No newline at end of file | 0 | \ No newline at end of file |
login/login.html renamed to login.html
@@ -3,11 +3,11 @@ | @@ -3,11 +3,11 @@ | ||
3 | <head> | 3 | <head> |
4 | <meta charset="UTF-8"> | 4 | <meta charset="UTF-8"> |
5 | <title>登录</title> | 5 | <title>登录</title> |
6 | - <link rel="stylesheet" href="../resource/lib/bootstrap/css/bootstrap.min.css"> | ||
7 | - <link rel="stylesheet" href="../resource/public/components.min.css?a=2"> | ||
8 | - <link rel="stylesheet" href="../resource/public/plugins.min.css?a=2"> | ||
9 | - <link rel="stylesheet" href="../resource/public/commoncss.css?a=2"> | ||
10 | - <link rel="stylesheet" href="../topages/login/login.css"> | 6 | + <link rel="stylesheet" href="resource/lib/bootstrap/css/bootstrap.min.css"> |
7 | + <link rel="stylesheet" href="resource/public/components.min.css?a=2"> | ||
8 | + <link rel="stylesheet" href="resource/public/plugins.min.css?a=2"> | ||
9 | + <link rel="stylesheet" href="resource/public/commoncss.css?a=2"> | ||
10 | + <link rel="stylesheet" href="topages/login/login.css"> | ||
11 | 11 | ||
12 | 12 | ||
13 | </head> | 13 | </head> |
@@ -26,9 +26,9 @@ | @@ -26,9 +26,9 @@ | ||
26 | <div class="float-left login-bg"></div> | 26 | <div class="float-left login-bg"></div> |
27 | 27 | ||
28 | 28 | ||
29 | -<script src="../resource/lib/jquery/jquery.min.js"></script> | ||
30 | - <script src="../resource/js/unit.js?a=1"></script> | ||
31 | -<script src="../topages/login/login.js?a=3"></script> | 29 | +<script src="resource/lib/jquery/jquery.min.js"></script> |
30 | + <script src="resource/js/unit.js?a=1"></script> | ||
31 | +<script src="topages/login/login.js?a=3"></script> | ||
32 | <!--<script src="../resource/js/unit.js?a=1"></script>--> | 32 | <!--<script src="../resource/js/unit.js?a=1"></script>--> |
33 | </body> | 33 | </body> |
34 | </html> | 34 | </html> |
35 | \ No newline at end of file | 35 | \ No newline at end of file |
resource/js/unit.js
@@ -127,7 +127,7 @@ var fn ={ | @@ -127,7 +127,7 @@ var fn ={ | ||
127 | //跳转到登录界面 | 127 | //跳转到登录界面 |
128 | toLoginPage: function () { | 128 | toLoginPage: function () { |
129 | sessionStorage.setItem("sys_parkLot", ''); | 129 | sessionStorage.setItem("sys_parkLot", ''); |
130 | - window.location.href = '../../login/login.html' | 130 | + window.location.href = 'login.html' |
131 | }, | 131 | }, |
132 | //登出系统 | 132 | //登出系统 |
133 | loginOut: function () { | 133 | loginOut: function () { |
@@ -155,7 +155,7 @@ var fn ={ | @@ -155,7 +155,7 @@ var fn ={ | ||
155 | //跳转到登录界面 | 155 | //跳转到登录界面 |
156 | toLoginPage: function () { | 156 | toLoginPage: function () { |
157 | sessionStorage.setItem("sys_parkLot", ''); | 157 | sessionStorage.setItem("sys_parkLot", ''); |
158 | - window.location.href = '../login/login.html' | 158 | + window.location.href = 'login.html' |
159 | }, | 159 | }, |
160 | /** | 160 | /** |
161 | * 查询项目信息 | 161 | * 查询项目信息 |
@@ -350,11 +350,11 @@ function sysAjax(opts) { | @@ -350,11 +350,11 @@ function sysAjax(opts) { | ||
350 | //成功 | 350 | //成功 |
351 | if (res.code=='2003') { | 351 | if (res.code=='2003') { |
352 | //授权令牌不存在或已失效,请重新登录后在尝试 | 352 | //授权令牌不存在或已失效,请重新登录后在尝试 |
353 | - window.location.href = '../../workreport/login/login.html' | 353 | + window.location.href = 'login.html' |
354 | } else if (res.code=='2004') { | 354 | } else if (res.code=='2004') { |
355 | //授权令牌不合法,请重新登录收尝试 | 355 | //授权令牌不合法,请重新登录收尝试 |
356 | //alert(res.msg); | 356 | //alert(res.msg); |
357 | - window.location.href = '../../workreport/login/login.html' | 357 | + window.location.href = 'login.html' |
358 | } else if (res.code=='2005') { | 358 | } else if (res.code=='2005') { |
359 | //无此权限 | 359 | //无此权限 |
360 | alert(msg); | 360 | alert(msg); |
topages/hourscount/hourscount.html
topages/login/login.js
@@ -45,7 +45,8 @@ var func ={ | @@ -45,7 +45,8 @@ var func ={ | ||
45 | fn.setUserId(res.data.opId); | 45 | fn.setUserId(res.data.opId); |
46 | fn.setUserAccount(res.data.loginCode); | 46 | fn.setUserAccount(res.data.loginCode); |
47 | fn.setRoleId(res.data.roleId); | 47 | fn.setRoleId(res.data.roleId); |
48 | - window.location.href = "../../workreport/index/index.html"; | 48 | + console.log(233) |
49 | + window.location.href = "index.html"; | ||
49 | 50 | ||
50 | }else{ | 51 | }else{ |
51 | if('1999' == res.code ){ | 52 | if('1999' == res.code ){ |
topages/staffmanage/staffmanage.html
@@ -11,5 +11,5 @@ | @@ -11,5 +11,5 @@ | ||
11 | <table id="staffmanageTable" class="common-tableh47 bootstrap-table ITD-fix-table fixed-table-container table table-hover table-striped"> | 11 | <table id="staffmanageTable" class="common-tableh47 bootstrap-table ITD-fix-table fixed-table-container table table-hover table-striped"> |
12 | </table> | 12 | </table> |
13 | 13 | ||
14 | -<script src="../topages/staffmanage/staffmanage.js"></script> | 14 | +<script src="topages/staffmanage/staffmanage.js"></script> |
15 | 15 |
topages/topagesTmp.js
@@ -33,30 +33,30 @@ var res = $('#main-con'); | @@ -33,30 +33,30 @@ var res = $('#main-con'); | ||
33 | //工时查询 | 33 | //工时查询 |
34 | 34 | ||
35 | R.route('/workfill', function() { | 35 | R.route('/workfill', function() { |
36 | - $("#pageCssLink").attr("href",'../topages/workfill/workfill.css?a=1'); | ||
37 | - res.load('../topages/workfill/workfill.html'); | 36 | + $("#pageCssLink").attr("href",'topages/workfill/workfill.css?a=1'); |
37 | + res.load('topages/workfill/workfill.html'); | ||
38 | 38 | ||
39 | $('.nav-bar-container li').removeClass('navbar-active'); | 39 | $('.nav-bar-container li').removeClass('navbar-active'); |
40 | $('#button-workfill').addClass('navbar-active'); | 40 | $('#button-workfill').addClass('navbar-active'); |
41 | }); | 41 | }); |
42 | //工时填报 | 42 | //工时填报 |
43 | R.route('/workquery', function() { | 43 | R.route('/workquery', function() { |
44 | - $("#pageCssLink").attr("href",'../topages/workquery/workquery.css?a=1'); | ||
45 | - res.load('../topages/workquery/workquery.html'); | 44 | + $("#pageCssLink").attr("href",'topages/workquery/workquery.css?a=1'); |
45 | + res.load('topages/workquery/workquery.html'); | ||
46 | $('.nav-bar-container li').removeClass('navbar-active'); | 46 | $('.nav-bar-container li').removeClass('navbar-active'); |
47 | $('#button-workquery').addClass('navbar-active'); | 47 | $('#button-workquery').addClass('navbar-active'); |
48 | }); | 48 | }); |
49 | //员工管理 | 49 | //员工管理 |
50 | R.route('/staffmanage', function() { | 50 | R.route('/staffmanage', function() { |
51 | - $("#pageCssLink").attr("href",'../topages/staffmanage/staffmanage.css'); | ||
52 | - res.load('../topages/staffmanage/staffmanage.html'); | 51 | + $("#pageCssLink").attr("href",'topages/staffmanage/staffmanage.css'); |
52 | + res.load('topages/staffmanage/staffmanage.html'); | ||
53 | $('.nav-bar-container li').removeClass('navbar-active'); | 53 | $('.nav-bar-container li').removeClass('navbar-active'); |
54 | $('#button-staffmanage').addClass('navbar-active'); | 54 | $('#button-staffmanage').addClass('navbar-active'); |
55 | }); | 55 | }); |
56 | //工时统计 | 56 | //工时统计 |
57 | R.route('/hourscount', function() { | 57 | R.route('/hourscount', function() { |
58 | - $("#pageCssLink").attr("href",'../topages/hourscount/hourscount.css'); | ||
59 | - res.load('../topages/hourscount/hourscount.html'); | 58 | + $("#pageCssLink").attr("href",'topages/hourscount/hourscount.css'); |
59 | + res.load('topages/hourscount/hourscount.html'); | ||
60 | $('.nav-bar-container li').removeClass('navbar-active'); | 60 | $('.nav-bar-container li').removeClass('navbar-active'); |
61 | $('#button-hourscount').addClass('navbar-active'); | 61 | $('#button-hourscount').addClass('navbar-active'); |
62 | }); | 62 | }); |
63 | \ No newline at end of file | 63 | \ No newline at end of file |
topages/workfill/workfill.html
@@ -368,4 +368,4 @@ | @@ -368,4 +368,4 @@ | ||
368 | </div> | 368 | </div> |
369 | </div> | 369 | </div> |
370 | <!--提示弹窗 end--> | 370 | <!--提示弹窗 end--> |
371 | -<script src="../topages/workfill/workfill.js"></script> | ||
372 | \ No newline at end of file | 371 | \ No newline at end of file |
372 | +<script src="topages/workfill/workfill.js"></script> | ||
373 | \ No newline at end of file | 373 | \ No newline at end of file |