Commit 31c8e47d9b2b8a70b7ea3763688d5300609ee6a3

Authored by xiejianpeng
1 parent 5c3df95b

工时填报

Showing 1 changed file with 5 additions and 5 deletions
topages/workfill/workfill.js
... ... @@ -136,7 +136,7 @@ var fun = {
136 136 //如果不是本周则隐藏按钮
137 137 if(clicknum >= 1) {
138 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 140 $("#btn-commit" + i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none');
141 141 var projectName = $("#btn-commit" + i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text();
142 142 $("#btn-commit" + i).parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').removeClass('display-none');
... ... @@ -163,7 +163,7 @@ var fun = {
163 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 167 if($("#btn-commit"+i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').hasClass('display-none')) {
168 168 $("#btn-commit"+i).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').removeClass('display-none');
169 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 186 $("#work-projectName"+row.weeksNum).selectpicker('refresh');
187 187  
188 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 190 $("#btn-commit"+row.weeksNum).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none');
191 191 var projectName=$("#btn-commit"+row.weeksNum).parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text();
192 192 $("#btn-commit"+row.weeksNum).parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').removeClass('display-none');
... ... @@ -229,7 +229,7 @@ var fun = {
229 229 var asraId = res.data;
230 230 $("#weekday"+id).attr("data-id",asraId);
231 231 _this.html('编辑');
232   - _this.parent().parent().find(".workfill-list-container").attr("contenteditable","false");
  232 + _this.parent().next().attr("contenteditable","false");
233 233 _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none');
234 234 var projectName=_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text();
235 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 279 var _this=$(this);
280 280 if(_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').hasClass('display-none')){
281 281 _this.html('提交');
282   - _this.parent().parent().find(".workfill-list-container").attr("contenteditable","true");
  282 + _this.parent().next().attr("contenteditable","true");
283 283 _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').toggleClass('display-none');
284 284 var projectName=_this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon .work-projectName').find("option:selected").text();
285 285 _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').toggleClass('display-none');
... ...