Commit 841f6db5 by liuyong

修改bug

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