提交 a092c2f5 编写于 作者: laizhilong's avatar laizhilong

组织树,部门树

上级 37fcec30
......@@ -122,15 +122,23 @@
public selectionChange(node: any) {
// 获取右侧视图渲染数据需要的参数
let temp = JSON.parse(JSON.stringify(node));
temp.id = "Dept;" + node.id;
temp.srfparentdename = "IBZDepartment";
let srfappctx: any = {};
if (node.disabled == true) {// 单位
temp.id = "Org;" + node.id;
temp.srfparentdename = "IBZOrganization";
temp.ibzorganization = node.id;
srfappctx.ibzorganization = temp.ibzorganization;
}else {// 部门
temp.id = "Dept;" + node.id;
temp.srfparentdename = "IBZDepartment";
temp.ibzdepartment = node.id;
srfappctx.ibzdepartment = temp.ibzdepartment;
}
temp.srfparentkey = node.id;
temp.navparams = "{}";
temp.ibzdepartment = node.id;
let srfappctx: any = {};
srfappctx.srfparentkey = temp.srfparentkey;
srfappctx.srfparentdename = temp.srfparentdename;
srfappctx.ibzdepartment = temp.ibzdepartment;
temp.srfappctx = srfappctx;
// 抛出参数
let selectiondata: any = [temp];
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册