diff --git a/topages/workfill/workfill.js b/topages/workfill/workfill.js index 5ff411b..c476b0c 100644 --- a/topages/workfill/workfill.js +++ b/topages/workfill/workfill.js @@ -51,8 +51,12 @@ $('#time-opr-nextbtn').on('click',function () { $('.workfill-list-btn').on('click',function () { var _this=$(this); console.log(_this); - _this.text('编辑'); - _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').addClass('display-none'); - _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').removeClass('display-none'); + if($('.workfill-projectCon').hasClass('display-none')){ + _this.text('提交'); + }else { + _this.text('编辑'); + } + _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-projectCon').toggleClass('display-none'); + _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').toggleClass('display-none'); });