Commit 841f6db5 by liuyong

修改bug

1 parent b0c7412c
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="search_menu_item" style="margin-top: 15px;"> <div class="search_menu_item" style="margin-top: 15px;">
<span class="search_title">架构内容:</span> <span class="search_title">架构内容:</span>
<!-- <el-input v-no-backslash v-model="query_item1" placeholder="请输入" style="width: 300px;" maxlength="100"></el-input> --> <!-- <el-input v-no-backslash v-model="query_item1" placeholder="请输入" style="width: 300px;" maxlength="100"></el-input> -->
<el-input placeholder="请输入内容" v-model="query_item1" style="width: 300px;"> <el-input placeholder="请输入内容" v-no-backslash v-model="query_item1" clearable style="width: 300px;">
<template slot="append"> <template slot="append">
<div style="cursor: pointer;width: 50px;height: 35px;display: flex;justify-content: center;align-items: center;" @click="select1"> <div style="cursor: pointer;width: 50px;height: 35px;display: flex;justify-content: center;align-items: center;" @click="select1">
<i class="el-icon-search"></i> <i class="el-icon-search"></i>
...@@ -66,6 +66,9 @@ export default { ...@@ -66,6 +66,9 @@ export default {
}, },
select2(data) { select2(data) {
if(this.myChart) {
this.myChart.dispose();
}
this.getTreeData(); this.getTreeData();
}, },
echarts1(seriesData, linkData) { echarts1(seriesData, linkData) {
...@@ -137,8 +140,6 @@ export default { ...@@ -137,8 +140,6 @@ export default {
if(tree.checkedNodes.length > 0) { if(tree.checkedNodes.length > 0) {
console.log(tree.checkedNodes)
tree.checkedNodes.forEach(item => { tree.checkedNodes.forEach(item => {
if(!item.targetList){ if(!item.targetList){
return; return;
...@@ -175,24 +176,24 @@ export default { ...@@ -175,24 +176,24 @@ export default {
} }
}) })
// var new_arr2 = [] var new_arr2 = []
// for (var i = 0; i < seriesData.length; i++) { for (var i = 0; i < seriesData.length; i++) {
// var flag = true var flag = true
// for (var j = 0; j < new_arr2.length; j++) { for (var j = 0; j < new_arr2.length; j++) {
// if (new_arr2[j].id == seriesData[i].id) { if (new_arr2[j].id == seriesData[i].id) {
// flag = false flag = false
// } }
// } }
// if (flag) { if (flag) {
// new_arr2.push(seriesData[i]) new_arr2.push(seriesData[i])
// } }
// } }
// seriesData = new_arr2; seriesData = new_arr2;
// this.echarts1(seriesData, linkData); this.echarts1(seriesData, linkData);
}else { }else {
// this.myChart.dispose(); this.myChart.dispose();
} }
}, },
} }
......
...@@ -126,6 +126,7 @@ ...@@ -126,6 +126,7 @@
width: 35%; width: 35%;
height: 100%; height: 100%;
border-right: 2px solid #ccc; border-right: 2px solid #ccc;
overflow-y: auto;
} }
.containerRight{ .containerRight{
width: 45%; width: 45%;
......
...@@ -126,6 +126,7 @@ ...@@ -126,6 +126,7 @@
width: 35%; width: 35%;
height: 100%; height: 100%;
border-right: 2px solid #ccc; border-right: 2px solid #ccc;
overflow-y: auto;
} }
.containerRight{ .containerRight{
width: 45%; width: 45%;
......
...@@ -126,6 +126,7 @@ ...@@ -126,6 +126,7 @@
width: 35%; width: 35%;
height: 100%; height: 100%;
border-right: 2px solid #ccc; border-right: 2px solid #ccc;
overflow-y: auto;
} }
.containerRight{ .containerRight{
width: 45%; width: 45%;
......
...@@ -126,6 +126,7 @@ ...@@ -126,6 +126,7 @@
width: 35%; width: 35%;
height: 100%; height: 100%;
border-right: 2px solid #ccc; border-right: 2px solid #ccc;
overflow-y: auto;
} }
.containerRight{ .containerRight{
width: 45%; width: 45%;
......
...@@ -126,6 +126,7 @@ ...@@ -126,6 +126,7 @@
width: 35%; width: 35%;
height: 100%; height: 100%;
border-right: 2px solid #ccc; border-right: 2px solid #ccc;
overflow-y: auto;
} }
.containerRight{ .containerRight{
width: 45%; width: 45%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!