getorgchart工具栏未显示搜索框

时间:2018-09-16 16:15:44

标签: getorgchart

我正在尝试使getorgchart显示搜索和缩放按钮,但它仅显示“上一页”按钮。

这是我的代码:

function cargaOrganigrama() {

    var peopleElement = document.getElementById("people");
    var orgChart = new getOrgChart(peopleElement, {
        primaryFields: ["name", "title", "phone", "mail"],
        expandToLevel: 3,
        enableEdit: false,
        scale: 0.35,
        color: "orange",
        layout: getOrgChart.MIXED_HIERARCHY_RIGHT_LINKS
    });

    $.ajax({
        contentType: 'application/json; charset=utf-8',
        dataType: 'json',
        type: 'POST',
        url: '@Url.Action("deptosGetOrg", "Deptos")',
        success: function (data) {
            orgChart.loadFromJSON(data);
        }

    });

};

function orgCompleto() {

    var opt = {
        autoOpen: false,
        modal: true,
        width: 1200,
        height: 800,
        title: "Vista Completa de la Organización"
    };

    cargaOrganigrama();
    $("#dialog-form-organigrama").dialog(opt).dialog("open");

}

html标签:

<div id="dialog-form-organigrama" >
    <form id="form-organigrama" name="form-organigrama" >
        <div id="people" style="width:1150px;"></div>
    </form>

</div>

以及相应的结果:

enter image description here

有人可以帮我吗?

0 个答案:

没有答案