...
|
...
|
@@ -3,62 +3,59 @@ |
|
|
<head>
|
|
|
<meta charset="utf-8">
|
|
|
<title>运维监控管理平台</title>
|
|
|
<title>综合监控管理系统</title>
|
|
|
<link rel="shortcut icon" href="../src/style/res/shui.png">
|
|
|
<meta name="renderer" content="webkit">
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
|
<link rel="stylesheet" href="/start/layui/css/layui.css" media="all">
|
|
|
<link rel="stylesheet" href="/src/style/css/menuIcon.css" media="all">
|
|
|
<script>
|
|
|
/^http(s*):\/\//.test(location.href) || alert('请先部署到 localhost 下再访问');
|
|
|
/^http(s*):\/\//.test(location.href) || alert('请先部署到 localhost 下再访问');
|
|
|
</script>
|
|
|
</head>
|
|
|
<body>
|
|
|
<div id="LAY_app"></div>
|
|
|
<script src="/start/layui/layui.js"></script>
|
|
|
<script>
|
|
|
layui.use(['jquery'], function () {
|
|
|
var $ = layui.jquery;
|
|
|
// 读取配置文件
|
|
|
$.when(
|
|
|
$.ajax({
|
|
|
url: '/config/getConfig',
|
|
|
data: {
|
|
|
configName: 'url'
|
|
|
},
|
|
|
async: false
|
|
|
}),$.ajax({
|
|
|
url: '/config/getConfig',
|
|
|
data: {
|
|
|
configName: 'config.audio'
|
|
|
},
|
|
|
}),
|
|
|
).done(function (res1,res2) {
|
|
|
sessionStorage.setItem('domainName', res1[0].gateway);
|
|
|
sessionStorage.setItem('domainInspectionURI', res1[0].inspection_web);
|
|
|
sessionStorage.setItem('domainAssetsManage', res1[0].assetsweb);
|
|
|
sessionStorage.setItem('graphEditorOrigin', res1[0].mxgraph_editor);
|
|
|
sessionStorage.setItem('tingyun', res1[0].tingyun);
|
|
|
sessionStorage.setItem('bigScreen', res1[0].bigScreen);
|
|
|
sessionStorage.setItem('ythView', res1[0].ythView);
|
|
|
sessionStorage.setItem('ajWeb', res1[0].ajWeb);
|
|
|
//xwx add 读取业务健康度页面IP地址 2021-10-25 start
|
|
|
sessionStorage.setItem('ywHealth', res1[0].ywHealth);
|
|
|
//xwx add 读取业务健康度页面IP地址 2021-10-25 end
|
|
|
sessionStorage.setItem('sxView', res1[0].sxView);
|
|
|
sessionStorage.setItem('workflow', res1[0].workflow);
|
|
|
sessionStorage.setItem('mp3', res2[0].mp3);
|
|
|
sessionStorage.setItem('jimuReport', res1[0].jimuReport);
|
|
|
sessionStorage.setItem('cmdbWeb', res1[0].cmdbWeb);
|
|
|
})
|
|
|
});
|
|
|
<div id="LAY_app"></div>
|
|
|
<script src="/start/layui/layui.js"></script>
|
|
|
<script>
|
|
|
layui.use(['jquery'], function () {
|
|
|
var $ = layui.jquery;
|
|
|
// 读取配置文件
|
|
|
$.when(
|
|
|
$.ajax({
|
|
|
url: '/config/getConfig',
|
|
|
data: {
|
|
|
configName: 'url'
|
|
|
},
|
|
|
async: false
|
|
|
}),$.ajax({
|
|
|
url: '/config/getConfig',
|
|
|
data: {
|
|
|
configName: 'config.audio'
|
|
|
},
|
|
|
}),
|
|
|
).done(function (res1,res2) {
|
|
|
sessionStorage.setItem('domainName', res1[0].gateway);
|
|
|
sessionStorage.setItem('domainInspectionURI', res1[0].inspection_web);
|
|
|
sessionStorage.setItem('domainAssetsManage', res1[0].assetsweb);
|
|
|
sessionStorage.setItem('graphEditorOrigin', res1[0].mxgraph_editor);
|
|
|
sessionStorage.setItem('tingyun', res1[0].tingyun);
|
|
|
sessionStorage.setItem('bigScreen', res1[0].bigScreen);
|
|
|
sessionStorage.setItem('ythView', res1[0].ythView);
|
|
|
sessionStorage.setItem('ajWeb', res1[0].ajWeb);
|
|
|
//xwx add 读取业务健康度页面IP地址 2021-10-25 start
|
|
|
sessionStorage.setItem('ywHealth', res1[0].ywHealth);
|
|
|
//xwx add 读取业务健康度页面IP地址 2021-10-25 end
|
|
|
sessionStorage.setItem('workflow', res1[0].workflow);
|
|
|
sessionStorage.setItem('mp3', res2[0].mp3);
|
|
|
sessionStorage.setItem('jimuReport', res1[0].jimuReport);
|
|
|
sessionStorage.setItem('cmdbWeb', res1[0].cmdbWeb);
|
|
|
})
|
|
|
});
|
|
|
layui.config({
|
|
|
base: '../src/' //指定 layuiAdmin 项目路径,本地开发用 src,线上用 dist
|
|
|
// ,version: '1.2.1'//运行环境用个固定版本号
|
|
|
,version: new Date().getTime()//本地开发环境,避免改动后的文件未及时生效,所以用时间戳作为版本
|
|
|
}).use('index');
|
|
|
</script>
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|
|
|
|
...
|
...
|
|