|
|
@ -3,7 +3,7 @@
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>部门主表</title>
|
|
|
|
<title>公司主表</title>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -53,7 +53,7 @@
|
|
|
|
<input name='search_parentid' id='search_parentid' type="hidden"/>
|
|
|
|
<input name='search_parentid' id='search_parentid' type="hidden"/>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<input name='search_departname' id='search_departname' class='form-control' placeholder='部门名称'/>
|
|
|
|
<input name='search_departname' id='search_departname' class='form-control' placeholder='公司名称'/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<select class="form-control input-s-sm inline" name="search_enabled" id="search_enabled">
|
|
|
|
<select class="form-control input-s-sm inline" name="search_enabled" id="search_enabled">
|
|
|
@ -89,12 +89,43 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 展示流程图的 窗口 -->
|
|
|
|
|
|
|
|
<div id="modal_flowable_list" class="modal fade" aria-hidden="true">
|
|
|
|
|
|
|
|
<div class="modal-dialog" role="document" style="width: auto">
|
|
|
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
|
|
|
|
<h4 class="modal-title" id="flowImgModalLabel">部署工作流:<span id="flowName"></span></h4>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
|
|
|
<form id="candidateUserFrom">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="processdefinitionid" id="processdefinitionid">
|
|
|
|
|
|
|
|
<input type="hidden" name="caProcessdefinitionid" id="caProcessdefinitionid">
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
|
|
<table id="flowable_list" ></table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
|
|
|
<button type="button" onclick="saveUserCandidateForm()" class="btn btn-primary">设置</button>
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">关闭窗口</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<#include "/head/footlist.html" />
|
|
|
|
<#include "/head/footlist.html" />
|
|
|
|
<script src="${ctx}/static/js/plugins/jqueryzTree/js/jquery.ztree.all.min.js"></script>
|
|
|
|
<script src="${ctx}/static/js/plugins/jqueryzTree/js/jquery.ztree.all.min.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</html>
|
|
|
|
<script type="text/javascript">
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
var _tableListDefinition;
|
|
|
|
var _deptTree;
|
|
|
|
var _deptTree;
|
|
|
|
var setting = {
|
|
|
|
var setting = {
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
@ -124,12 +155,61 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function playFlow(cc,dd){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#modal_flowable_list").modal();
|
|
|
|
|
|
|
|
$("#modal_flowable_list").css("z-index",(parent.getMaxZIndex() + 1));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_tableListDefinition.bootstrapTable('refreshOptions',{pageNumber:1});
|
|
|
|
|
|
|
|
}
|
|
|
|
var _tableListDepartment;
|
|
|
|
var _tableListDepartment;
|
|
|
|
var jsptoolbar = '';
|
|
|
|
var jsptoolbar = '';
|
|
|
|
var jspOperation = '';
|
|
|
|
var jspOperation = '';
|
|
|
|
jQuery(document).ready(function($){
|
|
|
|
jQuery(document).ready(function($){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_tableListDefinition = $('#flowable_list').bootstrapTable({
|
|
|
|
|
|
|
|
url: '${ctx}/flow/definition/latestList' ,
|
|
|
|
|
|
|
|
pagination: true, //是否显示分页(*)
|
|
|
|
|
|
|
|
pageNumber:1, //初始化加载第一页,默认第一页
|
|
|
|
|
|
|
|
pageSize: 10, //每页的记录行数(*)
|
|
|
|
|
|
|
|
sidePagination: "server",
|
|
|
|
|
|
|
|
height: "100%", pageList: [10, 25, 50],
|
|
|
|
|
|
|
|
ajaxOptions:{
|
|
|
|
|
|
|
|
headers: {"logintoken": parent.getLoginToken()}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
queryParams: function queryParams(params) {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
sortorder: params.order,
|
|
|
|
|
|
|
|
sortname: params.sort,
|
|
|
|
|
|
|
|
pageSize: params.limit,
|
|
|
|
|
|
|
|
currPage: (params.offset / params.limit) + 1
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
responseHandler:function(res){
|
|
|
|
|
|
|
|
return{"rows": res.data.list, "total": res.data.totalCount};
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
columns: [
|
|
|
|
|
|
|
|
{ width:150,valign: "middle",field:'id',title:'流程定义ID',sortable:false},
|
|
|
|
|
|
|
|
{ width:150,valign: "middle",field:'name',title:'流程名称',sortable:false},
|
|
|
|
|
|
|
|
{ width:150,valign: "middle",field:'flowKey',title:'流程key',sortable:false},
|
|
|
|
|
|
|
|
{ width:150,valign: "middle",field:'description',title:'流程描述',sortable:false},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
width:90,
|
|
|
|
|
|
|
|
field: 'id',
|
|
|
|
|
|
|
|
title: '关联的流程',
|
|
|
|
|
|
|
|
formatter:function(value,oData,index) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var listOperation = '无';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($("#caProcessdefinitionid").val() == oData.id){
|
|
|
|
|
|
|
|
listOperation = '<a class="btn btn-info btn-circle btn-lg" href="#"> </a>';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return listOperation;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
initDepartTree();
|
|
|
|
initDepartTree();
|
|
|
|
parent.axgetXiaoyao("${ctx}/backstage/admin/user/toolsbarOperation?" + "resourceid=${resourceid}",null,true ,
|
|
|
|
parent.axgetXiaoyao("${ctx}/backstage/admin/user/toolsbarOperation?" + "resourceid=${resourceid}",null,true ,
|
|
|
|
function(data){
|
|
|
|
function(data){
|
|
|
@ -168,23 +248,42 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
columns: [
|
|
|
|
columns: [
|
|
|
|
{checkbox: true},
|
|
|
|
{checkbox: true},
|
|
|
|
|
|
|
|
{ width:150,valign: "middle",field:'departname',title:'公司名称',sortable:true},
|
|
|
|
|
|
|
|
{ width:150,valign: "middle",field:'enabled',title:'公司类型',sortable:true,
|
|
|
|
|
|
|
|
formatter:function (value,oData,index) {
|
|
|
|
|
|
|
|
var listOperation = "";
|
|
|
|
|
|
|
|
if(oData.typedept == 1){
|
|
|
|
|
|
|
|
listOperation = "主体";
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
listOperation = "租户";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return listOperation;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{ width:150,valign: "middle",field:'deptno',title:'业务主体编码',sortable:true},
|
|
|
|
|
|
|
|
{ width:150,valign: "middle",field:'description',title:'企业编码',sortable:true},
|
|
|
|
|
|
|
|
{ width:50,valign: "middle",field:'processdefinitionid',title:'是否关联流程',sortable:false,
|
|
|
|
|
|
|
|
|
|
|
|
{ width:150,valign: "middle",field:'departname',title:'部门名称',sortable:true},
|
|
|
|
formatter:function(value,oData,index) {
|
|
|
|
{ width:150,valign: "middle",field:'departdesc',title:'部门描述',sortable:true},
|
|
|
|
var listOperation = oData.processdefinitionid == null ? "否" : "是";
|
|
|
|
{ width:150,valign: "middle",field:'enabled',title:'是否启用',sortable:true,
|
|
|
|
|
|
|
|
formatter:function (value,oData,index) {
|
|
|
|
|
|
|
|
var listOperation = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(oData.enabled == 1){
|
|
|
|
return listOperation;
|
|
|
|
listOperation = "启用";
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
},
|
|
|
|
listOperation = "停用";
|
|
|
|
{ width:150,valign: "middle",field:'enabled',title:'是否启用',sortable:true,
|
|
|
|
}
|
|
|
|
formatter:function (value,oData,index) {
|
|
|
|
|
|
|
|
var listOperation = "";
|
|
|
|
|
|
|
|
|
|
|
|
return listOperation;
|
|
|
|
if(oData.enabled == 1){
|
|
|
|
|
|
|
|
listOperation = "启用";
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
listOperation = "停用";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{ width:150,valign: "middle",field:'sorting',title:'排序',sortable:true},
|
|
|
|
return listOperation;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{ width:150,valign: "middle",field:'sorting',title:'排序',sortable:true},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
width:200,
|
|
|
|
width:200,
|
|
|
|
field: 'id',
|
|
|
|
field: 'id',
|
|
|
@ -196,6 +295,8 @@
|
|
|
|
$(jspOperation).each(function (i, toolbar) {
|
|
|
|
$(jspOperation).each(function (i, toolbar) {
|
|
|
|
listOperation = listOperation + "<a href=\"javascript:" + toolbar.actionmethod + "('${resourceid}','" + tempid + "');\" class=\"btn " + toolbar.img + " btn-xs\")><i class=\"fa " + toolbar.methodkey + "\"></i> " + toolbar.text + " </a> ";
|
|
|
|
listOperation = listOperation + "<a href=\"javascript:" + toolbar.actionmethod + "('${resourceid}','" + tempid + "');\" class=\"btn " + toolbar.img + " btn-xs\")><i class=\"fa " + toolbar.methodkey + "\"></i> " + toolbar.text + " </a> ";
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
listOperation = listOperation + "<a href=\"javascript:playFlow('" + oData.processdefinitionid + "','" + oData.id + "');\" class=\"btn btn-success btn-xs\")><i class=\"fa fa-map-signs\"></i>查看流程</a> ";
|
|
|
|
return listOperation;
|
|
|
|
return listOperation;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -222,11 +323,11 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _useradd(sourceid){
|
|
|
|
function _useradd(sourceid){
|
|
|
|
parent._xiaoyaoOpenMenuTab('${ctx}/backstage/admin/departmentHtml/toSave',"添加部门",sourceid);
|
|
|
|
parent._xiaoyaoOpenMenuTab('${ctx}/backstage/admin/departmentHtml/toSave',"添加公司",sourceid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function updateData(sourceid,str){
|
|
|
|
function updateData(sourceid,str){
|
|
|
|
var url = '${ctx}/backstage/admin/departmentHtml/toEdit/' + str ;
|
|
|
|
var url = '${ctx}/backstage/admin/departmentHtml/toEdit/' + str ;
|
|
|
|
parent._xiaoyaoOpenMenuTab(url,"修改部门",sourceid + "_edit");
|
|
|
|
parent._xiaoyaoOpenMenuTab(url,"修改公司",sourceid + "_edit");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _useredit(sourceid){
|
|
|
|
function _useredit(sourceid){
|
|
|
|
var str = getIdSelections() + "";
|
|
|
|
var str = getIdSelections() + "";
|
|
|
|