优化代码生成

This commit is contained in:
不做码农
2022-01-05 17:38:06 +08:00
parent 3f0357fe77
commit 9eda5bb74f
7 changed files with 21 additions and 24 deletions

View File

@@ -127,13 +127,13 @@
<el-col :lg="24">
<el-form-item label="显示按钮">
<el-checkbox-group v-model="checkedBtn" @change="checkedBtnSelect">
<el-checkbox :label="1" disabled>
<el-checkbox :label="1">
<el-tag type="primary">添加</el-tag>
</el-checkbox>
<el-checkbox :label="2" disabled>
<el-checkbox :label="2">
<el-tag type="success">修改</el-tag>
</el-checkbox>
<el-checkbox :label="3" disabled>
<el-checkbox :label="3">
<el-tag type="danger">删除</el-tag>
</el-checkbox>
<el-checkbox :label="4">

View File

@@ -183,17 +183,13 @@ export default {
codeGenerator(seachdata)
.then((res) => {
const { code, data } = res;
if (code == 200) {
this.showGenerate = false;
if (row.genType === "1") {
this.msgSuccess("成功生成到自定义路径:" + row.genPath);
} else {
this.msgSuccess("恭喜你,代码生成完成!");
this.download(data.path);
}
const { data } = res;
this.showGenerate = false;
if (row.genType === "1") {
this.msgSuccess("成功生成到自定义路径:" + row.genPath);
} else {
this.msgError(res.msg);
this.msgSuccess("恭喜你,代码生成完成!");
this.download(data.path);
}
pageLoading.close();
})