var menu = new BootstrapMenu('#jsmind_container jmnode:not(.root)', { actions: [{ name: '展开节点', onClick: function () { var node = jm.get_selected_node(); var node2 = jm2.get_node(node.id) jm.expand_node(node); jm2.expand_node(node2); } }, { name: '展开所有子节点', onClick: function () { expandAll(); } }, { name: '添加子节点', onClick: function () { $('#newModal').modal('show'); selectedNodeType = jm.get_selected_node().data.type; selectedNodeTypeId = jm.get_selected_node().data.typeid; selectedNodeId = jm.get_selected_node().id; //alert(selectedNodeType + ' ' + selectedNodeTypeId + ' ' + selectedNodeId) if (selectedNodeType == 0) { //默认选择业务结构 selectedNodeType = "<%=(int)(Contract.Domain.Enum.EnumList.Limit_Object.Limit_Object_BusiStruc)%>"; } filterDrp($("#limitObectType"), selectedNodeType, selectedNodeId, null); } }, { name: '删除此节点', onClick: function () { selectedNodeId = jm.get_selected_node().id; $('#delModal').modal('show'); } }, { name: '添加限额', onClick: function () { selectedNodeId = jm.get_selected_node().id; clearForm(); $('#setModal').modal('show'); } }, { name: '编辑限额', onClick: function () { var url = "/Bas/BasLimitConfigManage2.aspx?_method=getLimit"; selectedNodeId = jm.get_selected_node().id; url += "&selectedNodeId=" + selectedNodeId; if ($("#tt3").tree('getSelected') != null) { var limitTypeId = $("#tt3").tree('getSelected').attributes.LimitTypeId; alert(limitTypeId); if (limitTypeId != "-1" && limitTypeId != null && limitTypeId != undefined && limitTypeId != "") { url += "&limitTypeId=" + limitTypeId; } } //'/Bas/BasLimitConfigManage2.aspx?_method=getLimit&selectedNodeId=' + selectedNodeId $('#myModal').modal('show'); $('#limitTable').bootstrapTable('refresh', { silent: true, url: url }); } }] });