省去设置一些IDE警告
This commit is contained in:
@@ -70,7 +70,7 @@ $('#dataGrid').dataGrid({
|
|||||||
// {header:'${text("备注信息")}', name:'remarks', index:'a.remarks', width:150, align:"left"},
|
// {header:'${text("备注信息")}', name:'remarks', index:'a.remarks', width:150, align:"left"},
|
||||||
{header:'${text("操作")}', name:'actions', width:150, formatter: function(val, obj, row, act){
|
{header:'${text("操作")}', name:'actions', width:150, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('cms:article:edit')){ %>
|
//<% if(hasPermi('cms:article:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/cms/article/form?id='+row.id+'" class="btnList" title="${text("编辑文章")}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/cms/article/form?id='+row.id+'" class="btnList" title="${text("编辑文章")}"><i class="fa fa-pencil"></i></a> ');
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/cms/article/disable?id='+row.id+'" class="btnList" title="${text("停用文章")}" data-confirm="${text("确认要停用该文章吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/cms/article/disable?id='+row.id+'" class="btnList" title="${text("停用文章")}" data-confirm="${text("确认要停用该文章吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
@@ -82,7 +82,7 @@ $('#dataGrid').dataGrid({
|
|||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctxFront}/view-'+row.category.categoryCode+'-'+row.id+'" target="_blank" title="${text("预览文章")}"><i class="fa fa-globe"></i></a> ');
|
actions.push('<a href="${ctxFront}/view-'+row.category.categoryCode+'-'+row.id+'" target="_blank" title="${text("预览文章")}"><i class="fa fa-globe"></i></a> ');
|
||||||
}
|
}
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ $('#dataGrid').dataGrid({
|
|||||||
}},
|
}},
|
||||||
{header:'${text("操作")}', name:'actions', width:150, formatter: function(val, obj, row, act){
|
{header:'${text("操作")}', name:'actions', width:150, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('cms:category:edit')){ %>
|
//<% if(hasPermi('cms:category:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/cms/category/form?categoryCode='+row.categoryCode+'" class="btnList" title="${text("编辑栏目表")}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/cms/category/form?categoryCode='+row.categoryCode+'" class="btnList" title="${text("编辑栏目表")}"><i class="fa fa-pencil"></i></a> ');
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/cms/category/disable?categoryCode='+row.categoryCode+'" class="btnList" title="${text("停用栏目表")}" data-confirm="${text("确认要停用该栏目表吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/cms/category/disable?categoryCode='+row.categoryCode+'" class="btnList" title="${text("停用栏目表")}" data-confirm="${text("确认要停用该栏目表吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
@@ -100,7 +100,7 @@ $('#dataGrid').dataGrid({
|
|||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctxFront}/list-'+row.categoryCode+'" target="_blank" title="${text("访问栏目")}"><i class="fa fa-globe"></i></a> ');
|
actions.push('<a href="${ctxFront}/list-'+row.categoryCode+'" target="_blank" title="${text("访问栏目")}"><i class="fa fa-globe"></i></a> ');
|
||||||
}
|
}
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ $('#dataGrid').dataGrid({
|
|||||||
{header:'${text('举报原因')}', name:'reportCause', index:'a.report_cause', width:150, align:"left"},
|
{header:'${text('举报原因')}', name:'reportCause', index:'a.report_cause', width:150, align:"left"},
|
||||||
{header:'${text('操作')}', name:'actions', width:120, formatter: function(val, obj, row, act){
|
{header:'${text('操作')}', name:'actions', width:120, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('cms:report:edit')){ %>
|
//<% if(hasPermi('cms:report:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/cms/report/form?id='+row.id+'" class="btnList" title="${text('编辑内容举报表')}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/cms/report/form?id='+row.id+'" class="btnList" title="${text('编辑内容举报表')}"><i class="fa fa-pencil"></i></a> ');
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/cms/report/disable?id='+row.id+'" class="btnList" title="${text('停用内容举报表')}" data-confirm="${text('确认要停用该内容举报表吗?')}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/cms/report/disable?id='+row.id+'" class="btnList" title="${text('停用内容举报表')}" data-confirm="${text('确认要停用该内容举报表吗?')}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
@@ -79,7 +79,7 @@ $('#dataGrid').dataGrid({
|
|||||||
actions.push('<a href="${ctx}/cms/report/enable?id='+row.id+'" class="btnList" title="${text('启用内容举报表')}" data-confirm="${text('确认要启用该内容举报表吗?')}"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
actions.push('<a href="${ctx}/cms/report/enable?id='+row.id+'" class="btnList" title="${text('启用内容举报表')}" data-confirm="${text('确认要启用该内容举报表吗?')}"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
||||||
}
|
}
|
||||||
actions.push('<a href="${ctx}/cms/report/delete?id='+row.id+'" class="btnList" title="${text('删除内容举报表')}" data-confirm="${text('确认要删除该内容举报表吗?')}"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/cms/report/delete?id='+row.id+'" class="btnList" title="${text('删除内容举报表')}" data-confirm="${text('确认要删除该内容举报表吗?')}"><i class="fa fa-trash-o"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ $('#dataGrid').dataGrid({
|
|||||||
{header:'${text("创建时间")}', name:'createDate', index:'a.create_date', width:150, align:"center"},
|
{header:'${text("创建时间")}', name:'createDate', index:'a.create_date', width:150, align:"center"},
|
||||||
{header:'${text("操作")}', name:'actions', width:150, formatter: function(val, obj, row, act){
|
{header:'${text("操作")}', name:'actions', width:150, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('cms:site:edit')){ %>
|
//<% if(hasPermi('cms:site:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/cms/site/form?siteCode='+row.siteCode+'" class="btnList" title="${text("编辑站点")}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/cms/site/form?siteCode='+row.siteCode+'" class="btnList" title="${text("编辑站点")}"><i class="fa fa-pencil"></i></a> ');
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/cms/site/disable?siteCode='+row.siteCode+'" class="btnList" title="${text("停用站点")}" data-confirm="${text("确认要停用该站点吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/cms/site/disable?siteCode='+row.siteCode+'" class="btnList" title="${text("停用站点")}" data-confirm="${text("确认要停用该站点吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
@@ -81,7 +81,7 @@ $('#dataGrid').dataGrid({
|
|||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctxFront}/index-'+row.siteCode+'" target="_blank" title="${text("访问站点")}"><i class="fa fa-globe"></i></a> ');
|
actions.push('<a href="${ctxFront}/index-'+row.siteCode+'" target="_blank" title="${text("访问站点")}"><i class="fa fa-globe"></i></a> ');
|
||||||
}
|
}
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ $('#dataGrid').dataGrid({
|
|||||||
|
|
||||||
{header:'${text('操作')}', name:'actions', width:120, formatter: function(val, obj, row, act){
|
{header:'${text('操作')}', name:'actions', width:120, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('cms:visitLog:edit')){ %>
|
//<% if(hasPermi('cms:visitLog:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/cms/visitLog/form?id='+row.id+'" class="btnList" title="${text('编辑访问日志表')}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/cms/visitLog/form?id='+row.id+'" class="btnList" title="${text('编辑访问日志表')}"><i class="fa fa-pencil"></i></a> ');
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/cms/visitLog/disable?id='+row.id+'" class="btnList" title="${text('停用访问日志表')}" data-confirm="${text('确认要停用该访问日志表吗?')}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/cms/visitLog/disable?id='+row.id+'" class="btnList" title="${text('停用访问日志表')}" data-confirm="${text('确认要停用该访问日志表吗?')}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
@@ -100,7 +100,7 @@ $('#dataGrid').dataGrid({
|
|||||||
actions.push('<a href="${ctx}/cms/visitLog/enable?id='+row.id+'" class="btnList" title="${text('启用访问日志表')}" data-confirm="${text('确认要启用该访问日志表吗?')}"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
actions.push('<a href="${ctx}/cms/visitLog/enable?id='+row.id+'" class="btnList" title="${text('启用访问日志表')}" data-confirm="${text('确认要启用该访问日志表吗?')}"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
||||||
}
|
}
|
||||||
actions.push('<a href="${ctx}/cms/visitLog/delete?id='+row.id+'" class="btnList" title="${text('删除访问日志表')}" data-confirm="${text('确认要删除该访问日志表吗?')}"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/cms/visitLog/delete?id='+row.id+'" class="btnList" title="${text('删除访问日志表')}" data-confirm="${text('确认要删除该访问日志表吗?')}"><i class="fa fa-trash-o"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ $('#dataGrid').dataGrid({
|
|||||||
<% if(isQueryTpl){ %>
|
<% if(isQueryTpl){ %>
|
||||||
actions.push('<a href="\${ctx}/${urlPrefix}/form?${idParam}" class="btnList" title="\${text("查看${functionNameSimple}")}"><i class="fa fa-file-text-o"></i></a> ');
|
actions.push('<a href="\${ctx}/${urlPrefix}/form?${idParam}" class="btnList" title="\${text("查看${functionNameSimple}")}"><i class="fa fa-file-text-o"></i></a> ');
|
||||||
<% }else{ %>
|
<% }else{ %>
|
||||||
\<% if(hasPermi('${permissionPrefix}:edit')){ %>
|
//\<% if(hasPermi('${permissionPrefix}:edit')){ %>
|
||||||
actions.push('<a href="\${ctx}/${urlPrefix}/form?${idParam}" class="btnList" title="\${text("编辑${functionNameSimple}")}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="\${ctx}/${urlPrefix}/form?${idParam}" class="btnList" title="\${text("编辑${functionNameSimple}")}"><i class="fa fa-pencil"></i></a> ');
|
||||||
<% if(toBoolean(table.optionMap['isHaveDisableEnable'])){ %>
|
<% if(toBoolean(table.optionMap['isHaveDisableEnable'])){ %>
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
@@ -90,7 +90,7 @@ $('#dataGrid').dataGrid({
|
|||||||
<% if(table.isTreeEntity){ %>
|
<% if(table.isTreeEntity){ %>
|
||||||
actions.push('<a href="\${ctx}/${urlPrefix}/form?parentCode='+row.id+'" class="btnList" title="\${text("新增下级${functionNameSimple}")}"><i class="fa fa-plus-square"></i></a> ');
|
actions.push('<a href="\${ctx}/${urlPrefix}/form?parentCode='+row.id+'" class="btnList" title="\${text("新增下级${functionNameSimple}")}"><i class="fa fa-plus-square"></i></a> ');
|
||||||
<% } %>
|
<% } %>
|
||||||
\<% } %>
|
//\<% } %>
|
||||||
<% if(toBoolean(table.optionMap['isBpmForm'])){ %>
|
<% if(toBoolean(table.optionMap['isBpmForm'])){ %>
|
||||||
if (row.status != Global.STATUS_DRAFT){
|
if (row.status != Global.STATUS_DRAFT){
|
||||||
actions.push('<a href="\${ctx}/bpm/bpmRuntime/trace?formKey=${table.optionMap['bpmFormKey']}&bizKey='+row.id+'" class="btnList" title="\${text("流程追踪")}" data-layer="true"><i class="fa fa-file-picture-o"></i></a> ');
|
actions.push('<a href="\${ctx}/bpm/bpmRuntime/trace?formKey=${table.optionMap['bpmFormKey']}&bizKey='+row.id+'" class="btnList" title="\${text("流程追踪")}" data-layer="true"><i class="fa fa-file-picture-o"></i></a> ');
|
||||||
|
|||||||
@@ -90,10 +90,10 @@ $('#dataGrid').dataGrid({
|
|||||||
{header:'${text("操作")}', name:'actions', width:120, formatter: function(val, obj, row, act){
|
{header:'${text("操作")}', name:'actions', width:120, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
if(row.status == Global.STATUS_DRAFT){
|
if(row.status == Global.STATUS_DRAFT){
|
||||||
<% if(hasPermi('msg:msgInner:edit')){ %>
|
//<% if(hasPermi('msg:msgInner:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/msg/msgInner/form?id='+row.id+'" class="btnList" title="${text("编辑消息")}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/msg/msgInner/form?id='+row.id+'" class="btnList" title="${text("编辑消息")}"><i class="fa fa-pencil"></i></a> ');
|
||||||
actions.push('<a href="${ctx}/msg/msgInner/delete?id='+row.id+'" class="btnList" title="${text("删除消息")}" data-confirm="${text("确认要删除该消息吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/msg/msgInner/delete?id='+row.id+'" class="btnList" title="${text("删除消息")}" data-confirm="${text("确认要删除该消息吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
}else{
|
}else{
|
||||||
actions.push('<a href="${ctx}/msg/msgInner/view?id='+row.id+'" class="btnList" title="${text("查看消息")}"><i class="fa fa-book"></i></a> ');
|
actions.push('<a href="${ctx}/msg/msgInner/view?id='+row.id+'" class="btnList" title="${text("查看消息")}"><i class="fa fa-book"></i></a> ');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ $('#dataGrid').dataGrid({
|
|||||||
{header:'更新时间', name:'updateDate', index:'a.update_date', width:150, align:"center"},
|
{header:'更新时间', name:'updateDate', index:'a.update_date', width:150, align:"center"},
|
||||||
{header:'操作', name:'actions', width:130, formatter: function(val, obj, row, act){
|
{header:'操作', name:'actions', width:130, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('sys:area:edit')){ %>
|
//<% if(hasPermi('sys:area:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/sys/area/form?areaCode='+row.areaCode+'" class="btnList" title="编辑区域"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/sys/area/form?areaCode='+row.areaCode+'" class="btnList" title="编辑区域"><i class="fa fa-pencil"></i></a> ');
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/sys/area/disable?areaCode='+row.areaCode+'" class="btnList" title="停用区域" data-confirm="确认要停用该区域吗?"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/sys/area/disable?areaCode='+row.areaCode+'" class="btnList" title="停用区域" data-confirm="确认要停用该区域吗?"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
@@ -76,7 +76,7 @@ $('#dataGrid').dataGrid({
|
|||||||
}
|
}
|
||||||
actions.push('<a href="${ctx}/sys/area/delete?areaCode='+row.areaCode+'" class="btnList" title="删除区域" data-confirm="确认要删除该区域及所有子区域吗?" data-deltreenode="'+row.id+'"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/sys/area/delete?areaCode='+row.areaCode+'" class="btnList" title="删除区域" data-confirm="确认要删除该区域及所有子区域吗?" data-deltreenode="'+row.id+'"><i class="fa fa-trash-o"></i></a> ');
|
||||||
actions.push('<a href="${ctx}/sys/area/form?parentCode='+row.id+'" class="btnList" title="新增下级区域"><i class="fa fa-plus-square"></i></a> ');
|
actions.push('<a href="${ctx}/sys/area/form?parentCode='+row.id+'" class="btnList" title="新增下级区域"><i class="fa fa-plus-square"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ $('#dataGrid').dataGrid({
|
|||||||
}},
|
}},
|
||||||
{header:'${text("操作")}', name:'actions', width:150, formatter: function(val, obj, row, act){
|
{header:'${text("操作")}', name:'actions', width:150, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('sys:company:edit')){ %>
|
//<% if(hasPermi('sys:company:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/sys/company/form?companyCode='+row.companyCode+'" class="btnList" title="${text("编辑公司")}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/sys/company/form?companyCode='+row.companyCode+'" class="btnList" title="${text("编辑公司")}"><i class="fa fa-pencil"></i></a> ');
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/sys/company/disable?companyCode='+row.companyCode+'" class="btnList" title="${text("停用公司")}" data-confirm="${text("确认要停用该公司吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/sys/company/disable?companyCode='+row.companyCode+'" class="btnList" title="${text("停用公司")}" data-confirm="${text("确认要停用该公司吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
@@ -82,7 +82,7 @@ $('#dataGrid').dataGrid({
|
|||||||
}
|
}
|
||||||
actions.push('<a href="${ctx}/sys/company/delete?companyCode='+row.companyCode+'" class="btnList" title="${text("删除公司")}" data-confirm="${text("确认要删除该公司及所有子公司吗?")}" data-deltreenode="'+row.id+'"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/sys/company/delete?companyCode='+row.companyCode+'" class="btnList" title="${text("删除公司")}" data-confirm="${text("确认要删除该公司及所有子公司吗?")}" data-deltreenode="'+row.id+'"><i class="fa fa-trash-o"></i></a> ');
|
||||||
actions.push('<a href="${ctx}/sys/company/form?parentCode='+row.id+'" class="btnList" title="${text("新增下级公司")}"><i class="fa fa-plus-square"></i></a> ');
|
actions.push('<a href="${ctx}/sys/company/form?parentCode='+row.id+'" class="btnList" title="${text("新增下级公司")}"><i class="fa fa-plus-square"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -128,9 +128,9 @@ $('#dataGrid').dataGrid({
|
|||||||
{header:'${text("响应时间")}', name:'executeTimeFormat', index:'a.execute_time', width:100, align:"center"}/* ,
|
{header:'${text("响应时间")}', name:'executeTimeFormat', index:'a.execute_time', width:100, align:"center"}/* ,
|
||||||
{header:'${text("操作")}', name:'actions', width:130, formatter: function(val, obj, row, act){
|
{header:'${text("操作")}', name:'actions', width:130, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('sys:log:edit')){ %>
|
//<% if(hasPermi('sys:log:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/sys/log/form?id='+row.id+'" class="btnList" title="${text('日志详情')}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/sys/log/form?id='+row.id+'" class="btnList" title="${text('日志详情')}"><i class="fa fa-pencil"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}} */
|
}} */
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ $('#dataGrid').dataGrid({
|
|||||||
}},
|
}},
|
||||||
{header:'${text("操作")}', name:'actions', width:150, formatter: function(val, obj, row, act){
|
{header:'${text("操作")}', name:'actions', width:150, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('sys:office:edit')){ %>
|
//<% if(hasPermi('sys:office:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/sys/office/form?officeCode='+row.officeCode+'" class="btnList" title="${text("编辑机构")}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/sys/office/form?officeCode='+row.officeCode+'" class="btnList" title="${text("编辑机构")}"><i class="fa fa-pencil"></i></a> ');
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/sys/office/disable?officeCode='+row.officeCode+'" class="btnList" title="${text("停用机构")}" data-confirm="${text("确认要停用该机构吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/sys/office/disable?officeCode='+row.officeCode+'" class="btnList" title="${text("停用机构")}" data-confirm="${text("确认要停用该机构吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
@@ -92,7 +92,7 @@ $('#dataGrid').dataGrid({
|
|||||||
}
|
}
|
||||||
actions.push('<a href="${ctx}/sys/office/delete?officeCode='+row.officeCode+'" class="btnList" title="${text("删除机构")}" data-confirm="${text("确认要删除该机构及所有子机构吗?")}" data-deltreenode="'+row.id+'"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/sys/office/delete?officeCode='+row.officeCode+'" class="btnList" title="${text("删除机构")}" data-confirm="${text("确认要删除该机构及所有子机构吗?")}" data-deltreenode="'+row.id+'"><i class="fa fa-trash-o"></i></a> ');
|
||||||
actions.push('<a href="${ctx}/sys/office/form?parentCode='+row.id+'" class="btnList" title="${text("新增下级机构")}"><i class="fa fa-plus-square"></i></a> ');
|
actions.push('<a href="${ctx}/sys/office/form?parentCode='+row.id+'" class="btnList" title="${text("新增下级机构")}"><i class="fa fa-plus-square"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -56,18 +56,18 @@ $('#dataGrid').dataGrid({
|
|||||||
{header:'${text("超时时间")}', name:'timeout', width:100, align:'center'},
|
{header:'${text("超时时间")}', name:'timeout', width:100, align:'center'},
|
||||||
{header:'${text("客户主机")}', name:'host', width:70, align:'center'},
|
{header:'${text("客户主机")}', name:'host', width:70, align:'center'},
|
||||||
{header:'${text("用户类型")}', name:'userType', width:50, align:'center', formatter: function(val, obj, row, act){
|
{header:'${text("用户类型")}', name:'userType', width:50, align:'center', formatter: function(val, obj, row, act){
|
||||||
return js.getDictLabel(${@DictUtils.getDictListJson('sys_user_type')}, val, '${text('未设置')}', true);
|
return js.getDictLabel(${@DictUtils.getDictListJson('sys_user_type')}, val, '${text("未设置")}', true);
|
||||||
}},
|
}},
|
||||||
{header:'${text("设备类型")}', name:'deviceType', width:50, align:'center', formatter: function(val, obj, row, act){
|
{header:'${text("设备类型")}', name:'deviceType', width:50, align:'center', formatter: function(val, obj, row, act){
|
||||||
return js.getDictLabel(${@DictUtils.getDictListJson('sys_device_type')}, val, '${text('未设置')}', true);
|
return js.getDictLabel(${@DictUtils.getDictListJson('sys_device_type')}, val, '${text("未设置")}', true);
|
||||||
}}
|
}}
|
||||||
<% if(hasPermi('sys:online:edit')){ %>
|
//<% if(hasPermi('sys:online:edit')){ %>
|
||||||
,{header:'${text("操作")}', name:'actions', width:100, sortable:false, formatter: function(val, obj, row, act){
|
,{header:'${text("操作")}', name:'actions', width:100, sortable:false, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
actions.push('<a href="${ctx}/sys/online/tickOut?sessionId='+row.id+'" class="btnList" title="${text("踢出在线用户")}" data-confirm="${text("确认要踢出该用户在线状态吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/sys/online/tickOut?sessionId='+row.id+'" class="btnList" title="${text("踢出在线用户")}" data-confirm="${text("确认要踢出该用户在线状态吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
<% } %>
|
//<% } %>
|
||||||
],
|
],
|
||||||
// 加载成功后执行事件
|
// 加载成功后执行事件
|
||||||
ajaxSuccess: function(data){
|
ajaxSuccess: function(data){
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ $('#dataGrid').dataGrid({
|
|||||||
}},
|
}},
|
||||||
{header:'${text("操作")}', name:'actions', width:130, formatter: function(val, obj, row, act){
|
{header:'${text("操作")}', name:'actions', width:130, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('sys:post:edit')){ %>
|
//<% if(hasPermi('sys:post:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/sys/post/form?postCode='+row.postCode+'" class="btnList" title="${text("编辑岗位")}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/sys/post/form?postCode='+row.postCode+'" class="btnList" title="${text("编辑岗位")}"><i class="fa fa-pencil"></i></a> ');
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/sys/post/disable?postCode='+row.postCode+'" class="btnList" title="${text("停用岗位")}" data-confirm="${text("确认要停用该岗位吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/sys/post/disable?postCode='+row.postCode+'" class="btnList" title="${text("停用岗位")}" data-confirm="${text("确认要停用该岗位吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
@@ -79,7 +79,7 @@ $('#dataGrid').dataGrid({
|
|||||||
actions.push('<a href="${ctx}/sys/post/enable?postCode='+row.postCode+'" class="btnList" title="${text("启用岗位")}" data-confirm="${text("确认要启用该岗位吗?")}"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
actions.push('<a href="${ctx}/sys/post/enable?postCode='+row.postCode+'" class="btnList" title="${text("启用岗位")}" data-confirm="${text("确认要启用该岗位吗?")}"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
||||||
}
|
}
|
||||||
actions.push('<a href="${ctx}/sys/post/delete?postCode='+row.postCode+'" class="btnList" title="${text("删除岗位")}" data-confirm="${text("确认要删除该岗位吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/sys/post/delete?postCode='+row.postCode+'" class="btnList" title="${text("删除岗位")}" data-confirm="${text("确认要删除该岗位吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ $('#corpCode_').change(function(){
|
|||||||
var roleGrid = $("#roleGrid").dataGrid({
|
var roleGrid = $("#roleGrid").dataGrid({
|
||||||
url: '${ctx}/sys/role/treeData',
|
url: '${ctx}/sys/role/treeData',
|
||||||
postData: [
|
postData: [
|
||||||
{name:'isAll',value:'true'} <% // 显示所有角色(与上方两个条件互斥) %>
|
{name:'isAll',value:'true'} //<% // 显示所有角色(与上方两个条件互斥) %>
|
||||||
],
|
],
|
||||||
columnModel: [
|
columnModel: [
|
||||||
{header:'${text("角色名称")}', name:'name', sortable:false, width:100, align:"center"},
|
{header:'${text("角色名称")}', name:'name', sortable:false, width:100, align:"center"},
|
||||||
@@ -201,9 +201,9 @@ var roleGrid = $("#roleGrid").dataGrid({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
ajaxSuccess: function(){
|
ajaxSuccess: function(){
|
||||||
<% for (role in roleList!){ %>
|
//<% for (role in roleList!){ %>
|
||||||
roleGrid.dataGrid('setSelectRow', '${role.roleCode}');
|
roleGrid.dataGrid('setSelectRow', '${role.roleCode}');
|
||||||
<% } %>
|
//<% } %>
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -70,12 +70,12 @@ $('#dataGrid').dataGrid({
|
|||||||
return '<a href="${ctx}/sys/corpAdmin/form?userCode='+row.userCode+'&op=edit" class="btnList" data-title="${text("编辑用户")}">'+(val||row.id)+'</a>';
|
return '<a href="${ctx}/sys/corpAdmin/form?userCode='+row.userCode+'&op=edit" class="btnList" data-title="${text("编辑用户")}">'+(val||row.id)+'</a>';
|
||||||
}},
|
}},
|
||||||
{header:'${text("用户昵称")}', name:'userName', index:'a.user_name', width:200, align:"center"},
|
{header:'${text("用户昵称")}', name:'userName', index:'a.user_name', width:200, align:"center"},
|
||||||
<% if(useCorpModel){ %>
|
//<% if(useCorpModel){ %>
|
||||||
{header:'${text("租户代码")}', name:'corpCode_', index:'a.corp_code', width:200, align:"center", formatter: function(val, obj, row, act){
|
{header:'${text("租户代码")}', name:'corpCode_', index:'a.corp_code', width:200, align:"center", formatter: function(val, obj, row, act){
|
||||||
return '<a href="javascript:" onclick="$(\'#corpCode_\').val(\''+val+'\');$(\'#searchForm\').submit()">'+val+'</a>';
|
return '<a href="javascript:" onclick="$(\'#corpCode_\').val(\''+val+'\');$(\'#searchForm\').submit()">'+val+'</a>';
|
||||||
}},
|
}},
|
||||||
{header:'${text("租户名称")}', name:'corpName_', index:'a.corp_name', width:200, align:"center"},
|
{header:'${text("租户名称")}', name:'corpName_', index:'a.corp_name', width:200, align:"center"},
|
||||||
<% } %>
|
//<% } %>
|
||||||
{header:'${text("电子邮箱")}', name:'email', index:'a.email', width:200, align:"center"},
|
{header:'${text("电子邮箱")}', name:'email', index:'a.email', width:200, align:"center"},
|
||||||
{header:'${text("手机号码")}', name:'mobile', index:'a.mobile', width:200, align:"center"},
|
{header:'${text("手机号码")}', name:'mobile', index:'a.mobile', width:200, align:"center"},
|
||||||
{header:'${text("办公电话")}', name:'phone', index:'a.phone', width:200, align:"center"},
|
{header:'${text("办公电话")}', name:'phone', index:'a.phone', width:200, align:"center"},
|
||||||
@@ -85,7 +85,7 @@ $('#dataGrid').dataGrid({
|
|||||||
}},
|
}},
|
||||||
{header:'${text("操作")}', name:'actions', width:150, formatter: function(val, obj, row, act){
|
{header:'${text("操作")}', name:'actions', width:150, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('sys:corpAdmin:edit')){ %>
|
//<% if(hasPermi('sys:corpAdmin:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/sys/corpAdmin/form?userCode='+row.userCode+'&op=edit" class="btnList" title="${text("编辑用户")}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/sys/corpAdmin/form?userCode='+row.userCode+'&op=edit" class="btnList" title="${text("编辑用户")}"><i class="fa fa-pencil"></i></a> ');
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/sys/corpAdmin/disable?userCode='+row.userCode+'" class="btnList" title="${text("停用用户")}" data-confirm="${text("确认要停用该用户吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/sys/corpAdmin/disable?userCode='+row.userCode+'" class="btnList" title="${text("停用用户")}" data-confirm="${text("确认要停用该用户吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
@@ -93,14 +93,14 @@ $('#dataGrid').dataGrid({
|
|||||||
actions.push('<a href="${ctx}/sys/corpAdmin/enable?userCode='+row.userCode+'" class="btnList" title="${text("启用用户")}" data-confirm="${text("确认要启用该用户吗?")}"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
actions.push('<a href="${ctx}/sys/corpAdmin/enable?userCode='+row.userCode+'" class="btnList" title="${text("启用用户")}" data-confirm="${text("确认要启用该用户吗?")}"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
||||||
}
|
}
|
||||||
actions.push('<a href="${ctx}/sys/corpAdmin/delete?userCode='+row.userCode+'" class="btnList" title="${text("删除用户")}" data-confirm="${text("确认要删除该用户吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/sys/corpAdmin/delete?userCode='+row.userCode+'" class="btnList" title="${text("删除用户")}" data-confirm="${text("确认要删除该用户吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
||||||
<% if(useCorpModel){ %>
|
//<% if(useCorpModel){ %>
|
||||||
actions.push('<a href="${ctx}/sys/corpAdmin/form?corpCode_='+row.corpCode_+'&corpName_='+row.corpName_+'&op=addAdmin" class="btnList" title="${text("新增管理员")}"><i class="fa fa-plus-square"></i></a> ');
|
actions.push('<a href="${ctx}/sys/corpAdmin/form?corpCode_='+row.corpCode_+'&corpName_='+row.corpName_+'&op=addAdmin" class="btnList" title="${text("新增管理员")}"><i class="fa fa-plus-square"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
actions.push('<a href="javascript:" class="btnMore" title="${text("更多操作")}"><i class="fa fa-chevron-circle-right"></i></a> ');
|
actions.push('<a href="javascript:" class="btnMore" title="${text("更多操作")}"><i class="fa fa-chevron-circle-right"></i></a> ');
|
||||||
actions.push('<div class="moreItems">');
|
actions.push('<div class="moreItems">');
|
||||||
actions.push('<a href="${ctx}/sys/corpAdmin/resetpwd?userCode='+row.userCode+'" class="btn btn-default btn-xs btnList" title="${text("用户密码重置")}" data-confirm="${text("确认要将该用户密码重置到初始状态吗?")}"><i class="fa fa-reply-all"></i> ${text("重置密码")}</a> ');
|
actions.push('<a href="${ctx}/sys/corpAdmin/resetpwd?userCode='+row.userCode+'" class="btn btn-default btn-xs btnList" title="${text("用户密码重置")}" data-confirm="${text("确认要将该用户密码重置到初始状态吗?")}"><i class="fa fa-reply-all"></i> ${text("重置密码")}</a> ');
|
||||||
actions.push('</div>');
|
actions.push('</div>');
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ $("#empOfficeGrid").dataGrid({
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
<% if(hasPermi('sys:empUser:authRole') && (op == 'add' || op == 'auth')) { %>
|
//<% if(hasPermi('sys:empUser:authRole') && (op == 'add' || op == 'auth')) { %>
|
||||||
// 加载角色列表
|
// 加载角色列表
|
||||||
var roleGrid = $("#roleGrid").dataGrid({
|
var roleGrid = $("#roleGrid").dataGrid({
|
||||||
url: '${ctx}/sys/role/treeData',
|
url: '${ctx}/sys/role/treeData',
|
||||||
@@ -287,17 +287,17 @@ var roleGrid = $("#roleGrid").dataGrid({
|
|||||||
return $('#inputForm .box-body').width()-20;
|
return $('#inputForm .box-body').width()-20;
|
||||||
},
|
},
|
||||||
ajaxSuccess: function(){
|
ajaxSuccess: function(){
|
||||||
<% for (role in roleList!){ %>
|
//<% for (role in roleList!){ %>
|
||||||
roleGrid.dataGrid('setSelectRow', '${role.roleCode}');
|
roleGrid.dataGrid('setSelectRow', '${role.roleCode}');
|
||||||
<% } %>
|
//<% } %>
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
<% } %>
|
//<% } %>
|
||||||
$("#inputForm").validate({
|
$("#inputForm").validate({
|
||||||
submitHandler: function(form){
|
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(','));
|
$("#userRoleString").val(roleGrid.dataGrid('getSelectRows').join(','));
|
||||||
<% } %>
|
//<% } %>
|
||||||
var empNo = $('#employee_empNo').val();
|
var empNo = $('#employee_empNo').val();
|
||||||
if (empNo == ''){
|
if (empNo == ''){
|
||||||
$('#employee_empNo').val($('#loginCode').val());
|
$('#employee_empNo').val($('#loginCode').val());
|
||||||
|
|||||||
@@ -167,8 +167,8 @@ for (var i=0; i<dataScopes.length; i++){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
// 默认选择节点
|
// 默认选择节点
|
||||||
<% for(dataScope in userDataScopeList){ %>
|
//<% for(dataScope in userDataScopeList){ %>
|
||||||
try{dataScopeTrees['${dataScope.ctrlType}'].checkNode(dataScopeTrees['${dataScope.ctrlType}']
|
try{dataScopeTrees['${dataScope.ctrlType}'].checkNode(dataScopeTrees['${dataScope.ctrlType}']
|
||||||
.getNodeByParam("id","${dataScope.ctrlData}"), true, false);}catch(e){}
|
.getNodeByParam("id","${dataScope.ctrlData}"), true, false);}catch(e){}
|
||||||
<% } %>
|
//<% } %>
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -139,33 +139,33 @@ $('#dataGrid').dataGrid({
|
|||||||
}},
|
}},
|
||||||
{header:'${text("操作")}', name:'actions', width:120, formatter: function(val, obj, row, act){
|
{header:'${text("操作")}', name:'actions', width:120, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('sys:empUser:edit')){ %>
|
//<% if(hasPermi('sys:empUser:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/sys/empUser/form?userCode='+row.userCode+'&op=edit" class="btnList" title="${text("编辑用户")}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/sys/empUser/form?userCode='+row.userCode+'&op=edit" class="btnList" title="${text("编辑用户")}"><i class="fa fa-pencil"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
<% if(hasPermi('sys:empUser:updateStatus')){ %>
|
//<% if(hasPermi('sys:empUser:updateStatus')){ %>
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/sys/empUser/disable?userCode='+row.userCode+'" class="btnList" title="${text("停用用户")}" data-confirm="${text("确认要停用该用户吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/sys/empUser/disable?userCode='+row.userCode+'" class="btnList" title="${text("停用用户")}" data-confirm="${text("确认要停用该用户吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
}else if (row.status == Global.STATUS_DISABLE || row.status == Global.STATUS_FREEZE || row.status == Global.STATUS_AUDIT){
|
}else if (row.status == Global.STATUS_DISABLE || row.status == Global.STATUS_FREEZE || row.status == Global.STATUS_AUDIT){
|
||||||
actions.push('<a href="${ctx}/sys/empUser/enable?userCode='+row.userCode+'" class="btnList" title="${text("启用用户")}" data-confirm="${text("确认要启用该用户吗?")}"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
actions.push('<a href="${ctx}/sys/empUser/enable?userCode='+row.userCode+'" class="btnList" title="${text("启用用户")}" data-confirm="${text("确认要启用该用户吗?")}"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
||||||
}
|
}
|
||||||
<% } %>
|
//<% } %>
|
||||||
<% if(hasPermi('sys:empUser:edit')){ %>
|
//<% if(hasPermi('sys:empUser:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/sys/empUser/delete?userCode='+row.userCode+'" class="btnList" title="${text("删除用户")}" data-confirm="${text("确认要删除该用户吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/sys/empUser/delete?userCode='+row.userCode+'" class="btnList" title="${text("删除用户")}" data-confirm="${text("确认要删除该用户吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
<% if(hasPermi('sys:empUser:authRole,sys:empUser:authDataScope,sys:empUser:resetpwd', 'or')){ %>
|
//<% if(hasPermi('sys:empUser:authRole,sys:empUser:authDataScope,sys:empUser:resetpwd', 'or')){ %>
|
||||||
actions.push('<a href="javascript:" class="btnMore" title="${text("更多操作")}"><i class="fa fa-chevron-circle-right"></i></a> ');
|
actions.push('<a href="javascript:" class="btnMore" title="${text("更多操作")}"><i class="fa fa-chevron-circle-right"></i></a> ');
|
||||||
actions.push('<div class="moreItems">');
|
actions.push('<div class="moreItems">');
|
||||||
<% if(hasPermi('sys:empUser:authRole')){ %>
|
//<% if(hasPermi('sys:empUser:authRole')){ %>
|
||||||
actions.push('<a href="${ctx}/sys/empUser/form?userCode='+row.userCode+'&op=auth" class="btn btn-default btn-xs btnList" title="${text("用户分配角色")}"><i class="fa fa-check-square-o"></i> ${text("分配角色")}</a> ');
|
actions.push('<a href="${ctx}/sys/empUser/form?userCode='+row.userCode+'&op=auth" class="btn btn-default btn-xs btnList" title="${text("用户分配角色")}"><i class="fa fa-check-square-o"></i> ${text("分配角色")}</a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
<% if(hasPermi('sys:empUser:authDataScope')){ %>
|
//<% if(hasPermi('sys:empUser:authDataScope')){ %>
|
||||||
actions.push('<a href="${ctx}/sys/empUser/formAuthDataScope?userCode='+row.userCode+'" class="btn btn-default btn-xs btnList" title="${text("用户分配数据权限")}"><i class="fa fa-check-circle-o"></i> ${text("数据权限")}</a> ');
|
actions.push('<a href="${ctx}/sys/empUser/formAuthDataScope?userCode='+row.userCode+'" class="btn btn-default btn-xs btnList" title="${text("用户分配数据权限")}"><i class="fa fa-check-circle-o"></i> ${text("数据权限")}</a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
<% if(hasPermi('sys:empUser:resetpwd')){ %>
|
//<% if(hasPermi('sys:empUser:resetpwd')){ %>
|
||||||
actions.push('<a href="${ctx}/sys/empUser/resetpwd?userCode='+row.userCode+'" class="btn btn-default btn-xs btnList" title="${text("用户密码重置")}" data-confirm="${text("确认要将该用户密码重置到初始状态吗?")}"><i class="fa fa-reply-all"></i> ${text("重置密码")}</a> ');
|
actions.push('<a href="${ctx}/sys/empUser/resetpwd?userCode='+row.userCode+'" class="btn btn-default btn-xs btnList" title="${text("用户密码重置")}" data-confirm="${text("确认要将该用户密码重置到初始状态吗?")}"><i class="fa fa-reply-all"></i> ${text("重置密码")}</a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
actions.push('</div>');
|
actions.push('</div>');
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -130,9 +130,9 @@ var setting = {view:{selectedMulti:false},data:{simpleData:{enable:true}},
|
|||||||
if (queryType == 'userType'){
|
if (queryType == 'userType'){
|
||||||
$('#queryTypeName').text('${text("按用户类型")}');
|
$('#queryTypeName').text('${text("按用户类型")}');
|
||||||
tree = $.fn.zTree.init($("#tree"), setting, [
|
tree = $.fn.zTree.init($("#tree"), setting, [
|
||||||
<% for(dict in @DictUtils.getDictList('sys_user_type')){ %>
|
//<% for(dict in @DictUtils.getDictList('sys_user_type')){ %>
|
||||||
{id: '${dict.dictValue}', name: '${text(dict.dictLabel + "类型")}'},
|
{id: '${dict.dictValue}', name: '${text(dict.dictLabel + "类型")}'},
|
||||||
<% } %>
|
//<% } %>
|
||||||
{id: 'none', name: '${text("系统管理员")}'}
|
{id: 'none', name: '${text("系统管理员")}'}
|
||||||
]);
|
]);
|
||||||
tree.expandAll(true);
|
tree.expandAll(true);
|
||||||
|
|||||||
@@ -167,8 +167,8 @@ for (var i=0; i<dataScopes.length; i++){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
// 默认选择节点
|
// 默认选择节点
|
||||||
<% for(dataScope in userDataScopeList){ %>
|
//<% for(dataScope in userDataScopeList){ %>
|
||||||
try{dataScopeTrees['${dataScope.ctrlType}'].checkNode(dataScopeTrees['${dataScope.ctrlType}']
|
try{dataScopeTrees['${dataScope.ctrlType}'].checkNode(dataScopeTrees['${dataScope.ctrlType}']
|
||||||
.getNodeByParam("id","${dataScope.ctrlData}"), true, false);}catch(e){}
|
.getNodeByParam("id","${dataScope.ctrlData}"), true, false);}catch(e){}
|
||||||
<% } %>
|
//<% } %>
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -91,10 +91,10 @@ $('#dataGrid').dataGrid({
|
|||||||
}},
|
}},
|
||||||
{header:'${text("操作")}', name:'actions', width:150, formatter: function(val, obj, row, act){
|
{header:'${text("操作")}', name:'actions', width:150, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('sys:secAdmin:edit')){ %>
|
//<% if(hasPermi('sys:secAdmin:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/sys/secAdmin/form?userCode='+row.userCode+'" class="btnList" title="${text("管理数据权限")}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/sys/secAdmin/form?userCode='+row.userCode+'" class="btnList" title="${text("管理数据权限")}"><i class="fa fa-pencil"></i></a> ');
|
||||||
actions.push('<a href="${ctx}/sys/secAdmin/delete?userCode='+row.userCode+'" class="btnList" title="${text("取消二级管理员身份")}" data-confirm="${text("确认要取消该用户的二级管理员身份吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/sys/secAdmin/delete?userCode='+row.userCode+'" class="btnList" title="${text("取消二级管理员身份")}" data-confirm="${text("确认要取消该用户的二级管理员身份吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -71,11 +71,11 @@ selectNum = 0, dataGrid = $('#dataGrid').dataGrid({
|
|||||||
{header:'${text("状态")}', name:'status', index:'a.status', width:100, align:"center", formatter: function(val, obj, row, act){
|
{header:'${text("状态")}', name:'status', index:'a.status', width:100, align:"center", formatter: function(val, obj, row, act){
|
||||||
return js.getDictLabel(${@DictUtils.getDictListJson('sys_status')}, val, '未知', true);
|
return js.getDictLabel(${@DictUtils.getDictListJson('sys_status')}, val, '未知', true);
|
||||||
}},
|
}},
|
||||||
<% if(isBlank(user.userType)){ %>
|
//<% if(isBlank(user.userType)){ %>
|
||||||
{header:'${text("类型")}', name:'userType', index:'a.user_type', width:100, align:"center", formatter: function(val, obj, row, act){
|
{header:'${text("类型")}', name:'userType', index:'a.user_type', width:100, align:"center", formatter: function(val, obj, row, act){
|
||||||
return js.getDictLabel(${@DictUtils.getDictListJson('sys_user_type')}, val, '无', true);
|
return js.getDictLabel(${@DictUtils.getDictListJson('sys_user_type')}, val, '无', true);
|
||||||
}},
|
}},
|
||||||
<% } %>
|
//<% } %>
|
||||||
{header:'行数据', name:'rowData', hidden:true, formatter: function(val, obj, row, act){
|
{header:'行数据', name:'rowData', hidden:true, formatter: function(val, obj, row, act){
|
||||||
return JSON.stringify(row);
|
return JSON.stringify(row);
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ $('#dataGrid').dataGrid({
|
|||||||
{header:'备注信息', name:'remarks', index:'a.remarks', width:150, align:"left"},
|
{header:'备注信息', name:'remarks', index:'a.remarks', width:150, align:"left"},
|
||||||
{header:'操作', name:'actions', width:120, formatter: function(val, obj, row, act){
|
{header:'操作', name:'actions', width:120, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('test:testData:edit')){ %>
|
//<% if(hasPermi('test:testData:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/test/testData/form?id='+row.id+'" class="btnList" title="编辑数据"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/form?id='+row.id+'" class="btnList" title="编辑数据"><i class="fa fa-pencil"></i></a> ');
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/test/testData/disable?id='+row.id+'" class="btnList" title="停用数据" data-confirm="确认要停用该数据吗?"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/disable?id='+row.id+'" class="btnList" title="停用数据" data-confirm="确认要停用该数据吗?"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
@@ -170,7 +170,7 @@ $('#dataGrid').dataGrid({
|
|||||||
actions.push('<a href="${ctx}/test/testData/enable?id='+row.id+'" class="btnList" title="启用数据" data-confirm="确认要启用该数据吗?"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/enable?id='+row.id+'" class="btnList" title="启用数据" data-confirm="确认要启用该数据吗?"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
||||||
}
|
}
|
||||||
actions.push('<a href="${ctx}/test/testData/delete?id='+row.id+'" class="btnList" title="删除数据" data-confirm="确认要删除该数据吗?"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/delete?id='+row.id+'" class="btnList" title="删除数据" data-confirm="确认要删除该数据吗?"><i class="fa fa-trash-o"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ $('#dataGrid').dataGrid({
|
|||||||
{header:'${text("备注")}', name:'remarks', index:'a.remarks', width:150, align:"left"},
|
{header:'${text("备注")}', name:'remarks', index:'a.remarks', width:150, align:"left"},
|
||||||
{header:'${text("操作")}', name:'actions', width:100, formatter: function(val, obj, row, act){
|
{header:'${text("操作")}', name:'actions', width:100, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('test:testData:edit')){ %>
|
//<% if(hasPermi('test:testData:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/test/testData/form?id='+row.id+'" class="btnList" title="${text("编辑数据")}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/form?id='+row.id+'" class="btnList" title="${text("编辑数据")}"><i class="fa fa-pencil"></i></a> ');
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/test/testData/disable?id='+row.id+'" class="btnList" title="${text("停用数据")}" data-confirm="${text("确认要停用该数据吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/disable?id='+row.id+'" class="btnList" title="${text("停用数据")}" data-confirm="${text("确认要停用该数据吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
@@ -161,7 +161,7 @@ $('#dataGrid').dataGrid({
|
|||||||
actions.push('<a href="${ctx}/test/testData/enable?id='+row.id+'" class="btnList" title="${text("启用数据")}" data-confirm="${text("确认要启用该数据吗?")}"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/enable?id='+row.id+'" class="btnList" title="${text("启用数据")}" data-confirm="${text("确认要启用该数据吗?")}"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
||||||
}
|
}
|
||||||
actions.push('<a href="${ctx}/test/testData/delete?id='+row.id+'" class="btnList" title="${text("删除数据")}" data-confirm="${text("确认要删除该数据吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/delete?id='+row.id+'" class="btnList" title="${text("删除数据")}" data-confirm="${text("确认要删除该数据吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ $('#dataGrid').dataGrid({
|
|||||||
{header:'备注信息', name:'remarks', index:'a.remarks', width:150, align:"left"},
|
{header:'备注信息', name:'remarks', index:'a.remarks', width:150, align:"left"},
|
||||||
{header:'操作', name:'actions', width:120, formatter: function(val, obj, row, act){
|
{header:'操作', name:'actions', width:120, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('test:testData:edit')){ %>
|
//<% if(hasPermi('test:testData:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/test/testData/form?id='+row.id+'" class="btnList" title="编辑数据"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/form?id='+row.id+'" class="btnList" title="编辑数据"><i class="fa fa-pencil"></i></a> ');
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/test/testData/disable?id='+row.id+'" class="btnList" title="停用数据" data-confirm="确认要停用该数据吗?"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/disable?id='+row.id+'" class="btnList" title="停用数据" data-confirm="确认要停用该数据吗?"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
@@ -170,7 +170,7 @@ $('#dataGrid').dataGrid({
|
|||||||
actions.push('<a href="${ctx}/test/testData/enable?id='+row.id+'" class="btnList" title="启用数据" data-confirm="确认要启用该数据吗?"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/enable?id='+row.id+'" class="btnList" title="启用数据" data-confirm="确认要启用该数据吗?"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
||||||
}
|
}
|
||||||
actions.push('<a href="${ctx}/test/testData/delete?id='+row.id+'" class="btnList" title="删除数据" data-confirm="确认要删除该数据吗?"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/delete?id='+row.id+'" class="btnList" title="删除数据" data-confirm="确认要删除该数据吗?"><i class="fa fa-trash-o"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ $('#dataGrid').dataGrid({
|
|||||||
{header:'${text("备注")}', name:'remarks', index:'a.remarks', width:150, align:"left"},
|
{header:'${text("备注")}', name:'remarks', index:'a.remarks', width:150, align:"left"},
|
||||||
{header:'${text("操作")}', name:'actions', width:100, formatter: function(val, obj, row, act){
|
{header:'${text("操作")}', name:'actions', width:100, formatter: function(val, obj, row, act){
|
||||||
var actions = [];
|
var actions = [];
|
||||||
<% if(hasPermi('test:testData:edit')){ %>
|
//<% if(hasPermi('test:testData:edit')){ %>
|
||||||
actions.push('<a href="${ctx}/test/testData/form?id='+row.id+'" class="btnList" title="${text("编辑数据")}"><i class="fa fa-pencil"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/form?id='+row.id+'" class="btnList" title="${text("编辑数据")}"><i class="fa fa-pencil"></i></a> ');
|
||||||
if (row.status == Global.STATUS_NORMAL){
|
if (row.status == Global.STATUS_NORMAL){
|
||||||
actions.push('<a href="${ctx}/test/testData/disable?id='+row.id+'" class="btnList" title="${text("停用数据")}" data-confirm="${text("确认要停用该数据吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/disable?id='+row.id+'" class="btnList" title="${text("停用数据")}" data-confirm="${text("确认要停用该数据吗?")}"><i class="glyphicon glyphicon-ban-circle"></i></a> ');
|
||||||
@@ -161,7 +161,7 @@ $('#dataGrid').dataGrid({
|
|||||||
actions.push('<a href="${ctx}/test/testData/enable?id='+row.id+'" class="btnList" title="${text("启用数据")}" data-confirm="${text("确认要启用该数据吗?")}"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/enable?id='+row.id+'" class="btnList" title="${text("启用数据")}" data-confirm="${text("确认要启用该数据吗?")}"><i class="glyphicon glyphicon-ok-circle"></i></a> ');
|
||||||
}
|
}
|
||||||
actions.push('<a href="${ctx}/test/testData/delete?id='+row.id+'" class="btnList" title="${text("删除数据")}" data-confirm="${text("确认要删除该数据吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
actions.push('<a href="${ctx}/test/testData/delete?id='+row.id+'" class="btnList" title="${text("删除数据")}" data-confirm="${text("确认要删除该数据吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
||||||
<% } %>
|
//<% } %>
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}}
|
}}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user