Showing
1 changed file
with
62 additions
and
0 deletions
1 | +<!DOCTYPE html> | ||
2 | +<html> | ||
3 | +<head> | ||
4 | + <meta charset="utf-8"> | ||
5 | + <title>运维监控管理平台</title> | ||
6 | + <link rel="shortcut icon" href="../src/style/res/shui.png"> | ||
7 | + <meta name="renderer" content="webkit"> | ||
8 | + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
9 | + <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> | ||
10 | + <link rel="stylesheet" href="/start/layui/css/layui.css" media="all"> | ||
11 | + <script> | ||
12 | + /^http(s*):\/\//.test(location.href) || alert('请先部署到 localhost 下再访问'); | ||
13 | + </script> | ||
14 | +</head> | ||
15 | +<body> | ||
16 | + <div id="LAY_app"></div> | ||
17 | + <script src="/start/layui/layui.js"></script> | ||
18 | + <script> | ||
19 | + layui.use(['jquery'], function () { | ||
20 | + var $ = layui.jquery; | ||
21 | + // 读取配置文件 | ||
22 | + $.when( | ||
23 | + $.ajax({ | ||
24 | + url: '/config/getConfig', | ||
25 | + data: { | ||
26 | + configName: 'url' | ||
27 | + }, | ||
28 | + async: false | ||
29 | + }),$.ajax({ | ||
30 | + url: '/config/getConfig', | ||
31 | + data: { | ||
32 | + configName: 'config.audio' | ||
33 | + }, | ||
34 | + }), | ||
35 | + ).done(function (res1,res2) { | ||
36 | + sessionStorage.setItem('domainName', res1[0].gateway); | ||
37 | + sessionStorage.setItem('domainInspectionURI', res1[0].inspection_web); | ||
38 | + sessionStorage.setItem('domainAssetsManage', res1[0].assetsweb); | ||
39 | + sessionStorage.setItem('graphEditorOrigin', res1[0].mxgraph_editor); | ||
40 | + sessionStorage.setItem('tingyun', res1[0].tingyun); | ||
41 | + sessionStorage.setItem('bigScreen', res1[0].bigScreen); | ||
42 | + sessionStorage.setItem('ythView', res1[0].ythView); | ||
43 | + sessionStorage.setItem('ajWeb', res1[0].ajWeb); | ||
44 | + //xwx add 读取业务健康度页面IP地址 2021-10-25 start | ||
45 | + sessionStorage.setItem('ywHealth', res1[0].ywHealth); | ||
46 | + //xwx add 读取业务健康度页面IP地址 2021-10-25 end | ||
47 | + sessionStorage.setItem('workflow', res1[0].workflow); | ||
48 | + sessionStorage.setItem('mp3', res2[0].mp3); | ||
49 | + sessionStorage.setItem('jimuReport', res1[0].jimuReport); | ||
50 | + sessionStorage.setItem('cmdbWeb', res1[0].cmdbWeb); | ||
51 | + }) | ||
52 | + }); | ||
53 | + layui.config({ | ||
54 | + base: '../src/' //指定 layuiAdmin 项目路径,本地开发用 src,线上用 dist | ||
55 | +// ,version: '1.2.1'//运行环境用个固定版本号 | ||
56 | + ,version: new Date().getTime()//本地开发环境,避免改动后的文件未及时生效,所以用时间戳作为版本 | ||
57 | + }).use('index'); | ||
58 | + </script> | ||
59 | +</body> | ||
60 | +</html> | ||
61 | + | ||
62 | + |
-
Please register or login to post a comment