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