...
|
...
|
@@ -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,
|
|
|
npmList:npmListSelectData
|
|
|
apmList: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,
|
...
|
...
|
|