diff --git a/module-form/src/main/resources/static/form/js/oa-form-util.js b/module-form/src/main/resources/static/form/js/oa-form-util.js index 63bb01b3..3dae2398 100644 --- a/module-form/src/main/resources/static/form/js/oa-form-util.js +++ b/module-form/src/main/resources/static/form/js/oa-form-util.js @@ -230,7 +230,7 @@ function OaFormUtil(layui) { var boxId = '#' + item.fieldName + 'Box'; $(boxId).css('position', 'relative'); $(boxId).append('
'); - var doms = $(boxId).find('input,button,textarea'); + var doms = $(boxId).find('input,button,textarea,select'); doms.removeAttr('name'); doms.attr('disabled', 'disabled'); doms.attr('lay-verify', ''); @@ -242,7 +242,7 @@ function OaFormUtil(layui) { * 禁用表单全部字段 */ this.disableFormAllFields = function () { - var doms = $('#reportForm').find('input,button,textarea'); + var doms = $('#reportForm').find('input,button,textarea,select'); doms.attr('disabled', 'disabled'); doms.attr('lay-verify', ''); } diff --git a/module-form/src/main/resources/templates/ftl/page/web/oa/form-show.ftl b/module-form/src/main/resources/templates/ftl/page/web/oa/form-show.ftl index a4b3100b..3dbed29d 100644 --- a/module-form/src/main/resources/templates/ftl/page/web/oa/form-show.ftl +++ b/module-form/src/main/resources/templates/ftl/page/web/oa/form-show.ftl @@ -82,6 +82,7 @@ } }); oaFormUtil.initTabItem(processInstanceId); + oaFormUtil.disableFormAllFields(); var self = this; var loadLayerIndex; diff --git a/module-form/src/main/resources/templates/ftl/page/web/oa/form-update.ftl b/module-form/src/main/resources/templates/ftl/page/web/oa/form-update.ftl index 17ec17d9..b34205a8 100644 --- a/module-form/src/main/resources/templates/ftl/page/web/oa/form-update.ftl +++ b/module-form/src/main/resources/templates/ftl/page/web/oa/form-update.ftl @@ -91,6 +91,7 @@ } }); oaFormUtil.initTabItem($('#processInstanceId').val()); + formUtil.disableFields(fields); var self = this; var loadLayerIndex; @@ -132,7 +133,6 @@ form.render(null, 'dataForm'); formUtil.hideFields(fields); - formUtil.disableFields(fields); }, function(code, data) { layer.msg(data.msg); }, function() {