基本信息二根据传递的resId获取基本信息接口数据
Showing
1 changed file
with
12 additions
and
2 deletions
@@ -37,7 +37,7 @@ | @@ -37,7 +37,7 @@ | ||
37 | content="查看拓扑图" | 37 | content="查看拓扑图" |
38 | placement="top" | 38 | placement="top" |
39 | > | 39 | > |
40 | - <i class="el-icon-orange" @click="resTopo(item)" ></i> | 40 | + <i class="el-icon-orange" @click="resTopo({resId:resId,resType:resType})" ></i> |
41 | </el-tooltip> | 41 | </el-tooltip> |
42 | </el-col> | 42 | </el-col> |
43 | </el-row> | 43 | </el-row> |
@@ -480,7 +480,17 @@ | @@ -480,7 +480,17 @@ | ||
480 | this.titleName=this.$route.query.titleName; | 480 | this.titleName=this.$route.query.titleName; |
481 | this.resId=this.$route.query.resId; | 481 | this.resId=this.$route.query.resId; |
482 | this.resType=this.$route.query.resType; | 482 | this.resType=this.$route.query.resType; |
483 | - } | 483 | + if(this.resId){ |
484 | + this.handleInfoData(); | ||
485 | + } | ||
486 | + }, | ||
487 | + //根据resId获取信息详情 | ||
488 | + handleInfoData() { | ||
489 | + let optionsData = this.optionsData; | ||
490 | + if (this.optionsData.dataType == "dynamicData") { | ||
491 | + this.optionsData.dynamicData.contextData.resId = this.resId; | ||
492 | + } | ||
493 | + }, | ||
484 | 494 | ||
485 | }, | 495 | }, |
486 | } | 496 | } |
-
Please register or login to post a comment