|
|
@ -92,7 +92,7 @@
|
|
|
|
<label class="col-sm-4 control-label is-required">角色:</label>
|
|
|
|
<label class="col-sm-4 control-label is-required">角色:</label>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<label th:each="role:${roles}" class="check-box">
|
|
|
|
<label th:each="role:${roles}" class="check-box">
|
|
|
|
<input name="role" type="checkbox" th:value="${role.roleId}" th:text="${role.roleName}" th:disabled="${role.status == '1'}" >
|
|
|
|
<input name="role" type="radio" th:value="${role.roleId}" th:text="${role.roleName}" th:disabled="${role.status == '1'}">
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -363,7 +363,7 @@
|
|
|
|
if ($.validate.form() && checkpwd(chrtype, password)) {
|
|
|
|
if ($.validate.form() && checkpwd(chrtype, password)) {
|
|
|
|
var data = $("#form-user-add").serializeArray();
|
|
|
|
var data = $("#form-user-add").serializeArray();
|
|
|
|
var status = $("input[id='status']").is(':checked') == true ? 0 : 1;
|
|
|
|
var status = $("input[id='status']").is(':checked') == true ? 0 : 1;
|
|
|
|
var roleIds = $.form.selectCheckeds("role");
|
|
|
|
var roleIds = $.form.radioCheckeds("role");
|
|
|
|
var postIds = $.form.selectSelects("post");
|
|
|
|
var postIds = $.form.selectSelects("post");
|
|
|
|
data.push({"name": "status", "value": status});
|
|
|
|
data.push({"name": "status", "value": status});
|
|
|
|
data.push({"name": "roleIds", "value": roleIds});
|
|
|
|
data.push({"name": "roleIds", "value": roleIds});
|
|
|
|