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
df90f4a9ac7b07fbffb8f408c86cb59d0be7e692
1 parent
7b4c1f54
停机管理右键展示提示信息添加正则验证【正则表达式添加配置文件】
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/commonCols.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 @
df90f4a
...
...
@@ -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-tj/src/main/resources/application.yml
View file @
df90f4a
...
...
@@ -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 @
df90f4a
...
...
@@ -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