...
|
...
|
@@ -130,6 +130,11 @@ export default { |
|
|
proxy.targetId=props.propsData.targetId;
|
|
|
proxy.busTypeArr=[props.propsData.bizId];
|
|
|
}
|
|
|
if(proxy.targetId){
|
|
|
proxy.isDetail=true;
|
|
|
}else{
|
|
|
proxy.isDetail=false;
|
|
|
}
|
|
|
console.log("*",props.propsData,proxy.bizId,proxy.busTypeArr)
|
|
|
|
|
|
}
|
...
|
...
|
@@ -154,7 +159,40 @@ export default { |
|
|
proxy.pageSize=limit;
|
|
|
proxy.getEnvironmentData()
|
|
|
}
|
|
|
//获取基础环境资源列表数据
|
|
|
let getEnvironmentData=()=>{
|
|
|
let params={
|
|
|
busId:proxy.bizId,
|
|
|
resId:proxy.resTypeArr,
|
|
|
page:proxy.page,
|
|
|
pageSize:proxy.pageSize
|
|
|
|
|
|
}
|
|
|
console.log("*/*/*",proxy.targetId)
|
|
|
if(proxy.targetId){
|
|
|
//详情页面
|
|
|
proxy.isDetail=true;
|
|
|
proxy.$http.get('/api-web/fault/conf/base/getFaultBaseAllResInfo',params,function (res){
|
|
|
if(res && res.data){
|
|
|
proxy.count = res.count;
|
|
|
proxy.tableDataList=res.data;
|
|
|
proxy.$emit('baseCount',proxy.count);
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
|
proxy.isDetail=false;
|
|
|
proxy.$http.get('/api-web/fault/base/config/page',params,function (res){
|
|
|
if(res && res.data){
|
|
|
proxy.count = res.count;
|
|
|
proxy.tableDataList=res.data;
|
|
|
proxy.$emit('baseCount',proxy.count);
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
}
|
|
|
return {
|
|
|
getEnvironmentData,
|
|
|
loadTableDataList,
|
|
|
page,
|
|
|
pageSize,
|
...
|
...
|
@@ -215,39 +253,7 @@ export default { |
|
|
})
|
|
|
|
|
|
},
|
|
|
//获取基础环境资源列表数据
|
|
|
getEnvironmentData(){
|
|
|
let that=this;
|
|
|
let params={
|
|
|
busId:this.bizId,
|
|
|
resId:this.resTypeArr,
|
|
|
page:this.page,
|
|
|
pageSize:this.pageSize
|
|
|
|
|
|
}
|
|
|
console.log("*/*/*",this.targetId)
|
|
|
if(this.targetId){
|
|
|
//详情页面
|
|
|
this.isDetail=true;
|
|
|
this.$http.get('/api-web/fault/conf/base/getFaultBaseAllResInfo',params,function (res){
|
|
|
if(res && res.data){
|
|
|
that.count = res.count;
|
|
|
that.tableDataList=res.data;
|
|
|
that.$emit('baseCount',that.count);
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
|
this.isDetail=false;
|
|
|
this.$http.get('/api-web/fault/base/config/page',params,function (res){
|
|
|
if(res && res.data){
|
|
|
that.count = res.count;
|
|
|
that.tableDataList=res.data;
|
|
|
that.$emit('baseCount',that.count);
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|