|
|
@ -132,7 +132,7 @@
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
v-hasPermi="['tool:gen:remove']"
|
|
|
|
v-hasPermi="['tool:gen:remove']"
|
|
|
|
>删除</el-button>
|
|
|
|
>删除</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
icon="el-icon-refresh"
|
|
|
|
icon="el-icon-refresh"
|
|
|
@ -159,7 +159,7 @@
|
|
|
|
<!-- 预览界面 -->
|
|
|
|
<!-- 预览界面 -->
|
|
|
|
<el-dialog :title="preview.title" :visible.sync="preview.open" width="80%" top="5vh" append-to-body>
|
|
|
|
<el-dialog :title="preview.title" :visible.sync="preview.open" width="80%" top="5vh" append-to-body>
|
|
|
|
<el-tabs v-model="preview.activeName">
|
|
|
|
<el-tabs v-model="preview.activeName">
|
|
|
|
<el-tab-pane
|
|
|
|
<el-tab-pane style="overflow-x: scroll;"
|
|
|
|
v-for="(value, key) in preview.data"
|
|
|
|
v-for="(value, key) in preview.data"
|
|
|
|
:label="key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))"
|
|
|
|
:label="key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))"
|
|
|
|
:name="key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))"
|
|
|
|
:name="key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))"
|
|
|
@ -256,7 +256,7 @@ export default {
|
|
|
|
this.msgSuccess("成功生成到自定义路径:" + row.genPath);
|
|
|
|
this.msgSuccess("成功生成到自定义路径:" + row.genPath);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
downLoadZip("/code/gen/batchGenCode?tables=" + tableNames, "ruoyi");
|
|
|
|
downLoadZip("/code/gen/batchGenCode?tables=" + tableNames, "ruoyi");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 同步数据库操作 */
|
|
|
|
/** 同步数据库操作 */
|
|
|
|