| | |
| | | @click="handleDelete(scope.row)"
|
| | | v-hasPermi="['tool:gen:remove']"
|
| | | >删除</el-button>
|
| | | <el-button
|
| | | <el-button
|
| | | type="text"
|
| | | size="small"
|
| | | icon="el-icon-refresh"
|
| | |
| | | <!-- 预览界面 -->
|
| | | <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
|
| | | <el-tab-pane style="overflow-x: scroll;"
|
| | | 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'))"
|
| | |
| | | this.msgSuccess("成功生成到自定义路径:" + row.genPath);
|
| | | });
|
| | | } else {
|
| | | downLoadZip("/code/gen/batchGenCode?tables=" + tableNames, "ruoyi");
|
| | | downLoadZip("/code/gen/batchGenCode?tables=" + tableNames, "ruoyi");
|
| | | }
|
| | | },
|
| | | /** 同步数据库操作 */
|
| | |
| | | return synchDb(tableName);
|
| | | }).then(() => {
|
| | | this.msgSuccess("同步成功");
|
| | | }).catch(function() {});
|
| | | })
|
| | | },
|
| | | /** 打开导入表弹窗 */
|
| | | openImportTable() {
|
| | |
| | | }).then(() => {
|
| | | this.getList();
|
| | | this.msgSuccess("删除成功");
|
| | | }).catch(function() {});
|
| | | })
|
| | | }
|
| | | }
|
| | | };
|