mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 08:25:53 +08:00
fix(生成代码): 数据源的优化
This commit is contained in:
@@ -117,12 +117,16 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 导入按钮操作 */
|
/** 导入按钮操作 */
|
||||||
handleImportTable() {
|
handleImportTable() {
|
||||||
const tableNames = this.tables.join(",");
|
const tableNames = this.tables.join(',');
|
||||||
if (tableNames == "") {
|
const params = {
|
||||||
this.$modal.msgError("请选择要导入的表");
|
tables: tableNames,
|
||||||
|
dataName: this.queryParams.dataName,
|
||||||
|
};
|
||||||
|
if (tableNames == '') {
|
||||||
|
this.$modal.msgError('请选择要导入的表');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
importTable({ tables: tableNames }).then(res => {
|
importTable(params).then((res) => {
|
||||||
this.$modal.msgSuccess(res.msg);
|
this.$modal.msgSuccess(res.msg);
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user