add
This commit is contained in:
@ -289,22 +289,11 @@ function handleQuery() {
|
|||||||
}
|
}
|
||||||
/** 生成代码操作 */
|
/** 生成代码操作 */
|
||||||
function handleGenTable(row) {
|
function handleGenTable(row) {
|
||||||
const tbNames = row.tableName || tableNames.value;
|
|
||||||
if (tbNames == "") {
|
|
||||||
proxy.$modal.msgError("请选择要生成的数据");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (row.genType === "1") {
|
|
||||||
genCode(row.tableName).then((response) => {
|
|
||||||
proxy.$modal.msgSuccess("成功生成到自定义路径:" + row.genPath);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
proxy.$download.zip(
|
proxy.$download.zip(
|
||||||
"/tool/gen/batchGenCode?tables=" + tbNames,
|
"/tool/gen/download/" + row.tableId,
|
||||||
"ruoyi.zip"
|
row.tableName + ".zip"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/** 同步数据库操作 */
|
/** 同步数据库操作 */
|
||||||
function handleSynchDb(row) {
|
function handleSynchDb(row) {
|
||||||
const tableName = row.tableName;
|
const tableName = row.tableName;
|
||||||
|
Reference in New Issue
Block a user