mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 11:51:55 +08:00
代码生成工具支持MyBatisDynamicSql
This commit is contained in:
@@ -70,7 +70,7 @@ export function genCode(tableName) {
|
||||
// 同步数据库
|
||||
export function synchDb(tableName) {
|
||||
return request({
|
||||
url: '/code/gen/synchDb/' + tableName,
|
||||
url: '/code/gen/syncDb/' + tableName,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<template>
|
||||
<div> 表单构建 <svg-icon icon-class="build" /> </div>
|
||||
<div> 表单构建 (此功能未开发) <svg-icon icon-class="build" /> </div>
|
||||
</template>
|
||||
@@ -22,6 +22,16 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12">
|
||||
<el-form-item prop="tplWebType">
|
||||
<template #label>后端类型</template>
|
||||
<el-select v-model="info.tplBackendType">
|
||||
<el-option label="常规模式" value="normal" />
|
||||
<el-option label="MyBatis动态SQL支持" value="mybatis-dynamic" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12">
|
||||
<el-form-item prop="packageName">
|
||||
<template #label>
|
||||
@@ -293,5 +303,11 @@ watch(() => props.info.tplWebType, val => {
|
||||
}
|
||||
});
|
||||
|
||||
watch(() => props.info.tplBackendType, val => {
|
||||
if (val === '') {
|
||||
props.info.tplBackendType = "normal";
|
||||
}
|
||||
});
|
||||
|
||||
getMenuTreeselect();
|
||||
</script>
|
||||
|
||||
@@ -222,7 +222,7 @@ function handleGenTable(row) {
|
||||
proxy.$modal.msgSuccess("成功生成到自定义路径:" + row.genPath);
|
||||
});
|
||||
} else {
|
||||
proxy.$download.zip("/code/gen/batchGenCode?tables=" + tbNames, "ruoyi.zip");
|
||||
proxy.$download.zip("/code/gen/batchGenCode?tables=" + tbNames, "generatedCodes.zip");
|
||||
}
|
||||
}
|
||||
/** 同步数据库操作 */
|
||||
|
||||
Reference in New Issue
Block a user