Commit a68907a7 by Huang Linyu

后台- 系统用户 - 新建页面初始化时 , 可用默认是勾选上的

parent 43a9c077
......@@ -57,6 +57,7 @@ public class UserRoleController {
public String formGet(@ModelAttribute("form") UserRoleForm form, ModelMap model) {
model.put("action", "/userRole/adminUser/create");
model.put("roleIds", "");
model.put("enable", true);
return "userRole/adminUserForm";
}
......@@ -84,6 +85,7 @@ public class UserRoleController {
}
model.put("action", "/userRole/adminUser/edit");
model.put("roleIds", roleIds);
model.put("enable", bean.isEnable());
return "userRole/adminUserForm";
}
......
......@@ -12,6 +12,12 @@
}
});
}
var enable = ${enable?c};
if(enable){
$("#enable").prop("checked",enable);
}else{
$("#enable").prop({checked:false});
}
</script>
</#assign>
......@@ -22,7 +28,7 @@
<@form.hidden "form.id"/>
<@form.textInput path="form.nickName" attributes="class=\"input-medium\" pattern=\".{1,64}\" required" label="用户名称" required = true />
<@form.textInput path="form.userName" attributes="class=\"input-medium\" pattern=\".{1,64}\" required" label="用户账号" required = true />
<@form.checkbox "form.enable" "" "可用"/>
<@form.checkbox "form.enable" "可用"/>
<div class="control-group">
<div class="controls">
<input type="checkbox" name="roleIds" value="1" />销售
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment