|
|
|
@ -91,21 +91,21 @@
|
|
|
|
|
align="center"
|
|
|
|
|
prop="tableName"
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
width="130"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="表描述"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="tableComment"
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
width="130"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="实体"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="className"
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
width="130"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="160" />
|
|
|
|
|
<el-table-column label="更新时间" align="center" prop="updateTime" width="160" />
|
|
|
|
@ -159,7 +159,7 @@
|
|
|
|
|
<!-- 预览界面 -->
|
|
|
|
|
<el-dialog :title="preview.title" :visible.sync="preview.open" width="80%" top="5vh" append-to-body>
|
|
|
|
|
<el-tabs v-model="preview.activeName">
|
|
|
|
|
<el-tab-pane style="overflow-x: scroll;"
|
|
|
|
|
<el-tab-pane
|
|
|
|
|
v-for="(value, key) in preview.data"
|
|
|
|
|
:label="key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))"
|
|
|
|
|
:name="key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))"
|
|
|
|
@ -177,6 +177,7 @@
|
|
|
|
|
import { listTable, previewTable, delTable, genCode, synchDb } from "@/api/tool/gen";
|
|
|
|
|
import importTable from "./importTable";
|
|
|
|
|
import { downLoadZip } from "@/utils/zipdownload";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "Gen",
|
|
|
|
|
components: { importTable },
|
|
|
|
@ -256,7 +257,7 @@ export default {
|
|
|
|
|
this.msgSuccess("成功生成到自定义路径:" + row.genPath);
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
downLoadZip("/code/gen/batchGenCode?tables=" + tableNames, "ruoyi");
|
|
|
|
|
downLoadZip("/tool/gen/batchGenCode?tables=" + tableNames, "ruoyi");
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/** 同步数据库操作 */
|
|
|
|
|