优化代码生成
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user