...
|
...
|
@@ -87,6 +87,8 @@ export default { |
|
|
let busTypeList = Vue.ref([]);
|
|
|
let bizId=Vue.ref();//所属业务id
|
|
|
let targetId=Vue.ref();//所属模块id
|
|
|
//是否是详情页面
|
|
|
let isDetail=Vue.ref(false);
|
|
|
|
|
|
let init = () =>{
|
|
|
let params={
|
...
|
...
|
@@ -140,6 +142,7 @@ export default { |
|
|
|
|
|
}
|
|
|
return {
|
|
|
isDetail,
|
|
|
changeRes,
|
|
|
setBizId,
|
|
|
bizId,
|
...
|
...
|
@@ -230,12 +233,26 @@ export default { |
|
|
pageSize:5
|
|
|
|
|
|
}
|
|
|
this.$http.get('/api-web/fault/conf/base/getFaultBaseAllResInfo',params,function (res){
|
|
|
if(res && res.data){
|
|
|
that.count = res.count;
|
|
|
that.tableDataList=res.data;
|
|
|
}
|
|
|
})
|
|
|
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;
|
|
|
}
|
|
|
})
|
|
|
}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;
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|