...
|
...
|
@@ -37,7 +37,7 @@ |
|
|
content="查看拓扑图"
|
|
|
placement="top"
|
|
|
>
|
|
|
<i class="el-icon-orange" @click="resTopo(item)" ></i>
|
|
|
<i class="el-icon-orange" @click="resTopo({resId:resId,resType:resType})" ></i>
|
|
|
</el-tooltip>
|
|
|
</el-col>
|
|
|
</el-row>
|
...
|
...
|
@@ -370,34 +370,37 @@ |
|
|
const data = this.queryEchartsData(val);
|
|
|
data.then(res => {
|
|
|
console.log("1111",res)
|
|
|
if (res && res[0].code == 0)
|
|
|
this.informationDataAll = res[0].data;
|
|
|
if (this.informationDataAll && this.informationDataAll.length > 0) {
|
|
|
if (res && res[0].code == 0){
|
|
|
this.informationDataAll = res[0].data;
|
|
|
if (this.informationDataAll && this.informationDataAll.length > 0) {
|
|
|
this.informationDataAll.map(item => {
|
|
|
if (typeof (item.value) != 'string') {
|
|
|
item.value = item.value[0].state;
|
|
|
}
|
|
|
if (typeof (item.value) != 'string') {
|
|
|
item.value =item.value[0].state;
|
|
|
}
|
|
|
if(this.tableHeadInfos.length==0) {
|
|
|
item.isDisplay = '1';
|
|
|
}
|
|
|
|
|
|
})
|
|
|
}
|
|
|
this.setDisplay();
|
|
|
let addTableData=[];
|
|
|
this.informationDataAll.map((item,index)=>{
|
|
|
addTableData.push({
|
|
|
key:item.code,
|
|
|
name:item.name,
|
|
|
width:"50%",
|
|
|
isDisplay:item.isDisplay,
|
|
|
state:item.state,
|
|
|
value:item.value
|
|
|
}
|
|
|
this.setDisplay();
|
|
|
let addTableData=[];
|
|
|
this.informationDataAll.map((item,index)=>{
|
|
|
addTableData.push({
|
|
|
key:item.code,
|
|
|
name:item.name,
|
|
|
width:"50%",
|
|
|
isDisplay:item.isDisplay,
|
|
|
state:item.state,
|
|
|
value:item.value
|
|
|
})
|
|
|
})
|
|
|
})
|
|
|
|
|
|
this.$store.commit('CHANGW_HEAD_INFO', addTableData);
|
|
|
this.hackResetFun();
|
|
|
this.$store.commit('CHANGW_HEAD_INFO', addTableData);
|
|
|
this.hackResetFun();
|
|
|
}
|
|
|
|
|
|
|
|
|
});
|
|
|
},
|
|
|
// vue hack 之强制刷新组件
|
...
|
...
|
@@ -477,7 +480,17 @@ |
|
|
this.titleName=this.$route.query.titleName;
|
|
|
this.resId=this.$route.query.resId;
|
|
|
this.resType=this.$route.query.resType;
|
|
|
}
|
|
|
if(this.resId){
|
|
|
this.handleInfoData();
|
|
|
}
|
|
|
},
|
|
|
//根据resId获取信息详情
|
|
|
handleInfoData() {
|
|
|
let optionsData = this.optionsData;
|
|
|
if (this.optionsData.dataType == "dynamicData") {
|
|
|
this.optionsData.dynamicData.contextData.resId = this.resId;
|
|
|
}
|
|
|
},
|
|
|
|
|
|
},
|
|
|
}
|
...
|
...
|
|