执行器库表信息查询修改,展示优化,增加快捷键执行

This commit is contained in:
暮光:城中城
2019-09-02 22:47:24 +08:00
parent 9c29f4c8fd
commit abc24b424f
15 changed files with 255 additions and 186 deletions

View File

@@ -147,6 +147,10 @@
},
handleNodeClick(node) {
console.log("点击节点:", node);
// 执行器里面点击库表不跳转页面
// if (this.$router.currentRoute.path == "/data/executor") {
// return;
// }
if (node.type == 1) {
this.nowClickPath = {sourceId: this.choiceDatasourceId, host: node.host, dbName: node.dbName, tableName: node.tableName};
this.$router.push({path: '/table/database', query: this.nowClickPath});
@@ -217,7 +221,7 @@
if (app.databaseList.length > 0) {
return;
}
this.choiceDatasourceId = sourceId;
this.choiceDatasourceId = parseInt(sourceId);
this.loadDatabaseList(sourceId, host, function () {
app.databaseExpandedKeys = [host];
});