getOrgChart执行助理

时间:2018-08-16 19:30:49

标签: getorgchart

updateNode不允许更新secondParentIdField。

<script type="text/javascript">
        $.getJSON("http://www.getorgchart.com/JsonInitialization/Read?callback=?", function (source) {
            var peopleElement = document.getElementById("people");
            var orgChart = new getOrgChart(peopleElement, {
                theme: "helen",
                secondParentIdField: "secondManager",
                primaryFields: ["Name", "Title"],
                photoFields: ["Image"],
                linkType: "M",
                enableEdit: false,
                enableDetailsView: false,
                dataSource: source
            });
             orgChart.updateNode(4, null, {      

                  secondManager: 2,
                  Name: "Test",
                  Title: "Executive Assistant",
                  Office: "City",
                  Image: "/img/test.jpg"
           });
        });
    </script>

一个节点可以有多个次要父母吗?

总裁和2个或更多EVP使用相同的执行助手。

0 个答案:

没有答案