|
@@ -38,6 +38,7 @@
|
|
|
</p>
|
|
|
</template>
|
|
|
</div>
|
|
|
+ <!-- 关联关系 -->
|
|
|
<AssociationVue v-if="insideOrOutside == '1'" :relation="thisRelation" ref="association" @getLineArr = "getLineArr"></AssociationVue>
|
|
|
<!-- 输入输出控制块 -->
|
|
|
<div v-if="insideOrOutside == '2'">
|
|
@@ -368,7 +369,7 @@ export default {
|
|
|
ceshi: "500px",
|
|
|
modelLeftList: [],//模态框内列表
|
|
|
stationCid: "",
|
|
|
- insideOrOutside: '1',//输入输出控制块盒子
|
|
|
+ insideOrOutside: '1',//控制tab切换变量
|
|
|
inOrOutList: [
|
|
|
{
|
|
|
name: "关联图",
|
|
@@ -427,19 +428,14 @@ export default {
|
|
|
methods: {
|
|
|
goUrl(item, index) {
|
|
|
this.selectedIndex = index;
|
|
|
- console.log(item,'item1');
|
|
|
+ // console.log(item,'item1');
|
|
|
+ // 根据index进行切换,减少变量定义
|
|
|
this.insideOrOutside = index+1
|
|
|
// if(item.name == "输入输出控制块"){
|
|
|
// this.insideOrOutside = true
|
|
|
// }else{
|
|
|
// this.insideOrOutside = false
|
|
|
// }
|
|
|
- console.log(item, 'item1');
|
|
|
- if (item.name == "输入输出控制块") {
|
|
|
- this.insideOrOutside = true
|
|
|
- } else {
|
|
|
- this.insideOrOutside = false
|
|
|
- }
|
|
|
// 执行你的跳转逻辑
|
|
|
},
|
|
|
// 拿到首页左侧站点
|