Commit 31c8e47d9b2b8a70b7ea3763688d5300609ee6a3
1 parent
5c3df95b
工时填报
Showing
1 changed file
with
5 additions
and
5 deletions
topages/workfill/workfill.js
@@ -136,7 +136,7 @@ var fun = { | @@ -136,7 +136,7 @@ var fun = { | ||
136 | //如果不是本周则隐藏按钮 | 136 | //如果不是本周则隐藏按钮 |
137 | if(clicknum >= 1) { | 137 | if(clicknum >= 1) { |
138 | $("#btn-commit" + i).attr("style", "display:none;"); | 138 | $("#btn-commit" + i).attr("style", "display:none;"); |
139 | - $("#btn-commit" + i).parent().parent().find(".workfill-list-container").attr("contenteditable", "false"); | 139 | + $("#daily-report" + i).attr("contenteditable", "false"); |
140 | $("#btn-commit" + i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none'); | 140 | $("#btn-commit" + i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none'); |
141 | var projectName = $("#btn-commit" + i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text(); | 141 | var projectName = $("#btn-commit" + i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text(); |
142 | $("#btn-commit" + i).parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').removeClass('display-none'); | 142 | $("#btn-commit" + i).parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').removeClass('display-none'); |
@@ -163,7 +163,7 @@ var fun = { | @@ -163,7 +163,7 @@ var fun = { | ||
163 | $("#btn-commit"+i).attr("style","display:block;"); | 163 | $("#btn-commit"+i).attr("style","display:block;"); |
164 | } | 164 | } |
165 | //展示变更 | 165 | //展示变更 |
166 | - $("#btn-commit"+i).parent().parent().find(".workfill-list-container").attr("contenteditable","true"); | 166 | + $("#daily-report"+i).attr("contenteditable","true"); |
167 | if($("#btn-commit"+i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').hasClass('display-none')) { | 167 | if($("#btn-commit"+i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').hasClass('display-none')) { |
168 | $("#btn-commit"+i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').removeClass('display-none'); | 168 | $("#btn-commit"+i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').removeClass('display-none'); |
169 | var projectName=$("#btn-commit"+i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text(); | 169 | var projectName=$("#btn-commit"+i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text(); |
@@ -186,7 +186,7 @@ var fun = { | @@ -186,7 +186,7 @@ var fun = { | ||
186 | $("#work-projectName"+row.weeksNum).selectpicker('refresh'); | 186 | $("#work-projectName"+row.weeksNum).selectpicker('refresh'); |
187 | 187 | ||
188 | $("#btn-commit"+row.weeksNum).html('编辑'); | 188 | $("#btn-commit"+row.weeksNum).html('编辑'); |
189 | - $("#btn-commit"+row.weeksNum).parent().parent().find(".workfill-list-container").attr("contenteditable","false"); | 189 | + $("#daily-report"+row.weeksNum).attr("contenteditable","false"); |
190 | $("#btn-commit"+row.weeksNum).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none'); | 190 | $("#btn-commit"+row.weeksNum).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none'); |
191 | var projectName=$("#btn-commit"+row.weeksNum).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text(); | 191 | var projectName=$("#btn-commit"+row.weeksNum).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text(); |
192 | $("#btn-commit"+row.weeksNum).parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').removeClass('display-none'); | 192 | $("#btn-commit"+row.weeksNum).parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').removeClass('display-none'); |
@@ -229,7 +229,7 @@ var fun = { | @@ -229,7 +229,7 @@ var fun = { | ||
229 | var asraId = res.data; | 229 | var asraId = res.data; |
230 | $("#weekday"+id).attr("data-id",asraId); | 230 | $("#weekday"+id).attr("data-id",asraId); |
231 | _this.html('编辑'); | 231 | _this.html('编辑'); |
232 | - _this.parent().parent().find(".workfill-list-container").attr("contenteditable","false"); | 232 | + _this.parent().next().attr("contenteditable","false"); |
233 | _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none'); | 233 | _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none'); |
234 | var projectName=_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text(); | 234 | var projectName=_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text(); |
235 | _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').removeClass('display-none'); | 235 | _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').removeClass('display-none'); |
@@ -279,7 +279,7 @@ documentBindFunc.on('click','.workfill-list-btn',function () { | @@ -279,7 +279,7 @@ documentBindFunc.on('click','.workfill-list-btn',function () { | ||
279 | var _this=$(this); | 279 | var _this=$(this); |
280 | if(_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').hasClass('display-none')){ | 280 | if(_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').hasClass('display-none')){ |
281 | _this.html('提交'); | 281 | _this.html('提交'); |
282 | - _this.parent().parent().find(".workfill-list-container").attr("contenteditable","true"); | 282 | + _this.parent().next().attr("contenteditable","true"); |
283 | _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').toggleClass('display-none'); | 283 | _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').toggleClass('display-none'); |
284 | var projectName=_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text(); | 284 | var projectName=_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text(); |
285 | _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').toggleClass('display-none'); | 285 | _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').toggleClass('display-none'); |