增加自动代码校验判断

This commit is contained in:
pixel
2020-03-30 17:59:01 +08:00
parent 095fdfb488
commit b9e4d70fe1
2 changed files with 9 additions and 11 deletions
@@ -142,6 +142,13 @@ export default {
this.form.fields.splice(index,1)
},
async enterForm(){
if(this.form.fields.length<=0){
this.$message({
type:"error",
message:"请填写至少一个field"
})
return false
}
this.$refs.autoCodeForm.validate(async (valid) => {
if (valid) {
this.form.structName = toUpperCase(this.form.structName)