|
@@ -41,13 +41,11 @@
|
|
|
icon="el-icon-search"
|
|
|
size="mini"
|
|
|
@click="handleQuery"
|
|
|
- >搜索
|
|
|
- </el-button
|
|
|
- >
|
|
|
+ >搜索
|
|
|
+ </el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
|
- >重置
|
|
|
- </el-button
|
|
|
- >
|
|
|
+ >重置
|
|
|
+ </el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
|
|
@@ -60,9 +58,8 @@
|
|
|
size="mini"
|
|
|
@click="handleGenTable"
|
|
|
v-hasPermi="['tool:gen:code']"
|
|
|
- >生成
|
|
|
- </el-button
|
|
|
- >
|
|
|
+ >生成
|
|
|
+ </el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -72,9 +69,8 @@
|
|
|
size="mini"
|
|
|
@click="openImportTable"
|
|
|
v-hasPermi="['tool:gen:import']"
|
|
|
- >导入
|
|
|
- </el-button
|
|
|
- >
|
|
|
+ >导入
|
|
|
+ </el-button>
|
|
|
</el-col>
|
|
|
<!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -96,9 +92,8 @@
|
|
|
:disabled="multiple"
|
|
|
@click="handleDelete"
|
|
|
v-hasPermi="['tool:gen:remove']"
|
|
|
- >删除
|
|
|
- </el-button
|
|
|
- >
|
|
|
+ >删除
|
|
|
+ </el-button>
|
|
|
</el-col>
|
|
|
<right-toolbar
|
|
|
:showSearch.sync="showSearch"
|
|
@@ -119,8 +114,8 @@
|
|
|
<el-table-column label="序号" type="index" width="50" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{
|
|
|
- (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
|
|
|
- }}</span>
|
|
|
+ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
|
|
|
+ }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -167,66 +162,55 @@
|
|
|
处理<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item
|
|
|
- >
|
|
|
+ <el-dropdown-item>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
icon="el-icon-view"
|
|
|
@click="handlePreview(scope.row)"
|
|
|
v-hasPermi="['tool:gen:preview']"
|
|
|
- >预览
|
|
|
- </el-button
|
|
|
- >
|
|
|
- </el-dropdown-item
|
|
|
- >
|
|
|
- <el-dropdown-item
|
|
|
- >
|
|
|
+ >预览
|
|
|
+ </el-button>
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleEditTable(scope.row)"
|
|
|
v-hasPermi="['tool:gen:edit']"
|
|
|
- >编辑
|
|
|
- </el-button
|
|
|
- >
|
|
|
+ >编辑
|
|
|
+ </el-button>
|
|
|
</el-dropdown-item>
|
|
|
- <el-dropdown-item
|
|
|
- >
|
|
|
+ <el-dropdown-item>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['tool:gen:remove']"
|
|
|
- >删除
|
|
|
- </el-button
|
|
|
- >
|
|
|
+ >删除
|
|
|
+ </el-button>
|
|
|
</el-dropdown-item>
|
|
|
- <el-dropdown-item
|
|
|
- >
|
|
|
+ <el-dropdown-item>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
icon="el-icon-refresh"
|
|
|
@click="handleSynchDb(scope.row)"
|
|
|
v-hasPermi="['tool:gen:edit']"
|
|
|
- >同步
|
|
|
- </el-button
|
|
|
- >
|
|
|
+ >同步
|
|
|
+ </el-button>
|
|
|
</el-dropdown-item>
|
|
|
- <el-dropdown-item
|
|
|
- >
|
|
|
+ <el-dropdown-item>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
icon="el-icon-download"
|
|
|
@click="handleGenTable(scope.row)"
|
|
|
v-hasPermi="['tool:gen:code']"
|
|
|
- >生成代码
|
|
|
- </el-button
|
|
|
- >
|
|
|
+ >生成代码
|
|
|
+ </el-button>
|
|
|
</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
@@ -298,14 +282,13 @@
|
|
|
v-clipboard:copy="value"
|
|
|
v-clipboard:success="clipboardSuccess"
|
|
|
style="float: right"
|
|
|
- >复制
|
|
|
- </el-link
|
|
|
- >
|
|
|
+ >复制
|
|
|
+ </el-link>
|
|
|
<pre><code class="hljs" v-html="highlightedCode(value, key)"></code></pre>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-dialog>
|
|
|
- <import-table ref="import" @ok="handleQuery"/>
|
|
|
+ <import-table ref="import" @ok="handleQuery" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -333,7 +316,7 @@ hljs.registerLanguage("sql", require("highlight.js/lib/languages/sql"));
|
|
|
|
|
|
export default {
|
|
|
name: "Gen",
|
|
|
- components: {importTable},
|
|
|
+ components: { importTable },
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
@@ -414,7 +397,7 @@ export default {
|
|
|
} else {
|
|
|
this.$download.zip(
|
|
|
"/tool/gen/batchGenCode?tables=" + tableNames,
|
|
|
- "ruoyi.zip"
|
|
|
+ "zkqy.zip"
|
|
|
);
|
|
|
}
|
|
|
},
|
|
@@ -429,8 +412,7 @@ export default {
|
|
|
.then(() => {
|
|
|
this.$modal.msgSuccess("同步成功");
|
|
|
})
|
|
|
- .catch(() => {
|
|
|
- });
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
/** 打开导入表弹窗 */
|
|
|
openImportTable() {
|
|
@@ -475,7 +457,7 @@ export default {
|
|
|
handleEditTable(row) {
|
|
|
const tableId = row.tableId || this.ids[0];
|
|
|
const tableName = row.tableName || this.tableNames[0];
|
|
|
- const params = {pageNum: this.queryParams.pageNum};
|
|
|
+ const params = { pageNum: this.queryParams.pageNum };
|
|
|
this.$tab.openPage(
|
|
|
"修改[" + tableName + "]生成配置",
|
|
|
"/tool/gen-edit/index/" + tableId,
|
|
@@ -494,8 +476,7 @@ export default {
|
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
})
|
|
|
- .catch(() => {
|
|
|
- });
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
},
|
|
|
};
|