...
|
...
|
@@ -14,6 +14,9 @@ export default { |
|
|
'APM': Vue.defineAsyncComponent(
|
|
|
() => myImport('views/faultDiagnosis/components/APM/index')
|
|
|
),//APM组件
|
|
|
'DialTest': Vue.defineAsyncComponent(
|
|
|
() => myImport('views/faultDiagnosis/components/dialTest/index')
|
|
|
),//拨测分析组件
|
|
|
'LogMonition': Vue.defineAsyncComponent(
|
|
|
() => myImport('views/faultDiagnosis/components/logMonition/index')
|
|
|
),//日志监测组件
|
...
|
...
|
@@ -35,6 +38,7 @@ export default { |
|
|
applicationMonitorHide: false,
|
|
|
basicEnvironmentHide: false,
|
|
|
apmMonitorHide: false,
|
|
|
dialtestMonitorHide: false,
|
|
|
logDetectionHide: false,
|
|
|
subscriptionReportHide: false,
|
|
|
|
...
|
...
|
@@ -62,6 +66,8 @@ export default { |
|
|
applicationMonitorList: [],
|
|
|
//APM
|
|
|
apmMonitorList: [],
|
|
|
//拨测分析选中项集合
|
|
|
dialtestMonitorList: [],
|
|
|
//日志检测
|
|
|
logDetectionList: [
|
|
|
{
|
...
|
...
|
@@ -106,6 +112,8 @@ export default { |
|
|
setup(props){
|
|
|
const {proxy} = Vue.getCurrentInstance();
|
|
|
let applicationMonitorVisible=Vue.ref(false);
|
|
|
let dialtestMonitorVisible=Vue.ref(false);
|
|
|
|
|
|
let baseVisible=Vue.ref(false);
|
|
|
//btn加载中
|
|
|
let isLoading=Vue.ref(false);
|
...
|
...
|
@@ -128,6 +136,7 @@ export default { |
|
|
let faultStateRadio=Vue.ref('0');//状态启用不启用
|
|
|
let faultApplicationRadio=Vue.ref('0');//应用检测
|
|
|
let faultEnvironmentRadio=Vue.ref('0');//基础环境
|
|
|
let faultDialtestRadio=Vue.ref('0');//拨测分析
|
|
|
let faultAPMRadio=Vue.ref('0');//APM
|
|
|
let faultLogRadio=Vue.ref('0');//日志
|
|
|
//故障名称
|
...
|
...
|
@@ -170,6 +179,7 @@ export default { |
|
|
{type:'npm',targetId:''},
|
|
|
{type:'base',targetId:''},
|
|
|
{type:'apm',targetId:''},
|
|
|
{type:'dialtest',targetId:''},
|
|
|
{type:'log',targetId:''},
|
|
|
{type:'report',targetId:''},
|
|
|
]
|
...
|
...
|
@@ -203,6 +213,7 @@ export default { |
|
|
baseCount,
|
|
|
setDetail,
|
|
|
applicationMonitorVisible,
|
|
|
dialtestMonitorVisible,
|
|
|
baseVisible,
|
|
|
modleId,
|
|
|
ruleId,
|
...
|
...
|
@@ -214,6 +225,7 @@ export default { |
|
|
faultApplicationRadio,
|
|
|
faultEnvironmentRadio,
|
|
|
faultAPMRadio,
|
|
|
faultDialtestRadio,
|
|
|
faultLogRadio,
|
|
|
addAlarmList,
|
|
|
alarmDataList,
|
...
|
...
|
@@ -248,6 +260,7 @@ export default { |
|
|
this.applicationMonitorHide = false;
|
|
|
this.basicEnvironmentHide = false;
|
|
|
this.apmMonitorHide = false;
|
|
|
this.dialtestMonitorHide = false;
|
|
|
this.logDetectionHide = false;
|
|
|
this.subscriptionReportHide = false;
|
|
|
},
|
...
|
...
|
@@ -350,6 +363,29 @@ export default { |
|
|
this.setDetailConfig(this.type)
|
|
|
this.getApmListInfo();
|
|
|
},
|
|
|
//打开拨测分析
|
|
|
dialtestMonitorFunc(index){
|
|
|
if(!this.isSaveModel()){
|
|
|
return;
|
|
|
}
|
|
|
if(this.configData){
|
|
|
this.configData.map(item=>{
|
|
|
if(item.type=='dialtest'){
|
|
|
this.modleId=item.id;
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
this.hiddenAll();
|
|
|
this.dialtestMonitorHide = true;
|
|
|
this.isActiveIndex=index;
|
|
|
this.type='dialtest';
|
|
|
this.state=this.faultDialtestRadio;
|
|
|
this.setDetailConfig(this.type)
|
|
|
|
|
|
this.getDialtestList();
|
|
|
},
|
|
|
|
|
|
//日志检测
|
|
|
logDetectionFunc(index){
|
|
|
if(!this.isSaveModel()){
|
...
|
...
|
@@ -420,6 +456,10 @@ export default { |
|
|
//APM
|
|
|
this.apmMonitorList = newList;
|
|
|
break;
|
|
|
case "dialtestMonitor":
|
|
|
//拨测分析
|
|
|
this.dialtestMonitorList = newList;
|
|
|
break;
|
|
|
case "logDetection":
|
|
|
//日志检测
|
|
|
this.logDetectionList = newList;
|
...
|
...
|
@@ -480,6 +520,17 @@ export default { |
|
|
}
|
|
|
this.APMVisible=true;
|
|
|
break;
|
|
|
case "dialtest":
|
|
|
//拨测分析
|
|
|
if(this.configData){
|
|
|
this.configData.map((item,index)=>{
|
|
|
if(item.type==typeVal){
|
|
|
item.state='1';
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
this.dialtestMonitorVisible=true;
|
|
|
break;
|
|
|
case "log":
|
|
|
//日志检测
|
|
|
this.logMonitionVisible=true;
|
...
|
...
|
@@ -548,6 +599,10 @@ export default { |
|
|
//APM
|
|
|
this.faultAPMRadio=state;
|
|
|
break;
|
|
|
case "dialtest":
|
|
|
//拨测分析
|
|
|
this.faultDialtestRadio=state;
|
|
|
break;
|
|
|
case "log":
|
|
|
//日志检测
|
|
|
this.faultLogRadio=state;
|
...
|
...
|
@@ -562,9 +617,7 @@ export default { |
|
|
//给弹框传值分类型
|
|
|
postPropsData(typeVal,index){
|
|
|
if(this.busTypeArr){
|
|
|
this.switchModelDialog(typeVal,index)
|
|
|
|
|
|
|
|
|
this.switchModelDialog(typeVal,index)
|
|
|
this.setDetailConfig(typeVal);
|
|
|
// this.getTargetId(typeVal)
|
|
|
}else{
|
...
|
...
|
@@ -698,6 +751,38 @@ export default { |
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
//点击添加拨测分析
|
|
|
addDialtestMonitor(){
|
|
|
this.postPropsData('dialtest')
|
|
|
},
|
|
|
//关闭拨测分析弹框
|
|
|
getDialtestMoniList(itemData){
|
|
|
this.dialtestMonitorVisible=false;
|
|
|
if(itemData.faultConfId){
|
|
|
this.faultConfId=itemData.faultConfId;
|
|
|
}
|
|
|
this.setTargetId(itemData.targetId);
|
|
|
|
|
|
// this.targetId=itemData;
|
|
|
// this.applicationMonitorList=itemData;
|
|
|
this.getDialtestList();
|
|
|
},
|
|
|
//获取拨测分析列表数据
|
|
|
getDialtestList(){
|
|
|
let that=this;
|
|
|
this.getTargetId('dialtest')
|
|
|
let params={
|
|
|
targetId:this.targetId,
|
|
|
bizId:this.busTypeArr
|
|
|
}
|
|
|
this.$http.get('/api-web/fault/conf/dialtest/dialtestList',params,function (res){
|
|
|
if(res && res.data){
|
|
|
that.dialtestMonitorList=res.data;
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
//点击添加日志监测弹框
|
|
|
addLogMonitor(){
|
|
|
this.postPropsData('log')
|
...
|
...
|
@@ -800,13 +885,16 @@ export default { |
|
|
break;
|
|
|
case "base":
|
|
|
//基础环境
|
|
|
|
|
|
this.state=this.faultEnvironmentRadio;
|
|
|
break;
|
|
|
case "apm":
|
|
|
//APM
|
|
|
this.state=this.faultAPMRadio;
|
|
|
break;
|
|
|
case "dialtest":
|
|
|
//拨测分析
|
|
|
this.state=this.faultDialtestRadio;
|
|
|
break;
|
|
|
case "log":
|
|
|
//日志检测
|
|
|
this.state=this.faultLogRadio;
|
...
|
...
|
@@ -889,6 +977,10 @@ export default { |
|
|
//APM
|
|
|
this.getApmListInfo();
|
|
|
break;
|
|
|
case "dialtest":
|
|
|
//应用检测
|
|
|
this.getDialtestList();
|
|
|
break;
|
|
|
case "log":
|
|
|
//日志检测
|
|
|
break;
|
...
|
...
|
@@ -926,12 +1018,8 @@ export default { |
|
|
that.kpiId=that.alarmList[0].kpiId;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
},
|
|
|
//通过bizId查找bizName
|
|
|
getBizName(bizId){
|
...
|
...
|
@@ -1068,6 +1156,19 @@ export default { |
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//删除拨测分析
|
|
|
deleteDialtest(item){
|
|
|
let that=this;
|
|
|
let params={
|
|
|
id:item.id
|
|
|
}
|
|
|
this.$http.get('/api-web/fault/conf/dialtest/deleteById',params,function (res){
|
|
|
if(res){
|
|
|
that.$global.showMsg('删除成功');
|
|
|
that.getDialtestList();
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//更改业务选择
|
|
|
changeBUsType(val){
|
|
|
if(val){
|
...
|
...
|
@@ -1115,6 +1216,9 @@ export default { |
|
|
if(that.type=='npm'){
|
|
|
that.getAppList();
|
|
|
}
|
|
|
if(that.type=='dialtest'){
|
|
|
that.getDialtestList();
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//返回首页
|
...
|
...
|
|