|
@@ -4,7 +4,9 @@
|
|
|
<div class="flex">
|
|
|
<el-input size="small" v-model="form.start" style="width: 200px;margin-right: 6px;" placeholder="Search"></el-input>
|
|
|
<!-- <el-input size="small" v-model="form.end" style="width: 120px;margin-right: 6px;" placeholder="末节点"></el-input> -->
|
|
|
- <button class="el-button el-button--primary el-button--small" icon="Search" @click="search"><el-icon><Search></Search></el-icon></button>
|
|
|
+ <button class="el-button el-button--primary el-button--small" icon="Search" @click="search()"><el-icon>
|
|
|
+ <Search></Search>
|
|
|
+ </el-icon></button>
|
|
|
|
|
|
</div>
|
|
|
<!-- <button class="el-button el-button--primary el-button--small" @click="search">返回上一级</button> -->
|
|
@@ -60,11 +62,10 @@ function getTableData() {
|
|
|
}).finally(() => loading.value = false)
|
|
|
}
|
|
|
|
|
|
-function search() {
|
|
|
- if (form.start) {
|
|
|
+function search(dblclick = false) {
|
|
|
+ if (form.start || dblclick) {
|
|
|
num++
|
|
|
graph.clear();
|
|
|
- // graph.destroy();
|
|
|
graph.data(getRandomData(num));
|
|
|
graph.render();
|
|
|
loadingTableData()
|
|
@@ -118,7 +119,7 @@ function nodeClick2(e) {
|
|
|
}
|
|
|
|
|
|
function rowDblclick(row) {
|
|
|
- search()
|
|
|
+ search(true)
|
|
|
}
|
|
|
|
|
|
</script>
|