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
b294000ad7922ab60bf3ad443d3de3b79918ab7b
2 parents
b3e4e1fe
476659fd
Merge branch 'master' of
http://192.168.1.136:82/monitor_v3/hg-monitor-web
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
13 deletions
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/faultDiagnosis/components/APM/index.html
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/faultDiagnosis/components/APM/index.js
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/faultDiagnosis/components/applicationMoni/index.html
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/faultDiagnosis/components/applicationMoni/index.js
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/faultDiagnosis/components/diagnosis/index.js
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/faultDiagnosis/components/APM/index.html
View file @
b294000
...
...
@@ -30,7 +30,8 @@
<div
class=
"flex-div-start"
>
<el-button
type=
"primary"
@
click=
"onReset()"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"onBtnSearch()"
style=
"margin-left: 10px"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"saveAll()"
style=
"margin-left: 10px"
>
添加
</el-button>
<el-button
type=
"primary"
@
click=
"saveAll()"
style=
"margin-left: 10px"
>
添加选中
</el-button>
<el-button
type=
"primary"
@
click=
"saveAlldata()"
style=
"margin-left: 10px"
>
全部添加
</el-button>
</div>
</div>
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/faultDiagnosis/components/APM/index.js
View file @
b294000
...
...
@@ -105,18 +105,22 @@ export default {
}
//添加Apm
let
addRes
=
(
row
,
index
)
=>
{
let
params
=
{
/*
let params={
targetId:proxy.targetId,
resId:row.resId,
kpiId:row.kpiId,
flag:row.flag,
createBy:localStorage.getItem("lgn")
}*/
let
params
=
{
targetId
:
proxy
.
targetId
,
apmList
:[
row
]
}
proxy
.
$http
.
post
(
'/
api-web/fault/conf/apm/saveOrUpdate'
,[
params
]
,
function
(
res
){
proxy
.
$http
.
post
(
'/
fault/conf/apm/batchAddApm'
,
params
,
function
(
res
){
if
(
res
&&
res
.
object
){
proxy
.
$global
.
showMsg
(
'添加成功'
,
'success'
);
proxy
.
targetId
=
res
.
object
.
targetId
proxy
.
targetId
=
res
.
src
;
proxy
.
APMVisible
=
false
;
}
...
...
@@ -124,6 +128,22 @@ export default {
}
//添加全部
let
saveAllData
=
()
=>
{
let
params
=
{
busId
:
proxy
.
bizId
,
targetId
:
proxy
.
targetId
}
proxy
.
$http
.
post
(
'/api-web/fault/conf/apm/saveOrUpdate'
,
params
,
function
(
res
){
if
(
res
&&
res
.
object
){
proxy
.
$global
.
showMsg
(
'添加成功'
,
'success'
);
proxy
.
targetId
=
res
.
src
;
proxy
.
APMVisible
=
false
;
}
})
}
//表格全选事件
let
selectionChange
=
(
val
)
=>
{
let
selectData
=
val
;
...
...
@@ -142,7 +162,7 @@ export default {
})
}
}
//添加
所有
数据
//添加
选中
数据
let
saveAll
=
()
=>
{
let
npmListSelectData
=
[];
proxy
.
tableDataList
.
map
(
item
=>
{
...
...
@@ -153,12 +173,12 @@ export default {
})
let
params
=
{
targetId
:
proxy
.
targetId
,
n
pmList
:
npmListSelectData
a
pmList
:
npmListSelectData
}
/*let params={
busId:proxy.bizId
}*/
proxy
.
$http
.
post
(
'/api-web/fault/conf/apm/
saveOrUpdate
'
,
params
,
function
(
res
){
proxy
.
$http
.
post
(
'/api-web/fault/conf/apm/
batchAddApm
'
,
params
,
function
(
res
){
if
(
res
&&
res
.
object
){
proxy
.
$global
.
showMsg
(
'添加成功'
,
'success'
);
proxy
.
targetId
=
res
.
src
;
...
...
@@ -173,6 +193,7 @@ export default {
}
return
{
saveAllData
,
page
,
pageSize
,
selectionChange
,
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/faultDiagnosis/components/applicationMoni/index.html
View file @
b294000
...
...
@@ -30,7 +30,8 @@
<div
class=
"flex-div-start"
>
<el-button
type=
"primary"
@
click=
"onReset()"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"onBtnSearch()"
style=
"margin-left: 10px"
>
查询
</el-button>
<el-button
type=
"primary"
:disabled=
"isLoading"
@
click=
"saveAll()"
style=
"margin-left: 10px"
>
添加
</el-button>
<el-button
type=
"primary"
:disabled=
"isLoading"
@
click=
"saveAll()"
style=
"margin-left: 10px"
>
添加选中
</el-button>
<el-button
type=
"primary"
:disabled=
"isLoading"
@
click=
"saveAlldata()"
style=
"margin-left: 10px"
>
全部添加
</el-button>
</div>
</div>
</el-col>
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/faultDiagnosis/components/applicationMoni/index.js
View file @
b294000
...
...
@@ -110,6 +110,23 @@ export default {
}
//全部添加
let
saveAlldata
=
()
=>
{
let
params
=
{
busId
:
proxy
.
bizId
,
targetId
:
proxy
.
targetId
,
}
proxy
.
$http
.
post
(
'/api-web/fault/conf/npm/AddAllNpm'
,
params
,
function
(
res
){
if
(
res
){
proxy
.
$global
.
showMsg
(
'添加成功'
,
'success'
);
proxy
.
targetId
=
res
.
str
proxy
.
applicationMonitorVisible
=
false
;
}
})
}
//表格全选事件
let
selectionChange
=
(
val
)
=>
{
console
.
log
(
"selectionChange"
,
val
,
val
.
length
)
...
...
@@ -129,7 +146,8 @@ export default {
})
}
}
//全部添加
//添加选中的
let
saveAll
=
()
=>
{
console
.
log
(
"alldata"
,
proxy
.
tableDataList
);
let
npmListSelectData
=
[];
...
...
@@ -157,6 +175,7 @@ export default {
}
return
{
saveAlldata
,
page
,
pageSize
,
selectionChange
,
...
...
@@ -214,11 +233,11 @@ export default {
getParams
(){
return
{
keyWords
:
this
.
keyWords
,
resType
:
this
.
resTypeArr
.
join
(
','
),
kpiId
:
this
.
kpiTypeArr
.
join
(
','
),
// resType: this.resTypeArr.join(','),
// kpiId: this.kpiTypeArr.join(','),
// busId: this.busTypeArr.join(','),
bizId
:
this
.
bizId
,
configId
:
this
.
config
,
//
configId: this.config,
page
:
this
.
page
,
pageSize
:
this
.
pageSize
}
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/faultDiagnosis/components/diagnosis/index.js
View file @
b294000
...
...
@@ -897,7 +897,7 @@ export default {
let
that
=
this
;
this
.
getTargetId
(
'base'
)
let
params
=
{
//
targetId:this.targetId,
targetId
:
this
.
targetId
,
busId
:
this
.
busTypeArr
}
this
.
$http
.
post
(
'/api-web/fault/conf/base/saveOrUpdate'
,
params
,
function
(
res
){
...
...
Please
register
or
login
to post a comment