|
|
@ -5,18 +5,18 @@ content="no-cache, no-store, must-revalidate"/><meta name="description" content=
|
|
|
|
content="no-cache" http-equiv="Pragma"/><meta http-equiv="Expires" content="0"/><meta
|
|
|
|
content="no-cache" http-equiv="Pragma"/><meta http-equiv="Expires" content="0"/><meta
|
|
|
|
content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
|
|
|
|
content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
|
|
|
|
<title>用户管理 - JeeSite Demo</title>
|
|
|
|
<title>用户管理 - JeeSite Demo</title>
|
|
|
|
<script src="/global.min.js?ctx=/js/a"></script>
|
|
|
|
<script th:src="${setting.domain + 'global.min.js'}"></script>
|
|
|
|
<script src="http://localhost/jquery/jquery-1.12.4.min.js"></script>
|
|
|
|
<script th:src="${setting.domain + 'jquery/jquery-1.12.4.min.js'}"></script>
|
|
|
|
<script src="http://localhost/jquery/jquery-migrate-1.4.1.min.js"></script>
|
|
|
|
<script th:src="${setting.domain + 'jquery/jquery-migrate-1.4.1.min.js'}"></script>
|
|
|
|
<!--[if lt IE 9]><script src="http://localhost/common/h5fix.min.js"></script><![endif]-->
|
|
|
|
<!--[if lt IE 9]><script src="/js/static/common/h5fix.min.js"></script><![endif]-->
|
|
|
|
<link rel="stylesheet" href="http://localhost/fonts/font-icons.min.css">
|
|
|
|
<link rel="stylesheet" th:href="${setting.domain + 'fonts/font-icons.min.css'}">
|
|
|
|
<link rel="stylesheet" href="http://localhost/bootstrap/css/bootstrap.min.css">
|
|
|
|
<link rel="stylesheet" th:href="${setting.domain + 'bootstrap/css/bootstrap.min.css'}">
|
|
|
|
<link rel="stylesheet" href="http://localhost/select2/4.0/select2.css?V4.0-07201614">
|
|
|
|
<link rel="stylesheet" th:href="${setting.domain + 'select2/4.0/select2.css'}">
|
|
|
|
<link rel="stylesheet" href="http://localhost/icheck/1.0/minimal/grey.css?V4.0-07201614">
|
|
|
|
<link rel="stylesheet" th:href="${setting.domain + 'icheck/1.0/minimal/grey.css'}">
|
|
|
|
<link rel="stylesheet" href="http://localhost/jqGrid/4.7/css/ui.jqgrid.css?V4.0-07201614">
|
|
|
|
<link rel="stylesheet" th:href="${setting.domain + 'jqGrid/4.7/css/ui.jqgrid.css'}">
|
|
|
|
<link rel="stylesheet" href="http://localhost/adminlte/css/AdminLTE.min.css?V4.0-07201614">
|
|
|
|
<link rel="stylesheet" th:href="${setting.domain + 'adminlte/css/AdminLTE.min.css'}">
|
|
|
|
<link rel="stylesheet" href="http://localhost/common/jeesite.css?V4.0-07201614">
|
|
|
|
<link rel="stylesheet" th:href="${setting.domain + 'common/jeesite.css'}">
|
|
|
|
<link rel="stylesheet" href="http://localhost/common/common.css?V4.0-07201614">
|
|
|
|
<link rel="stylesheet" th:href="${setting.domain + 'common/common.css'}">
|
|
|
|
</head><body class="hold-transition ">
|
|
|
|
</head><body class="hold-transition ">
|
|
|
|
<div class="wrapper"><div class="main-content">
|
|
|
|
<div class="wrapper"><div class="main-content">
|
|
|
|
<div class="box box-main">
|
|
|
|
<div class="box box-main">
|
|
|
@ -26,7 +26,7 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box-tools pull-right">
|
|
|
|
<div class="box-tools pull-right">
|
|
|
|
<a href="#" class="btn btn-default" id="btnSearch" title="查询"><i class="fa fa-filter"></i> 查询</a>
|
|
|
|
<a href="#" class="btn btn-default" id="btnSearch" title="查询"><i class="fa fa-filter"></i> 查询</a>
|
|
|
|
<a href="/js/a/sys/empUser/form?op=add" class="btn btn-default btnTool" title="新增用户"><i class="fa fa-plus"></i> 新增</a>
|
|
|
|
<a href="/js/a/sys/empUser/form?op=add" class="btn btn-default btnTool" title="新增用户"><i class="fa fa-plus"></i> 新增</a>
|
|
|
|
<div class="btn-group">
|
|
|
|
<div class="btn-group">
|
|
|
|
<a href="javascript:" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<a href="javascript:" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<i class="fa fa-navicon"></i> <span class="caret"></span>
|
|
|
|
<i class="fa fa-navicon"></i> <span class="caret"></span>
|
|
|
@ -43,13 +43,13 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label">账号:</label>
|
|
|
|
<label class="control-label">账号:</label>
|
|
|
|
<div class="control-inline">
|
|
|
|
<div class="control-inline">
|
|
|
|
<input type="text" id="userName" name="userName" value="" maxlength="100" class="form-control width-90"/>
|
|
|
|
<input type="text" id="loginCode" name="loginCode" value="" maxlength="100" class="form-control width-90"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label">昵称:</label>
|
|
|
|
<label class="control-label">昵称:</label>
|
|
|
|
<div class="control-inline">
|
|
|
|
<div class="control-inline">
|
|
|
|
<input type="text" id="nickName" name="nickName" value="" maxlength="100" class="form-control width-90"/>
|
|
|
|
<input type="text" id="userName" name="userName" value="" maxlength="100" class="form-control width-90"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
@ -64,23 +64,116 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
|
|
|
|
<input type="text" id="mobile" name="mobile" value="" maxlength="100" class="form-control width-90"/>
|
|
|
|
<input type="text" id="mobile" name="mobile" value="" maxlength="100" class="form-control width-90"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
|
|
<label class="control-label">电话:</label>
|
|
|
|
|
|
|
|
<div class="control-inline">
|
|
|
|
|
|
|
|
<input type="text" id="phone" name="phone" value="" maxlength="100" class="form-control width-90"/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="form-row"></div>
|
|
|
|
<div class="form-row"></div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label">姓名:</label>
|
|
|
|
<label class="control-label">姓名:</label>
|
|
|
|
<div class="control-inline">
|
|
|
|
<div class="control-inline">
|
|
|
|
<input type="text" id="name" name="name" value="" maxlength="100" class="form-control width-90"/>
|
|
|
|
<input type="text" id="refName" name="refName" value="" maxlength="100" class="form-control width-90"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
|
|
<label class="control-label">机构:</label>
|
|
|
|
|
|
|
|
<div class="control-inline width-90">
|
|
|
|
|
|
|
|
<div class="input-group treeselect" id="officeDiv" data-url="sys/office/treeData">
|
|
|
|
|
|
|
|
<input id="officeCode" type="hidden" name="employee.office.officeCode" value="" class="isReset"/>
|
|
|
|
|
|
|
|
<input id="officeName" type="text" name="employee.office.officeName" value=""
|
|
|
|
|
|
|
|
class="form-control " readonly="readonly"
|
|
|
|
|
|
|
|
/><span class="input-group-btn"><a id="officeButton" href="javascript:"
|
|
|
|
|
|
|
|
class="btn btn-default btn-sm"><i class="fa fa-search"></i></a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
$("#officeButton,#officeName").click(function(){
|
|
|
|
|
|
|
|
if ($("#officeButton").hasClass("disabled")){
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var options = {
|
|
|
|
|
|
|
|
type: 2,
|
|
|
|
|
|
|
|
maxmin: true,
|
|
|
|
|
|
|
|
shadeClose: true,
|
|
|
|
|
|
|
|
title: '机构选择',
|
|
|
|
|
|
|
|
area: ['300px', '400px'],
|
|
|
|
|
|
|
|
content: 'sys/treeselect',
|
|
|
|
|
|
|
|
contentFormData: {
|
|
|
|
|
|
|
|
url: $('#officeDiv').attr('data-url'),
|
|
|
|
|
|
|
|
checkbox: 'false',
|
|
|
|
|
|
|
|
expandLevel: '-1',
|
|
|
|
|
|
|
|
selectCodes: $("#officeCode").val(),
|
|
|
|
|
|
|
|
isReturnValue: 'false'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
success: function(layero, index){
|
|
|
|
|
|
|
|
if ($(js.layer.window).width() < 300
|
|
|
|
|
|
|
|
|| $(js.layer.window).height() < 400){
|
|
|
|
|
|
|
|
js.layer.full(index);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
btn: ['<i class="fa fa-check"></i> 确定'],
|
|
|
|
|
|
|
|
btn1: function(index, layero){
|
|
|
|
|
|
|
|
var win = js.layer.iframeWindow(index);
|
|
|
|
|
|
|
|
win.$('#keyword').val('').change(); var codes = [], names = [], nodes;
|
|
|
|
|
|
|
|
if ("false" == "true"){
|
|
|
|
|
|
|
|
nodes = win.tree.getCheckedNodes(true);
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
nodes = win.tree.getSelectedNodes();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
for(var i=0; i<nodes.length; i++) {
|
|
|
|
|
|
|
|
if (nodes[i].level == 0 && nodes[i].isParent){
|
|
|
|
|
|
|
|
js.showMessage("不能选择根节点("+nodes[i].name+")请重新选择。");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var code = nodes[i]['false'=='true'?'value':'id'], name = nodes[i]['name'];
|
|
|
|
|
|
|
|
codes.push(code.replace(/^u_/g,''));
|
|
|
|
|
|
|
|
names.push(name.replace(/\([0-9]*\)/g,''));
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(typeof treeselectCheck == 'function'){
|
|
|
|
|
|
|
|
if (!treeselectCheck('office', nodes)){
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$("#officeCode").val(codes.join(',')).change();
|
|
|
|
|
|
|
|
$("#officeName").val(names.join(',')).change();
|
|
|
|
|
|
|
|
try { $('#officeCode,#officeName').valid(); }catch(e){}
|
|
|
|
|
|
|
|
if(typeof treeselectCallback == 'function'){
|
|
|
|
|
|
|
|
treeselectCallback('office', 'ok', index, layero, nodes);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
options.btn.push('<i class="fa fa-eraser"></i> 清除');
|
|
|
|
|
|
|
|
options['btn'+options.btn.length] = function(index, layero){
|
|
|
|
|
|
|
|
$("#officeCode").val('').change();
|
|
|
|
|
|
|
|
$("#officeName").val('').change();
|
|
|
|
|
|
|
|
if(typeof treeselectCallback == 'function'){
|
|
|
|
|
|
|
|
treeselectCallback('office', 'clear', index, layero);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
options.btn.push('<i class="fa fa-close"></i> 关闭');
|
|
|
|
|
|
|
|
options['btn'+options.btn.length] = function(index, layero){
|
|
|
|
|
|
|
|
if(typeof treeselectCallback == 'function'){
|
|
|
|
|
|
|
|
treeselectCallback('office', 'cancel', index, layero);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
js.layer.open(options);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script> </div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label">公司:</label>
|
|
|
|
<label class="control-label">公司:</label>
|
|
|
|
<div class="control-inline width-90">
|
|
|
|
<div class="control-inline width-90">
|
|
|
|
<div class="input-group treeselect" id="companyDiv" data-url="sys/company/treeData?">
|
|
|
|
<div class="input-group treeselect" id="companyDiv" data-url="sys/company/treeData">
|
|
|
|
<input id="companyCode" type="hidden" name="companyCode" value="" class="isReset"/>
|
|
|
|
<input id="companyCode" type="hidden" name="employee.company.companyCode" value="" class="isReset"/>
|
|
|
|
<input id="companyName" type="text" name="companyName" value="" class="form-control" readonly="readonly"/>
|
|
|
|
<input id="companyName" type="text" name="employee.company.companyName" value=""
|
|
|
|
<span class="input-group-btn">
|
|
|
|
class="form-control " readonly="readonly"
|
|
|
|
<a id="companyButton" href="javascript:" class="btn btn-default btn-sm"><i class="fa fa-search"></i></a>
|
|
|
|
/><span class="input-group-btn"><a id="companyButton" href="javascript:"
|
|
|
|
</span>
|
|
|
|
class="btn btn-default btn-sm"><i class="fa fa-search"></i></a>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
$("#companyButton,#companyName").click(function(){
|
|
|
|
$("#companyButton,#companyName").click(function(){
|
|
|
|
if ($("#companyButton").hasClass("disabled")){
|
|
|
|
if ($("#companyButton").hasClass("disabled")){
|
|
|
@ -92,7 +185,7 @@ $("#companyButton,#companyName").click(function(){
|
|
|
|
shadeClose: true,
|
|
|
|
shadeClose: true,
|
|
|
|
title: '公司选择',
|
|
|
|
title: '公司选择',
|
|
|
|
area: ['300px', '400px'],
|
|
|
|
area: ['300px', '400px'],
|
|
|
|
content: ctx + 'sys/treeselect',
|
|
|
|
content: '/js/tags/treeselect',
|
|
|
|
contentFormData: {
|
|
|
|
contentFormData: {
|
|
|
|
url: $('#companyDiv').attr('data-url'),
|
|
|
|
url: $('#companyDiv').attr('data-url'),
|
|
|
|
checkbox: 'false',
|
|
|
|
checkbox: 'false',
|
|
|
@ -120,7 +213,7 @@ $("#companyButton,#companyName").click(function(){
|
|
|
|
js.showMessage("不能选择根节点("+nodes[i].name+")请重新选择。");
|
|
|
|
js.showMessage("不能选择根节点("+nodes[i].name+")请重新选择。");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var code = nodes[i]['id'], name = nodes[i]['name'];
|
|
|
|
var code = nodes[i]['false'=='true'?'value':'id'], name = nodes[i]['name'];
|
|
|
|
codes.push(code.replace(/^u_/g,''));
|
|
|
|
codes.push(code.replace(/^u_/g,''));
|
|
|
|
names.push(name.replace(/\([0-9]*\)/g,''));
|
|
|
|
names.push(name.replace(/\([0-9]*\)/g,''));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -168,7 +261,7 @@ $("#companyButton,#companyName").click(function(){
|
|
|
|
<div class="control-inline width-90">
|
|
|
|
<div class="control-inline width-90">
|
|
|
|
|
|
|
|
|
|
|
|
<select id="status" name="status" class="form-control">
|
|
|
|
<select id="status" name="status" class="form-control">
|
|
|
|
<option value=""> </option><option value="normal">正常</option><option value="disabled">停用</option><option value="locked">锁定</option></select> </div>
|
|
|
|
<option value=""> </option><option value="0">正常</option><option value="2">停用</option><option value="3">冻结</option></select> </div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<button type="submit" class="btn btn-primary btn-sm">查询</button>
|
|
|
|
<button type="submit" class="btn btn-primary btn-sm">查询</button>
|
|
|
@ -183,41 +276,35 @@ $("#companyButton,#companyName").click(function(){
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<a id="scroll-up" href="#" class="btn btn-sm"><i class="fa fa-angle-double-up"></i></a>
|
|
|
|
<a id="scroll-up" href="#" class="btn btn-sm"><i class="fa fa-angle-double-up"></i></a>
|
|
|
|
<script src="http://localhost/bootstrap/js/bootstrap.min.js"></script>
|
|
|
|
<script th:src="${setting.domain + 'bootstrap/js/bootstrap.min.js'}"></script>
|
|
|
|
<script src="http://localhost/select2/4.0/select2.js?V4.0-07201614"></script>
|
|
|
|
<script th:src="${setting.domain + 'select2/4.0/select2.js'}"></script>
|
|
|
|
<script src="http://localhost/select2/4.0/i18n/zh_CN.js?V4.0-07201614"></script>
|
|
|
|
<script th:src="${setting.domain + 'select2/4.0/i18n/zh_CN.js'}"></script>
|
|
|
|
<script src="http://localhost/layer/3.1/layer.js?V4.0-07201614"></script>
|
|
|
|
<script th:src="${setting.domain + 'layer/3.1/layer.js'}"></script>
|
|
|
|
<script src="http://localhost/my97/WdatePicker.js?V4.0-07201614"></script>
|
|
|
|
<script th:src="${setting.domain + 'my97/WdatePicker.js'}"></script>
|
|
|
|
<script src="http://localhost/jqGrid/4.7/js/jquery.jqGrid.js?V4.0-07201614"></script>
|
|
|
|
<script th:src="${setting.domain + 'jqGrid/4.7/js/jquery.jqGrid.js'}"></script>
|
|
|
|
<script src="http://localhost/jqGrid/4.7/js/jquery.jqGrid.extend.js?V4.0-07201614"></script>
|
|
|
|
<script th:src="${setting.domain + 'jqGrid/4.7/js/jquery.jqGrid.extend.js'}"></script>
|
|
|
|
<script src="http://localhost/jqGrid/4.7/js/i18n/zh_CN.js?V4.0-07201614"></script>
|
|
|
|
<script th:src="${setting.domain + 'jqGrid/4.7/js/i18n/zh_CN.js'}"></script>
|
|
|
|
<script src="http://localhost/common/jeesite.js?V4.0-07201614"></script>
|
|
|
|
<script th:src="${setting.domain + 'common/jeesite.js'}"></script>
|
|
|
|
<script src="http://localhost/common/i18n/jeesite_zh_CN.js?V4.0-07201614"></script>
|
|
|
|
<script th:src="${setting.domain + 'common/i18n/jeesite_zh_CN.js'}"></script>
|
|
|
|
<script src="http://localhost/common/common.js?V4.0-07201614"></script>
|
|
|
|
<script th:src="${setting.domain + 'common/common.js'}"></script>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
// 初始化DataGrid对象
|
|
|
|
// 初始化DataGrid对象
|
|
|
|
$('#dataGrid').dataGrid({
|
|
|
|
$('#dataGrid').dataGrid({
|
|
|
|
searchForm: $("#searchForm"),
|
|
|
|
searchForm: $("#searchForm"),
|
|
|
|
columnModel: [
|
|
|
|
columnModel: [
|
|
|
|
{header:'登录账号', name:'userName', index:'a.login_code', width:300, align:"center", frozen:true, formatter: function(val, obj, row, act){
|
|
|
|
{header:'登录账号', name:'loginCode', index:'a.login_code', width:200, align:"center", frozen:true, formatter: function(val, obj, row, act){
|
|
|
|
return '<a href="/js/a/sys/empUser/form?userCode='+row.userCode+'&op=edit" class="btnList" data-title="编辑用户">'+(val||row.id)+'</a>';
|
|
|
|
return '<a href="/js/a/sys/empUser/form?userCode='+row.userCode+'&op=edit" class="btnList" data-title="编辑用户">'+(val||row.id)+'</a>';
|
|
|
|
}},
|
|
|
|
}},
|
|
|
|
{header:'用户昵称', name:'nickName', index:'a.user_name', width:200, align:"center"},
|
|
|
|
{header:'用户昵称', name:'userName', index:'a.user_name', width:200, align:"center"},
|
|
|
|
{header:'员工姓名', name:'name', index:'a.ref_name', width:200, align:"center"},
|
|
|
|
{header:'员工姓名', name:'refName', index:'a.ref_name', width:200, align:"center"},
|
|
|
|
{header:'归属公司', name:'companyName', index:'c.company_name', width:200, align:"center"},
|
|
|
|
{header:'归属机构', name:'employee.office.officeName', index:'o.office_name', width:200, align:"center"},
|
|
|
|
|
|
|
|
{header:'归属公司', name:'employee.company.companyName', index:'c.company_name', width:200, align:"center"},
|
|
|
|
{header:'电子邮箱', name:'email', index:'a.email', width:200, align:"center"},
|
|
|
|
{header:'电子邮箱', name:'email', index:'a.email', width:200, align:"center"},
|
|
|
|
{header:'手机号码', name:'mobile', index:'a.mobile', width:200, align:"center"},
|
|
|
|
{header:'手机号码', name:'mobile', index:'a.mobile', width:200, align:"center"},
|
|
|
|
|
|
|
|
{header:'办公电话', name:'phone', index:'a.phone', width:200, align:"center"},
|
|
|
|
{header:'更新时间', name:'updateDate', index:'a.update_date', width:200, align:"center"},
|
|
|
|
{header:'更新时间', name:'updateDate', index:'a.update_date', width:200, align:"center"},
|
|
|
|
{header:'状态', name:'status', index:'a.status', width:140, align:"center", formatter: function(val, obj, row, act){
|
|
|
|
{header:'状态', name:'status', index:'a.status', width:140, align:"center", formatter: function(val, obj, row, act){
|
|
|
|
if(val == "normal"){
|
|
|
|
return js.getDictLabel([{"id":"1019065439174938624","status":"0","createBy":"system","createDate":"2018-07-17 11:45","updateDate":"2018-07-17 11:45","updateBy":"system","treeLevel":0,"parentCodes":"0,","treeSort":20,"treeSorts":"0000000020,","treeNames":"正常","treeLeaf":"1","isSys":"1","cssClass":"","dictCode":"1019065439174938624","dictLabelOrig":"正常","dictType":"sys_status","cssStyle":"","description":"","dictValue":"0","dictLabel":"正常","parentCode":"0","isRoot":true,"isTreeLeaf":true},{"id":"1019065439330127872","status":"0","createBy":"system","createDate":"2018-07-17 11:45","updateDate":"2018-07-17 11:45","updateBy":"system","treeLevel":0,"parentCodes":"0,","treeSort":30,"treeSorts":"0000000030,","treeNames":"删除","treeLeaf":"1","isSys":"1","cssClass":"","dictCode":"1019065439330127872","dictLabelOrig":"删除","dictType":"sys_status","cssStyle":"color:#f00;","description":"","dictValue":"1","dictLabel":"删除","parentCode":"0","isRoot":true,"isTreeLeaf":true},{"id":"1019065439481122816","status":"0","createBy":"system","createDate":"2018-07-17 11:45","updateDate":"2018-07-17 11:45","updateBy":"system","treeLevel":0,"parentCodes":"0,","treeSort":40,"treeSorts":"0000000040,","treeNames":"停用","treeLeaf":"1","isSys":"1","cssClass":"","dictCode":"1019065439481122816","dictLabelOrig":"停用","dictType":"sys_status","cssStyle":"color:#f00;","description":"","dictValue":"2","dictLabel":"停用","parentCode":"0","isRoot":true,"isTreeLeaf":true},{"id":"1019065439699226624","status":"0","createBy":"system","createDate":"2018-07-17 11:45","updateDate":"2018-07-17 11:45","updateBy":"system","treeLevel":0,"parentCodes":"0,","treeSort":50,"treeSorts":"0000000050,","treeNames":"冻结","treeLeaf":"1","isSys":"1","cssClass":"","dictCode":"1019065439699226624","dictLabelOrig":"冻结","dictType":"sys_status","cssStyle":"color:#fa0;","description":"","dictValue":"3","dictLabel":"冻结","parentCode":"0","isRoot":true,"isTreeLeaf":true},{"id":"1019065439875387392","status":"0","createBy":"system","createDate":"2018-07-17 11:45","updateDate":"2018-07-17 11:45","updateBy":"system","treeLevel":0,"parentCodes":"0,","treeSort":60,"treeSorts":"0000000060,","treeNames":"待审","treeLeaf":"1","isSys":"1","cssClass":"","dictCode":"1019065439875387392","dictLabelOrig":"待审","dictType":"sys_status","cssStyle":"","description":"","dictValue":"4","dictLabel":"待审","parentCode":"0","isRoot":true,"isTreeLeaf":true},{"id":"1019065440022188032","status":"0","createBy":"system","createDate":"2018-07-17 11:45","updateDate":"2018-07-17 11:45","updateBy":"system","treeLevel":0,"parentCodes":"0,","treeSort":70,"treeSorts":"0000000070,","treeNames":"驳回","treeLeaf":"1","isSys":"1","cssClass":"","dictCode":"1019065440022188032","dictLabelOrig":"驳回","dictType":"sys_status","cssStyle":"","description":"","dictValue":"5","dictLabel":"驳回","parentCode":"0","isRoot":true,"isTreeLeaf":true},{"id":"1019065440210931712","status":"0","createBy":"system","createDate":"2018-07-17 11:45","updateDate":"2018-07-17 11:45","updateBy":"system","treeLevel":0,"parentCodes":"0,","treeSort":80,"treeSorts":"0000000080,","treeNames":"草稿","treeLeaf":"1","isSys":"1","cssClass":"","dictCode":"1019065440210931712","dictLabelOrig":"草稿","dictType":"sys_status","cssStyle":"color:#aaa;","description":"","dictValue":"9","dictLabel":"草稿","parentCode":"0","isRoot":true,"isTreeLeaf":true}], val, '未知', true);
|
|
|
|
return '正常';
|
|
|
|
|
|
|
|
}else if(val == "locked"){
|
|
|
|
|
|
|
|
return '锁定';
|
|
|
|
|
|
|
|
}else if(val == "disable"){
|
|
|
|
|
|
|
|
return '禁用';
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
return '未知';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}},
|
|
|
|
}},
|
|
|
|
{header:'操作', name:'actions', width:260, sortable:false, title:false, formatter: function(val, obj, row, act){
|
|
|
|
{header:'操作', name:'actions', width:260, sortable:false, title:false, formatter: function(val, obj, row, act){
|
|
|
|
var actions = [];
|
|
|
|
var actions = [];
|
|
|
|