|
@ -1,13 +1,13 @@
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8" %>
|
|
|
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
|
|
|
<script>
|
|
|
|
|
|
// 设置jQuery Ajax全局的参数
|
|
|
$.ajaxSetup({
|
|
|
type: "POST",
|
|
|
error: function(jqXHR, textStatus, errorThrown){
|
|
|
error: function (jqXHR, textStatus, errorThrown) {
|
|
|
isLogin();
|
|
|
switch (jqXHR.status){
|
|
|
switch (jqXHR.status) {
|
|
|
case(500):
|
|
|
$.ligerDialog.error("服务器系统内部错误");
|
|
|
break;
|
|
@ -27,79 +27,84 @@
|
|
|
});
|
|
|
|
|
|
//判断是否登录
|
|
|
function isLogin(){
|
|
|
function isLogin() {
|
|
|
$.ajax({ //获取是否
|
|
|
type: "POST",
|
|
|
url : "${contextRoot}/system/isLogin",
|
|
|
dataType : "json",
|
|
|
cache:false,
|
|
|
success :function(data){
|
|
|
if(!data.successFlg) {
|
|
|
url: "${contextRoot}/system/isLogin",
|
|
|
dataType: "json",
|
|
|
cache: false,
|
|
|
success: function (data) {
|
|
|
if (!data.successFlg) {
|
|
|
location.href = "${contextRoot}/loginPage";
|
|
|
}
|
|
|
},
|
|
|
error :function(data){
|
|
|
error: function (data) {
|
|
|
location.href = "${contextRoot}/loginPage";
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var indexPage = {
|
|
|
localNav:[],
|
|
|
homeUrl:"${contextRoot}/homePage",
|
|
|
init:function(){
|
|
|
localNav: [],
|
|
|
homeUrl: "${contextRoot}/homePage",
|
|
|
init: function () {
|
|
|
var me = this;
|
|
|
//主布局
|
|
|
$("#divIndexMain").ligerLayout({
|
|
|
space:0,
|
|
|
topHeight:120,
|
|
|
leftWidth:220,
|
|
|
allowLeftCollapse:false,
|
|
|
allowLeftResize:false,
|
|
|
allowTopResize:false
|
|
|
space: 0,
|
|
|
topHeight: 120,
|
|
|
leftWidth: 220,
|
|
|
allowLeftCollapse: false,
|
|
|
allowLeftResize: false,
|
|
|
allowTopResize: false
|
|
|
});
|
|
|
|
|
|
$(".l-layout-left").css({background:"#dce6f0"})
|
|
|
$(".l-layout-left").css({background: "#dce6f0"})
|
|
|
|
|
|
//菜单列表
|
|
|
var menu = [
|
|
|
//任务管理
|
|
|
{id: 1, text: '任务管理',icon:'${staticRoot}/images/index/menu2_icon.png'},
|
|
|
{id: 11, pid: 1, text: '任务跟踪', url: '${contextRoot}/datacollect/trackJob',targetType:'1'},
|
|
|
//服务管理中心
|
|
|
{id: 6, text: '服务管理中心', icon: '${staticRoot}/images/index/menu5_icon.png'},
|
|
|
{id: 61, pid: 6, text: '服务管理', url: '${contextRoot}/app/initial'},
|
|
|
//数据服务总线
|
|
|
{id: 1, text: '数据服务总线', icon: '${staticRoot}/images/index/menu2_icon.png'},
|
|
|
{id: 11, pid: 1, text: '任务跟踪', url: '${contextRoot}/datacollect/trackJob', targetType: '1'},
|
|
|
{id: 12, pid: 1, text: '任务补采', url: '${contextRoot}/datacollect/repeatDatacollect'},
|
|
|
{id: 13, pid: 1, text: '任务配置', url: '${contextRoot}/datacollect/configJob'},
|
|
|
{id: 14, pid: 1, text: '任务编排', url: '${contextRoot}/crawler/jobLayout'},
|
|
|
{id: 14, pid: 1, text: '采集编排', url: '${contextRoot}/crawler/jobLayout'},
|
|
|
{id: 15, pid: 1, text: '流程编排', url: '${contextRoot}/flow/initial'},
|
|
|
//运行监控中心
|
|
|
{id: 5, text: '运行监控中心', icon: '${staticRoot}/images/index/menu5_icon.png'},
|
|
|
{id: 51, pid: 5, text: '系统监控', url: '${contextRoot}/monitor/server/initial'},
|
|
|
{id: 52, pid: 5, text: '服务监控', url: '${contextRoot}/monitor/service/initial'},
|
|
|
//标准管理
|
|
|
//标准规范中心
|
|
|
{id: 2, text: '标准管理',icon:'${staticRoot}/images/index/menu3_icon.png'},
|
|
|
{id: 2, text: '标准规范中心', icon: '${staticRoot}/images/index/menu3_icon.png'},
|
|
|
{id: 21, pid: 2, text: '集成标准', url: '${contextRoot}/integration/initial/standard'},
|
|
|
{id: 22, pid: 2, text: '应用标准', url: '${contextRoot}/integration/initial/application'},
|
|
|
{id: 23, pid: 2, text: '适配方案', url: '${contextRoot}/adapterPlan/initial'},
|
|
|
//资源管理
|
|
|
{id: 3, text: '资源管理',icon:'${staticRoot}/images/index/menu4_icon.png'},
|
|
|
{id: 3, text: '资源管理中心', icon: '${staticRoot}/images/index/menu4_icon.png'},
|
|
|
{id: 31, pid: 3, text: '资源注册', url: '${contextRoot}/resource/resource/initial'},
|
|
|
{id: 32, pid: 3, text: '资源浏览', url: '${contextRoot}/resource/resourcePage'},
|
|
|
{id: 34, pid: 3, text: '资源分类', url: '${contextRoot}/resource/rsCategory/initial'},
|
|
|
{id: 35, pid: 3, text: '业务资源', url: '${contextRoot}/resourceRest/initial'},
|
|
|
//维度管理
|
|
|
{id: 4, text: '维度管理',icon:'${staticRoot}/images/index/menu5_icon.png'},
|
|
|
{id: 41, pid: 4, text: '维度配置', url: '${contextRoot}/dimension/dimension'},
|
|
|
{id: 42, pid: 4, text: '维度类别配置', url: '${contextRoot}/dimension/dimensioncatetory'},
|
|
|
<%--{id: 4, text: '维度管理', icon: '${staticRoot}/images/index/menu5_icon.png'},--%>
|
|
|
{id: 36, pid: 3, text: '维度配置', url: '${contextRoot}/dimension/dimension'},
|
|
|
{id: 37, pid: 3, text: '维度类别配置', url: '${contextRoot}/dimension/dimensioncatetory'},
|
|
|
//用户安全中心
|
|
|
{id: 7, text: '用户安全中心', icon: '${staticRoot}/images/index/menu5_icon.png'},
|
|
|
{id: 71, pid: 7, text: '机构管理', url: '${contextRoot}/org/initial'},
|
|
|
{id: 72, pid: 7, text: '用户管理', url: '${contextRoot}/user/initial'},
|
|
|
{id: 73, pid: 7, text: '角色管理', url: '${contextRoot}/role/initial'},
|
|
|
{id: 74, pid: 7, text: '权限管理', url: '${contextRoot}/authority/initial'},
|
|
|
//系统配置
|
|
|
{id: 9, text: '系统配置',icon:'${staticRoot}/images/index/menu6_icon.png'},
|
|
|
{id: 91, pid: 9, text: '机构配置', url: '${contextRoot}/org/initial'},
|
|
|
{id: 92, pid: 9, text: '数据源配置', url: '${contextRoot}/datasource/configSources'},
|
|
|
{id: 93, pid: 9, text: '菜单配置', url: '${contextRoot}/menu/initial'},
|
|
|
{id: 100, pid: 9, text: '菜单按钮配置', url: '${contextRoot}/menu/menuAction/initial'},
|
|
|
{id: 94, pid: 9, text: '用户管理', url: '${contextRoot}/user/initial'},
|
|
|
{id: 95, pid: 9, text: '角色管理', url: '${contextRoot}/role/initial'},
|
|
|
{id: 96, pid: 9, text: '权限管理', url: '${contextRoot}/authority/initial'},
|
|
|
{id: 97, pid: 9, text: '字典管理', url: '${contextRoot}/dict/initial' },
|
|
|
{id: 98, pid: 9, text: '系统参数', url: '${contextRoot}/param/initial'},
|
|
|
{id: 99, pid: 9, text: '<spring:message code="title.app.manage"/>', url: '${contextRoot}/app/initial'},
|
|
|
{id: 100, pid: 9, text: '<spring:message code="title.flow.manage"/>', url: '${contextRoot}/flow/initial'},
|
|
|
{id: 101, pid: 9, text: '系统监控', url: '${contextRoot}/monitor/server/initial'},
|
|
|
{id: 102, pid: 9, text: '服务监控', url: '${contextRoot}/monitor/service/initial'}
|
|
|
{id: 9, text: '系统配置中心', icon: '${staticRoot}/images/index/menu6_icon.png'},
|
|
|
{id: 91, pid: 9, text: '数据源配置', url: '${contextRoot}/datasource/configSources'},
|
|
|
{id: 92, pid: 9, text: '菜单配置', url: '${contextRoot}/menu/initial'},
|
|
|
{id: 93, pid: 9, text: '菜单按钮配置', url: '${contextRoot}/menu/menuAction/initial'},
|
|
|
{id: 94, pid: 9, text: '字典管理', url: '${contextRoot}/dict/initial'},
|
|
|
];
|
|
|
me.menuTree = $('#ulTree').ligerTree({
|
|
|
data: menu,
|
|
@ -113,47 +118,44 @@
|
|
|
slide: false,
|
|
|
nodeDraggable: false,
|
|
|
isExpand: false,
|
|
|
parentIcon:true,
|
|
|
nodeWidth:176,
|
|
|
parentIcon: true,
|
|
|
nodeWidth: 176,
|
|
|
onSelect: function (obj) {
|
|
|
if(obj.data.url!=undefined)
|
|
|
{
|
|
|
if (obj.data.url != undefined) {
|
|
|
me.openMenu(obj);
|
|
|
}
|
|
|
},
|
|
|
//一级节点不可选中
|
|
|
onAfterAppend:function(){
|
|
|
$.each($("#ulTree li[outlinelevel='1']"),function(index,item){
|
|
|
onAfterAppend: function () {
|
|
|
$.each($("#ulTree li[outlinelevel='1']"), function (index, item) {
|
|
|
$(item).addClass("l-unselectable");
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//首页按钮
|
|
|
$('#btnIndexHome').bind('click',function(){
|
|
|
$('#btnIndexHome').bind('click', function () {
|
|
|
me.openHome();
|
|
|
});
|
|
|
//退出按钮
|
|
|
$('#btnIndexLogout').click(function(){
|
|
|
$.ligerDialog.confirm('是否确认退出!', function (yes)
|
|
|
{
|
|
|
if(yes)
|
|
|
{
|
|
|
$('#btnIndexLogout').click(function () {
|
|
|
$.ligerDialog.confirm('是否确认退出!', function (yes) {
|
|
|
if (yes) {
|
|
|
$.ajax({ //获取表的字段列表
|
|
|
type: "POST",
|
|
|
url : "${contextRoot}/system/logoutAction",
|
|
|
dataType : "json",
|
|
|
cache:false,
|
|
|
success :function(data){
|
|
|
if(data.successFlg) {
|
|
|
url: "${contextRoot}/system/logoutAction",
|
|
|
dataType: "json",
|
|
|
cache: false,
|
|
|
success: function (data) {
|
|
|
if (data.successFlg) {
|
|
|
location.href = "${contextRoot}/loginPage";
|
|
|
}
|
|
|
else{
|
|
|
else {
|
|
|
$.ligerDialog.error(data.message);
|
|
|
}
|
|
|
},
|
|
|
error :function(data){
|
|
|
$.ligerDialog.error("Status:"+data.status +"(" +data.statusText+")");
|
|
|
error: function (data) {
|
|
|
$.ligerDialog.error("Status:" + data.status + "(" + data.statusText + ")");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@ -162,8 +164,8 @@
|
|
|
|
|
|
});
|
|
|
|
|
|
$('#btnIndexPassword').click(function(){
|
|
|
me.dialog= $.ligerDialog.open({
|
|
|
$('#btnIndexPassword').click(function () {
|
|
|
me.dialog = $.ligerDialog.open({
|
|
|
height: 300,
|
|
|
width: 600,
|
|
|
title: "修改密码",
|
|
@ -176,11 +178,11 @@
|
|
|
me.openMenuByText("任务跟踪");
|
|
|
},
|
|
|
//加载中
|
|
|
loading:function(){
|
|
|
loading: function () {
|
|
|
$('#divIndexContent').html("loading...");
|
|
|
},
|
|
|
//首页按钮选择/取消
|
|
|
clickHomeBtn:function(isClick){
|
|
|
clickHomeBtn: function (isClick) {
|
|
|
try {
|
|
|
var btn = $("#btnIndexHome");
|
|
|
if (!isClick) {
|
|
@ -190,13 +192,12 @@
|
|
|
btn.addClass('m-index-menu-top-over');
|
|
|
}
|
|
|
}
|
|
|
catch(e)
|
|
|
{
|
|
|
catch (e) {
|
|
|
return;
|
|
|
}
|
|
|
},
|
|
|
//打开首页
|
|
|
openHome:function(){
|
|
|
openHome: function () {
|
|
|
try {
|
|
|
var me = this;
|
|
|
me.localNav = [];
|
|
@ -209,13 +210,12 @@
|
|
|
me.loading();
|
|
|
$('#divIndexContent').load(me.homeUrl);
|
|
|
}
|
|
|
catch(e)
|
|
|
{
|
|
|
catch (e) {
|
|
|
return;
|
|
|
}
|
|
|
},
|
|
|
//刷新当前位置栏
|
|
|
localRender:function(){
|
|
|
localRender: function () {
|
|
|
try {
|
|
|
var me = this;
|
|
|
var html = "";
|
|
@ -235,13 +235,12 @@
|
|
|
|
|
|
$('#indexNav').html(html);
|
|
|
}
|
|
|
catch(e)
|
|
|
{
|
|
|
catch (e) {
|
|
|
return;
|
|
|
}
|
|
|
},
|
|
|
//打开菜单(暂不考虑多级菜单)
|
|
|
openMenu:function(obj){
|
|
|
openMenu: function (obj) {
|
|
|
try {
|
|
|
var me = this;
|
|
|
var id = obj.data.id;
|
|
@ -264,20 +263,19 @@
|
|
|
me.loadPage(url);
|
|
|
}
|
|
|
}
|
|
|
catch(e)
|
|
|
{
|
|
|
catch (e) {
|
|
|
return;
|
|
|
}
|
|
|
},
|
|
|
//弹窗返回
|
|
|
dialogSuccess:function(message){
|
|
|
dialogSuccess: function (message) {
|
|
|
|
|
|
this.dialog.close();
|
|
|
|
|
|
$.ligerDialog.success(message);
|
|
|
},
|
|
|
//打开子功能页面
|
|
|
openChildPage:function(text,url,targetType,data,fun){
|
|
|
openChildPage: function (text, url, targetType, data, fun) {
|
|
|
try {
|
|
|
var me = this;
|
|
|
me.localNav.push({text: text, url: url, data: data, fun: fun});
|
|
@ -293,14 +291,13 @@
|
|
|
me.loadPage(url, data, fun);
|
|
|
}
|
|
|
}
|
|
|
catch(e)
|
|
|
{
|
|
|
catch (e) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
},
|
|
|
//加载页面
|
|
|
loadPage:function(url,data,fun){
|
|
|
loadPage: function (url, data, fun) {
|
|
|
try {
|
|
|
var me = this;
|
|
|
|
|
@ -312,32 +309,30 @@
|
|
|
});
|
|
|
$('#divIndexContent').html(div);
|
|
|
}
|
|
|
catch(e)
|
|
|
{
|
|
|
catch (e) {
|
|
|
return;
|
|
|
}
|
|
|
},
|
|
|
//加载iframe页面
|
|
|
loadIframePage:function(url,data,fun){
|
|
|
loadIframePage: function (url, data, fun) {
|
|
|
try {
|
|
|
var me = this;
|
|
|
|
|
|
$('#divIndexContent').html("<iframe style='height:98%;width:100%' frameborder='0' src='" + url + "' allowTransparency='true'></iframe>");
|
|
|
}
|
|
|
catch(e)
|
|
|
{
|
|
|
catch (e) {
|
|
|
return;
|
|
|
}
|
|
|
},
|
|
|
//通过text打开菜单
|
|
|
openMenuByText:function(text,params,select){
|
|
|
openMenuByText: function (text, params, select) {
|
|
|
try {
|
|
|
var me = this;
|
|
|
|
|
|
if(select==false) {
|
|
|
if (select == false) {
|
|
|
var nodeText = $("span", me.menuTree.tree);
|
|
|
var url = "";
|
|
|
$.each($("div[class='l-body l-selected']", me.menuTree.tree),function(){
|
|
|
$.each($("div[class='l-body l-selected']", me.menuTree.tree), function () {
|
|
|
$(this).removeClass("l-selected");
|
|
|
});
|
|
|
debugger
|
|
@ -358,21 +353,20 @@
|
|
|
me.clickHomeBtn(false);
|
|
|
//打开页面
|
|
|
|
|
|
me.loadPage(url,params);
|
|
|
me.loadPage(url, params);
|
|
|
}
|
|
|
else{
|
|
|
else {
|
|
|
//选择节点
|
|
|
me.menuTree.queryByText(text,select);
|
|
|
me.menuTree.queryByText(text, select);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
catch(e)
|
|
|
{
|
|
|
catch (e) {
|
|
|
return;
|
|
|
}
|
|
|
},
|
|
|
//刷新当前页面
|
|
|
refresh:function(){
|
|
|
refresh: function () {
|
|
|
try {
|
|
|
var me = this;
|
|
|
if (me.localNav.length > 0) {
|
|
@ -380,8 +374,7 @@
|
|
|
me.openMenuByText(text);
|
|
|
}
|
|
|
}
|
|
|
catch(e)
|
|
|
{
|
|
|
catch (e) {
|
|
|
return;
|
|
|
}
|
|
|
}
|