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
Plain Diff
Browse Files
Authored by
鲁尚清
3 years ago
Commit
c0e1e96d76bbfb1d4fe2c26284f84130919ecd71
2 parents
0ef50f4f
5a7ac61f
Merge branch 'master' of
http://192.168.1.136:82/monitor_v3/hg-monitor-web
into …
…master-v32-lushangqing
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
6 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/commonCols.js
hg-monitor-web-base/src/main/resources/static/vue3/src/views/ajConfig/view/index.js
hg-monitor-web-tj/src/main/resources/application.yml
hg-monitor-web-tj/src/main/resources/static/start/index.html
hg-monitor-web-base/src/main/resources/static/src/controller/commonCols.js
View file @
c0e1e96
...
...
@@ -8,6 +8,7 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin',
var
common
=
layui
.
common
;
var
sessions
=
layui
.
sessions
;
var
accessToken
=
sessions
.
getToken
()[
'access_token'
];
var
regular
=
eval
(
sessionStorage
.
getItem
(
"regular"
));
var
soulTable
=
layui
.
soulTable
;
var
laytpl
=
layui
.
laytpl
;
var
view
=
layui
.
view
;
...
...
@@ -3014,7 +3015,7 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin',
e
.
preventDefault
();
//按钮
let
that
=
$
(
this
);
let
elementName
=
that
.
text
();
let
elementName
=
that
.
text
()
.
replace
(
regular
,
""
)
;
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/bHalt'
,
data
:{
...
...
@@ -3049,7 +3050,7 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin',
e
.
preventDefault
();
//超链接
let
that
=
$
(
this
);
let
elementName
=
that
.
text
();
let
elementName
=
that
.
text
()
.
replace
(
regular
,
""
)
;
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/bHalt'
,
data
:{
...
...
@@ -3083,7 +3084,7 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin',
e
.
preventDefault
();
//表头
let
that
=
$
(
this
);
let
elementName
=
that
.
text
();
let
elementName
=
that
.
text
()
.
replace
(
regular
,
""
)
;
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/bHalt'
,
data
:{
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/views/ajConfig/view/index.js
View file @
c0e1e96
...
...
@@ -49,7 +49,24 @@ export default {
proxy
.
$global
.
openDetail
(
e
.
data
.
data
.
resId
,
e
.
data
.
data
.
resType
,
proxy
);
}
else
if
(
e
.
data
.
type
==
'topology'
){
//子页面点击拓扑图标进入拓扑页面
proxy
.
$global
.
viewResTopo
(
e
.
data
.
data
.
resId
);
let
resId
=
data
.
data
.
resId
;
if
(
!
resId
){
// 针对业务的跳转
let
busId
=
e
.
data
.
data
.
busId
;
if
(
busId
){
let
url
=
`
$
{
sessionStorage
.
getItem
(
"graphEditorOrigin"
)}
/jgraph/g
rapheditor
/
viewer
.
html
?
access_token
=
$
{
localStorage
.
getItem
(
'access_token'
)}
&
id
=
$
{
busId
}
&
layout
=
organic
`
proxy
.
$global
.
layui
.
layer
.
open
({
type
:
2
,
id
:
'topology_'
+
(
new
Date
()).
getTime
(),
content
:
url
,
area
:
[
'90%'
,
'90%'
],
title
:
''
});
}
return
;
}
//子页面点击拓扑图标进入拓扑页面
proxy
.
$global
.
viewResTopo
(
resId
);
}
else
if
(
e
.
data
.
type
==
'openJimu'
||
e
.
data
.
type
==
'openAJ'
)
{
// 打开报表页面
let
data
=
e
.
data
.
data
;
...
...
hg-monitor-web-tj/src/main/resources/application.yml
View file @
c0e1e96
...
...
@@ -31,3 +31,4 @@ config:
tingyun
:
api_key
:
aZipZbC18BhpG5GrjtiFAtThL1I0OUfn
secret_key
:
nbxay44wx8c3x4n5wcxe63mp87a72xed
regular
:
/[`~!@#$^&*()=|{}':;',\\\[\]\.<>\/?~!@#¥……&*()——|{}【】';:""'。,、?\s ]/g
...
...
hg-monitor-web-tj/src/main/resources/static/start/index.html
View file @
c0e1e96
...
...
@@ -29,7 +29,7 @@
}),
$
.
ajax
({
url
:
'/config/getConfig'
,
data
:
{
configName
:
'config
.audio
'
configName
:
'config'
},
}),
).
done
(
function
(
res1
,
res2
)
{
...
...
@@ -42,7 +42,8 @@
sessionStorage
.
setItem
(
'ajWeb'
,
res1
[
0
].
ajWeb
);
//lsq 2022-04-07 设置ajWeb的地址
sessionStorage
.
setItem
(
'sxView'
,
res1
[
0
].
sxView
);
sessionStorage
.
setItem
(
'workflow'
,
res1
[
0
].
workflow
);
sessionStorage
.
setItem
(
'mp3'
,
res2
[
0
].
mp3
);
sessionStorage
.
setItem
(
'mp3'
,
res2
[
0
].
audio
.
mp3
);
sessionStorage
.
setItem
(
'regular'
,
res2
[
0
].
regular
);
sessionStorage
.
setItem
(
'jimuReport'
,
res1
[
0
].
jimuReport
);
sessionStorage
.
setItem
(
'cmdbWeb'
,
res1
[
0
].
cmdbWeb
);
})
...
...
Please
register
or
login
to post a comment