Authored by 鲁尚清

Merge branch 'master' of http://192.168.1.136:82/monitor_v3/hg-monitor-web into …

…master-v32-lushangqing
@@ -137,7 +137,7 @@ export default { @@ -137,7 +137,7 @@ export default {
137 targetId:proxy.targetId, 137 targetId:proxy.targetId,
138 apmList:[row] 138 apmList:[row]
139 } 139 }
140 - proxy.$http.post('/fault/conf/apm/batchAddApm',params,function (res){ 140 + proxy.$http.post('/api-web/fault/conf/apm/batchAddApm',params,function (res){
141 if(res && res.str){ 141 if(res && res.str){
142 proxy.$global.showMsg('添加成功','success'); 142 proxy.$global.showMsg('添加成功','success');
143 proxy.targetId=res.str; 143 proxy.targetId=res.str;
@@ -205,15 +205,19 @@ export default { @@ -205,15 +205,19 @@ export default {
205 /*let params={ 205 /*let params={
206 busId:proxy.bizId 206 busId:proxy.bizId
207 }*/ 207 }*/
208 - proxy.$http.post('/api-web/fault/conf/apm/batchAddApm',params,function (res){  
209 - if(res && res.str){  
210 - proxy.$global.showMsg('添加成功','success');  
211 - proxy.targetId=res.str;  
212 - proxy.saveModel();  
213 - // proxy.APMVisible=false;  
214 - }  
215 -  
216 - }) 208 + if (params.apmList==0){
  209 + proxy.$global.showMsg('请选择资源','warning');
  210 + }else {
  211 + proxy.$http.post('/api-web/fault/conf/apm/batchAddApm',params,function (res){
  212 + if(res && res.str){
  213 + proxy.$global.showMsg('添加成功','success');
  214 + proxy.targetId=res.str;
  215 + proxy.saveModel();
  216 + // proxy.APMVisible=false;
  217 + }
  218 + }
  219 + )
  220 + }
217 } 221 }
218 //切换资源获取指标列表 222 //切换资源获取指标列表
219 let changeRes=(val)=>{ 223 let changeRes=(val)=>{