标签页以tab形式展示

This commit is contained in:
暮光:城中城
2020-05-03 09:21:28 +08:00
parent 211eafaeed
commit 5300348552
12 changed files with 212 additions and 17 deletions

View File

@@ -1,13 +1,8 @@
<template>
<div class="data-executor-vue">
<div style="padding: 10px;height: 100%;box-sizing: border-box;background: #fafafa;">
<div style="padding: 0 10px;height: 100%;box-sizing: border-box;">
<el-card style="margin-bottom: 10px;">
<div>
<!-- <el-select v-model="choiceDatabase" @change="databaseChangeEvents" filterable placeholder="请选择数据库">-->
<!-- <el-option v-for="item in databaseList" :key="item.dbName" :label="item.dbName" :value="item.dbName"></el-option>-->
<!-- </el-select>-->
</div>
<pre id="sqlExecutorEditor" style="width: 100%;height: 500px;"></pre>
<pre id="sqlExecutorEditor" style="width: 100%;height: 500px;margin-top: 0;"></pre>
<div>
<el-button v-if="sqlExecuting" v-on:click="cancelExecutorSql" type="primary" plain size="small" icon="el-icon-video-pause">取消执行</el-button>
<el-tooltip v-else effect="dark" content="Ctrl+R、Ctrl+Enter" placement="top">

View File

@@ -1,6 +1,6 @@
<template>
<div id="app">
<div style="padding: 10px;height: 100%;box-sizing: border-box;background: #fafafa;">
<div style="padding: 10px;height: 100%;box-sizing: border-box;">
<el-card style="margin: 10px;">
<div slot="header" class="clearfix">
<span>数据库表导出</span>

View File

@@ -1,6 +1,6 @@
<template>
<div class="data-transfer-vue">
<div style="padding: 10px;height: 100%;box-sizing: border-box;background: #fafafa;">
<div style="padding: 0 10px;height: 100%;box-sizing: border-box;">
<el-card style="margin: 10px;">
<div slot="header" class="clearfix">
<span>数据互导工具</span>

View File

@@ -115,6 +115,11 @@
tableInfo.newDesc = tableInfo.description;
app.tableInfo = tableInfo;
app.columnListLoading = false;
var newName = {key: app.$route.fullPath, val: tableInfo.tableName};
app.$store.commit('global/addTableName', newName);
app.$forceUpdate();
console.log(newName)
// app.$store.state.global.pageTabNameMap
});
this.common.post(this.apilist1.tableStatus, this.vueQueryParam, function (json) {
app.tableStatusInfo = json.data || {};