update TplVue.txt CodeGenerateTemplate

This commit is contained in:
不做码农
2021-12-19 16:07:09 +08:00
parent ab6e99d721
commit 6b67b0c7bd
2 changed files with 5 additions and 2 deletions

View File

@@ -30,8 +30,11 @@ namespace ZR.CodeGenerator
{
return sb.ToString();
}
if (!dbFieldInfo.IsInsert && !dbFieldInfo.IsEdit && !dbFieldInfo.IsPk && !dbFieldInfo.IsIncrement)
if (!dbFieldInfo.IsInsert && !dbFieldInfo.IsEdit)
{
sb.AppendLine(" <el-col v-if=\"title == '修改数据'\" :lg=\"12\">");
sb.AppendLine($" <el-form-item label=\"{labelName}\">{{{{form.{columnName}}}}}</el-form-item>");
sb.AppendLine(" </el-col>");
return sb.ToString();
}
//主键、非自增要插入,不能编辑