Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xwx
3 years ago
Commit
a2ca24f53e025c59c1d38cb6e0062668bbaeaa46
1 parent
8fefae52
获取配置文件地址
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
hg-monitor-web-qh/src/main/resources/static/start/index.html
hg-monitor-web-qh/src/main/resources/static/start/index.html
0 → 100644
View file @
a2ca24f
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<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"
>
<script>
/^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
(
'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>
</body>
</html>
...
...
Please
register
or
login
to post a comment