Song.Site/Manage/Utility/Scripts/EmplyeeSelectBox.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(
function()
{
setTree();
TitleBarEvent();
TreeEvent();
emplistEvent();
}
);
//头部标题选择事件
function TitleBarEvent()
{
//员工选择列表的总区域
var box=$("#EmplyeeSelectBox");
box.find("div[type='zone']").hide();
//内容区高度
box.find("div[type='zone']").height(box.height-20);
//标题区域
var title=$("#EmplyeeSelectBoxTitle");
title.find("dd").attr("class","out");
var fisrt=title.find("dd:first");
fisrt.attr("class","click");
var clicktype=fisrt.attr("type");
box.find("div[paneltype='"+clicktype+"']").show();
title.find("dd").click(
function()
{
$(this).siblings().attr("class","out");
$(this).attr("class","click");
var box=$("#EmplyeeSelectBox");
box.find("div[type='zone']").hide();
var clicktype=$(this).attr("type");
box.find("div[paneltype='"+clicktype+"']").show();
}
);
}
//设置所在区域的高度
function setHeight(hg)
{
var box=$("#EmplyeeSelectBox");
box.height(hg);
//内容区高度
box.find("div[type='zone']").height(hg-20);
}
//设置树形
function setTree()
{
//员工选择列表的总区域
var box=$("#EmplyeeSelectBox");
var ctext=box.find("div[class='ctext']");
//设置最后一个员工前的连接线
ctext.each(
function()
{
var line=$(this).parent();
//如果是第后一个员工节点
if(line.nextAll("div[type='empnode']").size()<1 && line.parent().next().attr("class")!="panel")
后面还有 162 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
