fix(生成代码): 数据源的优化

This commit is contained in:
Zhu
2025-04-24 16:05:18 +08:00
parent 00f5c882e2
commit 2df210fe6b

View File

@@ -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;