diff --git a/home.html b/home.html deleted file mode 100644 index 566549b..0000000 --- a/home.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - Title - - - - - \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..d20d1d2 --- /dev/null +++ b/index.html @@ -0,0 +1,58 @@ + + + + + 工时系统 + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/index/index.html b/index/index.html deleted file mode 100644 index c5bf66b..0000000 --- a/index/index.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - 工时系统 - - - - - - - - - - - - - - - - -
- -
- - -
- - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/login/login.html b/login.html index 9c8e0e7..4788ff0 100644 --- a/login/login.html +++ b/login.html @@ -3,11 +3,11 @@ 登录 - - - - - + + + + + @@ -26,9 +26,9 @@
- - - + + + \ No newline at end of file diff --git a/resource/js/unit.js b/resource/js/unit.js index 8b4be9b..b7380fd 100644 --- a/resource/js/unit.js +++ b/resource/js/unit.js @@ -127,7 +127,7 @@ var fn ={ //跳转到登录界面 toLoginPage: function () { sessionStorage.setItem("sys_parkLot", ''); - window.location.href = '../../login/login.html' + window.location.href = 'login.html' }, //登出系统 loginOut: function () { @@ -155,7 +155,7 @@ var fn ={ //跳转到登录界面 toLoginPage: function () { sessionStorage.setItem("sys_parkLot", ''); - window.location.href = '../login/login.html' + window.location.href = 'login.html' }, /** * 查询项目信息 @@ -350,11 +350,11 @@ function sysAjax(opts) { //成功 if (res.code=='2003') { //授权令牌不存在或已失效,请重新登录后在尝试 - window.location.href = '../../workreport/login/login.html' + window.location.href = 'login.html' } else if (res.code=='2004') { //授权令牌不合法,请重新登录收尝试 //alert(res.msg); - window.location.href = '../../workreport/login/login.html' + window.location.href = 'login.html' } else if (res.code=='2005') { //无此权限 alert(msg); diff --git a/topages/hourscount/hourscount.html b/topages/hourscount/hourscount.html index 11ed49c..e3e70d8 100644 --- a/topages/hourscount/hourscount.html +++ b/topages/hourscount/hourscount.html @@ -75,5 +75,5 @@ - + diff --git a/topages/login/login.js b/topages/login/login.js index 8e40c41..8a9f3f0 100644 --- a/topages/login/login.js +++ b/topages/login/login.js @@ -45,7 +45,8 @@ var func ={ fn.setUserId(res.data.opId); fn.setUserAccount(res.data.loginCode); fn.setRoleId(res.data.roleId); - window.location.href = "../../workreport/index/index.html"; + console.log(233) + window.location.href = "index.html"; }else{ if('1999' == res.code ){ diff --git a/topages/staffmanage/staffmanage.html b/topages/staffmanage/staffmanage.html index e77da0b..2c20324 100644 --- a/topages/staffmanage/staffmanage.html +++ b/topages/staffmanage/staffmanage.html @@ -11,5 +11,5 @@
- + diff --git a/topages/topagesTmp.js b/topages/topagesTmp.js index a0b9067..500b438 100644 --- a/topages/topagesTmp.js +++ b/topages/topagesTmp.js @@ -33,30 +33,30 @@ var res = $('#main-con'); //工时查询 R.route('/workfill', function() { - $("#pageCssLink").attr("href",'../topages/workfill/workfill.css?a=1'); - res.load('../topages/workfill/workfill.html'); + $("#pageCssLink").attr("href",'topages/workfill/workfill.css?a=1'); + res.load('topages/workfill/workfill.html'); $('.nav-bar-container li').removeClass('navbar-active'); $('#button-workfill').addClass('navbar-active'); }); //工时填报 R.route('/workquery', function() { - $("#pageCssLink").attr("href",'../topages/workquery/workquery.css?a=1'); - res.load('../topages/workquery/workquery.html'); + $("#pageCssLink").attr("href",'topages/workquery/workquery.css?a=1'); + res.load('topages/workquery/workquery.html'); $('.nav-bar-container li').removeClass('navbar-active'); $('#button-workquery').addClass('navbar-active'); }); //员工管理 R.route('/staffmanage', function() { - $("#pageCssLink").attr("href",'../topages/staffmanage/staffmanage.css'); - res.load('../topages/staffmanage/staffmanage.html'); + $("#pageCssLink").attr("href",'topages/staffmanage/staffmanage.css'); + res.load('topages/staffmanage/staffmanage.html'); $('.nav-bar-container li').removeClass('navbar-active'); $('#button-staffmanage').addClass('navbar-active'); }); //工时统计 R.route('/hourscount', function() { - $("#pageCssLink").attr("href",'../topages/hourscount/hourscount.css'); - res.load('../topages/hourscount/hourscount.html'); + $("#pageCssLink").attr("href",'topages/hourscount/hourscount.css'); + res.load('topages/hourscount/hourscount.html'); $('.nav-bar-container li').removeClass('navbar-active'); $('#button-hourscount').addClass('navbar-active'); }); \ No newline at end of file diff --git a/topages/workfill/workfill.html b/topages/workfill/workfill.html index f3a2f06..234f5d3 100644 --- a/topages/workfill/workfill.html +++ b/topages/workfill/workfill.html @@ -368,4 +368,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/topages/workquery/workquery.html b/topages/workquery/workquery.html index e39c329..17d5e63 100644 --- a/topages/workquery/workquery.html +++ b/topages/workquery/workquery.html @@ -449,4 +449,4 @@ - +