...
|
...
|
@@ -129,6 +129,7 @@ export default { |
|
|
APMVisible:false,//APM弹框
|
|
|
logMonitionVisible:false,//日志监测弹框
|
|
|
subscriptionReportVisible:false,//订阅人员弹框
|
|
|
bizName:'',//业务名称
|
|
|
}
|
|
|
},
|
|
|
setup(props){
|
...
|
...
|
@@ -421,7 +422,7 @@ export default { |
|
|
//详情页设置targetid
|
|
|
setDetailConfig(typeVal){
|
|
|
let that=this;
|
|
|
if(this.configData){
|
|
|
if(this.configData && this.configData.length>0){
|
|
|
console.log("configData",this.configData,typeVal)
|
|
|
this.configData.map((item,index)=>{
|
|
|
if(item.type==typeVal){
|
...
|
...
|
@@ -438,6 +439,8 @@ export default { |
|
|
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
|
that.getTargetId(typeVal)
|
|
|
}
|
|
|
|
|
|
this.propsData={
|
...
|
...
|
@@ -512,6 +515,7 @@ export default { |
|
|
item.targetId=val;
|
|
|
}
|
|
|
})
|
|
|
console.log("modeldata",this.modelData);
|
|
|
},
|
|
|
//获取模块对应的targetId
|
|
|
getTargetId(type){
|
...
|
...
|
@@ -640,7 +644,12 @@ export default { |
|
|
}
|
|
|
|
|
|
if(this.type){
|
|
|
this.saveConfigDetailOther();
|
|
|
if(this.type=='base'){
|
|
|
this.saveBase();
|
|
|
}else{
|
|
|
this.saveConfigDetailOther();
|
|
|
|
|
|
}
|
|
|
}else{
|
|
|
this.saveFaultDefine();
|
|
|
}
|
...
|
...
|
@@ -682,7 +691,8 @@ export default { |
|
|
saveConfigDetailOther(){
|
|
|
console.log("save",this.state)
|
|
|
this.setState();
|
|
|
this.getTargetId(this.type)
|
|
|
this.getTargetId(this.type);
|
|
|
this.getBizName(this.busTypeArr);
|
|
|
let that=this;
|
|
|
let params={
|
|
|
type:this.type,
|
...
|
...
|
@@ -692,6 +702,7 @@ export default { |
|
|
id:this.faultConfId,
|
|
|
name:this.name,
|
|
|
bizId: this.busTypeArr,
|
|
|
bizName:this.bizName,
|
|
|
createBy:localStorage.getItem("lgn")
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -764,19 +775,33 @@ export default { |
|
|
this.$http.get('/api-web/fault/base/config/queryKpiInfo',{},function (res){
|
|
|
if(res && res.data){
|
|
|
that.alarmList=res.data;
|
|
|
if(that.alarmList && that.alarmList.length>0){
|
|
|
that.kpiId=that.alarmList[0].kpiId;
|
|
|
|
|
|
}
|
|
|
|
|
|
that.kpiId=that.alarmList[0].kpiId;
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
},
|
|
|
//通过bizId查找bizName
|
|
|
getBizName(bizId){
|
|
|
let that=this;
|
|
|
this.busTypeList.map(item=>{
|
|
|
if(bizId==item.busId){
|
|
|
that.bizName=item.busTypeName
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//故障定义模块保存 新增故障定义
|
|
|
saveFaultDefine(){
|
|
|
let that=this;
|
|
|
this.getBizName(this.busTypeArr);
|
|
|
let params= {
|
|
|
// state: this.state,
|
|
|
type:'alarm',
|
|
|
triggerValue: this.triggerValue,
|
|
|
kpiId: this.kpiId,
|
|
|
|
...
|
...
|
@@ -784,6 +809,7 @@ export default { |
|
|
id: this.faultConfId,
|
|
|
name: this.name,
|
|
|
bizId: this.busTypeArr,
|
|
|
bizName:this.bizName,
|
|
|
createBy: localStorage.getItem("lgn"),
|
|
|
}
|
|
|
|
...
|
...
|
@@ -803,6 +829,29 @@ export default { |
|
|
|
|
|
})
|
|
|
},
|
|
|
//保存基础环境
|
|
|
saveBase(){
|
|
|
let that=this;
|
|
|
this.getTargetId('base')
|
|
|
let params={
|
|
|
targetId:this.targetId,
|
|
|
bizId:this.busTypeArr
|
|
|
}
|
|
|
this.$http.post('/api-web/fault/conf/base/saveOrUpdate',params,function (res){
|
|
|
if(res && res.success){
|
|
|
that.targetId=res.object.targetId;
|
|
|
that.setTargetId(that.targetId)
|
|
|
// that.$global.showMsg('保存成功')
|
|
|
// that.alarmList=res.data;
|
|
|
that.saveConfigDetailOther();
|
|
|
}else{
|
|
|
that.$global.showMsg('保存失败','warning')
|
|
|
|
|
|
}
|
|
|
that.isLoading=false;
|
|
|
|
|
|
})
|
|
|
},
|
|
|
//删除网络监测
|
|
|
deleteNetLink(item) {
|
|
|
let that=this;
|
...
|
...
|
|