Authored by 鲁尚清

故障联调 apm添加重复数据友好提示

... ... @@ -138,11 +138,17 @@ export default {
apmList:[row]
}
proxy.$http.post('/api-web/fault/conf/apm/batchAddApm',params,function (res){
if(res && res.str){
proxy.$global.showMsg('添加成功','success');
proxy.targetId=res.str;
proxy.saveModel();
// proxy.APMVisible=false;
if(res && res.success){
if(res.count==0){
proxy.$global.showMsg(res.msg,'warning');
}else{
proxy.$global.showMsg('添加成功','success');
proxy.targetId=res.str;
proxy.saveModel();
// proxy.APMVisible=false;
}
}else{
proxy.$global.showMsg('添加失败','warning');
}
... ... @@ -222,11 +228,17 @@ export default {
proxy.$global.showMsg('请选择配置','warning');
}else {
proxy.$http.post('/api-web/fault/conf/apm/batchAddApm',params,function (res){
if(res && res.str){
proxy.$global.showMsg('添加成功','success');
proxy.targetId=res.str;
proxy.saveModel();
// proxy.APMVisible=false;
if(res && res.success){
if(res.count==0){
proxy.$global.showMsg(res.msg,'warning');
}else{
proxy.$global.showMsg('添加成功','success');
proxy.targetId=res.str;
proxy.saveModel();
// proxy.APMVisible=false;
}
}
}
)
... ...