美化表单的子标题缩进一些及其它细节
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
for (child in table.childList){
|
||||
%>
|
||||
<div class="form-unit">\${text('${child.comments}')}</div>
|
||||
<div class="ml10 mr10 table-form">
|
||||
<div class="form-unit-wrap table-form">
|
||||
<table id="${@StringUtils.uncap(child.className)}DataGrid"></table>
|
||||
<% if(table.tplCategory != 'query'){ %>
|
||||
\<% if (hasPermi('${permissionPrefix}:edit')){ %>
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-unit">${text('分配角色')}</div>
|
||||
<div class="pl10 pb20">
|
||||
<div class="form-unit-wrap table-form">
|
||||
<table id="roleGrid"></table>
|
||||
<#form:hidden name="userRoleString"/>
|
||||
</div>
|
||||
@@ -142,7 +142,7 @@
|
||||
</div>
|
||||
<% } %>
|
||||
<script>
|
||||
$("#inputForm").validate({
|
||||
$('#inputForm').validate({
|
||||
rules:{
|
||||
loginCode: {
|
||||
remote: function(){
|
||||
@@ -185,9 +185,6 @@ var roleGrid = $("#roleGrid").dataGrid({
|
||||
autoGridHeight: function(){
|
||||
return 'auto';
|
||||
},
|
||||
autoGridWidth: function(){
|
||||
return $('#inputForm .box-body').width()-20;
|
||||
},
|
||||
onSelectRow: function(id, isSelect, event){
|
||||
if (!isSelect && id == '${corpAdminRoleCode}') {
|
||||
js.showMessage('${text("该角色为管理员默认,不能取消。")}');
|
||||
|
||||
@@ -201,7 +201,7 @@
|
||||
<% } %>
|
||||
<% if(hasPermi('sys:empUser:authRole') && (op == 'add' || op == 'auth')) { %>
|
||||
<div class="form-unit">${text('分配角色')}</div>
|
||||
<div class="pl10 pb20">
|
||||
<div class="form-unit-wrap table-form">
|
||||
<table id="roleGrid"></table>
|
||||
<#form:hidden name="userRoleString"/>
|
||||
</div>
|
||||
@@ -232,7 +232,7 @@
|
||||
<script>
|
||||
$("#empOfficeGrid").dataGrid({
|
||||
data: "#{toJson(empUser.employee.employeeOfficeList)}",
|
||||
datatype: "local", // 设置本地数据
|
||||
datatype: 'local', // 设置本地数据
|
||||
columnModel: [
|
||||
{header:'${text("附属机构")}', name:'officeName', sortable:false, width:100,
|
||||
formatter: function(val, obj, row, act){
|
||||
@@ -293,9 +293,6 @@ var roleGrid = $("#roleGrid").dataGrid({
|
||||
autoGridHeight: function(){
|
||||
return 'auto';
|
||||
},
|
||||
autoGridWidth: function(){
|
||||
return $('#inputForm .box-body').width()-20;
|
||||
},
|
||||
ajaxSuccess: function(){
|
||||
//# for (role in roleList!){
|
||||
roleGrid.dataGrid('setSelectRow', '${role.roleCode}');
|
||||
@@ -303,7 +300,7 @@ var roleGrid = $("#roleGrid").dataGrid({
|
||||
}
|
||||
});
|
||||
//# }
|
||||
$("#inputForm").validate({
|
||||
$('#inputForm').validate({
|
||||
submitHandler: function(form){
|
||||
//# if(hasPermi('sys:empUser:authRole') && (op == 'add' || op == 'auth')) {
|
||||
$("#userRoleString").val(roleGrid.dataGrid('getSelectRows').join(','));
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-unit">${text('数据权限')}</div>
|
||||
<div id="dataScopeTrees"></div>
|
||||
<div id="dataScopeTrees" class="pl20"></div>
|
||||
<script id="dataScopeTpl" type="text/template">
|
||||
<div id="dataScope_{{d.key}}" class="pull-left" style="padding:0 15px;min-width:300px;">
|
||||
<div id="dataScope_{{d.key}}" class="pull-left" style="padding:0 10px;min-width:300px;">
|
||||
<div class="box box-solid box-trees">
|
||||
<div class="box-header">
|
||||
<div class="box-title icheck">
|
||||
@@ -72,7 +72,7 @@
|
||||
</div>
|
||||
<% } %>
|
||||
<script>
|
||||
$("#inputForm").validate({
|
||||
$('#inputForm').validate({
|
||||
submitHandler: function(form){
|
||||
//# // 获取数据权限数据
|
||||
var dataScopeData = [];
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
</div>
|
||||
<#form:form id="inputForm" model="${user}" action="${ctx}/sys/secAdmin/save" method="post" class="form-horizontal">
|
||||
<#form:hidden path="userCode"/>
|
||||
<div class="box-body"><br/>
|
||||
<div class="box-body">
|
||||
<div class="form-unit">${text('基本信息')}</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<div class="form-group">
|
||||
@@ -33,9 +34,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-unit">${text('可管理的数据权限')}</div>
|
||||
<div id="dataScopeTrees"></div>
|
||||
<div id="dataScopeTrees" class="pl20"></div>
|
||||
<script id="dataScopeTpl" type="text/template">
|
||||
<div class="pull-left" style="padding:0 15px;min-width:300px;">
|
||||
<div class="pull-left" style="padding:0 10px;min-width:300px;">
|
||||
<div class="box box-solid box-trees">
|
||||
<div class="box-header">
|
||||
<div class="box-title icheck">
|
||||
@@ -72,7 +73,7 @@
|
||||
</div>
|
||||
<% } %>
|
||||
<script>
|
||||
$("#inputForm").validate({
|
||||
$('#inputForm').validate({
|
||||
submitHandler: function(form){
|
||||
//# // 获取数据权限数据
|
||||
var dataScopeData = [];
|
||||
|
||||
Reference in New Issue
Block a user