Commit 27b8b4a0 authored by 卜远杰's avatar 卜远杰

根据组织查看人员

parent f47030fd
...@@ -105,12 +105,12 @@ ...@@ -105,12 +105,12 @@
<!-- Main content --> <!-- Main content -->
<section class="content"> <section class="content">
<div class="row"> <div class="row">
<div class="col-xs-2" style="display:none"> <div class="col-xs-3">
<div class="box box-primary"> <div class="box box-primary">
<ul id="orgTree" class="ztree"></ul> <ul id="orgTree" class="ztree"></ul>
</div> </div>
</div> </div>
<div class="col-xs-12"> <div class="col-xs-9">
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<form id="seachTableForm" method="get" action="#springUrl('/a/qyuser/exportExcel')" onkeydown="if(event.keyCode==13){return false;}"> <form id="seachTableForm" method="get" action="#springUrl('/a/qyuser/exportExcel')" onkeydown="if(event.keyCode==13){return false;}">
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
</div> </div>
<div class="" style="display: none"> <div class="" style="display: none">
<input type="text" class="form-control required" <input type="text" class="form-control required"
name="id" id="orgid" placeholder="组织Id"> name="orgId" id="orgid" placeholder="组织Id">
</div> </div>
</div> </div>
</div> </div>
...@@ -407,9 +407,48 @@ ...@@ -407,9 +407,48 @@
$('.search').click(function () { $('.search').click(function () {
$("#example2").dataTable().fnClearTable(); $("#example2").dataTable().fnClearTable();
}); });
//initOrgTree(); initOrgTree();
}); });
var orgTreeUri = "#springUrl('/a/orgunit/treeDataNoAuth')";
function initOrgTree() {
var orgTree = $('#orgTree');
var getOrgTreeData = function () {
$.ajax({
"type": "GET",
"contentType": "application/json",
"url": orgTreeUri,
"dataType": "json",
"success": buildOrgTree
});
};
var buildOrgTree = function (data) {
var setting = {
data: {simpleData: {enable: true}}, callback: {
beforeClick: function (id, node) {
var orgid = node.id;
if (orgid == 0) {
$('#orgId').val('');
} else {
$('#orgId').val(orgid);
}
$("#example2").dataTable().fnClearTable();
}
}
};
var zNodes = data.aaData;
tree = $.fn.zTree.init(orgTree, setting, zNodes);
tree.expandAll(true);
tree.expandNode(tree.getNodesByFilter(function (node) {
return node.level == 0;
}, true), true, false, false);
};
getOrgTreeData();
}
function unBindQrCode(id, type) { function unBindQrCode(id, type) {
var unBindQrcodeUri = "#springUrl('/a/qyuser/unBindQrcode?type="+type+"')"; var unBindQrcodeUri = "#springUrl('/a/qyuser/unBindQrcode?type="+type+"')";
Cfapp.confirm({ Cfapp.confirm({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment