...
|
...
|
@@ -54,34 +54,11 @@ export default { |
|
|
],
|
|
|
|
|
|
//网络检测选中项集合
|
|
|
networkMonitorList: [
|
|
|
{
|
|
|
title: "电子税务局外用链路1",
|
|
|
type: "networkMonitor",
|
|
|
id: "networkMonitor1"
|
|
|
}
|
|
|
],
|
|
|
networkMonitorList: [],
|
|
|
//应用检测选中项集合
|
|
|
applicationMonitorList: [
|
|
|
{
|
|
|
title: "从对接过来的NPM中选择",
|
|
|
type: "applicationMonitor",
|
|
|
id: "applicationMonitor1"
|
|
|
}
|
|
|
],
|
|
|
applicationMonitorList: [],
|
|
|
//APM
|
|
|
apmMonitorList: [
|
|
|
{
|
|
|
title: "arms",
|
|
|
type: "apmMonitor",
|
|
|
id: " apmMonitor1"
|
|
|
},
|
|
|
{
|
|
|
title: "arms2",
|
|
|
type: "apmMonitor",
|
|
|
id: " apmMonitor2"
|
|
|
}
|
|
|
],
|
|
|
apmMonitorList: [],
|
|
|
//日志检测
|
|
|
logDetectionList: [
|
|
|
{
|
...
|
...
|
@@ -204,7 +181,14 @@ export default { |
|
|
}
|
|
|
|
|
|
}
|
|
|
//基础环境数量
|
|
|
let count=Vue.ref(0);
|
|
|
let baseCount=(val)=>{
|
|
|
proxy.count=val;
|
|
|
}
|
|
|
return{
|
|
|
count,
|
|
|
baseCount,
|
|
|
setDetail,
|
|
|
applicationMonitorVisible,
|
|
|
modleId,
|
...
|
...
|
@@ -628,7 +612,7 @@ export default { |
|
|
}
|
|
|
console.log("applist",params)
|
|
|
this.$http.get('/api-web/fault/conf/npm/npmList',params,function (res){
|
|
|
if(res ){
|
|
|
if(res && res.data){
|
|
|
that.applicationMonitorList=res.data;
|
|
|
|
|
|
}
|
...
|
...
|
@@ -792,10 +776,28 @@ export default { |
|
|
//保存模块类型-不包含故障定义模块
|
|
|
saveConfigDetailOther(){
|
|
|
console.log("save",this.state)
|
|
|
let that=this;
|
|
|
this.setState();
|
|
|
this.getTargetId(this.type);
|
|
|
this.getBizName(this.busTypeArr);
|
|
|
let that=this;
|
|
|
if(this.type=='netlink'){
|
|
|
if(this.networkMonitorList.length==0){
|
|
|
this.$global.showMsg('请先选择添加链路配置','warning');
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
}else if(this.type=='npm'){
|
|
|
console.log("aaa",this.applicationMonitorList)
|
|
|
if(this.applicationMonitorList.length==0){
|
|
|
this.$global.showMsg('请先选择添加应用配置','warning');
|
|
|
return;
|
|
|
}
|
|
|
}else if(this.type=='apm'){
|
|
|
if(this.apmMonitorList.length==0){
|
|
|
this.$global.showMsg('请先选择添加apm配置','warning');
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
let params={
|
|
|
type:this.type,
|
|
|
targetId:this.targetId,
|
...
|
...
|
@@ -937,6 +939,11 @@ export default { |
|
|
//保存基础环境
|
|
|
saveBase(){
|
|
|
let that=this;
|
|
|
if(that.faultEnvironmentRadio==1 && that.count==0){
|
|
|
this.$global.showMsg('暂无环境数据,不能启用模块','warning')
|
|
|
that.isLoading=false;
|
|
|
|
|
|
}else{
|
|
|
this.getTargetId('base')
|
|
|
let params={
|
|
|
targetId:this.targetId,
|
...
|
...
|
@@ -956,6 +963,8 @@ export default { |
|
|
that.isLoading=false;
|
|
|
|
|
|
})
|
|
|
}
|
|
|
|
|
|
},
|
|
|
//删除网络监测
|
|
|
deleteNetLink(item) {
|
...
|
...
|
|