From 364752f8763e7bc1337e62a3097488d902d1ffa0 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Thu, 30 Dec 2021 23:24:15 +0800 Subject: [PATCH] update --- .../resources/templates/modules/gen/include/formControl.html | 2 +- .../src/main/resources/views/modules/sys/user/empUserForm.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/src/main/resources/templates/modules/gen/include/formControl.html b/modules/core/src/main/resources/templates/modules/gen/include/formControl.html index 5eab44aa..494d48d7 100644 --- a/modules/core/src/main/resources/templates/modules/gen/include/formControl.html +++ b/modules/core/src/main/resources/templates/modules/gen/include/formControl.html @@ -114,7 +114,7 @@ // 如果为自定义主键,则第一个pk字段需输出isNewRecord if (c.isPk == '1' && table.pkList[0].columnName == c.columnName){ %><${'#'}form:hidden path="isNewRecord"/> - <% + <% } %><${'#'}form:input path="${c.attrName}"${attrs} class="form-control${cssClass}"/> <% diff --git a/modules/core/src/main/resources/views/modules/sys/user/empUserForm.html b/modules/core/src/main/resources/views/modules/sys/user/empUserForm.html index fd0276b0..0f14e6e9 100644 --- a/modules/core/src/main/resources/views/modules/sys/user/empUserForm.html +++ b/modules/core/src/main/resources/views/modules/sys/user/empUserForm.html @@ -295,7 +295,7 @@ var roleGrid = $("#roleGrid").dataGrid({ <% } %> $("#inputForm").validate({ submitHandler: function(form){ - <% if(hasPermi('sys:empUser:authRole') && (op == 'add' || op == 'auth')) { // 获取选中角色 %> + <% if(hasPermi('sys:empUser:authRole') && (op == 'add' || op == 'auth')) { %> $("#userRoleString").val(roleGrid.dataGrid('getSelectRows').join(',')); <% } %> var empNo = $('#employee_empNo').val();