增强自动化代码使用体验

This commit is contained in:
QM303176530
2020-11-08 13:01:28 +08:00
parent cf9002a377
commit 84b967ae82
3 changed files with 11 additions and 15 deletions

View File

@@ -140,7 +140,7 @@ const fieldTemplate = {
dataTypeLong: "",
comment: "",
fieldSearchType: "",
dictType:""
dictType: ""
};
import FieldDialog from "@/view/systemTools/autoCode/component/fieldDialog.vue";
@@ -278,19 +278,13 @@ export default {
return false;
}
const data = await createTemp(this.form);
if(data.headers?.success == "false"){
return
}else if(data.code == 0){
if (data.headers?.success == "false") {
return;
} else {
this.$message({
type: "success",
message: "自动化代码创建成功,并已自动迁移"
})
return
}else{
this.$message({
type: "success",
message: "自动化代码创建成功,正在下载"
})
});
}
const blob = new Blob([data]);
const fileName = "ginvueadmin.zip";
@@ -353,14 +347,14 @@ export default {
columnName: item.columnName,
comment: item.columnComment,
fieldSearchType: "",
dictType:""
dictType: ""
});
}
});
}
},
async setFdMap() {
const fdTypes= ["string", "int", "bool", "float64", "time.Time"];
const fdTypes = ["string", "int", "bool", "float64", "time.Time"];
fdTypes.map(async fdtype => {
const res = await getDict(fdtype);
res.map(item => {