master
parent
e687cc3006
commit
c77bc605b0
|
@ -36,11 +36,14 @@ export function updateGenTable(data) {
|
|||
}
|
||||
|
||||
// 导入表
|
||||
export function importTable(data) {
|
||||
export function importTable(tables, dbName) {
|
||||
return request({
|
||||
url: '/code/gen/importTable',
|
||||
method: 'post',
|
||||
params: data
|
||||
params: {
|
||||
tables: tables,
|
||||
dbName: dbName
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {importTable, listDbTable, selDbNameAll} from "@/api/tool/gen";
|
||||
import {importTable, listDbTable, selDbNameAll} from "../../../api/tool/gen";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
@ -115,7 +115,7 @@ export default {
|
|||
return;
|
||||
}
|
||||
const dbName = this.queryParams.dbName;
|
||||
importTable({tables: tableNames, dbName: dbName}).then(res => {
|
||||
importTable(tableNames, dbName).then(res => {
|
||||
this.$modal.msgSuccess(res.data.msg);
|
||||
this.visible = false;
|
||||
this.$emit("ok");
|
||||
|
|
|
@ -263,7 +263,9 @@ export default {
|
|||
/** 查询表集合 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
console.log(this.loading)
|
||||
listTable(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
|
||||
console.log(response)
|
||||
this.tableList = response.data.rows;
|
||||
this.total = response.data.total;
|
||||
this.loading = false;
|
||||
|
|
Loading…
Reference in New Issue