Commit 75ea3496 authored by 李苏's avatar 李苏 💬

延迟绘图,

parent add99fce
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
<el-input v-model="dqjd" placeholder="请输入查询节点"> <el-input v-model="dqjd" placeholder="请输入查询节点">
</el-input> </el-input>
</el-col> </el-col>
<el-col :span="2"> <el-col :span="2">
<div class="padding-10 flex-center"> <div class="padding-10 flex-center">
<el-button @click="cx(true)" size='mini' type="primary">上游查询</el-button> <el-button @click="cx(true)" size='mini' type="primary">上游查询</el-button>
...@@ -164,7 +163,7 @@ ...@@ -164,7 +163,7 @@
change(val) { change(val) {
if (this.showList[val]) { if (this.showList[val]) {
this.$nextTick(() => { setTimeout(()=>{
this.arrowLineList.forEach(item => item.remove()) this.arrowLineList.forEach(item => item.remove())
this.arrowLineList = [] this.arrowLineList = []
let name = this.showList[val].name let name = this.showList[val].name
...@@ -209,7 +208,9 @@ ...@@ -209,7 +208,9 @@
this.arrowLineList.forEach(item => item.position()) this.arrowLineList.forEach(item => item.position())
this.lxObj = this.showList[val] this.lxObj = this.showList[val]
}) },200)
} else { } else {
this.arrowLineList.forEach(item => item.remove()) this.arrowLineList.forEach(item => item.remove())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment