169 lines
6.1 KiB
Plaintext
169 lines
6.1 KiB
Plaintext
<%@ page language="java" pageEncoding="UTF-8" %>
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
|
|
<%@ page import="com.sipai.entity.base.ServerObject" %>
|
|
<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security" %>
|
|
|
|
<!DOCTYPE html>
|
|
<!-- <html lang="zh-CN"> -->
|
|
<!-- BEGIN HEAD -->
|
|
<head>
|
|
<title><%= ServerObject.atttable.get("TOPTITLE")%>
|
|
</title>
|
|
<!-- 引用页头及CSS页-->
|
|
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
|
<script type="text/javascript">
|
|
var addFun = function () {
|
|
var node = $('#tree').treeview('getSelected');
|
|
var pid = "";
|
|
if (node != null && node.length > 0) {
|
|
pid = node[0].id;
|
|
} else {
|
|
pid = "-1";
|
|
}
|
|
$.post(ext.contextPath + '/process/dataVisualFrame/frameAdd.do', {
|
|
unitId: unitId,
|
|
pid: pid,
|
|
menuType: '${param.menuType}'
|
|
}, function (data) {
|
|
$("#menuBox").html(data);
|
|
});
|
|
};
|
|
var editFun = function (id) {
|
|
$.post(ext.contextPath + '/process/dataVisualFrame/frameEdit.do', {
|
|
id: id,
|
|
menuType: '${param.menuType}'
|
|
}, function (data) {
|
|
$("#menuBox").html(data);
|
|
});
|
|
};
|
|
|
|
var initTreeView = function () {
|
|
$.post(ext.contextPath + '/process/dataVisualFrame/getFrameTreeForConfigure.do', {
|
|
unitId: unitId,
|
|
menuType: '${param.menuType}'
|
|
}, function (data) {
|
|
//console.info(data)
|
|
$('#tree').treeview({
|
|
data: data
|
|
});
|
|
$('#tree').on('nodeSelected', function (event, data) {
|
|
editFun(data.id);
|
|
//var node=$('#tree').treeview('getSelected');
|
|
});
|
|
|
|
// $("#tree li").each(function () {
|
|
// var id = $(this).attr("id");
|
|
// // var levelLength=$(this).attr("data-nodeid").split(".").length-1;
|
|
// $(this).append("<span class='fa fa-angle-up pull-right' style='padding-top:2px;' title='上移' onclick='morderDown(\"" + id + "\");'></span>");
|
|
// $(this).append("<span class='fa fa-angle-down pull-right' style='padding-top:2px;' title='下移' onclick='morderUp(\"" + id + "\");'></span>");
|
|
// });
|
|
}, 'json');
|
|
$("#menuBox").html("");
|
|
};
|
|
$(function () {
|
|
initTreeView();
|
|
});
|
|
|
|
function morderDown(id) {
|
|
event.stopPropagation();
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: ext.contextPath + "/process/dataVisualFrame/doFrameMorderChange.do?id=" + id + "&type=down",
|
|
async: false,
|
|
globle: false,
|
|
error: function () {
|
|
return false;
|
|
},
|
|
success: function (data) {
|
|
if (data != "suc") {
|
|
alert(data);
|
|
} else {
|
|
initTreeView();
|
|
}
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function morderUp(id) {
|
|
event.stopPropagation();
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: ext.contextPath + "/process/dataVisualFrame/doFrameMorderChange.do?id=" + id + "&type=up",
|
|
async: false,
|
|
globle: false,
|
|
error: function () {
|
|
return false;
|
|
},
|
|
success: function (data) {
|
|
// console.log(data);
|
|
if (data != "suc") {
|
|
alert(data);
|
|
} else {
|
|
initTreeView();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body onload="initMenu()" class="hold-transition ${cu.themeclass} sidebar-mini">
|
|
<div class="wrapper">
|
|
<!-- 引用top -->
|
|
<%-- <jsp:include page="/jsp/top.jsp"></jsp:include> --%>
|
|
<!-- 菜单栏 -->
|
|
<%-- <jsp:include page="/jsp/left.jsp"></jsp:include> --%>
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<%-- <section class="content-header">--%>
|
|
<%-- <h1 id="head_title"></h1>--%>
|
|
<%-- <ol class="breadcrumb">--%>
|
|
<%-- <li><a id='head_firstlevel' href="#"><i class="fa fa-dashboard"></i> </a></li>--%>
|
|
<%-- <!-- <li class="active">Here</li> -->--%>
|
|
<%-- </ol>--%>
|
|
<%-- </section>--%>
|
|
<!-- Main content -->
|
|
<section class="content container-fluid">
|
|
<div id="mainAlertdiv"></div>
|
|
<div id="subDiv"></div>
|
|
<div id="mpSubDiv"></div>
|
|
<div id="fileInputDiv"></div>
|
|
<div id="menu4SelectDiv"></div>
|
|
<div id="user4SelectDiv"></div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<div class="box box-solid">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title"></h3>
|
|
|
|
<div class="box-tools">
|
|
<button type="button" class="btn btn-box-tool" onclick="addFun();"><i
|
|
class="fa fa-plus"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="box-body no-padding">
|
|
<div id="tree" style="height:550px;overflow:auto;"></div>
|
|
</div>
|
|
<!-- /.box-body -->
|
|
</div>
|
|
</div>
|
|
<div class="col-md-9" id="menuBox">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<%-- <jsp:include page="/jsp/bottom.jsp"></jsp:include> --%>
|
|
<%-- <jsp:include page="/jsp/side.jsp"></jsp:include> --%>
|
|
</div>
|
|
</body>
|
|
</html> |