|
|
@ -36,7 +36,7 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="box-body">
|
|
|
|
<form id="searchForm" action="/js/a/sys/office/listData" method="post" class="form-inline hide" data-page-no="" data-page-size="" data-order-by="">
|
|
|
|
<form id="searchForm" th:action="${setting.domain + 'sys/company/listData'}" method="post" class="form-inline hide" data-page-no="" data-page-size="" data-order-by="">
|
|
|
|
<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">
|
|
|
@ -97,19 +97,15 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
|
|
|
|
$('#dataGrid').dataGrid({
|
|
|
|
$('#dataGrid').dataGrid({
|
|
|
|
searchForm: $("#searchForm"),
|
|
|
|
searchForm: $("#searchForm"),
|
|
|
|
columnModel: [
|
|
|
|
columnModel: [
|
|
|
|
{header:'机构名称', name:'officeName', index:'a.office_name', width:250, align:"left", frozen:true, formatter: function(val, obj, row, act){
|
|
|
|
{header:'机构名称', name:'name', index:'a.office_name', width:250, align:"left", frozen:true, formatter: function(val, obj, row, act){
|
|
|
|
return '( '+row.viewCode+' ) '+'<a href="/js/a/sys/office/form?officeCode='+row.officeCode+'" class="btnList" data-title="编辑机构">'+(val||row.id)+'</a>';
|
|
|
|
return '( '+row.id+' ) '+'<a href="/js/a/sys/office/form?officeCode='+row.id+'" class="btnList" data-title="编辑机构">'+(val||row.id)+'</a>';
|
|
|
|
}},
|
|
|
|
}},
|
|
|
|
{header:'机构全称', name:'fullName', index:'a.full_name', width:200, align:"left"},
|
|
|
|
{header:'机构全称', name:'fullName', index:'a.full_name', width:200, align:"left"},
|
|
|
|
{header:'排序号', name:'treeSort', index:'a.tree_sort', width:80, align:"center"},
|
|
|
|
{header:'机构类型', name:'type', index:'a.office_type', width:100, align:"center", formatter: function(val, obj, row, act){
|
|
|
|
{header:'机构类型', name:'officeType', index:'a.office_type', width:100, align:"center", formatter: function(val, obj, row, act){
|
|
|
|
return "股份公司";
|
|
|
|
return js.getDictLabel([{"id":"1019065443704786944","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":"1019065443704786944","dictLabelOrig":"省级公司","dictType":"sys_office_type","cssStyle":"","description":"","dictValue":"1","dictLabel":"省级公司","parentCode":"0","isRoot":true,"isTreeLeaf":true},{"id":"1019065443864170496","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":"1019065443864170496","dictLabelOrig":"市级公司","dictType":"sys_office_type","cssStyle":"","description":"","dictValue":"2","dictLabel":"市级公司","parentCode":"0","isRoot":true,"isTreeLeaf":true},{"id":"1019065444036136960","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":"1019065444036136960","dictLabelOrig":"部门","dictType":"sys_office_type","cssStyle":"","description":"","dictValue":"3","dictLabel":"部门","parentCode":"0","isRoot":true,"isTreeLeaf":true}], val, '未知', true);
|
|
|
|
|
|
|
|
}},
|
|
|
|
}},
|
|
|
|
{header:'更新时间', name:'updateDate', index:'a.update_date', width:150, align:"center"},
|
|
|
|
{header:'更新时间', name:'updateDate', index:'a.update_date', width:150, align:"center"},
|
|
|
|
{header:'备注信息', name:'remarks', index:'a.remarks', width:200, align:"left"},
|
|
|
|
{header:'备注信息', name:'remarks', index:'a.remarks', width:200, align:"left"},
|
|
|
|
{header:'状态', name:'status', index:'a.status', width:80, align:"center", formatter: function(val, obj, row, act){
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
}},
|
|
|
|
|
|
|
|
{header:'操作', name:'actions', width:150, sortable:false, title:false, formatter: function(val, obj, row, act){
|
|
|
|
{header:'操作', name:'actions', width:150, sortable:false, title:false, formatter: function(val, obj, row, act){
|
|
|
|
var actions = [];
|
|
|
|
var actions = [];
|
|
|
|
actions.push('<a href="/js/a/sys/office/form?officeCode='+row.officeCode+'" class="btnList" title="编辑机构"><i class="fa fa-pencil"></i></a> ');
|
|
|
|
actions.push('<a href="/js/a/sys/office/form?officeCode='+row.officeCode+'" class="btnList" title="编辑机构"><i class="fa fa-pencil"></i></a> ');
|
|
|
|