Commit 22328a8e31395ac0ffe83e29c92c39bc9627b689
Merge branch 'test' of http://192.168.1.195:9998/web_developers/workreport into test
# Conflicts: # resource/js/unit.js
Showing
5 changed files
with
52 additions
and
38 deletions
index/index.html
... | ... | @@ -26,11 +26,11 @@ |
26 | 26 | </div> |
27 | 27 | |
28 | 28 | <nav class="float-right"> |
29 | - <ul class="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> | |
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 | 34 | </ul> |
35 | 35 | </nav> |
36 | 36 | </div> | ... | ... |
topages/login/login.css
... | ... | @@ -2,6 +2,7 @@ html,body{ |
2 | 2 | width: 100%; |
3 | 3 | height: 100%; |
4 | 4 | overflow: hidden; |
5 | + background-color: #fff; | |
5 | 6 | } |
6 | 7 | .login-wrap{ |
7 | 8 | width:calc(100% - 800px); |
... | ... | @@ -48,7 +49,7 @@ html,body{ |
48 | 49 | height: 48px; |
49 | 50 | line-height: 48px; |
50 | 51 | padding-left: 20px; |
51 | - background-color: #f2f3f4; | |
52 | + background-color: #f2f3f4!important; | |
52 | 53 | font-size: 14px; |
53 | 54 | color: rgba(0,0,0,.4); |
54 | 55 | border: 0; |
... | ... | @@ -56,7 +57,8 @@ html,body{ |
56 | 57 | } |
57 | 58 | input:focus {outline: none;} |
58 | 59 | input:-webkit-autofill { |
59 | - -webkit-box-shadow: 0 0 0px 1000px white inset !important; | |
60 | + background-color: #f2f3f4!important; | |
61 | + -webkit-box-shadow: 0 0 0px 1000px #f2f3f4 inset !important; | |
60 | 62 | } |
61 | 63 | .login-username{ |
62 | 64 | margin: 64px 0 40px; | ... | ... |
topages/staffmanage/staffmanage.js
topages/topagesTmp.js
1 | 1 | /** |
2 | 2 | * Created by mac on 18/7/24. |
3 | 3 | */ |
4 | + | |
5 | +if(fn.getRoleId == 3){ | |
6 | + $('#nav-bar-container').append(' <li class="navbar-active" id="button-workfill"><a href="#/workfill">工时填报</a></li> <li id="button-workquery"><a href="#/workquery" >工时查询</a></li> <li id="button-hourscount"><a href="#/hourscount" >工时统计</a></li> <li id="button-staffmanage"><a href="#/staffmanage" >员工管理</a></li>') | |
7 | +}else{ | |
8 | + $('#nav-bar-container').append('<li class="navbar-active" id="button-workfill"><a href="#/workfill">工时填报</a></li> <li id="button-workquery"><a href="#/workquery" >工时查询</a></li> <li id="button-hourscount"><a href="#/hourscount" >工时统计</a></li>') | |
9 | +} | |
4 | 10 | function Router(){ |
5 | 11 | this.routes = {}; |
6 | 12 | this.curUrl = ''; | ... | ... |
topages/workfill/workfill.js
... | ... | @@ -104,9 +104,10 @@ var fun = { |
104 | 104 | }, |
105 | 105 | /***获取日报信息.*/ |
106 | 106 | getAsraDailyListMsg:function(){ |
107 | - debugger; | |
107 | + // debugger; | |
108 | 108 | fun.queryAsraDailyList(function(data){ |
109 | 109 | for(var i=1;i<8;i++){ |
110 | + $("#btn-commit"+i).parent().parent().attr("style","display:block;"); | |
110 | 111 | $("#work-projectName"+i).selectpicker('val',''); |
111 | 112 | $("#work-projectName"+i).selectpicker('refresh'); |
112 | 113 | $("#daily-report"+i).html(""); |
... | ... | @@ -125,6 +126,7 @@ var fun = { |
125 | 126 | $("#weekday"+i).attr("data-date",date); |
126 | 127 | if(weekOfday-i < 0){ |
127 | 128 | $("#btn-commit"+i).attr("style","display:none;"); |
129 | + $("#btn-commit"+i).parent().parent().attr("style","display:none;"); | |
128 | 130 | }else { |
129 | 131 | $("#btn-commit"+i).attr("style","display:block;"); |
130 | 132 | } |
... | ... | @@ -160,37 +162,42 @@ var fun = { |
160 | 162 | var projectId = $("#work-projectName"+id).find("option:selected").val(); |
161 | 163 | var dailyDate = $("#weekday"+id).attr("data-date"); |
162 | 164 | var dailyContent = $("#daily-report"+id).text(); |
165 | + if(dailyContent==''){ | |
166 | + alert('') | |
167 | + }else{ | |
168 | + var req= { | |
169 | + id:arsaId, | |
170 | + projectId:projectId, | |
171 | + dailyDate:dailyDate, | |
172 | + dailyContent:dailyContent, | |
173 | + sysCode:sysComm.sysCode | |
174 | + }; | |
175 | + var editAreaBlok= { | |
176 | + method: "post", | |
177 | + url: dataUrl.util.saveOrUpdateAsraDaily(), | |
178 | + data: JSON.stringify(req), | |
179 | + contentType: 'application/json; charset=utf-8', | |
180 | + dataType:'json', | |
181 | + success: function(res){ | |
182 | + if(res.success == true){ | |
183 | + _this.text('编辑'); | |
184 | + _this.parent().parent().find(".workfill-list-container").attr("contenteditable","false"); | |
185 | + _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').toggleClass('display-none'); | |
186 | + var projectName=_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text(); | |
187 | + _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').toggleClass('display-none'); | |
188 | + _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').text(projectName); | |
189 | + | |
190 | + }else{ | |
191 | + alert("失败"); | |
192 | + return false; | |
193 | + } | |
194 | + } | |
195 | + }; | |
196 | + sysAjax(editAreaBlok); | |
197 | + } | |
198 | + | |
163 | 199 | |
164 | 200 | |
165 | - var req= { | |
166 | - id:arsaId, | |
167 | - projectId:projectId, | |
168 | - dailyDate:dailyDate, | |
169 | - dailyContent:dailyContent, | |
170 | - sysCode:sysComm.sysCode | |
171 | - }; | |
172 | - var editAreaBlok= { | |
173 | - method: "post", | |
174 | - url: dataUrl.util.saveOrUpdateAsraDaily(), | |
175 | - data: JSON.stringify(req), | |
176 | - contentType: 'application/json; charset=utf-8', | |
177 | - dataType:'json', | |
178 | - success: function(res){ | |
179 | - if(res.success == true){ | |
180 | - _this.text('编辑'); | |
181 | - _this.parent().parent().find(".workfill-list-container").attr("contenteditable","false"); | |
182 | - _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').toggleClass('display-none'); | |
183 | - var projectName=_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text(); | |
184 | - _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').toggleClass('display-none'); | |
185 | - _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').text(projectName); | |
186 | - | |
187 | - }else{ | |
188 | - alert("失败"); | |
189 | - return false; | |
190 | - } | |
191 | - } | |
192 | - }; | |
193 | - sysAjax(editAreaBlok); | |
194 | 201 | } |
195 | 202 | }; |
196 | 203 | fun.init(); | ... | ... |