master
parent
7e5b6a7925
commit
e687cc3006
|
@ -53,8 +53,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {importTable, listDbTable} from "@/api/tool/gen";
|
import {importTable, listDbTable, selDbNameAll} from "@/api/tool/gen";
|
||||||
import {selDbNameAll} from "../../../api/tool/gen";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
@ -67,6 +66,7 @@ export default {
|
||||||
total: 0,
|
total: 0,
|
||||||
// 表数据
|
// 表数据
|
||||||
dbTableList: [],
|
dbTableList: [],
|
||||||
|
dbs: [],
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
|
@ -115,7 +115,7 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const dbName = this.queryParams.dbName;
|
const dbName = this.queryParams.dbName;
|
||||||
importTable({tables: tableNames}).then(res => {
|
importTable({tables: tableNames, dbName: dbName}).then(res => {
|
||||||
this.$modal.msgSuccess(res.data.msg);
|
this.$modal.msgSuccess(res.data.msg);
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
this.$emit("ok");
|
this.$emit("ok");
|
||||||
|
|
Loading…
Reference in New Issue