我正在尝试使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>
以及相应的结果:
有人可以帮我吗?