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
wangtao
2 years ago
Commit
a8d13745ea1382e2dcf8229a55ee586668b3c92a
1 parent
1023c5ce
fix: 卡片视图增加列表视图参数:classify
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/main-biz-card.js
hg-monitor-web-base/src/main/resources/static/src/views/home/bizCard.html
hg-monitor-web-base/src/main/resources/static/src/controller/main-biz-card.js
View file @
a8d1374
...
...
@@ -183,6 +183,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
var
bizId
=
$
(
this
).
data
(
"id"
);
var
topoId
=
$
(
this
).
data
(
"topoid"
);
var
resNum
=
$
(
this
).
data
(
"resnum"
);
var
classify
=
$
(
this
).
data
(
"classify"
);
// render(topoId,bizId);
currentBizId
=
$
(
this
).
data
(
"id"
);
...
...
@@ -219,8 +220,9 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
message
:
{
'type'
:
"JumpToAlarmManagement"
,
params
:{
"tag"
:
"BUS"
,
"id"
:
bizId
"tag"
:
"BUS"
,
"id"
:
bizId
,
classify
:
classify
}
}
},
'*'
)
...
...
@@ -256,7 +258,8 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
'type'
:
"JumpToListView"
,
params
:{
"tag"
:
"BUS"
,
"id"
:
bizId
"id"
:
bizId
,
classify
:
classify
}
}
},
'*'
)
...
...
@@ -295,6 +298,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
$
(
"#indexbizhealth [data-index-banner-item='type'] .gj-detail-info li"
).
unbind
(
'click'
).
on
(
"click"
,
function
()
{
var
level
=
$
(
this
).
data
(
"level"
);
var
_bizId
=
$
(
this
).
data
(
"bizid"
);
var
classify
=
$
(
this
).
data
(
"classify"
);
var
_resType
=
$
(
this
).
data
(
"restype"
);
var
alarmTotal
=
$
(
this
).
find
(
"b"
).
text
();
if
(
alarmTotal
===
'0'
)
{
...
...
@@ -309,9 +313,8 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
'type'
:
"JumpToListView"
,
params
:{
"tag"
:
"BUS"
,
"_resType"
:
_resType
,
"level"
:
level
,
"id"
:
_bizId
"id"
:
_bizId
,
classify
:
classify
}
}
},
'*'
);
...
...
hg-monitor-web-base/src/main/resources/static/src/views/home/bizCard.html
View file @
a8d1374
...
...
@@ -348,15 +348,15 @@
<!--
<
b
>
{{
item
.
resNUm
}}
<
/b>--
>
<!--
<
div
>
资源量
<
/div>--
>
<!--
<
/li>--
>
<
li
data
-
bizid
=
"{{item.busId}}"
data
-
restype
=
"HOST"
>
<
li
data
-
bizid
=
"{{item.busId}}"
data
-
restype
=
"HOST"
data
-
classify
=
"{{item.classify}}"
>
<
b
>
{{
item
.
hostNum
}}
<
/b
>
<
div
>
操作系统
<
/div
>
<
/li
>
<
li
data
-
bizid
=
"{{item.busId}}"
data
-
restype
=
"MIDDLEWARE"
>
<
li
data
-
bizid
=
"{{item.busId}}"
data
-
restype
=
"MIDDLEWARE"
data
-
classify
=
"{{item.classify}}"
>
<
b
>
{{
item
.
middwareNum
}}
<
/b
>
<
div
>
中间件
<
/div
>
<
/li
>
<
li
data
-
bizid
=
"{{item.busId}}"
data
-
restype
=
"DATABASE"
>
<
li
data
-
bizid
=
"{{item.busId}}"
data
-
restype
=
"DATABASE"
data
-
classify
=
"{{item.classify}}"
>
<
b
>
{{
item
.
databaseNum
}}
<
/b
>
<
div
>
数据库
<
/div
>
<
/li
>
...
...
Please
register
or
login
to post a comment